summaryrefslogtreecommitdiffstats
path: root/comm/mail/components/addrbook/content/abSearchDialog.xhtml
blob: 75a40df839bb72494cccaa5aa74ba88a4fba6f40 (plain)
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
<?xml version="1.0"?>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
   - License, v. 2.0. If a copy of the MPL was not distributed with this
   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->

<?xml-stylesheet href="chrome://messenger/skin/searchDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/input-fields.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/themeableDialog.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/addressbook/abResultsPane.css" type="text/css"?>
<?xml-stylesheet href="chrome://messenger/skin/abSearchDialog.css" type="text/css"?>

<!DOCTYPE window [
  <!ENTITY % abResultsPaneDTD SYSTEM "chrome://messenger/locale/addressbook/abResultsPane.dtd">
  %abResultsPaneDTD;
  <!ENTITY % SearchDialogDTD SYSTEM "chrome://messenger/locale/SearchDialog.dtd">
  %SearchDialogDTD;
  <!ENTITY % searchTermDTD SYSTEM "chrome://messenger/locale/searchTermOverlay.dtd">
  %searchTermDTD;
]>
<window id="searchAddressBookWindow"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        xmlns:html="http://www.w3.org/1999/xhtml"
        onload="searchOnLoad();"
        onunload="searchOnUnload();"
        onclose="onSearchStop();"
        windowtype="mailnews:absearch"
        title="&abSearchDialogTitle.label;"
        style="min-width: 52em; min-height: 34em;"
        lightweightthemes="true"
        persist="screenX screenY width height sizemode">
  <html:link rel="localization" href="messenger/addressbook/aboutAddressBook.ftl" />

  <script src="chrome://messenger/content/globalOverlay.js"/>
  <script src="chrome://messenger/content/addressbook/abSearchDialog.js"/>
  <script src="chrome://messenger/content/addressbook/abResultsPane.js"/>
  <script src="chrome://messenger/content/addressbook/abCommon.js"/>
  <script src="chrome://messenger/content/searchTerm.js"/>
  <script src="chrome://messenger/content/searchWidgets.js"/>
  <script src="chrome://messenger/content/dateFormat.js"/>
  <script src="chrome://messenger/content/jsTreeView.js"/>
  <script src="chrome://messenger/content/addressbook/abView.js"/>

  <keyset id="mailKeys">
    <key key="&closeCmd.key;" modifiers="accel" oncommand="onSearchStop(); window.close();"/>
    <key keycode="VK_ESCAPE" oncommand="onSearchStop(); window.close();"/>
  </keyset>

  <commandset id="AbCommands">
    <command id="cmd_properties" oncommand="onProperties();"/>
    <command id="cmd_compose" oncommand="onCompose();"/>
    <command id="cmd_deleteCard" oncommand="onDelete();"/>
  </commandset>

    <vbox id="searchTerms" class="themeable-brighttext" persist="height">
      <vbox>
        <hbox align="center">
          <label value="&abSearchHeading.label;" accesskey="&abSearchHeading.accesskey;" control="abPopup"/>
          <menulist is="menulist-addrbooks" id="abPopup"
                    oncommand="SelectDirectory(this.value);"
                    alladdressbooks="true"
                    flex="1"/>
          <spacer style="flex: 3 3;"/>
          <button id="search-button" oncommand="onSearchButton(event);" default="true"/>
        </hbox>
        <hbox align="center">
          <spacer flex="1"/>
          <button label="&resetButton.label;" oncommand="onAbSearchReset(event);" accesskey="&resetButton.accesskey;"/>
        </hbox>
      </vbox>

      <hbox flex="1">
        <vbox id="searchTermListBox" flex="1">
#include ../../../../mailnews/search/content/searchTerm.inc.xhtml
      </hbox>
    </vbox>

    <splitter id="gray_horizontal_splitter" orient="vertical"/>

    <vbox id="searchResults" persist="height">
      <vbox id="searchResultListBox">
        <tree id="abResultsTree" flex="1" enableColumnDrag="true" class="plain"
              onclick="AbResultsPaneOnClick(event);"
              onkeypress="AbResultsPaneKeyPress(event);"
              onselect="this.view.selectionChanged();"
              sortCol="GeneratedName"
              persist="sortCol">

          <treecols id="abResultsTreeCols">
          <!-- these column ids must match up to the mork column names, except for GeneratedName and ChatName, see nsIAddrDatabase.idl -->
          <treecol id="GeneratedName"
                   persist="hidden ordinal width sortDirection"
                   style="flex: 1 auto"
                   label="&GeneratedName.label;"
                   primary="true"/>
          <splitter class="tree-splitter"/>
          <treecol id="PrimaryEmail"
                   persist="hidden ordinal width sortDirection"
                   style="flex: 1 auto"
                   label="&PrimaryEmail.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="ChatName"
                   hidden="true"
                   persist="hidden ordinal width sortDirection"
                   style="flex: 1 auto"
                   label="&ChatName.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="Company"
                   persist="hidden ordinal width sortDirection"
                   style="flex: 1 auto"
                   label="&Company.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="NickName"
                   persist="hidden ordinal width sortDirection"
                   hidden="true"
                   style="flex: 1 auto"
                   label="&NickName.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="SecondEmail"
                   persist="hidden ordinal width sortDirection"
                   hidden="true"
                   style="flex: 1 auto"
                   label="&SecondEmail.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="Department"
                   persist="hidden ordinal width sortDirection"
                   hidden="true"
                   style="flex: 1 auto"
                   label="&Department.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="JobTitle"
                   persist="hidden ordinal width sortDirection"
                   hidden="true"
                   style="flex: 1 auto"
                   label="&JobTitle.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="CellularNumber"
                   persist="hidden ordinal width sortDirection"
                   hidden="true"
                   style="flex: 1 auto"
                   label="&CellularNumber.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="PagerNumber"
                   persist="hidden ordinal width sortDirection"
                   hidden="true"
                   style="flex: 1 auto"
                   label="&PagerNumber.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="FaxNumber"
                   persist="hidden ordinal width sortDirection"
                   hidden="true"
                   style="flex: 1 auto"
                   label="&FaxNumber.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="HomePhone"
                   persist="hidden ordinal width sortDirection"
                   hidden="true"
                   style="flex: 1 auto"
                   label="&HomePhone.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="WorkPhone"
                   persist="hidden ordinal width sortDirection"
                   style="flex: 1 auto"
                   label="&WorkPhone.label;"/>
          <splitter class="tree-splitter"/>
          <treecol id="Addrbook"
                   persist="hidden ordinal width sortDirection"
                   style="flex: 1 auto"
                   label="&Addrbook.label;"/>
          <!-- LOCALIZATION NOTE: _PhoneticName may be enabled for Japanese builds. -->
          <!--
            <treecol id="_PhoneticName"
                     persist="hidden ordinal width sortDirection"
                     hidden="true"
                     style="flex: 1 auto"
                     label="&_PhoneticName.label;"/>
            <splitter class="tree-splitter"/>
           -->

          </treecols>
          <treechildren ondragstart="abResultsPaneObserver.onDragStart(event);"/>
        </tree>
      </vbox>
      <hbox align="start">
        <button label="&propertiesButton.label;"
                accesskey="&propertiesButton.accesskey;"
                command="cmd_properties"/>
        <button label="&composeButton.label;"
                accesskey="&composeButton.accesskey;"
                command="cmd_compose"/>
        <button label="&deleteCardButton.label;"
                accesskey="&deleteCardButton.accesskey;"
                command="cmd_deleteCard"/>
      </hbox>
    </vbox>

  <hbox id="status-bar" class="statusbar chromeclass-status" role="status">
    <label id="statusText" class="statusbarpanel" crop="end" flex="1"/>
  </hbox>

</window>