home *** CD-ROM | disk | FTP | other *** search
- <?xml version="1.0"?>
- <?xml-stylesheet href="chrome://yasearch/skin/dialogs/dialog.css"?>
- <?xml-stylesheet href="chrome://yasearch/skin/dialogs/welcome.css"?>
- <!DOCTYPE dialog SYSTEM "chrome://yasearch/locale/dialogs/welcome.dtd">
-
- <dialog id="yasearch-login-dialog"
- windowtype="Yasearch:WelcomeDialog"
- xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
- xmlns:html="http://www.w3.org/1999/xhtml"
- xmlns:ya="http://bar.yandex.ru/firefox"
- title="&yasearch.welcome.dialog.title;"
- onload="YaWelcome.onDialogLoad()"
- onunload="YaWelcome.onDialogUnload()"
- ondialogaccept="return YaWelcome.onDialogAccept()"
- onclick="return YaWelcome.handleWindowClick(event)"
- hidechrome="true"
- yatransparent="true">
-
- <script type="application/x-javascript" src="chrome://yasearch/content/utils.js"/>
- <script type="application/x-javascript" src="chrome://yasearch/content/dialogs/dragwindow.js"/>
- <script type="application/x-javascript" src="chrome://yasearch/content/dialogs/welcome.js"/>
-
- <stringbundle id="yasearch-string-bundle-welcome" src="chrome://yasearch/locale/dialogs/welcome.properties"/>
-
- <vbox flex="1">
- <ya:dialogcontent id="dialogcontent" selectedIndex="0">
- <ya:tabbox id="tabbox-welcome" title="&yasearch.welcome.enter.label;">
- <ya:tabs>
- <ya:tab label="&yasearch.welcome.enter.label;"/>
- </ya:tabs>
-
- <ya:tabpanels>
- <ya:tabpanel id="login-tabpanel" collapsed="false">
- <grid id="login-grid" flex="1">
- <rows><row/><row/><row/></rows>
- <columns>
- <column align="end">
- <hbox align="center">
- <label control="yasearch-username"
- value="&yasearch.welcome.login.label;:"/>
- </hbox>
- <hbox align="center">
- <label control="yasearch-password"
- value="&yasearch.welcome.password.label;:"/>
- </hbox>
- <hbox>
- <label value="&yasearch.welcome.registration.label;"
- style="visibility:hidden; max-height:1px"/>
- </hbox>
- </column>
- <column>
- <hbox align="center">
- <textbox id="yasearch-username" flex="1"
- onchange="YaWelcome.checkAcceptButton()"
- onkeyup="YaWelcome.checkAcceptButton()"
- ontextentered="YaWelcome.handleLoginEntered()"
- showcommentcolumn="true"
- type="autocomplete"
- autocompletepopup="yasearch-popup-login-autocomplete"
- autocompletesearch="YasearchPassComplete"
- autocompletesearchparam="yasearch-login"
- completeselectedindex="true"
- clickSelectsAll="true"
- newlines="replacewithspaces"
- enablehistory="true"
- maxlength="100"
- yaAllowedChars="[A-Za-z\d\-\.@]"
- yaAllowedValue="^[A-Za-z][A-Za-z\d\-\.@]{0,99}$"
- yaAllowedValueFinal="^[A-Za-z]([A-Za-z\d\-\.@]){0,98}[A-Za-z\d]$"
- yaAllowedTooltiptext="&yasearch.welcome.login.vaild.tooltiptext;"/>
- </hbox>
- <hbox align="center">
- <textbox id="yasearch-password" flex="1"
- type="password"
- oninput="YaWelcome.checkAcceptButton()"
- onkeyup="YaWelcome.checkAcceptButton()"
- onchange="YaWelcome.checkAcceptButton()"/>
- </hbox>
- <hbox>
- <checkbox id="yasearch-store-password"
- label="&yasearch.welcome.store-password.label;"/>
- <spacer flex="1"/>
- <button id="login-button"
- label="&yasearch.welcome.login.button.label;"
- oncommand="document.documentElement.acceptDialog()"/>
- </hbox>
- </column>
- <column align="start">
- <vbox pack="center">
- <label value="&yasearch.welcome.registration.label;"
- tooltiptext="http://passport.yandex.ru/passport?mode=register"
- onclick="YaWelcome.onNewLoginClick(event)"/>
- </vbox>
- <vbox pack="center">
- <label value="&yasearch.welcome.remember-password.1.label;"
- tooltiptext="http://passport.yandex.ru/passport?mode=remember"
- yahref="http://passport.yandex.ru/passport?mode=remember"
- yaLinkAction="3120"/>
- <label value="&yasearch.welcome.remember-password.2.label;?"
- tooltiptext="http://passport.yandex.ru/passport?mode=remember"
- yahref="http://passport.yandex.ru/passport?mode=remember"
- yaLinkAction="3120"/>
- </vbox>
- <hbox/>
- </column>
- </columns>
- </grid>
-
- <deck id="yasearch-connection-status" selectedIndex="0">
- <hbox/>
- <hbox><label class="request-status-label" value="&yasearch.welcome.status.request.label;…"/></hbox>
- <hbox><label class="attention-label" value="&yasearch.welcome.status.error.label;"/></hbox>
- <hbox><label class="attention-label" value="&yasearch.welcome.status.neterror.label;"/></hbox>
- <hbox>
- <label class="attention-label" value="&yasearch.welcome.maxErrors1.label;"/>
- <label class="attention-label" value="&yasearch.welcome.maxErrors2.label;"
- tooltiptext="http://passport.yandex.ru/"
- yahref="http://passport.yandex.ru/"
- yaLinkAction="3110"/>
- </hbox>
- </deck>
-
- <hbox class="toggle-holder" pack="end" align="center">
- <hbox yaShowOnCollapsed="true" onclick="YaWelcome.toggleCollapsedView()">
- <label value="&yasearch.welcome.show.label;"/>
- </hbox>
- <hbox yaShowOnCollapsed="false" onclick="YaWelcome.toggleCollapsedView()">
- <label value="&yasearch.welcome.hide.label;"/>
- </hbox>
- </hbox>
-
- <vbox yaShowOnCollapsed="false" flex="1" id="about-service-holder"/>
- </ya:tabpanel>
- </ya:tabpanels>
-
- </ya:tabbox>
-
- <ya:tabbox id="tabbox-services" title="&yasearch.welcome.mybar.label;">
- <ya:tabs>
- <ya:tab label="&yasearch.welcome.mybar.label;"/>
- </ya:tabs>
-
- <ya:tabpanels>
- <ya:tabpanel id="user-info-tabpanel">
- <grid id="user-info">
- <rows><row/></rows>
- <columns>
- <column pack="start">
- <vbox flex="1" pack="start">
- <hbox id="user-info-avatar"/>
- </vbox>
- </column>
- <column id="user-info-yaru-column" flex="1" pack="start">
- <vbox flex="1" pack="start">
- <hbox id="user-info-name" class="yaoverfl"/>
- <box id="user-info-status"/>
- </vbox>
- </column>
- </columns>
- </grid>
-
- <vbox id="user-info-services">
- <label class="dark-label" value="&yasearch.services.iuse.label;:"/>
- <vbox id="user-info-services-list"/>
- </vbox>
-
- <hbox id="user-switch-or-exit">
- <vbox>
- <label value="&yasearch.welcome.user.switch.label;"
- onclick="YaWelcome.logout(false);"/>
- </vbox>
- <vbox>
- <label value="&yasearch.welcome.user.exit.label;"
- onclick="YaWelcome.logout(true);"/>
- </vbox>
- </hbox>
-
- </ya:tabpanel>
-
- </ya:tabpanels>
-
- </ya:tabbox>
-
- </ya:dialogcontent>
- </vbox>
- </dialog>
-