better templating

This commit is contained in:
tipaul 2005-05-19 22:42:14 +00:00
parent dafcb6b2d7
commit bfa69d4259
4 changed files with 99 additions and 107 deletions

View File

@ -1,47 +1,39 @@
<!-- TMPL_INCLUDE NAME="members-top.inc" -->
<!-- The manual invoice and credit buttons -->
<h1>Account for <a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a></h1><P>
<a class="button" href="/cgi-bin/koha/maninvoice.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">Create Manual Invoice</a>
&nbsp;
<a class="button" href="/cgi-bin/koha/mancredit.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">Create Manual Credit</a>
<center>
<p>
<!-- The table with the account items -->
<table cellspacing="0" cellpadding="5" border="1" >
<tr valign="top">
<td bgcolor="#99cc33" background="<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif" colspan="2"><b>FINES &amp; CHARGES</td>
<td bgcolor="#99cc33" background="<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif" colspan="1"><b>AMOUNT</td>
<td bgcolor="#99cc33" background="<!-- TMPL_VAR NAME="themelang" -->/images/background-mem.gif" colspan="1"><b>STILL OWING</td>
</tr>
<!-- TMPL_LOOP NAME="accounts" -->
<tr valign="top">
<td><!-- TMPL_VAR NAME="date" --></td>
<td><!-- TMPL_VAR NAME="description" --><!-- TMPL_IF NAME="printtitle" --> <!-- TMPL_VAR NAME="title" --><!-- /TMPL_IF --></td>
<td><!-- TMPL_VAR NAME="amount" --></td>
<td><!-- TMPL_VAR NAME="amountoutstanding" --></td>
</tr>
<!-- /TMPL_LOOP -->
<tr valign="top">
<td></td>
<td colspan="2"><b>Total Due</b></td>
<td><b><!-- TMPL_VAR NAME="total" --></b></td>
</tr>
</table>
<br clear="all">
<p> &nbsp; </p>
<!-- endmenu (member) -->
<div id="mainbloc">
<!-- The manual invoice and credit buttons -->
<h1>Account for <a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a></h1><P>
<a class="button" href="/cgi-bin/koha/maninvoice.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">Create Manual Invoice</a>
&nbsp;
<a class="button" href="/cgi-bin/koha/mancredit.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">Create Manual Credit</a>
<!-- The table with the account items -->
<table>
<tr>
<th>FINES &amp; CHARGES</th>
<th>AMOUNT</th>
<th>STILL OWING</th>
</tr>
<!-- TMPL_LOOP NAME="accounts" -->
<tr>
<td><!-- TMPL_VAR NAME="date" --> <!-- TMPL_VAR NAME="description" --><!-- TMPL_IF NAME="printtitle" --> <!-- TMPL_VAR NAME="title" --><!-- /TMPL_IF --></td>
<td><!-- TMPL_VAR NAME="amount" --></td>
<td><!-- TMPL_VAR NAME="amountoutstanding" --></td>
</tr>
<!-- /TMPL_LOOP -->
<tr>
<th>Total Due</th>
<th colspan="2"><!-- TMPL_VAR NAME="total" --></th>
</tr>
</table>
<!-- endmenu (member) -->
</div>
<!-- TMPL_INCLUDE NAME="members-bottom.inc" -->

View File

@ -1,22 +1,20 @@
<!-- TMPL_INCLUDE Name="members-top.inc" -->
<Center><h3>Manual Credit</h3></center>
<form action="/cgi-bin/koha/mancredit.pl" method="post">
<table cellpadding="2" cellspacing="0" border="0">
<input type="hidden" name="bornum" value="<!-- TMPL_VAR NAME="bornum" -->">
<tr><td><b>Borrowernumber<b></td><td><!-- TMPL_VAR NAME="bornum" --></td></tr>
<tr><td><b>Type</b></td><Td>
<select name="type">
<option value="C">Credit</option>
<option value="BAY">Baycorp Adjustment</option>
<option value="WORK">Worked off</option>
</select>
</td></tr>
<tr><td><b>Itemnumber</b></td><td><input type="text" name="itemnum"></td></tr>
<tr><td><b>Description</b></td><td><input type="text" name="desc" size="50"></td></tr>
<tr><td><b>Amount</b></td><td><input type="text" name="amount"></td></tr>
<tr><td><input type="submit" name="add" value="Add"></td></tr>
</table>
</form>
<div id="mainbloc">
<h1 class="member">Manual Credit</h1>
<form action="/cgi-bin/koha/mancredit.pl" method="post">
<input type="hidden" name="bornum" value="<!-- TMPL_VAR NAME="bornum" -->">
<p><label class="label100">Borrowernumber</label><!-- TMPL_VAR NAME="bornum" --></p>
<p><label class="label100">Type</label>
<select name="type">
<option value="C">Credit</option>
<option value="BAY">Baycorp Adjustment</option>
<option value="WORK">Worked off</option>
</select>
</p>
<p><label class="label100">Itemnumber</label><input type="text" name="itemnum"></p>
<p><label class="label100">Description</label><input type="text" name="desc" size="50"></p>
<p><label class="label100">Amount</label><input type="text" name="amount"></p>
<p><input type="submit" name="add" value="Add" class="button"></p>
</form>
</div>
<!-- TMPL_INCLUDE Name="members-bottom.inc" -->

View File

@ -1,25 +1,25 @@
<!-- TMPL_INCLUDE Name="members-top.inc" -->
<Center><h3>Manual Invoice</h3></center>
<form action="/cgi-bin/koha/maninvoice.pl" method="post">
<table cellpadding="2" cellspacing="0" border="0">
<input type="hidden" name="bornum" value="<!-- TMPL_VAR NAME="bornum" -->">
<tr><td><b>Borrowernumber<b></td><td><!-- TMPL_VAR NAME="bornum" --></td></tr>
<tr><td><b>Type</b></td><Td>
<select name="type">
<option value="L">Lost Item</option>
<option value="F">Fine</option>
<option value="A">Account Management Fee</option>
<option value="N">New Card</option>
<option value="M">Sundry</option>
<option value="REF">Cash Refund</option>
</select>
</td></tr>
<tr><td><b>Itemnumber</b></td><td><input type="text" name="itemnum"></td></tr>
<tr><td><b>Description</b></td><td><input type="text" name="desc" size="50"></td></tr>
<tr><td><b>Amount</b></td><td><input type="text" name="amount"></td></tr>
<tr><td><input type="submit" name="add" value="Add"></td></tr>
</table>
</form>
<div id="mainbloc">
<h1 class="member">Manual Invoice</h1>
<form action="/cgi-bin/koha/maninvoice.pl" method="post">
<input type="hidden" name="bornum" value="<!-- TMPL_VAR NAME="bornum" -->">
<p><label class="label100">Borrowernumber </label><!-- TMPL_VAR NAME="bornum" --></p>
<p>
<label class="label100"><b>Type</label>
<select name="type">
<option value="L">Lost Item</option>
<option value="F">Fine</option>
<option value="A">Account Management Fee</option>
<option value="N">New Card</option>
<option value="M">Sundry</option>
<option value="REF">Cash Refund</option>
</select>
</p>
<p><label class="label100">Itemnumber</label><input type="text" name="itemnum"></p>
<p><label class="label100">Description</label><input type="text" name="desc" size="50"></p>
<p><label class="label100">Amount</label><input type="text" name="amount"></p>
<p><label class="label100"><input type="submit" class="button" name="add" value="Add"></p>
</table>
</form>
</div>
<!-- TMPL_INCLUDE Name="members-bottom.inc" -->

View File

@ -2,24 +2,26 @@
<div id="mainbloc">
<h1>Pay Fines for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></h1>
<form action="/cgi-bin/koha/pay.pl" method="post">
<table cellspacing="0" cellpadding="5" border="1">
<tr valign="top">
<td bgcolor="#99cc33" background="/images/background-mem.gif" colspan="4"><b>FINES &amp; CHARGES</b></td>
<td bgcolor="#99cc33" background="/images/background-mem.gif" colspan="4"><b>AMOUNT OWING</b></td>
<form action="/cgi-bin/koha/pay.pl" method="post">
<table>
<tr>
<th colspan="3">FINES &amp; CHARGES</th>
<th colspan="2">AMOUNT OWING</th>
</tr>
<!-- TMPL_LOOP NAME="loop_pay" -->
<tr valign="top">
<td><input type="hidden" name="bornum" value="<!-- TMPL_VAR NAME="bornum" -->"><input type="radio" name="payfine<!-- TMPL_VAR NAME="i" -->" value="no" checked="checked">Unpaid
<input type="radio" name="payfine<!-- TMPL_VAR NAME="i" -->" value="yes">Pay
<input type="radio" name="payfine<!-- TMPL_VAR NAME="i" -->" value="wo">Writeoff
<input type="hidden" name="itemnumber<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="itemnumber" -->">
<input type="hidden" name="accounttype<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="accounttype" -->">
<input type="hidden" name="amount<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="amount'}" -->">
<input type="hidden" name="out<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="amountoutstanding" -->">
<input type="hidden" name="bornum<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="bornum" -->">
<input type="hidden" name="accountno<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="accountno" -->">
<tr>
<td>
<input type="hidden" name="bornum" value="<!-- TMPL_VAR NAME="bornum" -->">
<input type="radio" name="payfine<!-- TMPL_VAR NAME="i" -->" value="no" checked="checked">Unpaid
<input type="radio" name="payfine<!-- TMPL_VAR NAME="i" -->" value="yes">Pay
<input type="radio" name="payfine<!-- TMPL_VAR NAME="i" -->" value="wo">Writeoff
<input type="hidden" name="itemnumber<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="itemnumber" -->">
<input type="hidden" name="accounttype<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="accounttype" -->">
<input type="hidden" name="amount<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="amount'}" -->">
<input type="hidden" name="out<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="amountoutstanding" -->">
<input type="hidden" name="bornum<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="bornum" -->">
<input type="hidden" name="accountno<!-- TMPL_VAR NAME="i" -->" value="<!-- TMPL_VAR NAME="accountno" -->">
</td>
<td><!-- TMPL_VAR NAME="description" --> <!-- TMPL_VAR NAME="title" --></td>
<td><!-- TMPL_VAR NAME="accounttype" --></td>
@ -28,17 +30,17 @@
</tr>
<!-- /TMPL_LOOP -->
<tr valign="top">
<td colspan="4" align="right"><b>Total Due</b></td>
<td><b><!-- TMPL_VAR NAME="total" --></b></td>
</tr>
<tr valign="top">
<th colspan="4" align="right">Total Due</th>
<th><!-- TMPL_VAR NAME="total" --></th>
</tr>
<tr>
<td colspan="5" align="right">
<input type="submit" name="submit" value="Pay" class="button"></td>
</tr>
</table>
</form>
<a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->">Return</a> to Member Record
<a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="bornum" -->" class="button member">Return to Member Record </a>
</div>
<!-- TMPL_INCLUDE NAME="members-bottom.inc" -->