1 # ***** BEGIN LICENSE BLOCK *****
2 # Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 # http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
14 # The Original Code is the Places Organizer Query Builder.
16 # The Initial Developer of the Original Code is Google Inc.
17 # Portions created by the Initial Developer are Copyright (C) 2006
18 # the Initial Developer. All Rights Reserved.
21 # Annie Sullivan <annie.sullivan@gmail.com>
23 # Alternatively, the contents of this file may be used under the terms of
24 # either the GNU General Public License Version 2 or later (the "GPL"), or
25 # the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
26 # in which case the provisions of the GPL or the LGPL are applicable instead
27 # of those above. If you wish to allow use of your version of this file only
28 # under the terms of either the GPL or the LGPL, and not to allow others to
29 # use your version of this file under the terms of the MPL, indicate your
30 # decision by deleting the provisions above and replace them with the notice
31 # and other provisions required by the GPL or the LGPL. If you do not delete
32 # the provisions above, a recipient may use your version of this file under
33 # the terms of any one of the MPL, the GPL or the LGPL.
35 # ***** END LICENSE BLOCK *****
37 <vbox
id=
"advancedSearch">
39 <
label value=
"&advancedSearch.match.label;" control=
"advancedSearchType"/>
40 <menulist
id=
"advancedSearchType"
41 oncommand=
"PlacesQueryBuilder.doSearch();">
43 <menuitem
value=
"and" label=
"&advancedSearch.all.label;"/>
44 <menuitem
value=
"or" label=
"&advancedSearch.any.label;"/>
56 <rows
id=
"advancedSearchRows">
57 <row
id=
"advancedSearch0Row" flex=
"1" hidden=
"true">
58 <menulist
id=
"advancedSearch0Subject" flex=
"1">
60 <menuitem
value=
"keyword"
61 label=
"&advancedSearch.subj_keyword.label;"
64 id=
"advancedSearch0SubjectKeyword"
65 oncommand=
"PlacesQueryBuilder.showSearch(this.getAttribute('rowid'), PlacesQueryBuilder._keywordSearch);"/>
66 <menuitem
value=
"visited"
67 label=
"&advancedSearch.subj_visited.label;"
69 id=
"advancedSearch0SubjectVisited"
70 oncommand=
"PlacesQueryBuilder.showSearch(this.getAttribute('rowid'), PlacesQueryBuilder._timeSearch);"/>
71 <menuitem
value=
"location"
72 label=
"&advancedSearch.subj_location.label;"
74 id=
"advancedSearch0SubjectLocation"
75 oncommand=
"PlacesQueryBuilder.showSearch(this.getAttribute('rowid'), PlacesQueryBuilder._locationSearch);"/>
79 <hbox flex=
"1" align=
"center">
80 <menulist
id=
"advancedSearch0LocationMenulist"
81 oncommand=
"PlacesQueryBuilder.doSearch();"
84 <menuitem
id=
"advancedSearch0LocationMenuSelected"
86 label=
"&advancedSearch.location_startswith.label;"
89 label=
"&advancedSearch.location_is.label;"/>
90 <menuitem
value=
"onsite"
91 label=
"&advancedSearch.location_onsite.label;"/>
95 <menulist
id=
"advancedSearch0TimeMenulist" hidden=
"true">
98 id=
"advancedSearch0TimeDefault"
99 label=
"&advancedSearch.time_is.label;"
102 oncommand=
"PlacesQueryBuilder.showSearch(this.getAttribute('rowid'), PlacesQueryBuilder._timeSearch);"/>
103 <menuitem
value=
"before"
104 label=
"&advancedSearch.time_before.label;"
106 oncommand=
"PlacesQueryBuilder.showSearch(this.getAttribute('rowid'), PlacesQueryBuilder._timeSearch);"/>
107 <menuitem
value=
"after"
108 label=
"&advancedSearch.time_after.label;"
110 oncommand=
"PlacesQueryBuilder.showSearch(this.getAttribute('rowid'), PlacesQueryBuilder._timeSearch);"/>
111 <menuitem
value=
"inLast"
112 label=
"&advancedSearch.time_inlast.label;"
114 oncommand=
"PlacesQueryBuilder.showSearch(this.getAttribute('rowid'), PlacesQueryBuilder._timeInLastSearch);"/>
117 <textbox type=
"search"
119 id=
"advancedSearch0Textbox"
121 oncommand=
"PlacesQueryBuilder.doSearch();"/>
123 <textbox type=
"search"
125 id=
"advancedSearch0TimePicker"
128 oncommand=
"PlacesQueryBuilder.onDateTyped(event, this.getAttribute('rowid'));"
129 onclick=
"PlacesQueryBuilder.handleTimePickerClick(event, this.getAttribute('rowid'));"/>
130 <popup
id=
"advancedSearch0DatePopup"
131 onpopupshowing=
"this.setAttribute('showing', true);"
132 onpopuphidden=
"this.removeAttribute('showing');">
133 <vbox
id=
"advancedSearch0Calendar"
134 class=
"history-calendar"
136 onselectionchanged=
"return PlacesQueryBuilder.onCalendarChanged(event, event.target.getAttribute('rowid'));"/>
139 <menulist
id=
"advancedSearch0TimeMenulist2"
140 oncommand=
"PlacesQueryBuilder.doSearch();"
143 <menuitem
value=
"days"
144 label=
"&advancedSearch.last_days.label;"
146 <menuitem
value=
"weeks"
147 label=
"&advancedSearch.last_weeks.label;"/>
148 <menuitem
value=
"months"
149 label=
"&advancedSearch.last_months.label;"/>
154 <button
id=
"advancedSearch0Minus"
155 label=
"&advancedSearch.minus.label;"
156 class=
"small advancedSearchMinus"
157 oncommand=
"PlacesQueryBuilder.removeRow(event.target.parentNode);"/>
158 <button
id=
"advancedSearch0Plus"
159 label=
"&advancedSearch.plus.label;"
160 class=
"small advancedSearchPlus"
161 command=
"OrganizerCommand_search:moreCriteria"/>
this _contentSandbox label