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