Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-quicksearch-results.tmpl

52 lines
1.8 KiB
Cheetah

<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha &rsaquo; Patron Quick Search</title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
<script type="text/javascript">
// Set the value of the form field to the passed value and optionally shift
// focus and close the popup.
function FillForm(val,formname,formfield) {
document.forms[formname].elements[formfield].value = val;
// Uncomment below to shift focus after clicking link in popup.
document.forms[formname].elements[formfield].focus();
// Uncomment below to close popup after clicking link.
newwin.close();
}
</script>
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<div id="doc" class="yui-t7">
<div id="bd">
<div class="searchresults">
<table>
<tr>
<th>&nbsp;</th>
<th>Card</th>
<th>Name (Cat.)</th>
<th>Address</th>
</tr>
<!-- TMPL_IF NAME="resultsloop" -->
<!-- TMPL_LOOP NAME="resultsloop" -->
<!-- TMPL_IF NAME="background" -->
<tr class="highlight">
<!-- TMPL_ELSE -->
<tr>
<!-- /TMPL_IF -->
<td><form action="member-search-results.pl" method="get"><input type="button" value="Choose" title="Choose this Patron" onclick="window.opener.FillForm('<!-- TMPL_VAR NAME="cardnumber" -->','mainform','member'); return false;" /></form></td>
<td><!-- TMPL_VAR NAME="cardnumber" --></td>
<td><a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --></a> (<!-- TMPL_VAR NAME="categorycode" -->)</td>
<td><!-- TMPL_VAR NAME="streetaddress" --> <!-- TMPL_VAR NAME="city" --></td>
</tr>
<!-- /TMPL_LOOP -->
</table>
</div>
<!-- TMPL_ELSE -->No results found<!-- /TMPL_IF -->
</div>
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->