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, address2, city, state, zipcode, country) {
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?borrowernumber=' + 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.address2.value = address2;
34 form.city.value = city;
35 form.state.value = state;
36 form.zipcode.value = zipcode;
37 form.country.value = country;
39 form.guarantorsearch.value = 'Change';
46 <div id="custom-doc" class="yui-t7">
51 <h3>Search for guarantor</h3>
52 <form action="/cgi-bin/koha/members/guarantor_search.pl" method="post">
54 <input type="hidden" name="category_type" id="category_type" value="<!-- TMPL_VAR NAME="category_type" -->" />
55 <input type="text" name="member" id="member" value="<!-- TMPL_VAR NAME="member" -->" class="focus" /> Ordered by
56 <select name="orderby">
57 <option value="surname,firstname">Surname</option>
58 <option value="cardnumber">Cardnumber</option>
59 </select> <input type="submit" class="button" value="Search" /></fieldset>
62 <!--TMPL_IF NAME="results" -->
63 <p>Searched for <span class="ex"><!-- TMPL_VAR NAME="member" --></span>, <!-- TMPL_VAR Name ="numresults" --> patron(s) found:</p>
68 <th>Date of birth</th>
72 <!-- TMPL_LOOP NAME="resultsloop" -->
74 <td><!-- TMPL_VAR NAME="cardnumber" --></td>
76 <!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" -->
78 <td><!-- TMPL_VAR NAME="dateofbirth" --></td>
79 <td><p><!-- TMPL_VAR NAME="address" --> <!-- TMPL_VAR NAME="address2" --> <!-- TMPL_VAR NAME="city" --> <!-- TMPL_VAR NAME="state" --> <!-- TMPL_VAR NAME="zipcode" --> <!-- TMPL_VAR NAME="country" --></p></td>
82 <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="address2" ESCAPE=JS -->', '<!-- TMPL_VAR NAME="city" ESCAPE=JS -->', '<!-- TMPL_VAR NAME="state" ESCAPE=JS -->','<!-- TMPL_VAR NAME="zipcode" ESCAPE=JS -->','<!-- TMPL_VAR NAME="country" ESCAPE=JS -->'); return false;" value="Select"/>
90 <div id="closewindow"><a href="#" class="close">Cancel</a></div>
93 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->