Refining some circ reports interfaces, adding table sorting.
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / overdue.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation &rsaquo; Items Overdue as of <!-- TMPL_VAR NAME="todaysdate" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pack.js"></script>
5 <script type="text/JavaScript" language="JavaScript">
6 //<![CDATA[
7 $.tablesorter.addParser({
8     id: 'articles', 
9     is: function(s) {return false;  }, 
10     format: function(s) { return s.toLowerCase().replace(/^(the|an|a) /,''); }, 
11     type: 'text' 
12 });
13         $(document).ready(function() {
14                 $('#patronlists > ul').tabs();
15                 $.tablesorter.defaults.widgets = ['zebra']; 
16                 $("#overduest").tablesorter({
17                         sortList: [[0,0]],
18                         headers: { 1: { sorter: 'articles' }}
19                 }); 
20         });
21 //]]>
22 </script>
23 </head>
24 <body>
25 <!-- TMPL_INCLUDE NAME="header.inc" -->
26 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
27
28 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> &rsaquo; Overdues as of <!-- TMPL_VAR NAME="todaysdate" --></div>
29
30 <div id="doc3" class="yui-t2">
31    
32    <div id="bd">
33         <div id="yui-main">
34         <div class="yui-b">
35
36 <h2>Items Overdue as of <!-- TMPL_VAR NAME="todaysdate" --></h2>
37   
38  <h3>Results</h3>
39 <a href="overdue.pl?op=csv&amp;branch=<!-- TMPL_VAR name="branchfilter" -->">Download file of all overdues</a> (for <!-- TMPL_IF name="branchfilter" -->branch <!-- TMPL_VAR name="branchfilter" --><!-- TMPL_ELSE -->all branches<!-- /TMPL_IF -->. Other filters are ignored)
40 <div class="searchresults">
41 <table id="overduest">
42 <thead><tr>
43     <th>Due Date</th>
44     <th>Patron</th>
45     <th>Branch</th>
46     <th>Title</th>
47 </tr></thead>
48
49 <tbody><!-- TMPL_LOOP NAME="overdueloop" -->
50     <tr>
51         <td><!-- TMPL_VAR NAME="duedate" --></td>
52         <!-- TMPL_IF NAME="email" -->
53         <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber"-->"><!-- TMPL_VAR NAME="name" --></a> <a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Overdue: <!-- TMPL_VAR NAME="title" -->">[email]</a> (<!-- TMPL_VAR NAME="phone" -->)</td>
54         <!-- TMPL_ELSE -->
55         <td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR name="borrowernumber"-->"><!-- TMPL_VAR NAME="name" --></a> (<!--TMPL_IF NAME="phone" --><!-- TMPL_VAR NAME="phone" --><!-- TMPL_ELSE -->
56     <!--TMPL_IF NAME="mobile" --><!-- TMPL_VAR NAME="mobile" --><!-- TMPL_ELSE --><!--TMPL_IF NAME="phonepro" -->       <!-- TMPL_VAR NAME="phonepro" --><!-- /TMPL_IF --><!-- /TMPL_IF --><!-- /TMPL_IF -->)</td>
57         <!-- /TMPL_IF -->
58         <td><!-- TMPL_VAR name="branchcode" --></td>
59         <td>
60             <p><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=<!-- TMPL_VAR name="biblionumber" -->"><!-- TMPL_VAR NAME="title" --></a></p>
61             <p><!-- TMPL_VAR NAME="author" --></p>
62         </td>
63     </tr>
64 <!-- /TMPL_LOOP --></tbody>
65 </table>
66 </div>
67 </div>
68 </div>
69 <div class="yui-b">
70 <form method="post" action="/cgi-bin/koha/circ/overdue.pl">
71   <fieldset class="brief">
72 <h4>Filter On:</h4>
73         <ol>
74     <li><label>Name or cardnumber:</label><input type="text" name="borname" value="<!--TMPL_VAR Name="borname"-->" /></li>
75     <li><label>Patron category:</label><select name="borcat" id="borcat"><option value="">Any</option>
76       <!-- TMPL_LOOP name="borcatloop" -->
77         <!-- TMPL_IF NAME="selected" --><option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="catname" --></option><!-- TMPL_ELSE --><option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="catname" --></option><!-- /TMPL_IF -->
78       <!-- /TMPL_LOOP -->
79       </select>
80     </li>
81     <li><label>Patron flags:</label><!--TMPL_VAR Name="CGIflags" --></li>
82     <li><label>Item type:</label><select name="itemtype" id="itemtype"><option value="">Any</option>
83       <!-- TMPL_LOOP name="itemtypeloop" --><!-- TMPL_IF NAME="selected" -->
84         <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="itemtypename" --></option><!-- TMPL_ELSE -->
85         <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="itemtypename" --></option><!-- /TMPL_IF -->
86       <!-- /TMPL_LOOP -->
87       </select>
88     </li>
89     <li>
90     <label>Library of the patron:</label><select name="branch" id="branch">
91         <option value="">Any</option>
92       <!-- TMPL_LOOP name="branchloop" -->
93         <!-- TMPL_IF NAME="selected" -->
94         <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="itemtypename" --></option><!-- TMPL_ELSE -->
95         <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="itemtypename" --></option><!-- /TMPL_IF -->
96       <!-- /TMPL_LOOP -->
97       </select>
98     </li>
99    
100     <li><label for="order">Sort By:</label> <select name="order" id="order">
101 <!-- TMPL_IF NAME="order" -->
102 <option value="">Due Date</option>
103 <!-- TMPL_ELSE --><option value="" selected="selected">Due Date</option><!-- /TMPL_IF -->
104 <option value="borrower">Patron</option>
105 <option value="title">Title</option>
106 <option value="barcode">Barcode</option>
107 <option value="date_due desc">Due Date desc</option>
108 <option value="borrower desc">Patron desc</option>
109 <option value="title desc">Title desc</option>
110 <option value="barcode desc">Barcode</option>
111 </select></li>
112 <li class="radio"><label for="showall">Show any items currently issued:</label> 
113         <!-- TMPL_IF NAME="showall" --><input type="checkbox" id="showall" name="showall" value="show" checked="checked" /><!-- TMPL_ELSE --><input type="checkbox" id="showall" name="showall" value="show" /><!-- /TMPL_IF -->
114 </li>
115 </ol>
116    <fieldset class="action">
117       <input type="submit" value="Apply Filter" class="submit" />
118    </fieldset>   
119    </fieldset>   
120   </form>
121 </div>
122 </div>
123 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->