1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Guarantor Search</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <style type="text/css">
5 #custom-doc { width:44.46em;*width:43.39em;min-width:578px; margin:auto; text-align:left; }
7 <script type="text/javascript">
9 function fillguarantor(id, surname, firstname, streetnumber, address, city, zipcode) {
10 var $ = window.opener.$;
11 var form = $('#entryform').get(0);
13 if (form.guarantorid.value) {
14 $("#contact-details").find('a').remove();
15 $("#contactname, #contactfirstname").parent().find('span').remove();
18 form.guarantorid.value = id;
22 .after('<a target="blank" href="/cgi-bin/koha/members/moremember.pl?bornum=' + id + '">' + id + '</a>');
26 .before('<span>' + surname + '</span>').get(0).type = 'hidden';
27 $(form.contactfirstname)
29 .before('<span>' + firstname + '</span>').get(0).type = 'hidden';
31 form.streetnumber.value = streetnumber;
32 form.address.value = address;
33 form.city.value = city;
34 form.zipcode.value = zipcode;
36 form.guarantorsearch.value = 'Change';
43 <div id="custom-doc" class="yui-t7">
48 <h3>Search for guarantor</h3>
49 <form action="/cgi-bin/koha/members/guarantor_search.pl" method="post">
51 <input type="text" name="member" id="member" value="<!-- TMPL_VAR NAME="member" -->" class="focus" /> Ordered by
52 <select name="orderby">
53 <option value="surname,firstname">Surname</option>
54 <option value="cardnumber">Cardnumber</option>
55 </select> <input type="submit" class="button" value="Search" /></fieldset>
58 <!--TMPL_IF NAME="results" -->
59 <p>Searched for <span class="ex"><!-- TMPL_VAR NAME="member" --></span>, <!-- TMPL_VAR Name ="numresults" --> patron(s) found:</p>
64 <th>Date of birth</th>
68 <!-- TMPL_LOOP NAME="resultsloop" -->
70 <td><!-- TMPL_VAR NAME="cardnumber" --></td>
72 <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" -->
74 <td><!-- TMPL_VAR NAME="dateofbirth" --></td>
75 <td><p><!-- TMPL_VAR NAME="address" --> <!-- TMPL_VAR NAME="city" --></p></td>
78 <input type="button" onclick="fillguarantor('<!-- TMPL_VAR NAME="borrowernumber" -->', '<!-- TMPL_VAR NAME="surname" ESCAPE=JS -->', '<!-- TMPL_VAR NAME="firstname" ESCAPE=JS -->', '<!-- TMPL_VAR NAME="streetnumber" ESCAPE=JS -->', '<!-- TMPL_VAR NAME="address" ESCAPE=JS -->', '<!-- TMPL_VAR NAME="city" ESCAPE=JS -->', '<!-- TMPL_VAR NAME="zipcode" ESCAPE=JS -->'); return false;" value="Select"/>
86 <div id="closewindow"><a href="#" class="close">Cancel</a></div>
89 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->