Fix for Bug 4035: Today's checkouts grouped with previous checkouts
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / member-search.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Member Search &rsaquo; <!-- TMPL_VAR name="bookselname" --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
5 <!--
6
7 function add_member(subscriptionid,borrowernumber){
8      var myurl = "routing.pl?subscriptionid="+subscriptionid+"&borrowernumber="+borrowernumber+"&op=add";
9      window.opener.location.href = myurl;
10 }
11
12 //-->
13 </script>
14 <style type="text/css">
15    #custom-doc { width:36.46em;*width:35.53em;min-width:430px; margin:auto; text-align:left; padding: 1em; }
16    </style>
17 </head>
18 <body>
19 <div id="custom-doc" class="yui-t7">
20    
21 <div id="bd">
22 <div id="yui-main">
23 <div id="search" class="yui-g">
24         <form action="<!--TMPL_VAR Name="actionname"-->" method="get">
25                 <fieldset class="rows">
26                         <legend> Filter :</legend>
27                         <ol>
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>
42                         </ol>
43                         <fieldset class="action"><input type="submit" value="Search" /></fieldset>
44               </fieldset>
45           </form>
46 </div> 
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">
50
51 <table id="memberresultst">
52         <thead>
53                 <tr>
54                 <th>Card</th>
55                 <th>Name</th>
56                 <th>Library</th>
57                 <th>Add</th>
58                 </tr>
59         </thead>
60         <tbody>
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" -->&amp;borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->&amp;op=add">Add</a></td></tr>
68                 <!-- /TMPL_LOOP -->
69         </tbody>
70 </table>
71 <div class="pages"><!--TMPL_IF Name="multipage"--><!--TMPL_VAR Name="paginationbar" --><!--/TMPL_IF--></div>
72 </div>
73 <!-- TMPL_ELSE -->
74 <!-- TMPL_IF NAME="searching" -->
75 <p>No results found</p>
76 <!-- /TMPL_IF -->
77 <!-- /TMPL_IF -->
78 <fieldset class="action"><a href="#" class="button close">Close</a></fieldset>
79 </div>
80
81 </div> 
82
83 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->