[% FOREACH mainloo IN mainloop %]
<h1>Circulation statistics</h1>
[% IF ( mainloo.loopfilter ) %]
- <p>Filtered on</p>
+ <p>Filtered on:</p>
<ul>
[% FOREACH loopfilte IN mainloo.loopfilter %]
[% IF ( loopfilte.err ) %]<li class="error">Error:
<th>TOTAL</th>
</tr>
[% FOREACH loopro IN mainloo.looprow %]
- [% IF ( loop.odd ) %]
<tr>
- [% ELSE %]
- <tr class="highlight">
- [% END %]
<td>[% loopro.rowtitle_display or "UNKNOWN VALUE" |html %]</td>
[% FOREACH loopcel IN loopro.loopcell %]
<td>[% loopcel.value %]</td>
<td>Period</td>
<td><input type="radio" name="Line" value="datetime" /></td>
<td><input type="radio" name="Column" value="datetime" /></td>
- <td><label for="from">From</label> <input type="text" size="10" id="from" name="Filter" />
- <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" border="0" id="openCalendarFrom" style="cursor: pointer;" />
- <script type="text/javascript">
- //<![CDATA[
- function validate1(date) {
- var day = date.getDate();
- var month = date.getMonth() + 1;
- var year = date.getFullYear();
- var weekDay = date.getDay();
- var dayMonth = month + '-' + day;
- var dateString = year + '-' + month + '-' + day;
- var dateTo = document.getElementById('to').value.split("-");
- var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
- if (date > limitDate) {
- return true;
- } else {
- return false;
- }
- }
- Calendar.setup({
- inputField : "from",
- ifFormat : "[% DHTMLcalendar_dateformat %]",
- button : "openCalendarFrom",
- disableFunc : validate1,
- dateStatusFunc : validate1
- });
- //]]>
- </script>
- <label for="to">To</label> <input size="10" id="to" name="Filter" value="" type="text" />
- <img src="[% themelang %]/lib/calendar/cal.gif" alt="Show Calendar" id="openCalendarTo" style="cursor: pointer;" border="0" />
- <script type="text/javascript">
- //<![CDATA[
- function validate2(date) {
- var day = date.getDate();
- var month = date.getMonth() + 1;
- var year = date.getFullYear();
- var weekDay = date.getDay();
- var dayMonth = month + '-' + day;
- var dateString = year + '-' + month + '-' + day;
- var dateFrom = document.getElementById('from').value.split("-");
- var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
- if (limitDate > date) {
- return true;
- } else {
- return false;
- }
- }
- Calendar.setup({
- inputField : "to",
- ifFormat : "[% DHTMLcalendar_dateformat %]",
- button : "openCalendarTo",
- disableFunc : validate2,
- dateStatusFunc : validate2
- });
- //]]>
- </script> <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
+ <td><label for="from">From</label> <input type="text" size="10" id="from" name="Filter" class="datepickerfrom" />
+ <label for="to">To</label> <input size="10" id="to" name="Filter" value="" type="text" class="datepickerto" />
+ <span class="hint">[% INCLUDE 'date-format.inc' %]</span>
</td>
</tr>
- <tr class="highlight">
+ <tr>
<td><label for="PeriodTypeSel">Type:</label><select name="PeriodTypeSel" id="PeriodTypeSel">
<option value ="issue">Checkout</option>
<option value ="renew">Renewal</option>
</select>
</td>
<td>
- <label for="PeriodDaySel">Select Day: </label><select name="PeriodDaySel" id="PeriodDaySel">
+ <label for="PeriodDaySel">Select day: </label><select name="PeriodDaySel" id="PeriodDaySel">
<option value =""></option>
<option value ="Monday">Monday</option>
<option value ="Tuesday">Tuesday</option>
<option value ="Saturday">Saturday</option>
<option value ="Sunday">Sunday</option>
</select>
- <label for="PeriodMonthSel">Select Month:</label> <select name="PeriodMonthSel" id="PeriodMonthSel">
+ <label for="PeriodMonthSel">Select month:</label> <select name="PeriodMonthSel" id="PeriodMonthSel">
<option value =""></option>
<option value ="January">January</option>
<option value ="February">February</option>
</td>
</tr>
<tr>
- <td>Patron Category</td>
+ <td>Patron category</td>
<td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
<td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
<td><select name="Filter" id="borcat">
</select>
</td>
</tr>
- <tr class="highlight">
- <td>Item Type</td>
+ <tr>
+ <td>Item type</td>
<td><input type="radio" name="Line" value="itemtype" /></td>
<td><input type="radio" name="Column" value="itemtype" /></td>
<td><select name="Filter" id="itemtype">
</select>
</td>
</tr>
- <tr class="highlight">
+ <tr>
<td>Collection</td>
<td><input type="radio" name="Line" value="items.ccode" /></td>
<td><input type="radio" name="Column" value="items.ccode" /></td>
</td>
</tr>
<tr>
- <td>Shelving Location</td>
+ <td>Shelving location</td>
<td><input type="radio" name="Line" value="items.location" /></td>
<td><input type="radio" name="Column" value="items.location" /></td>
<td><select name="Filter" id="location">
</select>
</td>
</tr>
- <tr class="highlight">
- <td>Item Call Number</td>
+ <tr>
+ <td>Item call number</td>
<td></td>
<td></td>
<td>From <input type="text" name="Filter" size="10" /> (inclusive) to <input type="text" name="Filter" size="10" /> (exclusive) </td>
</tr>
[% IF ( hassort1 ) %]
- <tr><td>Patron sort1</td>
+ <tr><td>Patron sort 1</td>
<td><input type="radio" name="Line" value="borrowers.sort1" /></td>
<td><input type="radio" name="Column" value="borrowers.sort1" /></td>
<td><select name="Filter" id="sort1">
</tr>
[% END %]
[% IF ( hassort2 ) %]
- <tr class="highlight"><td>Patron sort2</td>
+ <tr><td>Patron sort 2</td>
<td><input type="radio" name="Line" value="borrowers.sort2" /></td>
<td><input type="radio" name="Column" value="borrowers.sort2" /></td>
<td><select name="Filter" id="sort2">
</tbody>
</table><br /></fieldset>
-<fieldset class="rows"><legend>Cell value </legend><ol><li><label for="cellvalue1">Count total items</label> <input type="radio" name="Cellvalue" value="1" id="cellvalue1" checked="checked" /> </li>
- <li><label for="cellvalue3">Count unique items</label> <input type="radio" name="Cellvalue" id="cellvalue3" value="3" /> </li></ol></fieldset>
+<fieldset class="rows"><legend>Cell value </legend><ol><li><label for="cellvalue1">Count total items:</label> <input type="radio" name="Cellvalue" value="1" id="cellvalue1" checked="checked" /> </li>
+ <li><label for="cellvalue3">Count unique items:</label> <input type="radio" name="Cellvalue" id="cellvalue3" value="3" /> </li></ol></fieldset>
<fieldset class="rows">
<legend>Output</legend>
-<ol><li><label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" /> </li>
-<li><label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" /> <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" /> <label class="inline" for="MIME">Into an application
- </label>[% CGIextChoice %]
- [% CGIsepChoice %]</li></ol>
+ <ol>
+ <li>
+ <label for="outputscreen">To screen into the browser: </label><input type="radio" checked="checked" name="output" id="outputscreen" value="screen" />
+ </li>
+ <li>
+ <label for="outputfile">To a file:</label> <input type="radio" name="output" value="file" id="outputfile" />
+ <label class="inline" for="basename">Named: </label><input type="text" name="basename" id="basename" value="Export" />
+ <label class="inline" for="MIME">Into an application:</label>
+ <select name="MIME" id="MIME" size="1">
+ [% FOREACH value IN CGIextChoice %]
+ <option value="[% value %]">[% value %]</option>
+ [% END %]
+ </select>
+ <select name="sep" id="sep" size="1">
+ [% FOREACH value IN CGIsepChoice.values.sort() %]
+ [% IF ( value == CGIsepChoice.default ) %]
+ <option value="[% value %]" selected="selected">[% value %]</option>
+ [% ELSE %]
+ <option value="[% value %]">[% value %]</option>
+ [% END %]
+ [% END %]
+ </select>
+ </li>
+ </ol>
</fieldset>
<fieldset class="action">