70af459372
Remove unnecessary db calls and processing from acqui-home.pl Do not duplicate processing of fields Declare variables closer to use Remove unnecessary holding vars Replace some anonymous var names by something more meaningful Do not generate a toggle variable use Template's LOOP vars Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
112 lines
3.9 KiB
Cheetah
112 lines
3.9 KiB
Cheetah
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
|
|
<title>Koha › Acquisitions</title>
|
|
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
|
|
</head>
|
|
<body>
|
|
<!-- TMPL_INCLUDE NAME="header.inc" -->
|
|
<!-- TMPL_INCLUDE NAME="acquisitions-search.inc" -->
|
|
|
|
<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> › </div>
|
|
|
|
<div id="doc3" class="yui-t2">
|
|
|
|
<div id="bd">
|
|
<div id="yui-main">
|
|
<div class="yui-b">
|
|
|
|
<!-- TMPL_INCLUDE NAME="acquisitions-toolbar.inc" -->
|
|
|
|
<h1>Acquisitions</h1>
|
|
<div class="yui-g">
|
|
<div class="yui-u first">
|
|
<div id="acqui_acqui_home_order">
|
|
<fieldset>
|
|
<legend>Manage orders</legend>
|
|
<!-- TMPL_IF name="nobudget" -->
|
|
<!-- TMPL_IF NAME="CAN_user_parameters" -->
|
|
<span class="problem">You must <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">define a budget</a> in Administration</span>
|
|
<!-- TMPL_ELSE -->
|
|
<span class="problem">Your administrator must define a budget in Administration</span>
|
|
<!-- /TMPL_IF -->
|
|
<form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
|
|
<p><label for="supplierpage">Vendor </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
|
|
<input type="submit" value="Search" />
|
|
</p>
|
|
</form>
|
|
<!-- TMPL_ELSE -->
|
|
<form name="findsupplier" action="/cgi-bin/koha/acqui/booksellers.pl" method="post">
|
|
<p><label for="supplierpage">Vendor: </label><input type="text" size="25" name="supplier" id="supplierpage" class="focus" />
|
|
<input type="submit" value="Search" />
|
|
</p>
|
|
</form>
|
|
|
|
<!-- /TMPL_IF -->
|
|
</fieldset>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="yui-u">
|
|
|
|
<!-- TMPL_IF name="loop_budget" -->
|
|
|
|
<h3>All available funds<!-- TMPL_IF NAME="branchname" --> for <!-- TMPL_VAR NAME="branchname" --> branch<!-- /TMPL_IF --></h3>
|
|
|
|
<!-- <a href="/cgi-bin/koha/admin/aqbookfund.pl" title="[ Manage funds ]">[ Manage ]</a>
|
|
<a href="/cgi-bin/koha/admin/budgetperiods.pl">manage budgets</a><br><br> -->
|
|
|
|
|
|
|
|
<div id="BudgetsAndFunds">
|
|
<table id="accounts">
|
|
<thead>
|
|
<tr>
|
|
<th>Fund</th>
|
|
<th>Owner</th>
|
|
<th>Branch</th>
|
|
<th>Amount</th>
|
|
<th>Ordered</th>
|
|
<th>Spent</th>
|
|
<th>Avail</th>
|
|
</tr>
|
|
</thead>
|
|
<tfoot>
|
|
<tr>
|
|
<th>Total</th>
|
|
<th> </th>
|
|
<th> </th>
|
|
<th align="right" ><!-- TMPL_VAR name="total" --></th>
|
|
<th align="right" ><!-- TMPL_VAR name="totordered" --></th>
|
|
<th align="right" ><!-- TMPL_VAR name="totspent" --></th>
|
|
<th align="right" ><!-- TMPL_VAR name="totavail" --></th>
|
|
</tr>
|
|
</tfoot>
|
|
<tbody>
|
|
<!-- TMPL_LOOP name="loop_budget" -->
|
|
<!--TMPL_IF NAME="__odd__" -->
|
|
<tr>
|
|
<!--TMPL_ELSE-->
|
|
<tr class="highlight">
|
|
<!--/TMPL_IF-->
|
|
<td align="center"><!-- TMPL_VAR name="budget_code" --></td>
|
|
<td align="center"><!-- TMPL_VAR name="budget_owner" --></td>
|
|
<td align="center"><!-- TMPL_VAR name="budget_branchname" --></td>
|
|
<td align="right" ><!-- TMPL_VAR name="budget_amount" --></td>
|
|
<td align="right" ><!-- TMPL_VAR name="budget_ordered" --></td>
|
|
<td align="right" ><!-- TMPL_VAR name="budget_spent" --></td>
|
|
<td align="right" ><!-- TMPL_VAR name="budget_avail" --></td>
|
|
</tr>
|
|
<!-- /TMPL_LOOP -->
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- /TMPL_IF -->
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="yui-b">
|
|
<!-- TMPL_INCLUDE NAME="acquisitions-menu.inc" -->
|
|
</div>
|
|
</div>
|
|
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
|