Bug 5917 / Bug 6085 : Fixing not being able to change language
[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             <input type="hidden" name="subscriptionid" id="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid"-->" />
26                 <fieldset class="rows">
27                         <legend> Filter :</legend>
28                         <ol>
29                         <li><label for="member">Name:</label> <input type="hidden" name="surname" value="<!-- TMPL_VAR name="surname"-->" />
30                         <input type="text" name="member" id="member" value="<!-- TMPL_VAR name="member"-->" /></li>
31                         <li><label for="branchcode"> Library :</label><select name="branchcode" id="branchcode">
32                         <option value="">Any</option><!-- TMPL_LOOP name="branchloop" -->
33                         <!-- TMPL_IF NAME="selected" -->
34                         <option value="<!-- TMPL_VAR name="value" -->" selected="selected"><!-- TMPL_VAR name="branchname" --></option><!-- TMPL_ELSE -->
35                         <option value="<!-- TMPL_VAR name="value" -->"><!-- TMPL_VAR name="branchname" --></option><!-- /TMPL_IF -->
36                         <!-- /TMPL_LOOP --></select></li>
37                         <li><label for="categorycode">Category:</label><select name="categorycode" id="categorycode">
38                         <option value="">Any</option><!-- TMPL_LOOP name="categoryloop" -->
39                         <!-- TMPL_IF NAME="selected" -->
40                         <option value="<!-- TMPL_VAR name="categorycode" -->" selected="selected"><!-- TMPL_VAR name="description" --></option><!-- TMPL_ELSE -->
41                         <option value="<!-- TMPL_VAR name="categorycode" -->"><!-- TMPL_VAR name="description" --></option><!-- /TMPL_IF -->
42                         <!-- /TMPL_LOOP --></select></li>
43                         </ol>
44                         <fieldset class="action"><input type="submit" value="Search" /></fieldset>
45               </fieldset>
46           </form>
47 </div> 
48 <!-- TMPL_IF NAME="resultsloop" -->
49 <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>
50 <div class="searchresults">
51
52 <table id="memberresultst">
53         <thead>
54                 <tr>
55                 <th>Card</th>
56                 <th>Name</th>
57                 <th>Library</th>
58                 <th>Add</th>
59                 </tr>
60         </thead>
61         <tbody>
62                 <!-- TMPL_LOOP NAME="resultsloop" -->
63                 <!--TMPL_IF Name="__odd__"--><tr class="highlight"><!--TMPL_ELSE--><tr><!-- /TMPL_IF -->
64                 <td><!-- TMPL_VAR NAME="cardnumber" --> </td>
65                 <td><!-- TMPL_VAR NAME="surname" -->, <!-- TMPL_VAR NAME="firstname" --> </td>
66                 <td><!-- TMPL_VAR NAME="branchcode" --> </td>
67                 <td><a onclick="add_member(<!-- TMPL_VAR
68                 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>
69                 <!-- /TMPL_LOOP -->
70         </tbody>
71 </table>
72 <!--TMPL_IF Name="multipage"--><div class="pages"><!--TMPL_VAR Name="paginationbar" --></div><!--/TMPL_IF-->
73 </div>
74 <!-- TMPL_ELSE -->
75 <!-- TMPL_IF NAME="searching" -->
76 <p>No results found</p>
77 <!-- /TMPL_IF -->
78 <!-- /TMPL_IF -->
79 <fieldset class="action"><a href="#" class="button close">Close</a></fieldset>
80 </div>
81
82 </div> 
83
84 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->