Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbudget_owner_search.tmpl
Lars Wirzenius 4523a2df0d Fix file permissions: if it is not a script, it should not be executable.
Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
2010-04-16 00:40:34 -04:00

77 lines
2.3 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Budget Owner Search</title>
<!-- TMPL_INCLUDE NAME="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="<!-- TMPL_VAR NAME="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>
<!--TMPL_IF NAME="results" -->
<p>Searched for <span class="ex"><!-- TMPL_VAR NAME="member" --></span>, <!-- TMPL_VAR Name ="numresults" --> patron(s) found:</p>
<table>
<tr>
<th>Cardnumber</th>
<th>Name</th>
<th>Branch</th>
<th>Categorycode</th>
<th>Select?</th>
</tr>
<!-- TMPL_LOOP NAME="resultsloop" -->
<!-- TMPL_IF NAME="toggle" --><tr><!-- TMPL_ELSE --><tr class="highlight"><!-- /TMPL_IF -->
<td><!-- TMPL_VAR NAME="cardnumber" --></td>
<td><!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --></td>
<td><!-- TMPL_VAR NAME="branchcode" --></td>
<td><!-- TMPL_VAR NAME="categorycode" --></td>
<td>
<input type="button" value="Select" onclick="returnOwner('<!-- TMPL_VAR NAME="budget_owner_id" -->', '<!-- TMPL_VAR NAME="budget_owner_name" -->');" />
</td>
</tr>
<!-- /TMPL_LOOP -->
</table>
<!--/TMPL_IF-->
<div id="closewindow"><a href="#" class="close">Cancel</a></div>
</div>
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->