277 lines
9.9 KiB
Cheetah
277 lines
9.9 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Reports</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
<!--TMPL_INCLUDE NAME="menus.inc" --><!-- TMPL_INCLUDE NAME="menu-reports.inc" -->
|
|
<!-- Additions to enable Calendar system -->
|
|
<link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
|
|
<!-- End of additions --><!-- Additions to enable Calendar system -->
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
|
|
<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
|
|
<!-- End of additions -->
|
|
|
|
|
|
<!-- TMPL_IF NAME="do_it" -->
|
|
<!-- TMPL_LOOP NAME="mainloop" -->
|
|
<h1>Acquisitions statistics </h1>
|
|
<!-- TMPL_IF NAME="loopfilter" -->
|
|
<p>Filtered on</p>
|
|
<!-- TMPL_LOOP NAME="loopfilter" -->
|
|
<p><!-- TMPL_VAR NAME="crit"--> =<!-- TMPL_VAR NAME="filter" --></p>
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- /TMPL_IF-->
|
|
|
|
<table>
|
|
<tr >
|
|
<th><!-- TMPL_VAR name="line" --> / <!-- TMPL_VAR name="column" --></th>
|
|
<!-- TMPL_LOOP NAME="loopcol" -->
|
|
<th><!-- TMPL_VAR NAME="coltitle" --></th>
|
|
<!-- /TMPL_LOOP -->
|
|
<th>TOTAL</th>
|
|
</tr>
|
|
<!-- TMPL_LOOP NAME="looprow" -->
|
|
<tr>
|
|
<!-- TMPL_IF NAME="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR NAME="rowtitle" --></td>
|
|
<!-- TMPL_LOOP NAME="loopcell" -->
|
|
<!-- TMPL_IF NAME="hilighted" --><td><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
|
|
<!-- TMPL_IF Name="value" --><!-- TMPL_VAR NAME="value" -->
|
|
<!-- TMPL_ELSE-->
|
|
<!-- /TMPL_IF -->
|
|
</td>
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- TMPL_IF NAME="hilighted" --><td><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
|
|
<!-- TMPL_VAR NAME="totalrow" -->
|
|
</td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP NAME="looprow" -->
|
|
<tr >
|
|
<th>TOTAL</th>
|
|
<!-- TMPL_LOOP NAME="loopfooter" -->
|
|
<th>
|
|
<!-- TMPL_VAR NAME="totalcol" -->
|
|
</th>
|
|
<!-- /TMPL_LOOP -->
|
|
<th><!-- TMPL_VAR NAME="total" --></th>
|
|
</tr>
|
|
</table>
|
|
<!-- /TMPL_LOOP -->
|
|
<!-- TMPL_ELSE -->
|
|
<h1>Acquisitions statistics</h1>
|
|
<form method="post">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th><div>Title</th>
|
|
<th>Row</th>
|
|
<th>Column</th>
|
|
<th>Filter</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr class="hilighted">
|
|
<td>Placed On</td>
|
|
<td><input type="radio" name="Line" value="aqbasket.closedate" /></td>
|
|
<td><input type="radio" name="Column" value="aqbasket.closedate" /> </td>
|
|
<td > From <input type="text" readonly="readonly" size="10" id="from" name="Filter" />
|
|
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" hspace="0" vspace="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>
|
|
To <input readonly="readonly" size="10" id="to" name="Filter" value="" type="text" />
|
|
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" valign="top" border="0" hspace="0" vspace="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>
|
|
<tr class="hilighted">
|
|
<td> </td>
|
|
<td colspan="2">group by <select name="PlacedOnDisplay">
|
|
<option value="">None</option>
|
|
<option value ="1">Day of week</option>
|
|
<option value ="2">Month</option>
|
|
<option value ="3">Year</option>
|
|
</select>
|
|
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
<tr>
|
|
<td>Received On</td>
|
|
<td><input type="radio" name="Line" value="aqorderdelivery.deliverydate" /></td>
|
|
<td><input type="radio" name="Column" value="aqorderdelivery.deliverydate" /></td>
|
|
<td > From <input type="text" readonly="readonly" size="10" id="fromRO" name="Filter" />
|
|
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" border="0" hspace="0" vspace="0" id="openCalendarFromRO" 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('toRO').value.split("-");
|
|
var limitDate = new Date(dateTo[0], (dateTo[1] - 1), dateTo[2]);
|
|
if (date > limitDate) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
Calendar.setup(
|
|
{
|
|
inputField : "fromRO",
|
|
ifFormat : "%Y-%m-%d",
|
|
button : "openCalendarFromRO",
|
|
disableFunc : validate1,
|
|
dateStatusFunc : validate1
|
|
}
|
|
);
|
|
</script>
|
|
To <input type="text" readonly="readonly" size="10" id="toRO" name="Filter" value="" />
|
|
<img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="openCalendarToRO" style="cursor: pointer;" valign="top" border="0" hspace="0" vspace="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('fromRO').value.split("-");
|
|
var limitDate = new Date(dateFrom[0], (dateFrom[1] - 1), dateFrom[2]);
|
|
if (limitDate > date) {
|
|
return true;
|
|
} else {
|
|
return false;
|
|
}
|
|
}
|
|
|
|
Calendar.setup(
|
|
{
|
|
inputField : "toRO",
|
|
ifFormat : "%Y-%m-%d",
|
|
button : "openCalendarToRO",
|
|
disableFunc : validate2,
|
|
dateStatusFunc : validate2
|
|
}
|
|
);
|
|
</script>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td> </td>
|
|
<td colspan="2">group by <select name="ReceivedOnDisplay">
|
|
<option value="">None</option>
|
|
<option value ="1">Day of week</option>
|
|
<option value ="2">Month</option>
|
|
<option value ="3">Year</option>
|
|
</select>
|
|
|
|
</td>
|
|
<td> </td>
|
|
</tr>
|
|
<tr class="hilighted">
|
|
<td>Supplier</td>
|
|
<td><input type="radio" name="Line" value="aqbooksellers.name" /></td>
|
|
<td><input type="radio" name="Column" value="aqbooksellers.name" /></td>
|
|
<td ><!-- TMPL_VAR NAME="CGIBookSeller" --></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Budget</td>
|
|
<td><input type="radio" name="Line" value="aqorderbreakdown.bookfundid" /></td>
|
|
<td><input type="radio" name="Column" value="aqorderbreakdown.bookfundid" /></td>
|
|
<td ><!-- TMPL_VAR NAME="CGIBudget" --></td>
|
|
</tr>
|
|
<!-- TMPL_IF Name="hassort1" -->
|
|
<tr class="hilighted">
|
|
<td>Sort1</td>
|
|
<td><input type="radio" name="Line" value="aqorders.sort1" /></td>
|
|
<td><input type="radio" name="Column" value="aqorders.sort1" /></td>
|
|
<td><!-- TMPL_VAR NAME="CGISort1" --> </td>
|
|
</tr>
|
|
<!-- /TMPL_IF -->
|
|
<!-- TMPL_IF Name="hassort2" -->
|
|
<!-- TMPL_IF Name="HglghtSort2"--><tr class="hilighted"> <!-- TMPL_ELSE --><tr><!--/TMPL_IF -->
|
|
<td>Sort2</td>
|
|
<td><input type="radio" name="Line" value="aqorders.sort2" /></td>
|
|
<td><input type="radio" name="Column" value="aqorders.sort2" /></td>
|
|
<td><!-- TMPL_VAR NAME="CGISort2" --> </td>
|
|
</tr>
|
|
<!-- /TMPL_IF -->
|
|
<tr></tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
|
|
<h3> Cell value </h3>
|
|
<input type="radio" name="Cellvalue" value="1" checked="checked" /> Count items
|
|
<input type="radio" name="Cellvalue" value="2" /> Amount
|
|
|
|
|
|
<h3> Output </h3>
|
|
<input type="radio" checked name="output" value="screen" /> To screen into the browser
|
|
|
|
<input type="radio" name="output" value="file" /> To file <input type="text" name="basename" value="Export" /> into an application
|
|
<!-- TMPL_VAR NAME="CGIextChoice" -->
|
|
<!-- TMPL_VAR NAME="CGIsepChoice" -->
|
|
</p>
|
|
|
|
<p>
|
|
<input type="submit" value="OK" />
|
|
<input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
|
|
<input type="hidden" name="do_it" value="1" />
|
|
</form>
|
|
<!-- /TMPL_IF -->
|
|
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|