Bug 4497: Make tabs for managing suggestions translatable
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / suggestion / suggestion.tt
1 [% INCLUDE 'doc-head-open.inc' %]<title>Koha &rsaquo; Acquisitions  &rsaquo;
2 [% IF ( op_save ) %][% IF ( suttesionid ) %]Edit purchase suggestion #[% suggestionid %][% ELSE %]Enter a new purchase suggestion[% END %][% ELSE %]Suggestions Management[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 [% IF ( op_else ) %] <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
7 <script type="text/javascript">
8 // <![CDATA[
9
10     function yuiToolbar() {
11         new YAHOO.widget.Button("newsuggestion");
12     }
13 $.tablesorter.addParser({
14     id: 'articles',
15     is: function(s) {return false;  },
16     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); },
17     type: 'text'
18 });
19 /**
20 *  displayOther.
21 *  This function display the select or an textaera to write a reason.
22 */
23 function displayOther(id,show,hide){
24         $("#"+hide+id).hide();
25         $("#"+show+id).show();
26 }
27 $(document).ready(function() {
28     yuiToolbar();
29     $('#suggestiontabs > ul').tabs({
30         select: function(ui) {
31             $("#loadingtab").show();
32         },
33         show: function(ui) {
34             $("#loadingtab").hide();
35         }
36         });
37     $.tablesorter.defaults.widgets = ['zebra'];
38
39 [% FOREACH suggestion IN suggestions %]
40 // functions for [% suggestion.suggestiontype %] interactions
41     $("#[% suggestion.suggestiontype %]t").tablesorter({[% IF ( dateformat == 'metric' ) %]
42     dateFormat: 'uk',[% END %]
43     headers: {0:{sorter: false}, 1: { sorter: 'articles' },5:{sorter: false},6:{sorter: false},7:{sorter: false}, 8:{sorter: false},9:{sorter: false},10:{sorter: false}}
44     });
45     $("#CheckAll[% suggestion.suggestiontype %]").click(function(){
46                 $("#[% suggestion.suggestiontype %]t").checkCheckboxes();
47     });
48     $("#UncheckAll[% suggestion.suggestiontype %]").click(function(){
49                 $("#[% suggestion.suggestiontype %]t").unCheckCheckboxes();
50         });
51         $("#other_reason[% suggestion.suggestiontype %]").hide();
52     $("input[name*=other_reason[% suggestion.suggestiontype %]]").focus(function(){ $(this).val(""); });
53     $("#reason[% suggestion.suggestiontype %]").change(function(){
54             if($(this).val() == "other"){
55                         $(this).hide();
56                         $("#other_reason[% suggestion.suggestiontype %]").show();
57     }
58     });
59         $("#[% suggestion.suggestiontype %]delete").change(function(){
60                 if(this.checked){
61                         $("form[name='f[% suggestion.suggestiontype %]'] input[name=op]").attr("value","delete");
62                 } else {
63                         $("form[name='f[% suggestion.suggestiontype %]'] input[name=op]").attr("value","change");
64                 }
65         });
66
67 [% END %]
68     $("a[href*=back]").click(function(){
69     var sid = $(this).attr("href").replace(/#back/,"");
70             $("#reason"+sid).show().find("option[value='']").attr("selected","selected");
71                 $("#other_reason"+sid).hide();
72     });
73         $("h4.collapse a").click(function(){
74                 $(this).parent().parent().find("ol").toggle();
75     });
76 });
77 // ]]>
78 </script>
79 <style type="text/css">
80 h4.collapse a { font-size : 80%; text-decoration: none; } fieldset.brief ol { display : none; }
81 .overlay { top: 180px; left: 50%; position: absolute; margin-left: -100px; width: 200px; text-align: center; display: none; margin-top: -10px; background: #eeffd4; padding: .5em; color: #000; } .note { -moz-border-radius: 3px; border-radius:3px; background: transparent url("/intranet-tmpl/prog/img/famfamfam/silk/comment.png") top left no-repeat; padding : 1px 3px 1px 18px; font-size : 90%; }
82 </style>[% ELSE %]
83 <script type="text/javascript">
84 // <![CDATA[
85 $(document).ready(function() { calcNewsuggTotal(); });
86 // ]]>
87 </script>
88 [% END %]
89 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
90 </head>
91 <body>
92 [% INCLUDE 'header.inc' %]
93 [% INCLUDE 'cat-search.inc' %]
94 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; [% IF ( op_save ) %] <a href="/cgi-bin/koha/suggestion/suggestion.pl">Suggestions</a> &rsaquo; [% IF ( suggestionid ) %]Suggestion edit #[% suggestionid %][% ELSE %]New purchase suggestion[% END %][% ELSE %]Suggestions Management[% END %] </div>
95
96 [% IF ( op_save ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
97 <div id="bd">
98     <div id="yui-main">
99     <div class="yui-b">
100 [% IF ( op_save ) %]
101     <form id="add_edit" action="suggestion.pl" method="post">
102     [% IF ( suggestionid ) %]
103         <h1>Edit purchase suggestion #[% suggestionid %]</h1>
104         <input type="hidden" name="suggestionid" value="[% suggestionid %]"/>
105     [% ELSE %]
106         <h1>Enter a new purchase suggestion</h1>
107     [% END %]
108     <fieldset class="rows"> <legend>Bibliographic information</legend><ol>
109         <li><label for="title">Title:</label><input type="text" id="title" name="title" size="50" maxlength="80" value="[% title |html %]"/></li>
110         <li><label for="author">Author:</label><input type="text" id="author" name="author" size="50" maxlength="80" value="[% author %]"/></li>
111         <li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" value="[% copyrightdate %]" /></li>
112         <li><label for="isbn">ISBN or ISSN or other standard number:</label><input type="text" id="isbn" name="isbn" size="50" maxlength="80" value="[% isbn %]"/></li>
113         <li><label for="publishercode">Publisher:</label><input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" value="[% publishercode %]"/></li>
114         <li><label for="place">Publication Place:</label><input type="text" id="place" name="place" size="50" maxlength="80" value="[% place %]"/></li>
115         <li><label for="collectiontitle">Collection Title:</label><input type="text" id="collectiontitle" name="collectiontitle" size="50" maxlength="80" value="[% collectiontitle %]"/></li>
116         <li><label for="itemtype">Document Type:</label>
117             <select id="itemtype" name="itemtype" >
118             [% FOREACH itemtypeloo IN itemtypeloop %]
119                 [% IF ( itemtypeloo.selected ) %]<option selected="selected" value="[% itemtypeloo.itemtype %]">[% ELSE %]<option value="[% itemtypeloo.itemtype %]">[% END %]
120                 [% itemtypeloo.description %]</option>
121             [% END %]
122             </select>
123         </li>
124         [% IF ( patron_reason_loop ) %]<li><label for="patronreason">Reason for suggestion: </label><select name="patronreason" id="patronreason"><option value=""> -- Choose -- </option>[% FOREACH patron_reason_loo IN patron_reason_loop %]
125                 [% IF ( patron_reason_loo.selected ) %]<option value="[% patron_reason_loo.authorised_value %]" selected="selected">[% patron_reason_loo.lib %]</option>[% ELSE %]<option value="[% patron_reason_loo.authorised_value %]">[% patron_reason_loo.lib %]</option>[% END %]
126            [% END %]</select></li>[% END %]
127         <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40">[% note %]</textarea></li>
128         </ol>
129     </fieldset>
130     <fieldset class="rows"> <legend>Suggestion management</legend>
131        <ol>
132             [% IF ( suggestionid ) %]<li><label for="status">Status:</label><select id="STATUS" name="STATUS"><option value="">No Status</option>
133                 <option value="ASKED"[% IF ( statusselected_ASKED ) %] selected="selected"[% END %]>Asked</option>
134                 <option value="ACCEPTED"[% IF ( statusselected_ACCEPTED ) %] selected="selected"[% END %]>Accepted</option>
135                 <option value="CHECKED"[% IF ( statusselected_CHECKED ) %] selected="selected"[% END %]>Checked</option>
136                 <option value="REJECTED"[% IF ( statusselected_REJECTED ) %] selected="selected"[% END %]>Rejected</option>
137             </select></li>[% END %]
138         <li><table>
139             <thead><tr><th>&nbsp;</th><th>Date</th><th>By</th></tr></thead>
140             <tbody>
141             <tr>
142                 <th><label for="suggesteddate">Suggestion creation</label> </th>
143                 <td><input type="text" id="suggesteddate" name="suggesteddate" size="10" maxlength="10" value="[% suggesteddate %]"/></td>
144                 <td><input type="hidden" id="suggestedby" name="suggestedby" value="[% suggestedby %]"/>[% IF ( suggestedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% suggestedby_borrowernumber %]">[% suggestedby_surname %], [% suggestedby_firstname %]</a>  [% suggestedby_branchcode %] ([% suggestedby_description %])[% END %]
145                 </td>
146             </tr>
147             <tr>
148                 <th><label for="managedon">Suggestion management</label> </th>
149                 <td><input type="text" id="managedon" name="manageddate" size="10" maxlength="10" value="[% manageddate %]" /></td>
150                 <td><input type="hidden" id="managedby" name="managedby" value="[% managedby %]"/>[% IF ( managedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% managedby_borrowernumber %]">[% managedby_surname %], [% managedby_firstname %]</a> [% managedby_branchcode %] ([% managedby_description %])[% END %]</td>
151             </tr>
152             <tr>
153                 <th><label for="accepteddate">Suggestion Accepted</label> </th>
154                 <td><input type="text" id="accepteddate" name="accepteddate" size="10" maxlength="10" value="[% accepteddate %]" /></td>
155                 <td><input type="hidden" id="acceptedby" name="acceptedby" value="[% acceptedby %]"/>[% IF ( acceptedby_borrowernumber ) %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% acceptedby_borrowernumber %]">[% acceptedby_surname %], [% acceptedby_firstname %]</a> [% acceptedby_branchcode %] ([% acceptedby_description %])[% END %]</td>
156             </tr>
157             </tbody>
158         </table></li></ol>
159     </fieldset>
160     <fieldset class="rows"> <legend>Acquisition information</legend><ol>
161         <li><label for="branchcode">Library:</label>
162             <select name="branchcode" id="branchcode">
163                 <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
164                 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %][% END %]
165             </select>
166         </li>
167         <li><label for="budgetid">Budget:</label>
168             <select name="budgetid" id="budgetid">
169                 <option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %]
170                 [% IF ( budgetsloo.selected ) %]<option value="[% budgetsloo.budget_id %]" selected="selected">[% budgetsloo.budget_name %]</option>[% ELSE %]<option value="[% budgetsloo.budget_id %]">[% budgetsloo.budget_name %]</option>[% END %][% END %]
171             </select>
172                 </li><li><label for="quantity">Copies:</label>
173                         <input type="text" size="10" id="quantity" name="quantity" value="[% quantity %]" onchange="calcNewsuggTotal();" />
174                 </li><li><label for="currency">Currency:</label>
175                         [% FOREACH loop_currenc IN loop_currency %]
176                             <input type="hidden" id="[% loop_currenc.currcode %]" name="[% loop_currenc.currcode %]" value="[% loop_currenc.rate %]" />
177                         [% END %]
178             <select name="currency" id="currency" onchange="calcNewsuggTotal();">
179                 [% FOREACH loop_currenc IN loop_currency %]
180                 [% IF ( loop_currenc.selected ) %]<option value="[% loop_currenc.currcode %]" selected="selected">[% loop_currenc.currcode %]</option>[% ELSE %]<option value="[% loop_currenc.currcode %]">[% loop_currenc.currcode %]</option>[% END %][% END %]
181             </select>
182                 </li><li><label for="price">Price:</label>
183                         <input type="text" size="20" name="price" id="price" value="[% price %]" onchange="calcNewsuggTotal();" />
184                 </li><li><label for="total">Total</label>
185                         <input type="text" readonly="readonly" id="total" name="total" size="10" value="[% total %]"/>
186                 </li></ol>
187     </fieldset><input type="hidden" id="returnsuggested" name="returnsuggested" value="[% IF ( returnsuggestedby ) %][% returnsuggestedby %][% ELSE %]noone[% END %]"/>
188     <fieldset class="action"><input type="hidden" name="op" value="[% op %]" />[% IF ( suggestionid ) %]<input type="submit" value="Save" /> <a class="cancel" href="[% IF ( returnsuggestedby ) %]/cgi-bin/koha/members/moremember.pl?borrowernumber=[% returnsuggestedby %]#suggestions[% ELSE %]suggestion.pl?suggestionid=[% suggestionid %][% END %]">Cancel</a>[% ELSE %]<input type="submit" value="Submit Your Suggestion" /> <a class="cancel" href="suggestion.pl">Cancel</a>[% END %]
189     </fieldset>
190     </form>
191 [% END %]
192
193 [% IF ( op_else ) %]
194     <div id="toolbar">
195     <ul class="toolbar">
196     <li> <a id="newsuggestion" href="suggestion.pl?op=add">New purchase suggestion</a></li>
197     </ul></div>
198
199 <h1>Suggestions Management</h1>
200
201 [% UNLESS ( notabs ) %]
202 <div id="sorting" class="overlay">Sorting...</div>
203 <div id="loadingtab" class="overlay">Loading tab...</div>
204 <div id="suggestiontabs" class="toptabs">
205 <ul class="ui-tabs-nav">
206 [% FOREACH suggestion IN suggestions %]
207 [% IF ( suggestion.first ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="suggestion.pl#[% suggestion.suggestiontype %]">[% IF ( suggestion.suggestiontypelabel ) %]
208     [% IF (suggestion.suggestiontypelabel == "Pending") %]Pending
209     [% ELSIF (suggestion.suggestiontypelabel == "Accepted") %]Accepted
210     [% ELSIF (suggestion.suggestiontypelabel == "Checked") %]Checked
211     [% ELSIF (suggestion.suggestiontypelabel == "Rejected") %]Rejected
212     [% ELSIF (suggestion.suggestiontypelabel == "Available") %]Available
213     [% ELSIF (suggestion.suggestiontypelabel == "Ordered") %]Ordered[% ELSE %]
214     [% suggestion.suggestiontypelabel %][% END %]
215     [% ELSE %]No name[% END %] ([% suggestion.suggestionscount %])</a></li>
216 [% END %]
217     </ul>
218     </div>
219 [% END %]
220
221 [% FOREACH suggestion IN suggestions %]
222 <div id="[% suggestion.suggestiontype %]">
223 <form name="f[% suggestion.suggestiontype %]" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype %]">
224
225 [% IF ( suggestion.suggestions_loop ) %]
226 <p><a id="CheckAll[% suggestion.suggestiontype %]" href="#">Check All</a> | <a id="UncheckAll[% suggestion.suggestiontype %]" href="#">Uncheck All</a></p>
227     <table id="[% suggestion.suggestiontype %]t">
228         <thead>
229             <tr><th>&nbsp;</th>
230             <th>Suggestion</th>
231             <th>Suggested by /on</th>
232             <th>Managed by /on</th>
233             <th>Library</th>
234             <th>Budget</th>
235             <th>Status</th></tr>
236     </thead>
237         <tbody>
238             [% FOREACH suggestions_loo IN suggestion.suggestions_loop %]
239             [% IF ( suggestions_loo.even ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
240                 <td>
241                     <input type="checkbox" name="edit_field" value="[% suggestions_loo.suggestionid %]" />
242                 </td>
243                 <td>
244                     <a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&amp;op=edit" title="suggestion" >
245                         [% suggestions_loo.title |html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author %][% END %]
246                     </a>
247                     <br />
248                     [% IF ( suggestions_loo.copyrightdate ) %]&copy; [% suggestions_loo.copyrightdate %] [% END %]
249                         [% IF ( suggestions_loo.volumedesc ) %]; Volume:<i>[% suggestions_loo.volumedesc %]</i> [% END %]
250                         [% IF ( suggestions_loo.isbn ) %]; ISBN:<i>[% suggestions_loo.isbn %]</i> [% END %][% IF ( suggestions_loo.publishercode ) %]; Published by [% suggestions_loo.publishercode %] [% END %][% IF ( suggestions_loo.publicationyear ) %] in <i>[% suggestions_loo.publicationyear %]</i> [% END %][% IF ( suggestions_loo.place ) %] in <i>[% suggestions_loo.place %]</i> [% END %][% IF ( suggestions_loo.collectiontitle ) %]; [% suggestions_loo.collectiontitle %] [% END %][% IF ( suggestions_loo.itemtype ) %]; [% suggestions_loo.itemtype %] [% END %]<br />[% IF ( suggestions_loo.note ) %]<span class="note">[% suggestions_loo.note %]</span>[% END %]
251                 </td>
252                 <td>
253                     [% IF ( suggestions_loo.emailsuggestedby ) %]<a href="mailto:[% suggestions_loo.emailsuggestedby %]">[% END %][% suggestions_loo.surnamesuggestedby %][% IF ( suggestions_loo.firstnamesuggestedby ) %], [% suggestions_loo.firstnamesuggestedby %][% END %] [% IF ( suggestions_loo.emailsuggestedby ) %]</a>[% END %]
254                     [% IF ( suggestions_loo.suggesteddate ) %] / [% suggestions_loo.suggesteddate %][% END %]
255                 </td>
256                 <td>
257                     [% IF ( suggestions_loo.emailmanagedby ) %]<a href="mailto:[% suggestions_loo.emailmanagedby %]">[% END %][% suggestions_loo.surnamemanagedby %][% IF ( suggestions_loo.firstnamemanagedby ) %], [% suggestions_loo.firstnamemanagedby %][% END %] [% IF ( suggestions_loo.emailmanagedby ) %]</a>[% END %]
258                     [% IF ( suggestions_loo.manageddate ) %], [% suggestions_loo.manageddate %][% END %]
259                 </td>
260                 <td>
261                     [% suggestions_loo.branchcode %]
262                 </td>
263                 <td>
264                     [% suggestions_loo.budget_name %]
265                 </td>
266                 <td>
267                     [% IF ( suggestions_loo.ASKED ) %]Asked[% END %] [% IF ( suggestions_loo.ACCEPTED ) %]Accepted[% END %] [% IF ( suggestions_loo.ORDERED ) %]Ordered[% END %] [% IF ( suggestions_loo.REJECTED ) %]Rejected[% END %] [% IF ( suggestions_loo.CHECKED ) %]Checked[% END %] [% IF ( suggestions_loo.reason ) %]<br />([% suggestions_loo.reason %])[% END %]
268                 </td>
269         </tr>
270         [% END %]</tbody>
271         </table>  <fieldset>
272     <div id="select-reason[% suggestion.suggestiontype %]">
273         <div id="status[% suggestion.suggestiontype %]">
274         <label for="STATUS[% suggestion.suggestiontype %]">Mark selected as: </label><select name="STATUS" id="STATUS[% suggestion.suggestiontype %]">
275         <option value=""> -- Choose a status --</option>
276         <option value="ASKED"[% IF ( suggestion.statusselected_ASKED ) %] selected="selected"[% END %]>Asked</option>
277         <option value="ACCEPTED"[% IF ( suggestion.statusselected_ACCEPTED ) %] selected="selected"[% END %]>Accepted</option>
278         <option value="CHECKED"[% IF ( suggestion.statusselected_CHECKED ) %] selected="selected"[% END %]>Checked</option>
279         <option value="REJECTED"[% IF ( suggestion.statusselected_REJECTED ) %] selected="selected"[% END %]>Rejected</option>
280         </select>
281     <label for="reason[% suggestion.suggestiontype %]">with this reason:</label>                 <select id="reason[% suggestion.suggestiontype %]" name="reason[% suggestion.suggestiontype %]">
282                     <option value=""> -- Choose a reason -- </option>
283                         [% FOREACH reasonsloo IN suggestion.reasonsloop %]
284                         <option value="[% reasonsloo.lib %]">[% reasonsloo.lib %]</option>
285                         [% END %]
286                     <option value="other">Others...</option>
287                     </select>   <span id="other_reason[% suggestion.suggestiontype %]">
288             <input type="text" size="31" id="select-other_reason[% suggestion.suggestiontype %]" name="other_reason[% suggestion.suggestiontype %]" value="please note your reason here..." /> <a href="#back[% suggestion.suggestiontype %]">Cancel</a>
289         </span> <strong style="padding: 0 1em;">OR:</strong> <label for="[% suggestion.suggestiontype %]delete">Delete selected</label> <input type="checkbox" name="op" id="[% suggestion.suggestiontype %]delete" />
290         </div>
291         </div>
292
293
294     <input type="hidden" name="tabcode" value="[% suggestion.suggestiontype %]" />
295     <input type="hidden" name="op" value="change" />
296 </fieldset>
297         <fieldset class="action">
298     <input type="submit" value="Submit" /></fieldset>
299 </form>
300 [% ELSE %]
301     <b>No Results.</b>
302 [% END %]
303 </div>
304 [% END %]
305 [% END %]
306 </div>
307 </div>
308
309       [% UNLESS ( op_save ) %] <div class="yui-b">
310 <form name="suggestionfilter" action="suggestion.pl" method="get">
311 <fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label>
312                 <select name="displayby" id="displayby" style="width:auto;">
313                     <option value="STATUS">Status</option>
314                     <option value="branchcode">Library</option>
315                     <option value="itemtype">Item Type</option>
316                     <option value="managedby">Managed by</option>
317                     <option value="acceptedby">Accepted by</option>
318                 </select> <input type="submit" value="Go" /></li></ol></fieldset>
319 <h4>Filter by: <a style="font-size:80%;font-weight:normal;" href="/cgi-bin/koha/suggestion/suggestion.pl">[clear]</a></h4>
320                 <div style="display:block;" id="limits">
321
322                                 <fieldset class="brief"><h4 class="collapse"><a href="#">Bibliographic information</a></h4>
323                    <ol> <li><label for="title"> Title:</label><input type="text" id="title" name="title" value="[% title |html %]" /></li>
324                     <li><label for="author"> Author:</label><input type="text" id="author" name="author" value="[% author %]" /></li>
325                     <li><label for="isbn"> ISBN:</label><input type="text" id="isbn"  name="isbn" value="[% isbn %]" /></li>
326                     <li><label for="publishercode"> Publisher:</label><input type="text" id="publishercode" name="publishercode" value="[% publishercode %]" /></li>
327                     <li><label for="publicationyear"> Publication year:</label><input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear %]" /></li>
328                     <li><label for="collectiontitle"> Collection Title:</label><input type="text" id="collectiontitle" name="collectiontitle" value="[% collectiontitle %]" /></li><li><input type="submit" value="Go" /></li></ol>
329                 </fieldset>
330                                  <fieldset class="brief"><h4 class="collapse"><a href="#">Suggestion information</a></h4>
331                     <ol><li><label for="status"> Status:</label><select name="STATUS" id="STATUS"><option value="">Any</option>
332                         <option value="ASKED"[% IF ( statusselected_ASKED ) %] selected="selected"[% END %]>Asked</option>
333                                                 <option value="ACCEPTED"[% IF ( statusselected_ACCEPTED ) %] selected="selected"[% END %]>Accepted</option>
334                                                 <option value="CHECKED"[% IF ( statusselected_CHECKED ) %] selected="selected"[% END %]>Checked</option>
335                                                 <option value="REJECTED"[% IF ( statusselected_REJECTED ) %] selected="selected"[% END %]>Rejected</option>
336                                                           </select></li>
337                     <li><label for="suggestedby"> Suggested By:</label><select id="suggestedby" name="suggestedby"><option value="">Any</option>
338 [% FOREACH suggestedby_loo IN suggestedby_loop %][% IF ( suggestedby_loo.selected ) %]<option value="[% suggestedby_loo.code %]" selected="selected">[% suggestedby_loo.desc %]</option>[% ELSE %]<option value="[% suggestedby_loo.code %]">[% suggestedby_loo.desc %]</option>[% END %][% END %]
339                                                                      </select></li>
340                     <li><label for="suggesteddate_from"> Suggested on:</label>[% suggesteddate %]
341                         <table class="invis">
342                         <tr>
343                         <td>from :</td><td><input type="text" id="suggesteddate_from" name="suggesteddate_from" style="width:80px;" /><img src="[% themelang %]/lib/calendar/cal.gif" id="suggesteddate_from_button" alt="Show Calendar" />
344                         <script language="JavaScript" type="text/javascript">
345                             Calendar.setup(
346                             {
347                                 inputField : "suggesteddate_from",
348                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
349                                 //ifFormat : "%Y-%m-%d", 
350                                 button : "suggesteddate_from_button"
351                             });
352                         </script></td>
353                         </tr>
354                         <tr>
355                         <td>to :</td><td><input type="text" id="suggesteddate_to" name="suggesteddate_to" style="width:80px;" /><img src="[% themelang %]/lib/calendar/cal.gif" id="suggesteddate_to_button" alt="Show Calendar" />
356                         <script language="JavaScript" type="text/javascript">
357                             Calendar.setup(
358                             {
359                                 inputField : "suggesteddate_to",
360                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
361                                 //ifFormat : "%Y-%m-%d", 
362                                 button : "suggesteddate_to_button"
363                             });
364                         </script></td>
365                         </tr>
366                         </table>
367                     </li>
368                     <li><label for="managedby"> Managed by:</label><select id="managedby" name="managedby"><option value="">Any</option>
369 [% FOREACH managedby_loo IN managedby_loop %][% IF ( managedby_loo.selected ) %]<option value="[% managedby_loo.code %]" selected="selected">[% managedby_loo.desc %]</option>[% ELSE %]<option value="[% managedby_loo.code %]">[% managedby_loo.desc %]</option>[% END %][% END %]
370                                                                      </select></li>
371                     <li><label for="manageddate_from"> Management date:</label>[% manageddate %]
372                         <table class="invis">
373                         <tr>
374                         <td>from :</td><td><input type="text" id="manageddate_from" name="manageddate_from" style="width:80px;" /><img src="[% themelang %]/lib/calendar/cal.gif" id="manageddate_from_button" alt="Show Calendar" />
375                         <script language="JavaScript" type="text/javascript">
376                             Calendar.setup(
377                             {
378                                 inputField : "manageddate_from",
379                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
380                                 //ifFormat : "%Y-%m-%d", 
381                                 button : "manageddate_from_button"
382                             });
383                         </script></td>
384                         </tr>
385                         <tr>
386                         <td>to :</td><td><input type="text" id="manageddate_to" name="manageddate_to" style="width:80px;" /><img src="[% themelang %]/lib/calendar/cal.gif" id="manageddate_to_button" alt="Show Calendar" />
387                         <script language="JavaScript" type="text/javascript">
388                             Calendar.setup(
389                             {
390                                 inputField : "manageddate_to",
391                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
392                                 //ifFormat : "%Y-%m-%d", 
393                                 button : "manageddate_to_button"
394                             });
395                         </script></td>
396                         </tr>
397                         </table>
398                     </li>
399                     <li><label for="acceptedby"> Accepted by:</label><select id="acceptedby" name="acceptedby"><option value="">Any</option>
400 [% FOREACH acceptedby_loo IN acceptedby_loop %][% IF ( acceptedby_loo.selected ) %] <option value="[% acceptedby_loo.code %]" selected="selected">[% acceptedby_loo.desc %]</option>[% ELSE %]<option value="[% acceptedby_loo.code %]">[% acceptedby_loo.desc %]</option>[% END %][% END %]
401                                                       </select></li>
402                     <li><label for="accepteddate_from"> Accepted on:</label>[% accepteddate %]
403                         <table class="invis">
404                         <tr>
405                         <td>from :</td><td><input type="text" id="accepteddate_from" name="accepteddate_from" style="width:80px;" /><img src="[% themelang %]/lib/calendar/cal.gif" id="accepteddate_from_button" alt="Show Calendar" />
406                         <script language="JavaScript" type="text/javascript">
407                             Calendar.setup(
408                             {
409                                 inputField : "accepteddate_from",
410                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
411                                 //ifFormat : "%Y-%m-%d", 
412                                 button : "accepteddate_from_button"
413                             });
414                         </script></td>
415                         </tr>
416                         <tr>
417                         <td>to :</td><td><input type="text" id="accepteddate_to" name="accepteddate_to" style="width:80px;" /><img src="[% themelang %]/lib/calendar/cal.gif" id="accepteddate_to_button" alt="Show Calendar" />
418                         <script language="JavaScript" type="text/javascript">
419                             Calendar.setup(
420                             {
421                                 inputField : "accepteddate_to",
422                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
423                                 //ifFormat : "%Y-%m-%d", 
424                                 button : "accepteddate_to_button"
425                             });
426                         </script></td>
427                         </tr>
428                         </table>
429                     </li>
430                     <li><input type="submit" value="Go" /></li></ol>
431                 </fieldset>
432
433                                 <fieldset class="brief"><h4 class="collapse"><a href="#">Acquisition information</a></h4>
434                     <ol><li><label for="budgetid"> Book fund:</label>
435                     <select name="budgetid" id="budgetid"><option value="">Any</option>[% FOREACH budgetid_loo IN budgetid_loop %]
436                         [% IF ( budgetid_loo.selected ) %] <option value="[% budgetid_loo.code %]" selected="selected">[% budgetid_loo.desc %]</option>[% ELSE %]<option value="[% budgetid_loo.code %]">[% budgetid_loo.desc %]</option>[% END %]
437                         [% END %]
438                     </select></li>
439                     <li><label for="branchcode"> For:</label>
440                     <select name="branchcode" id="branchcode">
441                         <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
442                             [% IF ( branchloo.selected ) %] <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %] <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
443                             [% END %]
444                     </select></li><li><input type="submit" value="Go" /></li></ol>
445                 </fieldset>
446     </div>
447             </form>
448         </div>[% END %]
449 </div>
450 [% INCLUDE 'intranet-bottom.inc' %]
451