home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2005 October / Gamestar_77_2005-10_dvd.iso / Programy / nsb-install-8-0.exe / chrome / messenger.jar / content / messenger / addressbook / abCardOverlay.xul < prev    next >
Extensible Markup Language  |  2005-07-29  |  15KB  |  353 lines

  1. <?xml version="1.0"?> 
  2. <!--
  3. The contents of this file are subject to the Netscape Public
  4. License Version 1.1 (the "License"); you may not use this file
  5. except in compliance with the License. You may obtain a copy of
  6. the License at http://www.mozilla.org/NPL/
  7.  
  8. Software distributed under the License is distributed on an "AS
  9. IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
  10. implied. See the License for the specific language governing
  11. rights and limitations under the License.
  12.  
  13. The Original Code is Mozilla Communicator client code, released
  14. March 31, 1998.
  15.  
  16. The Initial Developer of the Original Code is Netscape
  17. Communications Corporation. Portions created by Netscape are
  18.  Copyright (C) 1998-1999 Netscape Communications Corporation. All
  19. Rights Reserved.
  20. --> 
  21.  
  22. <?xml-stylesheet href="chrome://messenger/skin/addressbook/cardDialog.css" type="text/css"?>
  23.  
  24. <!DOCTYPE overlay SYSTEM "chrome://messenger/locale/addressbook/abCardOverlay.dtd">
  25.  
  26. <overlay id="editcardOverlay"
  27.      xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  28.  
  29. <stringbundleset id="stringbundleset">
  30.   <stringbundle id="bundle_addressBook" src="chrome://messenger/locale/addressbook/addressBook.properties"/>
  31. </stringbundleset>
  32.  
  33. <script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js"/>
  34. <script type="application/x-javascript" src="chrome://messenger/content/addressbook/abCommon.js"/>
  35. <script type="application/x-javascript" src="chrome://messenger/content/addressbook/abCardOverlay.js"/>
  36.  
  37. <vbox id="editcard">
  38.  
  39.   <tabbox style="margin:5px">
  40.     <tabs id="abTabs">
  41.       <tab label="&Contact.tab;"/>
  42.       <tab label="&Address.tab;"/>
  43.       <tab label="&Other.tab;"/>
  44.     </tabs>
  45.  
  46.     <tabpanels id="abTabPanels" flex="1">
  47.  
  48.       <!-- ** Name Tab ** -->
  49.       <vbox index="name" flex="1">
  50.       <groupbox flex="1">
  51.         <caption label="&Name.box;"/>
  52.  
  53.         <vbox style="width:100%">
  54.  
  55.         <!-- LOCALIZATION NOTE: 
  56.         NameField1, NameField2, PhoneticField1, PhoneticField2
  57.         those fields are either LN or FN depends on the target country.
  58.         They are configurable in the .dtd file. 
  59.         -->
  60.  
  61.           <hbox>
  62.             <spacer flex="1"/>
  63.             <label control="&NameField1.id;" value="&NameField1.label;" accesskey="&NameField1.accesskey;" class="CardEditLabel"/>
  64.             <hbox class="CardEditWidth">
  65.               <textbox id="&NameField1.id;" flex="1" oninput="GenerateDisplayName()" disableforreadonly="true"/>
  66.  
  67.               <!-- LOCALIZATION NOTE:
  68.               Fields for phonetic are disabled as default and can be enabled by 
  69.               editing "mail.addr_book.show_phonetic_fields"    
  70.               -->
  71.  
  72.               <spacer id="PhoneticSpacer1" flex="1" hidden="true"/>
  73.               <label id="PhoneticLabel1" control="&PhoneticField1.id;" value="&PhoneticField1.label;" class="CardEditLabel" hidden="true"/>
  74.               <textbox id="&PhoneticField1.id;" flex="1" disableforreadonly="true" hidden="true"/>
  75.             </hbox>
  76.           </hbox>
  77.           <hbox>
  78.             <spacer flex="1"/>
  79.             <label control="&NameField2.id;" value="&NameField2.label;" accesskey="&NameField2.accesskey;" class="CardEditLabel"/>
  80.             <hbox class="CardEditWidth">
  81.               <textbox id="&NameField2.id;" flex="1" oninput="GenerateDisplayName()" disableforreadonly="true"/>
  82.  
  83.               <!-- LOCALIZATION NOTE:
  84.               Fields for phonetic are disabled as default and can be enabled by 
  85.               editing "mail.addr_book.show_phonetic_fields"    
  86.               -->
  87.  
  88.               <spacer id="PhoneticSpacer2" flex="1" hidden="true"/>
  89.               <label id="PhoneticLabel2" control="&PhoneticField2.id;" value="&PhoneticField2.label;" class="CardEditLabel" hidden="true"/>
  90.               <textbox id="&PhoneticField2.id;" flex="1" disableforreadonly="true" hidden="true"/>
  91.             </hbox>
  92.           </hbox>
  93.           <hbox>
  94.             <spacer flex="1"/>
  95.             <label control="DisplayName" value="&DisplayName.label;" accesskey="&DisplayName.accesskey;" class="CardEditLabel"/>
  96.             <hbox class="CardEditWidth">
  97.               <textbox id="DisplayName" flex="1" oninput="DisplayNameChanged()" disableforreadonly="true"/>
  98.             </hbox>
  99.           </hbox>
  100.           <hbox id="nickNameContainer">
  101.             <spacer flex="1"/>
  102.             <label control="NickName" value="&NickName.label;" accesskey="&NickName.accesskey;" class="CardEditLabel"/>
  103.             <hbox class="CardEditWidth">
  104.               <textbox id="NickName" flex="1" disableforreadonly="true"/>
  105.             </hbox>
  106.           </hbox>
  107.         </vbox>
  108.       </groupbox>
  109.  
  110.       <groupbox flex="1">
  111.         <caption label="&Internet.box;"/>
  112.         <vbox style="width:100%">
  113.           <hbox>
  114.             <spacer flex="1"/>
  115.             <label control="PrimaryEmail" value="&PrimaryEmail.label;" accesskey="&PrimaryEmail.accesskey;"  class="CardEditLabel"/>
  116.             <hbox class="CardEditWidth">
  117.               <textbox id="PrimaryEmail" flex="1" disableforreadonly="true" class="uri-element"/>
  118.             </hbox>
  119.           </hbox>
  120.           <hbox id="secondaryEmailContainer">
  121.             <spacer flex="1"/>
  122.             <label control="SecondEmail" value="&SecondEmail.label;" accesskey="&SecondEmail.accesskey;" class="CardEditLabel"/>
  123.             <hbox class="CardEditWidth">
  124.               <textbox id="SecondEmail" flex="1" disableforreadonly="true" class="uri-element"/>
  125.             </hbox>
  126.           </hbox>
  127.           <hbox>
  128.             <vbox valign="middle">
  129.               <label control="PreferMailFormatPopup" value="&PreferMailFormat.label;" accesskey="&PreferMailFormat.accesskey;"/>
  130.             </vbox>
  131.             <menulist id="PreferMailFormatPopup" disableforreadonly="true">
  132.               <menupopup>
  133.                 <menuitem value="0" label="&Unknown.label;"/>
  134.                 <menuitem value="1" label="&PlainText.label;"/>
  135.                 <menuitem value="2" label="&HTML.label;"/>
  136.               </menupopup>
  137.             </menulist>
  138.           </hbox>
  139.           <hbox id="screenNameContainer">
  140.             <spacer flex="1"/>
  141.             <label control="ScreenName" value="&ScreenName.label;" accesskey="&ScreenName.accesskey;" class="CardEditLabel"/>
  142.             <hbox class="CardEditWidth">
  143.               <textbox id="ScreenName" flex="1" disableforreadonly="true"/>
  144.             </hbox>
  145.           </hbox>
  146.         </vbox>
  147.       </groupbox>
  148.  
  149.       <groupbox flex="1">
  150.         <caption label="&Phones.box;"/>
  151.         <vbox style="width:100%">
  152.           <hbox>
  153.             <spacer flex="1"/>
  154.             <label control="WorkPhone" value="&WorkPhone.label;" accesskey="&WorkPhone.accesskey;" class="CardEditLabel"/>
  155.             <hbox class="CardEditWidth">
  156.               <textbox id="WorkPhone" flex="1" disableforreadonly="true"/>
  157.             </hbox>
  158.           </hbox>
  159.           <hbox>
  160.             <spacer flex="1"/>
  161.             <label control="HomePhone" value="&HomePhone.label;" accesskey="&HomePhone.accesskey;" class="CardEditLabel"/>
  162.             <hbox class="CardEditWidth">
  163.               <textbox id="HomePhone" flex="1" disableforreadonly="true"/>
  164.             </hbox>
  165.           </hbox>
  166.           <hbox>
  167.             <spacer flex="1"/>
  168.             <label control="FaxNumber" value="&FaxNumber.label;" accesskey="&FaxNumber.accesskey;" class="CardEditLabel"/>
  169.             <hbox class="CardEditWidth">
  170.               <textbox id="FaxNumber" flex="1" disableforreadonly="true"/>
  171.             </hbox>
  172.           </hbox>
  173.           <hbox>
  174.             <spacer flex="1"/>
  175.             <label control="PagerNumber" value="&PagerNumber.label;" accesskey="&PagerNumber.accesskey;" class="CardEditLabel"/>
  176.             <hbox class="CardEditWidth">
  177.               <textbox id="PagerNumber" flex="1" disableforreadonly="true"/>
  178.             </hbox>
  179.           </hbox>
  180.           <hbox>
  181.             <spacer flex="1"/>
  182.             <label control="CellularNumber" value="&CellularNumber.label;" accesskey="&CellularNumber.accesskey;" class="CardEditLabel"/>
  183.             <hbox class="CardEditWidth">
  184.               <textbox id="CellularNumber" flex="1" disableforreadonly="true"/>
  185.             </hbox>
  186.           </hbox>
  187.         </vbox>
  188.       </groupbox>
  189.     </vbox>
  190.  
  191.     <!-- ** Address Tab ** -->
  192.     <vbox index="address" flex="1">
  193.       <groupbox id="homeAddressGroup" flex="1">
  194.         <caption label="&Home.box;"/>
  195.         <vbox style="width:100%">
  196.           <hbox>
  197.             <spacer flex="1"/>
  198.             <label control="HomeAddress" value="&HomeAddress.label;" class="CardEditLabel"/>
  199.             <hbox class="CardEditWidth">
  200.               <textbox id="HomeAddress" flex="1" disableforreadonly="true"/>
  201.             </hbox>
  202.           </hbox>
  203.           <hbox>
  204.             <spacer flex="1"/>
  205.             <label control="HomeAddress2" value="&HomeAddress2.label;" class="CardEditLabel"/>
  206.             <hbox class="CardEditWidth">
  207.               <textbox id="HomeAddress2" flex="1" disableforreadonly="true"/>
  208.             </hbox>
  209.           </hbox>
  210.           <hbox>
  211.             <spacer flex="1"/>
  212.             <label control="HomeCity" value="&HomeCity.label;" class="CardEditLabel"/>
  213.             <hbox class="CardEditWidth">
  214.               <textbox id="HomeCity" flex="1" disableforreadonly="true"/>
  215.             </hbox>
  216.           </hbox>
  217.           <hbox>
  218.             <spacer flex="1"/>
  219.             <label control="HomeState" value="&HomeState.label;" class="CardEditLabel"/>
  220.             <hbox class="CardEditWidth">
  221.               <textbox id="HomeState" flex="1" disableforreadonly="true"/>
  222.               <spacer class="stateZipSpacer"/>
  223.               <label control="HomeZipCode" value="&HomeZipCode.label;" class="CardEditLabel"/>
  224.               <textbox id="HomeZipCode" flex="1" disableforreadonly="true"/>
  225.             </hbox>
  226.           </hbox>
  227.           <hbox>
  228.             <spacer flex="1"/>
  229.             <label control="HomeCountry" value="&HomeCountry.label;" class="CardEditLabel"/>
  230.             <hbox class="CardEditWidth">
  231.               <textbox id="HomeCountry" flex="1" disableforreadonly="true"/>
  232.             </hbox>
  233.           </hbox>
  234.           <hbox>
  235.             <spacer flex="1"/>
  236.             <label control="WebPage2" value="&HomeWebPage.label;" class="CardEditLabel"/>
  237.             <hbox class="CardEditWidth">
  238.               <textbox id="WebPage2" flex="1" disableforreadonly="true" class="uri-element"/>
  239.             </hbox>
  240.           </hbox>
  241.         </vbox>
  242.       </groupbox>
  243.  
  244.       <groupbox style="width:100%">
  245.         <caption label="&Work.box;"/>
  246.           <vbox style="width:100%">
  247.             <hbox>
  248.               <spacer flex="1"/>
  249.               <label control="JobTitle" value="&JobTitle.label;" class="CardEditLabel"/>
  250.               <hbox class="CardEditWidth">
  251.                 <textbox id="JobTitle" flex="1" disableforreadonly="true"/>
  252.               </hbox>
  253.             </hbox>
  254.             <hbox>
  255.               <spacer flex="1"/>
  256.               <label control="Department" value="&Department.label;" class="CardEditLabel"/>
  257.               <hbox class="CardEditWidth">
  258.                 <textbox id="Department" flex="1" disableforreadonly="true"/>
  259.               </hbox>
  260.             </hbox>
  261.             <hbox>
  262.               <spacer flex="1"/>
  263.               <label control="Company" value="&Company.label;" class="CardEditLabel"/>
  264.               <hbox class="CardEditWidth">
  265.                 <textbox id="Company" flex="1" disableforreadonly="true"/>
  266.               </hbox>
  267.             </hbox>
  268.             <hbox>
  269.               <spacer flex="1"/>
  270.               <label control="WorkAddress" value="&WorkAddress.label;" class="CardEditLabel"/>
  271.               <hbox class="CardEditWidth">
  272.                 <textbox id="WorkAddress" flex="1" disableforreadonly="true"/>
  273.               </hbox>
  274.             </hbox>
  275.             <hbox>
  276.               <spacer flex="1"/>
  277.               <label control="WorkAddress2" value="&WorkAddress2.label;" class="CardEditLabel"/>
  278.               <hbox class="CardEditWidth">
  279.                 <textbox id="WorkAddress2" flex="1" disableforreadonly="true"/>
  280.               </hbox>
  281.             </hbox>
  282.             <hbox>
  283.               <spacer flex="1"/>
  284.               <label control="WorkCity" value="&WorkCity.label;" class="CardEditLabel"/>
  285.               <hbox class="CardEditWidth">
  286.                 <textbox id="WorkCity" flex="1" disableforreadonly="true"/>
  287.               </hbox>
  288.             </hbox>
  289.             <hbox>
  290.               <spacer flex="1"/>
  291.               <label control="WorkState" value="&WorkState.label;" class="CardEditLabel"/>
  292.               <hbox class="CardEditWidth">
  293.                 <textbox id="WorkState" flex="1" disableforreadonly="true"/>
  294.                 <spacer class="stateZipSpacer"/>
  295.                 <label control="WorkZipCode" value="&WorkZipCode.label;" class="CardEditLabel"/>
  296.                 <textbox id="WorkZipCode" flex="1" disableforreadonly="true"/>
  297.               </hbox>
  298.             </hbox>
  299.             <hbox>
  300.               <spacer flex="1"/>
  301.               <label control="WorkCountry" value="&WorkCountry.label;" class="CardEditLabel"/>
  302.               <hbox class="CardEditWidth">
  303.                 <textbox id="WorkCountry" flex="1" disableforreadonly="true"/>
  304.               </hbox>
  305.             </hbox>
  306.             <hbox>
  307.               <spacer flex="1"/>
  308.               <label control="WebPage1" value="&WorkWebPage.label;" class="CardEditLabel"/>
  309.               <hbox class="CardEditWidth">
  310.                 <textbox id="WebPage1" flex="1" disableforreadonly="true" class="uri-element"/>
  311.               </hbox>
  312.             </hbox>
  313.           </vbox>
  314.         </groupbox>
  315.       </vbox>
  316.  
  317.       <!-- ** Other Tab ** -->
  318.       <vbox index="other" flex="1">
  319.         <vbox id="customFields" class="alignBoxWithFieldset">
  320.           <hbox flex="1">
  321.             <label control="Custom1" value="&Custom1.label;" accesskey="&Custom1.accesskey;" class="CardEditLabel"/>
  322.             <textbox id="Custom1" flex="1" disableforreadonly="true"/>
  323.           </hbox>
  324.           <hbox flex="1">
  325.             <label control="Custom2" value="&Custom2.label;" accesskey="&Custom2.accesskey;" class="CardEditLabel"/>
  326.             <textbox id="Custom2" flex="1" disableforreadonly="true"/>
  327.           </hbox>
  328.           <hbox flex="1">
  329.             <label control="Custom3" value="&Custom3.label;" accesskey="&Custom3.accesskey;" class="CardEditLabel"/>
  330.             <textbox id="Custom3" flex="1" disableforreadonly="true"/>
  331.           </hbox>
  332.           <hbox flex="1">
  333.             <label control="Custom4" value="&Custom4.label;" accesskey="&Custom4.accesskey;" class="CardEditLabel"/>
  334.             <textbox id="Custom4" flex="1" disableforreadonly="true"/>
  335.           </hbox>
  336.         </vbox>
  337.  
  338.         <groupbox style="width:100%">
  339.           <caption label="&Notes.box;"/>
  340.           <vbox style="width:100%">
  341.             <textbox id="Notes" multiline="true" rows="15" wrap="virtual" disableforreadonly="true"/>
  342.           </vbox>
  343.         </groupbox>
  344.  
  345.       </vbox>
  346.  
  347.     </tabpanels> 
  348.   </tabbox>
  349. </vbox>
  350.  
  351. </overlay>
  352.  
  353.