change references to 'reserves' in billing report template
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / circ / billing.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Circulation &rsaquo; Billing</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- Additions to enable Calendar system -->
5 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
6 <!-- End of additions --><!-- Additions to enable Calendar system -->
7 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
10 <!-- End of additions -->
11 </head>
12 <body>
13 <!-- TMPL_INCLUDE NAME="header.inc" -->
14 <!-- TMPL_INCLUDE NAME="circ-search.inc" -->
15
16
17 <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; Billing</div>
18
19 <div id="doc3" class="yui-t2">
20    
21    <div id="bd">
22         <div id="yui-main">
23         <div class="yui-b">
24
25 <h1>Billing on 
26    <!-- TMPL_VAR NAME="todaysdate" --> <br>From <!-- TMPL_VAR NAME="from" -->
27         to <!-- TMPL_VAR NAME="to" --></h1>
28 <div id="filters">
29 <br />
30
31 <form method="post" >
32 <p>
33 <label for "ratio">
34     Currency Cutoff:
35 </label>
36 <input type="text" size="5" id="ratio" name="ratio" value="<!-- TMPL_VAR NAME="ratio" -->" />
37 <label for "from">
38     Start date:
39 </label>
40 <input type="text" size="10" id="from" name="from" value="<!-- TMPL_VAR NAME="from" -->" />
41 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif"  border="0" id="openCalendarFrom" style="cursor: pointer;" alt="" />
42 <script language="JavaScript" type="text/javascript">
43 function validate1(date) {
44     var day = date.getDate();
45     var month = date.getMonth() + 1;
46     var year = date.getFullYear();
47     var weekDay = date.getDay();
48     var dayMonth = month + '-' + day;
49     var dateString = year + '-' + month + '-' + day;
50     var dateTo = document.getElementById('to').value.split("-");
51     var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
52     if (date > limitDate) {
53             return true;
54     } else {
55             return false;
56     }
57 }
58 Calendar.setup(
59         {
60         inputField : "from",
61         ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
62         button : "openCalendarFrom",
63         disableFunc : validate1,
64         dateStatusFunc : validate1
65         }
66 );
67 </script>
68 <label for "to" >
69     End date:
70 </label>
71 <input size="10" id="to" name="to" value="<!-- TMPL_VAR NAME="to" -->" type="text" />
72 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" alt="" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" />
73 <script type="text/javascript">
74         function validate2(date) {
75             var day = date.getDate();
76             var month = date.getMonth() + 1;
77             var year = date.getFullYear();
78             var weekDay = date.getDay();
79             var dayMonth = month + '-' + day;
80             var dateString = year + '-' + month + '-' + day;
81             var dateFrom = document.getElementById('from').value.split("-");
82             var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
83             if (limitDate > date) {
84                     return true;
85             } else {
86                     return false;
87             }
88         }
89
90         Calendar.setup(
91                 {
92                     inputField : "to",
93                     ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
94                     button : "openCalendarTo",
95                     disableFunc : validate2,
96                     dateStatusFunc : validate2
97                 }
98         );
99 </script>
100 (inclusive)
101
102 <input type="submit" value="Go" class="submit">
103 </p>
104 </form>
105 <p>The following patrons have bills.</p>
106 </div>
107
108
109 <div class="searchresults">
110     <!-- TMPL_IF NAME="billingloop" -->
111     <table>
112     <tr>
113         <th >Patron
114         <a href="/cgi-bin/koha/circ/billing.pl?order=patron&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
115         </th>
116         <th >Fee Item
117         <a href="/cgi-bin/koha/circ/billing.pl?order=fee&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
118         </th>
119         <th>Description
120         <a href="/cgi-bin/koha/circ/billing.pl?order=desc&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
121         </th>
122         <th>Type
123         <a href="/cgi-bin/koha/circ/billing.pl?order=type&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
124         </th>
125         <th >Date
126         <a href="/cgi-bin/koha/circ/billing.pl?order=date&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
127         </th>
128         <th>Total Amount
129         <a href="/cgi-bin/koha/circ/billing.pl?order=total&from=<!-- TMPL_VAR NAME="from" -->&to=<!-- TMPL_VAR NAME="to" -->">Sort</a>
130         </th>
131     </tr>
132     
133                     <!-- TMPL_IF name="BiblioDefaultViewmarc" -->
134                     <!-- /TMPL_IF -->
135                     <!-- TMPL_IF name="BiblioDefaultViewisbd" -->
136                     <!-- /TMPL_IF -->    
137     
138     <!-- TMPL_LOOP NAME="billingloop" -->
139         <tr>
140             <!-- TMPL_IF name="surname" -->
141                  <td>
142                                          <p><a href="/cgi-bin/koha/members/boraccount.pl?borrowernumber=<!--TMPL_VAR Name="borrowernumber"-->"><!-- TMPL_VAR NAME="patronname" --></a><br /><!-- TMPL_VAR NAME="phone" --><br />
143                 <!-- TMPL_IF NAME="email" --><a href="mailto:<!-- TMPL_VAR NAME="email" -->?subject=Account: <!-- TMPL_VAR NAME="title" -->">
144                                  <!-- TMPL_VAR NAME="email" --></a><!--/TMPL_IF-->
145                 </p>
146                  </td>
147                 <td align="right">
148                     <p><!-- TMPL_VAR NAME="l_amountoutstanding" --></p>
149                 </td>
150                 <td>
151                     <p><!-- TMPL_VAR NAME="l_description" --></p>
152                 </td>
153                 <td>
154                     <p><!-- TMPL_VAR NAME="l_accounttype" --></p>
155                 </td>
156                 <td>
157                     <p><!-- TMPL_VAR NAME="l_date" --></p>
158                 </td>                
159                 <td align="right">
160                     <p><!-- TMPL_VAR NAME="sum_amount" --></p>
161                 </td>
162         </tr>
163     <!-- /TMPL_LOOP -->
164     </table>
165     <!-- TMPL_ELSE -->
166         <b>No items found.</b>
167     <!-- /TMPL_IF -->
168 </div>
169 </div>
170 </div>
171 <div class="yui-b">
172 <!-- TMPL_INCLUDE NAME="circ-menu.inc" -->
173 </div>
174 </div>
175 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->