DXR is a code search and navigation tool aimed at making sense of large projects. It supports full-text and regex searches as well as structural queries.

Untracked file

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352
<?xml version="1.0"?> 
<!--
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/

Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.

The Original Code is Mozilla Communicator client code, released
March 31, 1998.

The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
 Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
--> 

<?xml-stylesheet href="chrome://messenger/skin/addressbook/cardDialog.css" type="text/css"?>

<!DOCTYPE overlay SYSTEM "chrome://messenger/locale/addressbook/abCardOverlay.dtd">

<overlay id="editcardOverlay"
     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<stringbundleset id="stringbundleset">
  <stringbundle id="bundle_addressBook" src="chrome://messenger/locale/addressbook/addressBook.properties"/>
</stringbundleset>

<script type="application/x-javascript" src="chrome://global/content/dialogOverlay.js"/>
<script type="application/x-javascript" src="chrome://messenger/content/addressbook/abCommon.js"/>
<script type="application/x-javascript" src="chrome://messenger/content/addressbook/abCardOverlay.js"/>

<vbox id="editcard">

  <tabbox style="margin:5px">
    <tabs id="abTabs">
      <tab label="&Contact.tab;"/>
      <tab label="&Address.tab;"/>
      <tab label="&Other.tab;"/>
    </tabs>

    <tabpanels id="abTabPanels" flex="1">

      <!-- ** Name Tab ** -->
      <vbox index="name" flex="1">
      <groupbox flex="1">
        <caption label="&Name.box;"/>

        <vbox style="width:100%">

        <!-- LOCALIZATION NOTE: 
        NameField1, NameField2, PhoneticField1, PhoneticField2
        those fields are either LN or FN depends on the target country.
        They are configurable in the .dtd file. 
        -->

          <hbox>
            <spacer flex="1"/>
            <label control="&NameField1.id;" value="&NameField1.label;" accesskey="&NameField1.accesskey;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="&NameField1.id;" flex="1" oninput="GenerateDisplayName()" disableforreadonly="true"/>

              <!-- LOCALIZATION NOTE:
              Fields for phonetic are disabled as default and can be enabled by 
              editing "mail.addr_book.show_phonetic_fields"    
              -->

              <spacer id="PhoneticSpacer1" flex="1" hidden="true"/>
              <label id="PhoneticLabel1" control="&PhoneticField1.id;" value="&PhoneticField1.label;" class="CardEditLabel" hidden="true"/>
              <textbox id="&PhoneticField1.id;" flex="1" disableforreadonly="true" hidden="true"/>
            </hbox>
          </hbox>
          <hbox>
            <spacer flex="1"/>
            <label control="&NameField2.id;" value="&NameField2.label;" accesskey="&NameField2.accesskey;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="&NameField2.id;" flex="1" oninput="GenerateDisplayName()" disableforreadonly="true"/>

              <!-- LOCALIZATION NOTE:
              Fields for phonetic are disabled as default and can be enabled by 
              editing "mail.addr_book.show_phonetic_fields"    
              -->

              <spacer id="PhoneticSpacer2" flex="1" hidden="true"/>
              <label id="PhoneticLabel2" control="&PhoneticField2.id;" value="&PhoneticField2.label;" class="CardEditLabel" hidden="true"/>
              <textbox id="&PhoneticField2.id;" flex="1" disableforreadonly="true" hidden="true"/>
            </hbox>
          </hbox>
          <hbox>
            <spacer flex="1"/>
            <label control="DisplayName" value="&DisplayName.label;" accesskey="&DisplayName.accesskey;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="DisplayName" flex="1" oninput="DisplayNameChanged()" disableforreadonly="true"/>
            </hbox>
          </hbox>
          <hbox id="nickNameContainer">
            <spacer flex="1"/>
            <label control="NickName" value="&NickName.label;" accesskey="&NickName.accesskey;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="NickName" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
        </vbox>
      </groupbox>

      <groupbox flex="1">
        <caption label="&Internet.box;"/>
        <vbox style="width:100%">
          <hbox>
            <spacer flex="1"/>
            <label control="PrimaryEmail" value="&PrimaryEmail.label;" accesskey="&PrimaryEmail.accesskey;"  class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="PrimaryEmail" flex="1" disableforreadonly="true" class="uri-element"/>
            </hbox>
          </hbox>
          <hbox id="secondaryEmailContainer">
            <spacer flex="1"/>
            <label control="SecondEmail" value="&SecondEmail.label;" accesskey="&SecondEmail.accesskey;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="SecondEmail" flex="1" disableforreadonly="true" class="uri-element"/>
            </hbox>
          </hbox>
          <hbox>
            <vbox valign="middle">
              <label control="PreferMailFormatPopup" value="&PreferMailFormat.label;" accesskey="&PreferMailFormat.accesskey;"/>
            </vbox>
            <menulist id="PreferMailFormatPopup" disableforreadonly="true">
              <menupopup>
                <menuitem value="0" label="&Unknown.label;"/>
                <menuitem value="1" label="&PlainText.label;"/>
                <menuitem value="2" label="&HTML.label;"/>
              </menupopup>
            </menulist>
          </hbox>
          <hbox id="screenNameContainer">
            <spacer flex="1"/>
            <label control="ScreenName" value="&ScreenName.label;" accesskey="&ScreenName.accesskey;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="ScreenName" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
        </vbox>
      </groupbox>

      <groupbox flex="1">
        <caption label="&Phones.box;"/>
        <vbox style="width:100%">
          <hbox>
            <spacer flex="1"/>
            <label control="WorkPhone" value="&WorkPhone.label;" accesskey="&WorkPhone.accesskey;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="WorkPhone" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
          <hbox>
            <spacer flex="1"/>
            <label control="HomePhone" value="&HomePhone.label;" accesskey="&HomePhone.accesskey;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="HomePhone" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
          <hbox>
            <spacer flex="1"/>
            <label control="FaxNumber" value="&FaxNumber.label;" accesskey="&FaxNumber.accesskey;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="FaxNumber" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
          <hbox>
            <spacer flex="1"/>
            <label control="PagerNumber" value="&PagerNumber.label;" accesskey="&PagerNumber.accesskey;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="PagerNumber" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
          <hbox>
            <spacer flex="1"/>
            <label control="CellularNumber" value="&CellularNumber.label;" accesskey="&CellularNumber.accesskey;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="CellularNumber" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
        </vbox>
      </groupbox>
    </vbox>

    <!-- ** Address Tab ** -->
    <vbox index="address" flex="1">
      <groupbox id="homeAddressGroup" flex="1">
        <caption label="&Home.box;"/>
        <vbox style="width:100%">
          <hbox>
            <spacer flex="1"/>
            <label control="HomeAddress" value="&HomeAddress.label;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="HomeAddress" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
          <hbox>
            <spacer flex="1"/>
            <label control="HomeAddress2" value="&HomeAddress2.label;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="HomeAddress2" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
          <hbox>
            <spacer flex="1"/>
            <label control="HomeCity" value="&HomeCity.label;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="HomeCity" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
          <hbox>
            <spacer flex="1"/>
            <label control="HomeState" value="&HomeState.label;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="HomeState" flex="1" disableforreadonly="true"/>
              <spacer class="stateZipSpacer"/>
              <label control="HomeZipCode" value="&HomeZipCode.label;" class="CardEditLabel"/>
              <textbox id="HomeZipCode" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
          <hbox>
            <spacer flex="1"/>
            <label control="HomeCountry" value="&HomeCountry.label;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="HomeCountry" flex="1" disableforreadonly="true"/>
            </hbox>
          </hbox>
          <hbox>
            <spacer flex="1"/>
            <label control="WebPage2" value="&HomeWebPage.label;" class="CardEditLabel"/>
            <hbox class="CardEditWidth">
              <textbox id="WebPage2" flex="1" disableforreadonly="true" class="uri-element"/>
            </hbox>
          </hbox>
        </vbox>
      </groupbox>

      <groupbox style="width:100%">
        <caption label="&Work.box;"/>
          <vbox style="width:100%">
            <hbox>
              <spacer flex="1"/>
              <label control="JobTitle" value="&JobTitle.label;" class="CardEditLabel"/>
              <hbox class="CardEditWidth">
                <textbox id="JobTitle" flex="1" disableforreadonly="true"/>
              </hbox>
            </hbox>
            <hbox>
              <spacer flex="1"/>
              <label control="Department" value="&Department.label;" class="CardEditLabel"/>
              <hbox class="CardEditWidth">
                <textbox id="Department" flex="1" disableforreadonly="true"/>
              </hbox>
            </hbox>
            <hbox>
              <spacer flex="1"/>
              <label control="Company" value="&Company.label;" class="CardEditLabel"/>
              <hbox class="CardEditWidth">
                <textbox id="Company" flex="1" disableforreadonly="true"/>
              </hbox>
            </hbox>
            <hbox>
              <spacer flex="1"/>
              <label control="WorkAddress" value="&WorkAddress.label;" class="CardEditLabel"/>
              <hbox class="CardEditWidth">
                <textbox id="WorkAddress" flex="1" disableforreadonly="true"/>
              </hbox>
            </hbox>
            <hbox>
              <spacer flex="1"/>
              <label control="WorkAddress2" value="&WorkAddress2.label;" class="CardEditLabel"/>
              <hbox class="CardEditWidth">
                <textbox id="WorkAddress2" flex="1" disableforreadonly="true"/>
              </hbox>
            </hbox>
            <hbox>
              <spacer flex="1"/>
              <label control="WorkCity" value="&WorkCity.label;" class="CardEditLabel"/>
              <hbox class="CardEditWidth">
                <textbox id="WorkCity" flex="1" disableforreadonly="true"/>
              </hbox>
            </hbox>
            <hbox>
              <spacer flex="1"/>
              <label control="WorkState" value="&WorkState.label;" class="CardEditLabel"/>
              <hbox class="CardEditWidth">
                <textbox id="WorkState" flex="1" disableforreadonly="true"/>
                <spacer class="stateZipSpacer"/>
                <label control="WorkZipCode" value="&WorkZipCode.label;" class="CardEditLabel"/>
                <textbox id="WorkZipCode" flex="1" disableforreadonly="true"/>
              </hbox>
            </hbox>
            <hbox>
              <spacer flex="1"/>
              <label control="WorkCountry" value="&WorkCountry.label;" class="CardEditLabel"/>
              <hbox class="CardEditWidth">
                <textbox id="WorkCountry" flex="1" disableforreadonly="true"/>
              </hbox>
            </hbox>
            <hbox>
              <spacer flex="1"/>
              <label control="WebPage1" value="&WorkWebPage.label;" class="CardEditLabel"/>
              <hbox class="CardEditWidth">
                <textbox id="WebPage1" flex="1" disableforreadonly="true" class="uri-element"/>
              </hbox>
            </hbox>
          </vbox>
        </groupbox>
      </vbox>

      <!-- ** Other Tab ** -->
      <vbox index="other" flex="1">
        <vbox id="customFields" class="alignBoxWithFieldset">
          <hbox flex="1">
            <label control="Custom1" value="&Custom1.label;" accesskey="&Custom1.accesskey;" class="CardEditLabel"/>
            <textbox id="Custom1" flex="1" disableforreadonly="true"/>
          </hbox>
          <hbox flex="1">
            <label control="Custom2" value="&Custom2.label;" accesskey="&Custom2.accesskey;" class="CardEditLabel"/>
            <textbox id="Custom2" flex="1" disableforreadonly="true"/>
          </hbox>
          <hbox flex="1">
            <label control="Custom3" value="&Custom3.label;" accesskey="&Custom3.accesskey;" class="CardEditLabel"/>
            <textbox id="Custom3" flex="1" disableforreadonly="true"/>
          </hbox>
          <hbox flex="1">
            <label control="Custom4" value="&Custom4.label;" accesskey="&Custom4.accesskey;" class="CardEditLabel"/>
            <textbox id="Custom4" flex="1" disableforreadonly="true"/>
          </hbox>
        </vbox>

        <groupbox style="width:100%">
          <caption label="&Notes.box;"/>
          <vbox style="width:100%">
            <textbox id="Notes" multiline="true" rows="15" wrap="virtual" disableforreadonly="true"/>
          </vbox>
        </groupbox>

      </vbox>

    </tabpanels> 
  </tabbox>
</vbox>

</overlay>