24f830d6c1
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
77 lines
2.1 KiB
Text
77 lines
2.1 KiB
Text
[% INCLUDE 'doc-head-open.inc' %]
|
|
<title>Koha › Budget Owner Search</title>
|
|
[% INCLUDE 'doc-head-close.inc' %]
|
|
<style type="text/css">
|
|
#custom-doc { width:44.46em;*width:43.39em;min-width:578px; margin:auto; text-align:left; }
|
|
</style>
|
|
|
|
<script type="text/javascript">
|
|
//<![CDATA[
|
|
|
|
// modify parent window owner element
|
|
function returnOwner(ownerId, ownerName){
|
|
var top1 = top.opener;
|
|
top1.document.getElementById('budget_owner_name').innerHTML = ownerName;
|
|
top1.document.getElementById('budget_owner_id').value = ownerId;
|
|
window.close();
|
|
}
|
|
//]]>
|
|
</script>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
<div id="custom-doc" class="yui-t7">
|
|
<div id="bd">
|
|
<div class="yui-g">
|
|
|
|
|
|
<h3>Search for Budget Owner</h3>
|
|
<form action="/cgi-bin/koha/admin/aqbudget_owner_search.pl" method="post">
|
|
<fieldset>
|
|
<input type="text" name="member" id="member" value="[% member %]" class="focus" />
|
|
|
|
|
|
<!--
|
|
Ordered by
|
|
<select name="orderby">
|
|
<option value="surname,firstname">Surname</option>
|
|
<option value="cardnumber">Cardnumber</option>
|
|
</select>
|
|
-->
|
|
|
|
<input type="submit" class="button" value="Search" /></fieldset>
|
|
<div class="hint">Only staff with superlibrarian or acquisitions permissions are returned in the search results</div>
|
|
|
|
</form>
|
|
|
|
|
|
[% IF ( results ) %]
|
|
<p>Searched for <span class="ex">[% member %]</span>, [% numresults %] patron(s) found:</p>
|
|
<table>
|
|
<tr>
|
|
<th>Cardnumber</th>
|
|
<th>Name</th>
|
|
<th>Branch</th>
|
|
<th>Categorycode</th>
|
|
<th>Select?</th>
|
|
</tr>
|
|
|
|
[% FOREACH resultsloo IN resultsloop %]
|
|
[% IF ( resultsloo.toggle ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
|
|
<td>[% resultsloo.cardnumber %]</td>
|
|
<td>[% resultsloo.surname %], [% resultsloo.firstname %]</td>
|
|
<td>[% resultsloo.branchcode %]</td>
|
|
<td>[% resultsloo.categorycode %]</td>
|
|
<td>
|
|
<input type="button" value="Select" onclick="returnOwner('[% resultsloo.budget_owner_id %]', '[% resultsloo.budget_owner_name %]');" />
|
|
</td>
|
|
</tr>
|
|
[% END %]
|
|
</table>
|
|
[% END %]
|
|
|
|
<div id="closewindow"><a href="#" class="close">Cancel</a></div>
|
|
</div>
|
|
</div>
|
|
[% INCLUDE 'intranet-bottom.inc' %]
|