add call to doc-head-open.inc and doc-head-close.inc
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / members / member-quicksearch-results.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->Koha -- Patron Quick Search<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
2
3 <script type="text/javascript">
4   // Set the value of the form field to the passed value and optionally shift
5         // focus and close the popup.
6         function FillForm(val,formname,formfield) {
7         
8                 document.forms[formname].elements[formfield].value = val;
9
10                 // Uncomment below to shift focus after clicking link in popup.
11                 document.forms[formname].elements[formfield].focus();
12                 
13                 // Uncomment below to close popup after clicking link.
14                 newwin.close();
15         }
16 </script>
17
18 <table>
19   <tr>
20         <th>&nbsp;</th>
21     <th>Card</th>
22     <th>Name (Cat.)</th>
23     <th>Address</th>
24   </tr>
25   <!-- TMPL_IF NAME="resultsloop" -->
26   <!-- TMPL_LOOP NAME="resultsloop" -->
27     <!-- TMPL_IF NAME="background" -->
28     <tr class="highlight">
29     <!-- TMPL_ELSE -->
30     <tr>
31     <!-- /TMPL_IF -->
32          <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>
33       <td><!-- TMPL_VAR NAME="cardnumber" --></td>
34       <td><a href="/cgi-bin/koha/members/moremember.pl?bornum=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --></a> (<!-- TMPL_VAR NAME="categorycode" -->)</td>
35       <td><!-- TMPL_VAR NAME="streetaddress" --> <!-- TMPL_VAR NAME=city --></td>
36     </tr>
37   <!-- /TMPL_LOOP --></table>
38   <!-- TMPL_ELSE -->No results found<!-- /TMPL_IF -->
39
40
41 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->