Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudget_owner_search.tt
Katrin Fischer 27dd804725 Bug 7760: Add unique ids and a module class to all administration pages
This is the first patch for bug 7760 and touches all pages in administration.
This adds a unique id "admin_<filename>" and a class "admin" to the body tag of
each page in administration.

Note: aqcontract can only be accessed from the acquisition module, so I made it acq
instead of admin.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
2012-03-22 18:12:18 +01:00

77 lines
2.2 KiB
Text

[% INCLUDE 'doc-head-open.inc' %]
<title>Koha &rsaquo; 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 id="admin_aqbudget_owner_search" class="admin">
<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>Library</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' %]