1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Member Search › <!-- TMPL_VAR name="bookselname" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
7 function add_member(subscriptionid,borrowernumber){
8 var myurl = "routing.pl?subscriptionid="+subscriptionid+"&borrowernumber="+borrowernumber+"&op=add";
9 window.opener.location.href = myurl;
14 <style type="text/css">
15 #custom-doc { width:36.46em;*width:35.53em;min-width:430px; margin:auto; text-align:left; padding: 1em; }
19 <div id="custom-doc" class="yui-t7">
23 <div id="search" class="yui-g">
24 <form action="<!--TMPL_VAR Name="actionname"-->" method="get">
25 <fieldset class="rows">
26 <legend> Filter :</legend>
28 <li><label for="member">Name:</label> <input type="hidden" name="surname" value="<!-- TMPL_VAR name="surname"-->" />
29 <input type="text" name="member" id="member" value="<!-- TMPL_VAR name="member"-->" /></li>
30 <li><label for="branchcode"> Library :</label><select name="branchcode" id="branchcode">
31 <option value="">Any</option><!-- TMPL_LOOP name="branchloop" -->
32 <!-- TMPL_IF NAME="selected" -->
33 <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="branchname" --></option><!-- TMPL_ELSE -->
34 <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="branchname" --></option><!-- /TMPL_IF -->
35 <!-- /TMPL_LOOP --></select></li>
36 <li><label for="categorycode">Category:</label><select name="categorycode" id="categorycode">
37 <option value="">Any</option><!-- TMPL_LOOP name="categoryloop" -->
38 <!-- TMPL_IF NAME="selected" -->
39 <option value="<!-- TMPL_VAR name="categorycode" -->" selected="selected"><!-- TMPL_VAR name="description" --></option><!-- TMPL_ELSE -->
40 <option value="<!-- TMPL_VAR name="categorycode" -->"><!-- TMPL_VAR name="description" --></option><!-- /TMPL_IF -->
41 <!-- /TMPL_LOOP --></select></li>
43 <fieldset class="action"><input type="submit" value="Search" /></fieldset>
47 <!-- TMPL_IF NAME="resultsloop" -->
48 <div id="searchheader" style="margin-top:.7em;"> <h3>Results <!-- TMPL_VAR Name ="from" --> to <!-- TMPL_VAR Name ="to" --> of <!-- TMPL_VAR Name ="numresults" --> found for <!--TMPL_IF Name="member"-->'<span class="ex"><!-- TMPL_VAR NAME="member" --></span>'<!--/TMPL_IF--><!--TMPL_IF Name="surname"-->'<span class="ex"><!-- TMPL_VAR NAME="surname" --></span>'<!--/TMPL_IF--></h3></div>
49 <div class="searchresults">
51 <table id="memberresultst">
61 <!-- TMPL_LOOP NAME="resultsloop" -->
62 <!--TMPL_IF Name="__odd__"--><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
63 <td><!-- TMPL_VAR NAME="cardnumber" --> </td>
64 <td><!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --> </td>
65 <td><!-- TMPL_VAR NAME="branchcode" --> </td>
66 <td><a onclick="add_member(<!-- TMPL_VAR
67 NAME="subscriptionid" -->,<!-- TMPL_VAR NAME="borrowernumber" -->); return false" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=<!-- TMPL_VAR NAME="subscriptionid" -->&borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&op=add">Add</a></td></tr>
71 <div class="pages"><!--TMPL_IF Name="multipage"--><!--TMPL_VAR Name="paginationbar" --><!--/TMPL_IF--></div>
74 <!-- TMPL_IF NAME="searching" -->
75 <p>No results found</p>
78 <fieldset class="action"><a href="#" class="button close">Close</a></fieldset>
83 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->