home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GameStar 2005 October
/
Gamestar_77_2005-10_dvd.iso
/
Programy
/
nsb-install-8-0.exe
/
chrome
/
toolkit.jar
/
content
/
mozapps
/
autofill
/
autofill.xul
< prev
next >
Wrap
Extensible Markup Language
|
2005-07-29
|
21KB
|
541 lines
<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<?xml-stylesheet href="chrome://mozapps/skin/pref/pref.css" type="text/css"?>
<?xml-stylesheet href="chrome://browser/skin/pref/pref.css" type="text/css"?>
<?xml-stylesheet href="chrome://mozapps/content/autofill/advancedViewBindings.css" type="text/css"?>
<!DOCTYPE window [
<!ENTITY % afDTD SYSTEM "chrome://mozapps/locale/autofill/autofill.dtd">
%afDTD;
<!ENTITY % afPrefDTD SYSTEM "chrome://browser/locale/pref/pref-autofill.dtd">
%afPrefDTD;
<!ENTITY % pmDTD SYSTEM "chrome://passwordmgr/locale/passwordManager.dtd">
%pmDTD;
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
%brandDTD;
<!ENTITY % prefPrivacyDTD SYSTEM "chrome://browser/locale/pref/pref-privacy.dtd">
%prefPrivacyDTD;
]>
<page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
id="autofillManager"
orient="vertical" title="&autofill.title;" headertitle="&lHeader;"
style="width: 30em;"
persist="width height screenX screenY sizeMode"
onload="parent.initPanel('chrome://mozapps/content/autofill/autofill.xul');"
onunload="CommitLastSelectedSignon();">
<script type="application/x-javascript" src="chrome://mozapps/content/autofill/countryList.js"/>
<script type="application/x-javascript" src="chrome://mozapps/content/autofill/datacardUtils.js"/>
<script type="application/x-javascript" src="chrome://mozapps/content/autofill/autofill.js"/>
<script type="application/x-javascript" src="chrome://mozapps/content/autofill/passcard.js"/>
<script type="application/x-javascript" src="chrome://passwordmgr/content/passwordManager.js"/>
<script type="application/x-javascript" src="chrome://mozapps/content/autofill/masterpassword.js"/>
<script type="application/x-javascript" src="chrome://mozapps/content/autofill/ccard.js"/>
<stringbundle id="signonBundle"
src="chrome://passwordmgr/locale/passwordmgr.properties"/>
<stringbundle id="formfillpasscardBundle"
src="chrome://mozapps/locale/autofill/autofill.properties"/>
<?xul-overlay href="chrome://mozapps/content/autofill/passcardOverlay.xul"?>
<tabbox id="autofilltabbox" flex="1">
<tabs id="formfill-passcard-tabs" onselect="OnTabSelect();">
<tab id="formfilltab" label="&datacard.tab.title;"/>
<tab id="passcardtab" label="&passcard.tab.title;"/>
<tab id="passwordtab" label="&password.tab.title;"/>
</tabs>
<tabpanels flex="1">
<!-- Datacard UI -->
<!-- Begin Datacards tab panel -->
<tabpanel id="formfillpanel" flex="1">
<tabbox id="datacard-tabbox" flex="1">
<tabs id="datacard-tabs" onselect="OndatacardPrefTabSelect();">
<tab id="datacard-datacards-tab" label="&datacard.tab.title;"/>
<tab id="datacard-preferences-tab" label="&preferences.tab.title;"/>
</tabs>
<tabpanels flex="1">
<!-- Datacards panel -->
<tabpanel flex="1">
<vbox flex="1">
<!-- saved signons -->
<tree id="datacardTree" flex="1" style="height: 12em;" hidecolumnpicker="true"
seltype="single" onkeypress="HandleSignonKeyPress(event)"
onselect="SelectSignon();">
<treecols>
<treecol id="datacardCol" label="&datacard.treehead.label;"
flex="2" style="font-weight: bold;"
onclick="SignonColumnSort('datacard');" persist="width"/>
</treecols>
<treechildren id="datacardTreeChildren"/>
</tree>
<!-- rejected signon sites -->
<tree id="datacardRejectsTree" flex="1" style="height: 11em;" hidecolumnpicker="true"
seltype="single" onkeypress="dcHandleRejectKeyPress(event)"
onselect="SelectReject();">
<treecols>
<treecol id="datacardRejectCol" label="&datacard.treehead.site.label;"
flex="5" style="font-weight: bold;"
onclick="datacardRejectColumnSort('host');"/>
</treecols>
<treechildren id="datacardRejectsTreeChildren"/>
</tree>
<hbox>
<button id="datacardAdd" label="Add" oncommand="datacardAddButton();"/>
<button id="datacardRemoveButton" disabled="true"
label="&datacard.remove.label;" oncommand="datacardRemoveButton();"/>
<button id="datacardRemoveAllButton" disabled="true" hidden="true"
label="&datacard.removeall.label;"
oncommand="datacardRemoveAllButton();"/>
</hbox>
</vbox>
<deck id="datacardDetails-deck" flex="1">
<vbox>
<spacer flex="1"/>
<hbox>
<spacer flex="1"/>
<description>No Datacard is selected</description>
<spacer flex="1"/>
</hbox>
<spacer flex="1"/>
</vbox>
<tabbox id="datacardDetails-tabbox" flex="1">
<tabs id="datacard-datacards-tabs" onselect="OndatacardPrefTabSelect();">
<tab id="datacard-datacardDetails-tab" label="&datacard.details.tab.title;"/>
<tab id="datacard-contact-detail1-tab" label="&datacard.tab.NameEmailTitle;"/>
<tab id="datacard-contact-detail2-tab" label="&datacard.tab.ShipBillTitle;"/>
<tab id="datacard-contact-detail3-tab" label="&datacard.tab.CreditCard;"/>
<tab id="datacard-contact-detail3-tab" label="&datacard.tab.Advanced;"/>
</tabs>
<tabpanels flex="1">
<!-- Details panel -->
<tabpanel flex="1" orient="vertical">
<hbox>
<label value="Datacard Name:"/>
<label id="datacardName"/>
</hbox>
<separator class="thin"/>
<description>&datacard.dropdown.label;</description>
<hbox>
<spacer minwidth="60"/>
<menulist id="datacardAutofillList" oncommand="dcOnDropdownClick(this);">
<menupopup id="dcAFillMenupoup">
<menuitem label="&autologin.displayprompt.label;" value="displayprompt"/>
<menuitem label="&datacard.fill.label;" value="filldatacard"/>
<menuitem label="&datacard.fillandsubmit.label;" value="fillsubmitdatacard"/>
<menuitem label="&autologin.donothing.label;" value="donothing"/>
</menupopup>
</menulist>
</hbox>
<!-- <separator flex="1"/> -->
<checkbox id="dcProtect" label="&datacard.protect.checkbox.label;"/>
<!-- <separator flex="1"/> -->
<button id="dcSetAsDefaultBtn" label="Set as the default Datacard"
oncommand="SetDatacardAsDefault();"/>
<separator flex="1"/>
</tabpanel>
<!-- Name and Email Panel -->
<tabpanel flex="1">
<grid flex="1"> <!-- Personal Info -->
<rows flex="1">
<row/><!-- First Name -->
<row/><!-- Last Name -->
<row/><!-- E-Mail Address -->
<row/><!-- Phone Number -->
<row/><!-- E-Mail Address -->
<row/><!-- E-Mail Address -->
</rows>
<columns>
<column> <!-- Label Column -->
<label value="Title:" control="Title"/>
<label value="First Name:" control="FirstName"/>
<label value="Last Name:" control="LastName"/>
<label value="E-Mail Address:" control="EmailAddr"/>
<label value="Home Phone:" control="PhoneNum"/>
<label value="Work Phone:" control="WorkPhoneNum"/>
</column>
<column flex="1"> <!-- Values Column -->
<textbox id="Title" maxlength="50" flex="1"/>
<textbox id="FirstName" maxlength="50" flex="1"/>
<textbox id="LastName" maxlength="50" flex="1"/>
<textbox id="EmailAddr" maxlength="100" flex="1"/>
<textbox id="PhoneNum" maxlength="15" flex="1"/>
<textbox id="WorkPhoneNum" maxlength="15" flex="1"/>
</column>
</columns>
</grid>
<separator flex="6"/>
</tabpanel>
<!-- Shipping and Billing Address Panel -->
<tabpanel flex="1" orient="vertical">
<description style="margin-top: 4px;">Enter your address information:</description>
<separator class="thin"/>
<radiogroup id="afillRadio" orient="horizontal">
<radio id="PriAddr" label="Billing"
oncommand="afillRadioChange(this);"/>
<radio id="AltAddr" label="Shipping"
oncommand="afillRadioChange(this);"/>
</radiogroup>
<grid id="shippingAddresses"> <!-- Shipping addresses -->
<rows>
<row/><!-- Address 1 -->
<row/><!-- Address 2 -->
<row/><!-- City -->
<row/><!-- State/Province -->
<row/><!-- Country -->
<row/><!-- Zip/Postal Code -->
</rows>
<columns>
<column>
<label value="Address 1:" control="StrAddr"/>
<label value="Address 2:" control="StrAddr2"/>
<label value="City:" control="city"/>
<label value="State/Province:" control="State"/>
<label value="Country:" control="Country"/>
<label value="Zip/Postal Code:" control="ZipCode"/>
</column>
<column flex="1">
<textbox id="StrAddr" maxlength="150" flex="1"/>
<textbox id="StrAddr2" maxlength="150" flex="1"/>
<textbox id="City" maxlength="50" flex="1"/>
<textbox id="State" maxlength="50" flex="1"/>
<menulist id="countryList" label="countryType">
<menupopup id="countryType"/>
</menulist>
<textbox id="ZipCode" maxlength="10"/>
</column>
</columns>
</grid>
</tabpanel>
<!-- Credit Card -->
<tabpanel flex="1">
<grid>
<rows>
<row/><!-- Name on Card -->
<row/><!-- Number -->
<row/><!-- Type -->
<row/><!-- Expiration Month/Year -->
<row/><!-- Expiration Month/Year -->
<row/><!-- Password -->
<row/><!-- Retype Password -->
</rows>
<columns>
<column> <!-- Column 1 Labels -->
<label value="Name on Card:" control="CardName"/>
<label value="Number:" control="CardNumber"/>
<label value="Type:" control="CardType"/>
<label value="Expiration Month:" control="expireMonth"/>
<label value="Year:" control="expireYear"/>
</column>
<column> <!-- Column 2 Values -->
<textbox id="CardName" maxlength="100"/>
<textbox id="CardNumber" maxlength="16"/>
<menulist id="cardtypeList" label="cardType">
<menupopup id="cardType">
<menuitem label="Visa" value="Visa"/>
<menuitem label="Master Card" value="MasterCard"/>
<menuitem label="Amer. Express" value="AmericanExpress"/>
<menuitem label="Discover" value="Discover"/>
<menuitem label="Other" value="Other"/>
</menupopup>
</menulist>
<menulist id="monthList" label="expireMonth">
<menupopup id="expireMonth">
<menuitem label="01" value="01"/>
<menuitem label="02" value="02"/>
<menuitem label="03" value="03"/>
<menuitem label="04" value="04"/>
<menuitem label="05" value="05"/>
<menuitem label="06" value="06"/>
<menuitem label="07" value="07"/>
<menuitem label="08" value="08"/>
<menuitem label="09" value="09"/>
<menuitem label="10" value="10"/>
<menuitem label="11" value="11"/>
<menuitem label="12" value="12"/>
</menupopup>
</menulist>
<menulist id="yearList" label="expireYear">
<menupopup id="expireYear">
<menuitem label="04" value="04"/>
<menuitem label="05" value="05"/>
<menuitem label="06" value="06"/>
<menuitem label="07" value="07"/>
<menuitem label="08" value="08"/>
<menuitem label="09" value="09"/>
<menuitem label="10" value="10"/>
<menuitem label="11" value="11"/>
<menuitem label="12" value="12"/>
<menuitem label="13" value="13"/>
<menuitem label="14" value="14"/>
<menuitem label="15" value="15"/>
<menuitem label="16" value="16"/>
<menuitem label="17" value="17"/>
<menuitem label="18" value="18"/>
<menuitem label="19" value="19"/>
<menuitem label="20" value="20"/>
</menupopup>
</menulist>
</column>
</columns>
</grid>
</tabpanel> <!-- /Credit Card -->
<!-- Advanced -->
<tabpanel flex="1">
<deck id="advancedDeck" flex="1">
<vbox>
<spacer flex="1"/>
<hbox>
<spacer flex="1"/>
<description>There are no additional fields for this datacard.</description>
<spacer flex="1"/>
</hbox>
<spacer flex="1"/>
</vbox>
<vbox>
<tree id="advancedTree" flex="1" hidecolumnpicker="true">
<treecols>
<treecol id="advancedTree-keyCol"
label="Name"
flex="1"/>
<treecol id="advancedTree-valCol"
label="Value"
flex="1"/>
</treecols>
<treechildren id="advancedTreeChildren"/>
</tree>
</vbox>
</deck>
</tabpanel> <!-- /Advanced -->
</tabpanels>
</tabbox>
</deck>
</tabpanel>
<!-- Preferences Panel -->
<tabpanel flex="1" orient="vertical">
<groupbox>
<caption label="&datacard.behavior.tab.title;"/>
<hbox>
<vbox flex="1">
<label value="&datacard.autosave.label;"/>
<menulist id="dcAutosave" preftype="int" prefstring="datacard.autosave">
<menupopup>
<menuitem label="&datacard.displayprompt.label;" value="0"/>
<menuitem label="&datacard.save.label;" value="1"/>
<menuitem label="&datacard.donothing.label;" value="2"/>
</menupopup>
</menulist>
</vbox>
<spacer minwidth="160"/>
</hbox>
<!--
<row>
<checkbox id="dcAutosave" label="&datacard.behavior.autosave.label;"
prefstring="datacard.autosave" oncommand="dataCardAutoSaveChange();"/>
<separator orient="vertical"/>
<checkbox id="dcAutosavePrompt" label="&behavior.autosaveprompt2.label;"
prefstring="datacard.autosave.prompt"/>
</row>
-->
<checkbox id="dcHighlight" label="&datacard.behavior.highlight.label;"
prefstring="datacard.highlight"/>
<checkbox id="dcFillAndSubmit" label="&behavior.fillAndSubmit.label;"
prefstring="datacard.fillandsubmit"/>
<checkbox id="dcMessageBar" label="&datacard.behavior.messagebar.label;"
prefstring="datacard.messagebar.enable"/>
</groupbox>
<groupbox>
<caption label="&datacard.protection.tab.title;"/>
<checkbox id="dcPasswordProtect" label="&datacard.protection.protect.label;"
prefstring="datacard.passwordprotect"/>
<checkbox id="dcPasswordPrompt" label="&datacard.protection.prompt.label;"
prefstring="datacard.passwordprotect.prompt" hidden="true"/>
</groupbox>
</tabpanel>
</tabpanels>
</tabbox>
</tabpanel>
<!-- END Datacards tab panel -->
<!-- Passcard UI -->
<!-- Passcard top level panel -->
<tabpanel id="passcard-tabpanel" flex="1">
<!--
<deck id="passcard-deck" selectedIndex="0">
<vbox align="center" pack="center">
<label value="Passcard Manager password required"/>
</vbox>
-->
<tabbox id="passcard-tabbox" flex="1">
<tabs id="passcard-tabs" onselect="OnSelectPasscardTab(this);">
<tab id="passcards-tab" label="&passcards.tab.title;"/>
<tab id="preferences-tab" label="&preferences.tab.title;"/>
</tabs>
<tabpanels flex="1">
<tabpanel flex="1">
<!-- Passcard detail overlay -->
<box id="passcardPanel" flex="1"/>
</tabpanel>
<!-- Passcard preferences tab panel -->
<tabpanel flex="1" orient="vertical">
<groupbox>
<caption label="&behavior.tab.title;"/>
<hbox>
<vbox flex="1">
<label value="&autologin.preference.label;"/>
<menulist id="pcAutologin" flex="1">
<menupopup>
<menuitem label="&autologin.displayprompt.label;"/>
<menuitem label="&autologin.fill.label;"/>
<menuitem label="&autologin.fillandsubmit.label;"/>
<menuitem label="&autologin.donothing.label;"/>
</menupopup>
</menulist>
</vbox>
<vbox flex="1">
<label value="&autosave.preference.label;"/>
<menulist id="pcAutosave" flex="1">
<menupopup>
<menuitem label="&autosave.displayprompt.label;"/>
<menuitem label="&autosave.save.label;"/>
<menuitem label="&autosave.donothing.label;"/>
</menupopup>
</menulist>
</vbox>
</hbox>
<checkbox id="pcHighlight" label="&behavior.highlight.label;"/>
<checkbox id="pcFillAndSubmit" label="&behavior.fillAndSubmit.label;"/>
<checkbox id="pcDefaultPrompt" label="&behavior.defaultPrompt.label;"/>
</groupbox>
<groupbox>
<caption label="&protection.tab.title;"/>
<grid>
<columns>
<column/>
</columns>
<rows>
<row>
<vbox>
<checkbox id="pcPasswordProtect" label="&protection.protect.label;"/>
<!--
<checkbox id="pcPasswordPrompt" label="&protection.prompt.label;"/>
<separator class="thin"/>
<hbox>
<label id="pcPasswordExpireLabel" value="&protection.expire.label;"
control="pcPasswordExpire"/>
<textbox id="pcPasswordExpire" size="1" maxlength="3"
onchange="OnExpireTextChange()"/>
</hbox>
-->
</vbox>
</row>
</rows>
</grid>
</groupbox>
<!--
<groupbox orient="horizontal">
<caption label="&default.tab.title;"/>
<label value="&default.userID.label;" control="pcUserID"/>
<textbox id="pcUserID" maxlength="50" flex="1"/>
<label value="&default.password.label;" control="pcPassword"/>
<textbox id="pcPassword" maxlength="20" flex="1" type="password"/>
</groupbox>
-->
</tabpanel><!-- END Passcard preferences tab panel -->
</tabpanels>
</tabbox>
<!--
</deck>
-->
</tabpanel><!-- END Passcard tab panel --><!-- Master Password UI -->
<!-- Master Password tab panel -->
<tabpanel id="password-tabpanel" flex="1" orient="vertical">
<!-- List elements to manage for prefs -->
<script type="application/x-javascript">
<!--[CDATA[
var _elementIDs = ["changePasswordButton",
"resetPasswordButton",
"timeoutPasswordButton",
"askEveryTimeHidden",
"passwordAskTimes",
"passwordTimeout"];
]]-->
</script>
<!-- Hidden elements for persisting timeout values -->
<checkbox id="askEveryTimeHidden"
prefstring="signon.expireMasterPassword"
hidden="true"/>
<textbox id="passwordAskTimes"
preftype="int"
prefstring="security.ask_for_password"
hidden="true"/>
<textbox id="passwordTimeout"
preftype="int"
prefstring="security.password_lifetime"
hidden="true"/>
<!-- Change Password -->
<groupbox>
<caption id="changePasswordTitle" label="&change.password.title;"/>
<description>&change.password.description;</description>
<hbox pack="end"> <!--TODO JVL: REMOVE align="center"-->
<button id="changePasswordButton" label="&change.password.button;"
oncommand="OnChangePassword();"/>
<!--
accesskey="&changepassword.accesskey;"
prefstring="security.disable_button.changePassword"/>
-->
</hbox>
</groupbox>
<!-- Reset Password -->
<groupbox>
<caption label="&reset.password.title;"/>
<description>&reset.password.description;</description>
<hbox pack="end"> <!--TODO JVL: REMOVE align="center"-->
<button id="resetPasswordButton" label="&reset.password.button;"
oncommand="OnResetPassword();"/>
<!--
accesskey="&resetpassword.accesskey;"
prefstring="security.disable_button.resetPassword"/>
-->
</hbox>
</groupbox>
<!-- Change Password Timeout -->
<groupbox>
<caption label="&timeout.title;"/>
<description>&timeout.description;</description>
<hbox pack="end" align="center">
<description id="noLoginTimeoutMsg" hidden="true">&timeout.notloggedin.label;</description>
<button id="timeoutPasswordButton" label="&timeout.label;"
oncommand="OnChangeTimeout();"/>
</hbox>
</groupbox>
</tabpanel><!-- END Master Password tab panel -->
</tabpanels>
</tabbox>
</page>