[Koha-cvs] CVS: koha/koha-tmpl/intranet-tmpl/default/en/reports issues_by_borrower_category.tmpl,NONE,1.1 itemtypes.tmpl,NONE,1.1 reports-home.tmpl,1.7,1.8

Paul POULAIN tipaul at users.sourceforge.net
Tue Mar 30 18:09:06 CEST 2004


Update of /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/reports
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26999/koha-tmpl/intranet-tmpl/default/en/reports

Modified Files:
	reports-home.tmpl 
Added Files:
	issues_by_borrower_category.tmpl itemtypes.tmpl 
Log Message:
NEW :
template for report writing.
with 2 nice reports.
pls test.
documentation of the template syntax coming soon

--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="reports-top.inc" -->
<div id="mainbloc">
<!-- TMPL_IF name="do_it" -->
<!-- TMPL_LOOP name="mainloop" -->
	<h1>Koha : Issues by borrower category <!--TMPL_IF name="borrower_category" --> for category = <!-- TMPL_VAR name="borrower_category" --><!-- /TMPL_IF --></h1>
	<table>
		<tr>
			<th>&nbsp;</th>
			<!-- TMPL_LOOP name="categorycodeloop" -->
				<th><!-- TMPL_VAR name="categorycode" --></th>
			<!-- /TMPL_LOOP -->
			<th>TOTAL</th>
		</tr>
			<!-- TMPL_LOOP name="loopborrowertype" -->
				<tr>
					<!-- TMPL_IF name="hilighted" --><td class="hilighted"><!-- TMPL_ELSE --><td><!-- /TMPL_IF -->
					<!-- TMPL_VAR name="itemtype" --></td>
					<!-- TMPL_LOOP name="loopitemtype" -->
						<!-- TMPL_IF name="hilighted" --><td class="numberhilighted"><!-- TMPL_ELSE --><td class="number"><!-- /TMPL_IF -->
							<!-- TMPL_VAR name="issues" -->
						</td>
					<!-- /TMPL_LOOP -->
					<!-- TMPL_IF name="hilighted" --><td class="numberhilighted"><!-- TMPL_ELSE --><td class="number"><!-- /TMPL_IF -->
						<!-- TMPL_VAR name="totalitemtype" -->
					</td>
				</tr>
			<!-- /TMPL_LOOP name="loopitemtype" -->
			<tr>
				<th>TOTAL</th>
				<!-- TMPL_LOOP name="loopborrowertotal" -->
					<th>
						<!-- TMPL_VAR name="issues" -->
					</th>
				<!-- /TMPL_LOOP -->
				<th>&nbsp;</th>
			</tr>
	</table>
<!-- /TMPL_LOOP -->
<!-- TMPL_ELSE -->
	<h1>Issues by borrower category</h1>
	<form method="post">
		<p>Select a borrower category (or don't if you want to see global status) <input type="text" name="value"></p>
		<p>Select a branch : <!-- TMPL_VAR name="CGIbranch" --></p>
		<input type="submit" value="OK" class="button">
		<input type="hidden" name="report_name" value="<!--TMPL_VAR name="report_name" -->">
		<input type="hidden" name="do_it" value="1">
	</form>
<!-- /TMPL_IF -->
</div>
<!-- TMPL_INCLUDE NAME="reports-bottom.inc" -->

--- NEW FILE ---
<!-- TMPL_INCLUDE NAME="reports-top.inc" -->
<div id="mainbloc">
<!-- TMPL_IF name="do_it" -->
<!-- TMPL_LOOP name="mainloop" -->
	<h1>Koha : Reports on itemtypes <!--TMPL_IF name="branch" --> for branch = <!-- TMPL_VAR name="branch" --><!-- /TMPL_IF --></h1>
	<table>
		<tr>
			<th>Item type</th>
			<th>count</th>
		</tr>
			<!-- TMPL_LOOP name="loopitemtype" -->
				<tr>
					<td><!-- TMPL_VAR name="itemtype" --></td>
					<td><!-- TMPL_VAR name="count" --></td>
				</tr>
			<!-- /TMPL_LOOP name="loopitemtype" -->
			<tr>
				<th>TOTAL</th>
				<th><!-- TMPL_VAR name="total" --></th>
	</table>
<!-- /TMPL_LOOP -->
<!-- TMPL_ELSE -->
	<h1>View catalogue group by itemtypes</h1>
	<form method="post">
		Select a branch (or don't if you want the report for all branches) <!-- TMPL_VAR name="CGIbranch" -->
		<input type="submit" value="OK" class="button">
		<input type="hidden" name="report_name" value="<!--TMPL_VAR name="report_name" -->">
		<input type="hidden" name="do_it" value="1">
	</form>
<!-- /TMPL_IF -->
</div>
<!-- TMPL_INCLUDE NAME="reports-bottom.inc" -->

Index: reports-home.tmpl
===================================================================
RCS file: /cvsroot/koha/koha/koha-tmpl/intranet-tmpl/default/en/reports/reports-home.tmpl,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** reports-home.tmpl	23 Feb 2004 21:21:37 -0000	1.7
--- reports-home.tmpl	30 Mar 2004 16:09:04 -0000	1.8
***************
*** 1,6 ****
  <!-- TMPL_INCLUDE NAME="reports-top.inc" -->
  <!--------------------------MAIN BODY OF PAGE-------------------------->
! 
! <h1>Reports</h1><br/>
  <ul>
  	<li><a href="/cgi-bin/koha/stats.pl?time=yesterday">Till Reconciliation:</a> Daily Report (yesterday)</li>
--- 1,6 ----
  <!-- TMPL_INCLUDE NAME="reports-top.inc" -->
  <!--------------------------MAIN BODY OF PAGE-------------------------->
! <div id="mainbloc">
! <h1>Reports</h1>
  <ul>
  	<li><a href="/cgi-bin/koha/stats.pl?time=yesterday">Till Reconciliation:</a> Daily Report (yesterday)</li>
***************
*** 8,12 ****
--- 8,16 ----
  	<li><a href="/cgi-bin/koha/overdue.pl">Overdue items</a></li>
  	<li><a href="/cgi-bin/koha/reports/inventory.pl">Inventory/Stocktaking</a></li>
+ 	<li><a href="/cgi-bin/koha/reports/manager.pl?report_name=itemtypes">Catalogue by itemtype</a></li>
+ 	<li><a href="/cgi-bin/koha/reports/manager.pl?report_name=issues_by_borrower_category">Issues by borrower category</a></li>
+ 	
  </ul>
+ </div>
  <!-- TMPL_INCLUDE NAME="reports-bottom.inc" -->
  





More information about the Koha-cvs mailing list