Synching with default template
This commit is contained in:
parent
e5f8d1556c
commit
3858218d55
|
|
@ -1,4 +1,4 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Reports<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Reports: Patron Statistics<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
|
||||
|
||||
|
|
@ -6,61 +6,66 @@
|
|||
|
||||
<!-- TMPL_IF NAME="do_it" -->
|
||||
<!-- TMPL_LOOP NAME="mainloop" -->
|
||||
<h1>Koha : Borrowers statistics </h1>
|
||||
<h1>Patron Statistics Report</h1>
|
||||
<!-- TMPL_IF NAME="loopfilter"-->
|
||||
<p>Filtered on</p>
|
||||
<p>Showing patron counts by category where
|
||||
<!-- TMPL_LOOP NAME="loopfilter" -->
|
||||
<p><label> <!-- TMPL_VAR NAME="crit"--> =</label><!-- TMPL_VAR NAME="filter"--></p>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<strong><!-- TMPL_VAR NAME="crit"--></strong> is <span class="ex"><!-- TMPL_VAR NAME="filter"--></span>,
|
||||
<!-- /TMPL_LOOP --></p>
|
||||
<!-- /TMPL_IF NAME="loopfilter"-->
|
||||
<table>
|
||||
<div class="table"><table>
|
||||
<tr >
|
||||
<th><!-- TMPL_VAR name="line" --> / <!-- TMPL_VAR name="column" --></th>
|
||||
<th scope="col"><!-- TMPL_VAR name="line" --> / <!-- TMPL_VAR name="column" --></th>
|
||||
<!-- TMPL_LOOP NAME="loopcol" -->
|
||||
<th><!-- TMPL_VAR NAME="coltitle" --></th>
|
||||
<th scope="col"><!-- TMPL_VAR NAME="coltitle" --></th>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<th>TOTAL</th>
|
||||
<th scope="col">Total</th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP NAME="looprow" -->
|
||||
<tr>
|
||||
<!-- TMPL_IF NAME="hilighted" --><td><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF NAME="hilighted" --><tr class="highlight"><!-- TMPL_ELSE --><!-- /TMPL_IF -->
|
||||
<td>
|
||||
<!-- TMPL_VAR NAME="rowtitle" --></td>
|
||||
<!-- TMPL_LOOP NAME="loopcell" -->
|
||||
<!-- TMPL_IF NAME="hilighted" --><td class="numberhilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
|
||||
<td class="sum">
|
||||
<!--TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" -->
|
||||
<!--TMPL_ELSE-->
|
||||
|
||||
<!--/TMPL_IF-->
|
||||
</td>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<!-- TMPL_IF NAME="hilighted" --><td class="numberhilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
|
||||
<td class="sum">
|
||||
<!-- TMPL_VAR NAME="totalrow" -->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP NAME="looprow" -->
|
||||
<tfoot>
|
||||
<tr >
|
||||
<th>TOTAL</th>
|
||||
<td>TOTAL</td>
|
||||
<!-- TMPL_LOOP NAME="loopfooter" -->
|
||||
<th>
|
||||
<td class="sum">
|
||||
<!-- TMPL_VAR NAME="totalcol" -->
|
||||
</th>
|
||||
</td>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<th><!-- TMPL_VAR NAME="total" --></th>
|
||||
<td class="sum"><!-- TMPL_VAR NAME="total" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
</tfoot>
|
||||
</table></div>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<!-- TMPL_ELSE -->
|
||||
<h1 class = "reports">Borrowers statistics</h1>
|
||||
<h1>Build Patron Statistics Report</h1>
|
||||
<div class="help">Choose at least one piece of information to display as a row in the report, and one to display as a column.</div>
|
||||
<form method="post">
|
||||
<div class="data">
|
||||
<table>
|
||||
<caption>Patron Category</caption>
|
||||
<thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Category</th><th scope="col">Limit by Status</th></tr></thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>Display Patron Category As: </th><td><label for="">Line</label><input type="radio" name="Line" value="categorycode" /> <label for="">Column</label><input type="radio" name="Column" value="categorycode" /></td></tr>
|
||||
<tr><th><label for="Filter">Limit by Patron Category: </label></th><td><!-- TMPL_VAR NAME="CGICatCode" --></td></tr>
|
||||
<tr><th><label for="">Limit by Patron Status: </label></th><td><select name="status"><option value=""> </option><option value="debarred">debarred</option><option value="gonenoadress">gone no adress</option><option value="lost">lost</option></td></tr>
|
||||
<tr><th>Display Zip Code As: </th><td><label for="">Row</label><input type="radio" name="Line" value="zipcode" /> <label for="">Column</label><input type="radio" name="Column" value="zipcode" /></td></tr>
|
||||
<tr><th><label for="zipcode">Limit by Zip Code: </label></th><td><input type="text" size="10" id="zipcode" name="Filter" /> Limit to <select name="digits">
|
||||
<tr><td><input type="radio" name="Line" value="categorycode" /></td><td><input type="radio" name="Column" value="categorycode" /></td><td><!-- TMPL_VAR NAME="CGICatCode" --></td><td><select name="status"><option value=""> </option><option value="debarred">debarred</option><option value="gonenoadress">gone no adress</option><option value="lost">lost</option></td></tr>
|
||||
</table>
|
||||
<table>
|
||||
<caption>Patron Zip Code</caption>
|
||||
<thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Zip Code</th><th scope="col">Limit Filter</th></tr></thead>
|
||||
<tr><td><input type="radio" name="Line" value="zipcode" /></td><td><input type="radio" name="Column" value="zipcode" /></td><td><input type="text" size="10" id="zipcode" name="Filter" /></td><td><select name="digits">
|
||||
<option value=""> </option>
|
||||
<option value ="1">1</option>
|
||||
<option value ="2">2</option>
|
||||
|
|
@ -73,21 +78,17 @@
|
|||
<option value ="9">9</option>
|
||||
<option value ="10">10</option>
|
||||
</select> digits</td></tr>
|
||||
|
||||
</table>
|
||||
<!-- TMPL_IF name="hassort1" -->
|
||||
<tr>
|
||||
<th>Display Sorting Field 1 As: </th><td><label for="">Row</label> <input type="radio" name="Line" value="sort1" /> <label for="">Column</label><input type="radio" name="Column" value="sort1" /></td></tr>
|
||||
<tr>
|
||||
<th>Limit by Sorting Field 1: </th><td><!-- TMPL_VAR NAME="CGISort1" --></td></tr>
|
||||
<table><caption>Sorting Field 1</caption>
|
||||
<thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col" colspan="2">Limit by Sorting Field 1</th></tr></thead>
|
||||
<tr><td><input type="radio" name="Line" value="sort1" /></td><td><input type="radio" name="Column" value="sort1" /></td><td colspan="2"><!-- TMPL_VAR NAME="CGISort1" --></td></tr></table>
|
||||
<!-- /TMPL_IF -->
|
||||
<!-- TMPL_IF name="hassort2" -->
|
||||
<tr>
|
||||
<th>Display Sorting Field 2 As: </th><td><label for="">Row</label> <input type="radio" name="Line" value="sort2" /> <label for="">Column</label><input type="radio" name="Column" value="sort2" /></td></tr>
|
||||
<tr>
|
||||
<th>Limit by Sorting Field 1: </th><td><!-- TMPL_VAR NAME="CGISort1" --></td></tr>
|
||||
<table><caption>Sorting Field 2</caption>
|
||||
<thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col" colspan="2">Limit by Sorting Field 2</th></tr></thead>
|
||||
<tr><td><input type="radio" name="Line" value="sort2" /></td><td><input type="radio" name="Column" value="sort2" /></td><td colspan="2"><!-- TMPL_VAR NAME="CGISort1" --></td></tr></table>
|
||||
<!-- /TMPL_IF -->
|
||||
</tbody>
|
||||
</table>
|
||||
<table>
|
||||
<caption>Output Options</caption>
|
||||
<tr><td colspan="2"><label for="screen">To the Screen</label> <input type="radio" checked name="output" value="screen" id="screen" /></td></tr>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,254 @@
|
|||
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Reports: Issues Statistics<!-- TMPL_INCLUDE NAME="doc-head-close-calendar.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="masthead.inc" -->
|
||||
<!-- TMPL_INCLUDE NAME="intranet-nav.inc" -->
|
||||
|
||||
<div id="main" >
|
||||
|
||||
<!-- TMPL_IF NAME="do_it" -->
|
||||
<!-- TMPL_LOOP NAME="mainloop" -->
|
||||
<h1>Issues Statistics Report</h1>
|
||||
<!-- TMPL_IF NAME="loopfilter"-->
|
||||
<p>Showing Issues where
|
||||
<!-- TMPL_LOOP NAME="loopfilter" -->
|
||||
<!-- TMPL_IF NAME="err" --> <font color="red"> <b><!--/TMPL_IF --> <strong><!-- TMPL_VAR NAME="crit"--></strong> = <span class="ex"><!-- TMPL_VAR NAME="filter"--></span>, <!-- TMPL_IF NAME="err" --> </font> </b><!--/TMPL_IF -->
|
||||
<!-- /TMPL_LOOP --></p>
|
||||
<!-- /TMPL_IF NAME="loopfilter"-->
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<th scope="col"><!-- TMPL_VAR name="line" --> / <!-- TMPL_VAR name="column" --></th>
|
||||
<!-- TMPL_LOOP NAME="loopcol" -->
|
||||
<th scope="col"><!-- TMPL_VAR NAME="coltitle" --></th>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<th scope="col">Total</th>
|
||||
</tr>
|
||||
<!-- TMPL_LOOP NAME="looprow" -->
|
||||
<!-- TMPL_IF NAME="hilighted" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
|
||||
<td>
|
||||
<!-- TMPL_VAR NAME="rowtitle" --></td>
|
||||
<!-- TMPL_LOOP NAME="loopcell" -->
|
||||
<td class="sum">
|
||||
<!-- TMPL_IF NAME="value" --><!-- TMPL_VAR NAME="value" -->
|
||||
<!-- TMPL_ELSE -->
|
||||
<!-- /TMPL_IF -->
|
||||
</td>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<td class="sum">
|
||||
<!-- TMPL_VAR NAME="totalrow" -->
|
||||
</td>
|
||||
</tr>
|
||||
<!-- /TMPL_LOOP NAME="looprow" -->
|
||||
<tr>
|
||||
<td>TOTAL</td>
|
||||
<!-- TMPL_LOOP NAME="loopfooter" -->
|
||||
<td class="sum">
|
||||
<!-- TMPL_VAR NAME="totalcol" -->
|
||||
</td>
|
||||
<!-- /TMPL_LOOP -->
|
||||
<td class="sum"><!-- TMPL_VAR NAME="total" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- /TMPL_LOOP -->
|
||||
|
||||
<!-- TMPL_ELSE -->
|
||||
<h1>Build Issues Statistics Report</h1>
|
||||
<div class="help">Choose at least one piece of information to display as a row in the report, and one to display as a column.</div>
|
||||
<form method="post">
|
||||
<div class="data">
|
||||
<table>
|
||||
<caption>Date Range</caption>
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Display as Row</th>
|
||||
<th scope="col">Display as Column</th>
|
||||
<th scope="col">From...</th>
|
||||
<th scope="col">...To</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><input type="radio" name="Line" value="datetime" /></td>
|
||||
<td><input type="radio" name="Column" value="datetime" /></td>
|
||||
<td><input type="text" size="10" id="from" name="Filter" />
|
||||
<img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" border="0" id="openCalendarFrom" style="cursor: pointer;" valign="top" />
|
||||
<script language="JavaScript" type="text/javascript">
|
||||
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 : "%Y-%m-%d",
|
||||
button : "openCalendarFrom",
|
||||
disableFunc : validate1,
|
||||
dateStatusFunc : validate1
|
||||
}
|
||||
);
|
||||
</script></td><td>
|
||||
<input size="10" id="to" name="Filter" value="" type="text" />
|
||||
<img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" />
|
||||
<script type="text/javascript">
|
||||
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 : "%Y-%m-%d",
|
||||
button : "openCalendarTo",
|
||||
disableFunc : validate2,
|
||||
dateStatusFunc : validate2
|
||||
}
|
||||
);
|
||||
</script>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<caption>Transaction Type</caption>
|
||||
<thead><tr><th scope="col">Type</th><th scope="col">Group By</th><th scope="col">Limit by Day of Week</th><th scope="col">Limit by Month</th></tr></thead>
|
||||
<tr>
|
||||
<td><select id="PeriodTypeSel" name="PeriodTypeSel">
|
||||
<option value ="issue">Issue</option>
|
||||
<option value ="return">Return</option>
|
||||
</select></td>
|
||||
<td><select id="DisplayBy" name="DisplayBy">
|
||||
<option value="">None</option>
|
||||
<option value ="1">Day of week</option>
|
||||
<option value ="2">Month</option>
|
||||
<option value ="3">Year</option>
|
||||
</select>
|
||||
|
||||
</td>
|
||||
<td><select id="PeriodDaySel" name="PeriodDaySel">
|
||||
<option value =""></option>
|
||||
<option value ="Monday">Monday</option>
|
||||
<option value ="Tuesday">Tuesday</option>
|
||||
<option value ="Wednesday">Wednesday</option>
|
||||
<option value ="Thursday">Thursday</option>
|
||||
<option value ="Friday">Friday</option>
|
||||
<option value ="Saturday">Saturday</option>
|
||||
<option value ="Sunday">Sunday</option>
|
||||
</select></td>
|
||||
|
||||
<td><select id="PeriodMonthSel" name="PeriodMonthSel">
|
||||
<option value =""></option>
|
||||
<option value ="January">January</option>
|
||||
<option value ="February">February</option>
|
||||
<option value ="March">March</option>
|
||||
<option value ="April">April</option>
|
||||
<option value ="May">May</option>
|
||||
<option value ="June">June</option>
|
||||
<option value ="July">July</option>
|
||||
<option value ="August">August</option>
|
||||
<option value ="September">September</option>
|
||||
<option value ="October">October</option>
|
||||
<option value ="November">November</option>
|
||||
<option value ="December">December</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<caption>Patron Category</caption>
|
||||
<thead><tr>
|
||||
<th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Category</th></tr></thead>
|
||||
<td><input type="radio" name="Line" value="borrowers.categorycode" /></td>
|
||||
<td><input type="radio" name="Column" value="borrowers.categorycode" /></td>
|
||||
<td><!-- TMPL_VAR NAME="CGIBorCat" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
<table>
|
||||
<caption>Item Type</caption>
|
||||
<thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Item Type</th></tr></thead>
|
||||
<tr>
|
||||
<td><input type="radio" name="Line" value="itemtype" /></td>
|
||||
<td><input type="radio" name="Column" value="itemtype" /></td>
|
||||
<td><!-- TMPL_VAR NAME="CGIItemType" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<caption>Branch</caption>
|
||||
<thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Branch</th></tr></thead>
|
||||
<tr>
|
||||
<td><input type="radio" name="Line" value="branch" /></td>
|
||||
<td><input type="radio" name="Column" value="branch" /></td>
|
||||
<td><!-- TMPL_VAR NAME="CGIBranch" --></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<!-- TMPL_IF Name="hassort1" -->
|
||||
<table>
|
||||
<caption>Sorting Field 1</caption>
|
||||
<thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Sorting Field 1</th></tr></thead>
|
||||
<tr>
|
||||
<td><input type="radio" name="Line" value="borrowers.sort1" /></td>
|
||||
<td><input type="radio" name="Column" value="borrowers.sort1" /></td>
|
||||
<td><!-- TMPL_VAR NAME="CGISort1" --> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
<!-- TMPL_IF Name="hassort2" -->
|
||||
<table>
|
||||
<caption>Sorting Field 2</caption>
|
||||
<thead><tr><th scope="col">Display as Row</th><th scope="col">Display as Column</th><th scope="col">Limit by Sorting Field 2</th></tr></thead>
|
||||
<tr>
|
||||
<td><input type="radio" name="Line" value="borrowers.sort2" /></td>
|
||||
<td><input type="radio" name="Column" value="borrowers.sort2" /></td>
|
||||
<td><!-- TMPL_VAR NAME="CGISort2" --> </td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- /TMPL_IF -->
|
||||
|
||||
<table>
|
||||
<caption> Cell value</caption>
|
||||
<tr><th><label for="count">Count issues</label></th><td><input type="radio" id="count" name="Cellvalue" value="1" checked="checked" /></td></tr>
|
||||
<tr><th><label for="rate">Circulation rate</label></th><td><input type="radio" id="rate" name="Cellvalue" value="3" /></td></tr>
|
||||
</table>
|
||||
|
||||
<table>
|
||||
<caption>Output Options</caption>
|
||||
<tr><td colspan="2"><label for="screen">To the Screen</label> <input type="radio" checked name="output" value="screen" id="screen" /></td></tr>
|
||||
<tr><td colspan="2"><label for="file">To file a file</label><input type="radio" name="output" value="file" id="file" /></td></tr>
|
||||
<tr><td> </td><td><label for="basename">...named:</label> <input type="text" id="basename" name="basename" value="Export" /></td></td></tr>
|
||||
<tr><td> </td><td><label for="MIME">File Format:</label> <!-- TMPL_VAR NAME="CGIextChoice" --></td></tr>
|
||||
<tr><td> </td><td><label for="sep">Delimiter:</label> <!-- TMPL_VAR NAME="CGIsepChoice" --></td></tr>
|
||||
</table>
|
||||
|
||||
<p>
|
||||
<input type="submit" value="Generate Report" class="submit" />
|
||||
<input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
|
||||
<input type="hidden" name="do_it" value="1" />
|
||||
</form></p>
|
||||
<!-- /TMPL_IF -->
|
||||
</div>
|
||||
|
||||
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|
||||
Loading…
Reference in New Issue