Koha/koha-tmpl/intranet-tmpl/prog/en/modules/members/member-quicksearch-results.tmpl
Joshua Ferraro d08387dd28 first go at moving templates to a modules/ dir
Signed-off-by: Chris Cormack <crc@liblime.com>
2007-08-23 21:11:27 -05:00

46 lines
1.7 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>
<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 -->
<!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->