7353f488a4b002b28951e5ea02ff933f4c65afde
[koha-ffzg.git] / koha-tt / 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; }
82 </style>
83 [% END %]
84 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
85 </head>
86 <body onload="calcNewsuggTotal();">
87 [% INCLUDE 'header.inc' %]
88 [% INCLUDE 'cat-search.inc' %]
89 <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>
90
91 [% IF ( op_save ) %]<div id="doc" class="yui-t7">[% ELSE %]<div id="doc3" class="yui-t2">[% END %]
92 <div id="bd">
93     <div id="yui-main">
94     <div class="yui-b">
95 [% IF ( op_save ) %]
96     <form id="add_edit" action="suggestion.pl" method="post">
97     [% IF ( suggestionid ) %]
98         <h1>Edit purchase suggestion #[% suggestionid %]</h1>
99         <input type="hidden" name="suggestionid" value="[% suggestionid %]"/>
100     [% ELSE %]
101         <h1>Enter a new purchase suggestion</h1>
102     [% END %]
103     <fieldset class="rows"> <legend>Bibliographic information</legend><ol>
104         <li><label for="title">Title:</label><input type="text" id="title" name="title" size="50" maxlength="80" value="[% title |html %]"/></li>
105         <li><label for="author">Author:</label><input type="text" id="author" name="author" size="50" maxlength="80" value="[% author %]"/></li>
106         <li><label for="copyrightdate">Copyright date:</label><input type="text" id="copyrightdate" name="copyrightdate" size="4" maxlength="4" value="[% copyrightdate %]" /></li>
107         <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>
108         <li><label for="publishercode">Publisher:</label><input type="text" id="publishercode" name="publishercode" size="50" maxlength="80" value="[% publishercode %]"/></li>
109         <li><label for="place">Publication Place:</label><input type="text" id="place" name="place" size="50" maxlength="80" value="[% place %]"/></li>
110         <li><label for="collectiontitle">Collection Title:</label><input type="text" id="collectiontitle" name="collectiontitle" size="50" maxlength="80" value="[% collectiontitle %]"/></li>
111         <li><label for="itemtype">Document Type:</label>
112             <select id="itemtype" name="itemtype" >
113             [% FOREACH itemtypeloo IN itemtypeloop %]
114                 [% IF ( itemtypeloo.selected ) %]<option selected="selected" value="[% itemtypeloo.itemtype %]">[% ELSE %]<option value="[% itemtypeloo.itemtype %]">[% END %]
115                 [% itemtypeloo.description %]</option>
116             [% END %]
117             </select>
118         </li>
119         [% 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 %]
120                 [% 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 %]
121            [% END %]</select></li>[% END %]
122         <li><label for="note">Notes:</label><textarea name="note" id="note" rows="5" cols="40">[% note %]</textarea></li>
123         </ol>
124     </fieldset>
125     <fieldset class="rows"> <legend>Suggestion management</legend>
126        <ol>
127             [% IF ( suggestionid ) %]<li><label for="status">Status:</label><select id="status" name="status"><option value="">No Status</option>
128                 [% FOREACH status_loo IN status_loop %]
129                     [% IF ( status_loo.selected ) %]<option value="[% status_loo.code %]" selected="selected">[% status_loo.desc %]</option>[% ELSE %]<option value="[% status_loo.code %]">[% status_loo.desc %]</option>[% END %]
130                 [% END %]
131             </select></li>[% END %]
132         <li><table>
133             <thead><tr><th>&nbsp;</th><th>Date</th><th>By</th></tr></thead>
134             <tbody>
135             <tr>
136                 <th><label for="suggesteddate">Suggestion creation</label> </th>
137                 <td><input type="text" id="suggesteddate" name="suggesteddate" size="10" maxlength="10" value="[% suggesteddate %]"/></td>
138                 <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 %]
139                 </td>
140             </tr>
141             <tr>
142                 <th><label for="managedon">Suggestion management</label> </th>
143                 <td><input type="text" id="managedon" name="manageddate" size="10" maxlength="10" value="[% manageddate %]" /></td>
144                 <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>
145             </tr>
146             <tr>
147                 <th><label for="accepteddate">Suggestion Accepted</label> </th>
148                 <td><input type="text" id="accepteddate" name="accepteddate" size="10" maxlength="10" value="[% accepteddate %]" /></td>
149                 <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>
150             </tr>
151             </tbody>
152         </table></li></ol>
153     </fieldset>
154     <fieldset class="rows"> <legend>Acquisition information</legend><ol>
155         <li><label for="branchcode">Branchcode:</label>
156             <select name="branchcode" id="branchcode">
157                 <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
158                 [% IF ( branchloo.selected ) %]<option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]<option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %][% END %]
159             </select>
160         </li>
161         <li><label for="budgetid">Budget:</label>
162             <select name="budgetid" id="budgetid">
163                 <option value="">Any</option>[% FOREACH budgetsloo IN budgetsloop %]
164                 [% 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 %]
165             </select>
166                 </li><li><label for="quantity">Copies:</label>
167                         <input type="text" size="10" id="quantity" name="quantity" value="[% quantity %]" onchange="calcNewsuggTotal();" />
168                 </li><li><label for="currency">Currency:</label>
169                         [% FOREACH loop_currenc IN loop_currency %]
170                             <input type="hidden" id="[% loop_currenc.currcode %]" name="[% loop_currenc.currcode %]" value="[% loop_currenc.rate %]" />
171                         [% END %]
172             <select name="currency" id="currency" onchange="calcNewsuggTotal();">
173                 [% FOREACH loop_currenc IN loop_currency %]
174                 [% 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 %]
175             </select>
176                 </li><li><label for="price">Price:</label>
177                         <input type="text" size="20" name="price" id="price" value="[% price %]" onchange="calcNewsuggTotal();" />
178                 </li><li><label for="total">Total</label>
179                         <input type="text" readonly="readonly" id="total" name="total" size="10" value="[% total %]"/>
180                 </li></ol>
181     </fieldset>
182     <fieldset class="action"><input type="hidden" name="op" value="[% op %]" />[% IF ( suggestionid ) %]<input type="submit" value="Save" /> <a class="cancel" href="suggestion.pl?suggestionid=[% suggestionid %]">Cancel</a>[% ELSE %]<input type="submit" value="Submit Your Suggestion" /> <a class="cancel" href="suggestion.pl">Cancel</a>[% END %]
183     </fieldset>
184     </form>
185 [% END %]
186
187 [% IF ( op_else ) %]
188     <div id="toolbar">
189     <ul class="toolbar">
190     <li> <a id="newsuggestion" href="suggestion.pl?op=add">New purchase suggestion</a></li>
191     </ul></div>
192
193 <h1>Suggestions Management</h1>
194
195 [% UNLESS ( notabs ) %]
196 <div id="sorting" class="overlay">Sorting...</div>
197 <div id="loadingtab" class="overlay">Loading tab...</div>
198 <div id="suggestiontabs" class="toptabs">
199 <ul class="ui-tabs-nav">
200 [% FOREACH suggestion IN suggestions %]
201 [% IF ( suggestion.first ) %]<li class="ui-tabs-selected">[% ELSE %]<li>[% END %]<a href="suggestion.pl#[% suggestion.suggestiontype %]">[% IF ( suggestion.suggestiontypelabel ) %][% suggestion.suggestiontypelabel %][% ELSE %]No name[% END %] ([% suggestion.suggestionscount %])</a></li>
202 [% END %]
203     </ul>
204     </div>
205 [% END %]
206
207 [% FOREACH suggestion IN suggestions %]
208 <div id="[% suggestion.suggestiontype %]">
209 <form name="f[% suggestion.suggestiontype %]" method="post" action="/cgi-bin/koha/suggestion/suggestion.pl#[% suggestion.suggestiontype %]">
210
211 [% IF ( suggestion.suggestions_loop ) %]
212 <p><a id="CheckAll[% suggestion.suggestiontype %]" href="#">Check All</a> | <a id="UncheckAll[% suggestion.suggestiontype %]" href="#">Uncheck All</a></p>
213     <table id="[% suggestion.suggestiontype %]t">
214         <thead>
215             <tr><th>&nbsp;</th>
216             <th>Suggestion</th>
217             <th>Suggested by /on</th>
218             <th>Managed by /on</th>
219             <th>Library</th>
220             <th>Budget</th>
221             <th>Status</th></tr>
222     </thead>
223         <tbody>
224             [% FOREACH suggestions_loo IN suggestion.suggestions_loop %]
225             [% IF ( suggestions_loo.even ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
226                 <td>
227                     <input type="checkbox" name="edit_field" value="[% suggestions_loo.suggestionid %]" />
228                 </td>
229                 <td>
230                     <a href="suggestion.pl?suggestionid=[% suggestions_loo.suggestionid %]&amp;op=edit" title="suggestion" >
231                         [% suggestions_loo.title |html %][% IF ( suggestions_loo.author ) %], by [% suggestions_loo.author %][% END %]
232                     </a>
233                     <br />
234                     [% IF ( suggestions_loo.copyrightdate ) %]&copy; [% suggestions_loo.copyrightdate %] [% END %]
235                         [% IF ( suggestions_loo.volumedesc ) %]; Volume:<i>[% suggestions_loo.volumedesc %]</i> [% END %]
236                         [% 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 ) %][% suggestions_loo.note %][% END %]
237                 </td>
238                 <td>
239                     [% 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 %]
240                     [% IF ( suggestions_loo.suggesteddate ) %] / [% suggestions_loo.suggesteddate %][% END %]
241                 </td>
242                 <td>
243                     [% 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 %]
244                     [% IF ( suggestions_loo.manageddate ) %], [% suggestions_loo.manageddate %][% END %]
245                 </td>
246                 <td>
247                     [% suggestions_loo.branchcode %]
248                 </td>
249                 <td>
250                     [% suggestions_loo.budget_name %]
251                 </td>
252                 <td>
253                     [% IF ( suggestions_loo.ASKED ) %]Requested[% 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 %]
254                 </td>
255         </tr>
256         [% END %]</tbody>
257         </table>  <fieldset>
258     <div id="select-reason[% suggestion.suggestiontype %]">
259         <div id="status[% suggestion.suggestiontype %]">
260         <label for="STATUS[% suggestion.suggestiontype %]">Mark selected as: </label><select name="STATUS" id="STATUS[% suggestion.suggestiontype %]">
261         <option value=""> -- Choose a status --</option>
262         <option value="ACCEPTED">Accepted</option>
263         <option value="CHECKED">Checked</option>
264         <option value="REJECTED">Rejected</option>
265         </select>
266     <label for="reason[% suggestion.suggestiontype %]">with this reason:</label>                 <select id="reason[% suggestion.suggestiontype %]" name="reason[% suggestion.suggestiontype %]">
267                     <option value=""> -- Choose a reason -- </option>
268                         [% FOREACH reasonsloo IN suggestion.reasonsloop %]
269                         <option value="[% reasonsloo.lib %]">[% reasonsloo.lib %]</option>
270                         [% END %]
271                     <option value="other">Others...</option>
272                     </select>   <span id="other_reason[% suggestion.suggestiontype %]">
273             <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>
274         </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" />
275         </div>
276         </div>
277
278
279     <input type="hidden" name="tabcode" value="[% suggestion.suggestiontype %]" />
280     <input type="hidden" name="op" value="change" />
281 </fieldset>
282         <fieldset class="action">
283     <input type="submit" value="Submit" /></fieldset>
284 </form>
285 [% ELSE %]
286     <b>No Results.</b>
287 [% END %]
288 </div>
289 [% END %]
290 [% END %]
291 </div>
292 </div>
293
294       [% UNLESS ( op_save ) %] <div class="yui-b">
295 <form name="suggestionfilter" action="suggestion.pl" method="get">
296 <fieldset class="brief"><ol style="display:block;"><li><label for="displayby">Organize by: </label>
297                 <select name="displayby" id="displayby" style="width:auto;">
298                     <option value="STATUS">Status</option>
299                     <option value="branchcode">Library</option>
300                     <option value="itemtype">Item Type</option>
301                     <option value="managedby">Managed by</option>
302                     <option value="acceptedby">Accepted by</option>
303                 </select> <input type="submit" value="Go" /></li></ol></fieldset>
304 <h4>Filter by: <a style="font-size:80%;font-weight:normal;" href="/cgi-bin/koha/suggestion/suggestion.pl">[clear]</a></h4>
305                 <div style="display:block;" id="limits">
306
307                                 <fieldset class="brief"><h4 class="collapse"><a href="#">Bibliographic information</a></h4>
308                    <ol> <li><label for="title"> Title:</label><input type="text" id="title" name="title" value="[% title |html %]" /></li>
309                     <li><label for="author"> Author:</label><input type="text" id="author" name="author" value="[% author %]" /></li>
310                     <li><label for="isbn"> ISBN:</label><input type="text" id="isbn"  name="isbn" value="[% isbn %]" /></li>
311                     <li><label for="publishercode"> Publisher:</label><input type="text" id="publishercode" name="publishercode" value="[% publishercode %]" /></li>
312                     <li><label for="publicationyear"> Publication year:</label><input type="text" id="publicationyear" name="publicationyear" value="[% publicationyear %]" /></li>
313                     <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>
314                 </fieldset>
315                                  <fieldset class="brief"><h4 class="collapse"><a href="#">Suggestion information</a></h4>
316                     <ol><li><label for="status"> Status:</label><select name="status" id="status"><option value="">Any</option>
317 [% FOREACH status_loo IN status_loop %][% IF ( status_loo.selected ) %]<option value="[% status_loo.code %]" selected="selected">[% status_loo.desc %]</option>[% ELSE %]<option value="[% status_loo.code %]">[% status_loo.desc %]</option>[% END %][% END %]
318                                                           </select></li>
319                     <li><label for="suggestedby"> Suggested By:</label><select id="suggestedby" name="suggestedby"><option value="">Any</option>
320 [% 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 %]
321                                                                      </select></li>
322                     <li><label for="suggesteddate_from"> Suggested on:</label>[% suggesteddate %]
323                         <table class="invis">
324                         <tr>
325                         <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" />
326                         <script language="JavaScript" type="text/javascript">
327                             Calendar.setup(
328                             {
329                                 inputField : "suggesteddate_from",
330                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
331                                 //ifFormat : "%Y-%m-%d", 
332                                 button : "suggesteddate_from_button"
333                             });
334                         </script></td>
335                         </tr>
336                         <tr>
337                         <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" />
338                         <script language="JavaScript" type="text/javascript">
339                             Calendar.setup(
340                             {
341                                 inputField : "suggesteddate_to",
342                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
343                                 //ifFormat : "%Y-%m-%d", 
344                                 button : "suggesteddate_to_button"
345                             });
346                         </script></td>
347                         </tr>
348                         </table>
349                     </li>
350                     <li><label for="managedby"> Managed by:</label><select id="managedby" name="managedby"><option value="">Any</option>
351 [% 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 %]
352                                                                      </select></li>
353                     <li><label for="manageddate_from"> Management date:</label>[% manageddate %]
354                         <table class="invis">
355                         <tr>
356                         <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" />
357                         <script language="JavaScript" type="text/javascript">
358                             Calendar.setup(
359                             {
360                                 inputField : "manageddate_from",
361                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
362                                 //ifFormat : "%Y-%m-%d", 
363                                 button : "manageddate_from_button"
364                             });
365                         </script></td>
366                         </tr>
367                         <tr>
368                         <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" />
369                         <script language="JavaScript" type="text/javascript">
370                             Calendar.setup(
371                             {
372                                 inputField : "manageddate_to",
373                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
374                                 //ifFormat : "%Y-%m-%d", 
375                                 button : "manageddate_to_button"
376                             });
377                         </script></td>
378                         </tr>
379                         </table>
380                     </li>
381                     <li><label for="acceptedby"> Accepted by:</label><select id="acceptedby" name="acceptedby"><option value="">Any</option>
382 [% 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 %]
383                                                       </select></li>
384                     <li><label for="accepteddate_from"> Accepted on:</label>[% accepteddate %]
385                         <table class="invis">
386                         <tr>
387                         <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" />
388                         <script language="JavaScript" type="text/javascript">
389                             Calendar.setup(
390                             {
391                                 inputField : "accepteddate_from",
392                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
393                                 //ifFormat : "%Y-%m-%d", 
394                                 button : "accepteddate_from_button"
395                             });
396                         </script></td>
397                         </tr>
398                         <tr>
399                         <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" />
400                         <script language="JavaScript" type="text/javascript">
401                             Calendar.setup(
402                             {
403                                 inputField : "accepteddate_to",
404                                 ifFormat : "[% DHTMLcalendar_dateformat %]",
405                                 //ifFormat : "%Y-%m-%d", 
406                                 button : "accepteddate_to_button"
407                             });
408                         </script></td>
409                         </tr>
410                         </table>
411                     </li>
412                     <li><input type="submit" value="Go" /></li></ol>
413                 </fieldset>
414
415                                 <fieldset class="brief"><h4 class="collapse"><a href="#">Acquisition information</a></h4>
416                     <ol><li><label for="budgetid"> Book fund:</label>
417                     <select name="budgetid" id="budgetid"><option value="">Any</option>[% FOREACH budgetid_loo IN budgetid_loop %]
418                         [% 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 %]
419                         [% END %]
420                     </select></li>
421                     <li><label for="branchcode"> For:</label>
422                     <select name="branchcode" id="branchcode">
423                         <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
424                             [% IF ( branchloo.selected ) %] <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %] <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
425                             [% END %]
426                     </select></li><li><input type="submit" value="Go" /></li></ol>
427                 </fieldset>
428     </div>
429             </form>
430         </div>[% END %]
431 </div>
432 [% INCLUDE 'intranet-bottom.inc' %]
433