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