Bug 2780 - Capitalize strings consistently (serials)
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / serials / member-search.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Member Search &rsaquo; [% bookselname %]</title>
3 [% INCLUDE '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 id="ser_member-search" class="ser">
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="[% actionname %]" method="get">
25             <input type="hidden" name="subscriptionid" id="subscriptionid" value="[% subscriptionid %]" />
26                 <fieldset class="rows">
27                         <legend> Filter :</legend>
28                         <ol>
29                         <li><label for="member">Name:</label> <input type="hidden" name="surname" value="[% surname %]" />
30                         <input type="text" name="member" id="member" value="[% member %]" /></li>
31             <li><label for="branchcode"> Library:</label><select name="branchcode" id="branchcode">
32                         <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
33                         [% IF ( branchloo.selected ) %]
34                         <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]
35                         <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
36                         [% END %]</select></li>
37                         <li><label for="categorycode">Category:</label><select name="categorycode" id="categorycode">
38                         <option value="">Any</option>[% FOREACH categoryloo IN categoryloop %]
39                         [% IF ( categoryloo.selected ) %]
40                         <option value="[% categoryloo.categorycode %]" selected="selected">[% categoryloo.description %]</option>[% ELSE %]
41                         <option value="[% categoryloo.categorycode %]">[% categoryloo.description %]</option>[% END %]
42                         [% END %]</select></li>
43                         </ol>
44                         <fieldset class="action"><input type="submit" value="Search" /></fieldset>
45               </fieldset>
46           </form>
47 </div> 
48 [% IF ( resultsloop ) %]
49 <div id="searchheader" style="margin-top:.7em;"> <h3>Results [% from %] to [% to %] of [% numresults %] found for [% IF ( member ) %]'<span class="ex">[% member %]</span>'[% END %][% IF ( surname ) %]'<span class="ex">[% surname %]</span>'[% END %]</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                 [% FOREACH resultsloo IN resultsloop %]
63                 [% IF ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
64                 <td>[% resultsloo.cardnumber %] </td>
65                 <td>[% resultsloo.surname %], [% resultsloo.firstname %] </td>
66                 <td>[% resultsloo.branchcode %] </td>
67                 <td><a onclick="add_member([% subscriptionid %],[% resultsloo.borrowernumber %]); return false" href="/cgi-bin/koha/serials/routing.pl?subscriptionid=[% resultsloo.subscriptionid %]&amp;borrowernumber=[% resultsloo.borrowernumber %]&amp;op=add">Add</a></td></tr>
68                 [% END %]
69         </tbody>
70 </table>
71 [% IF ( multipage ) %]<div class="pages">[% paginationbar %]</div>[% END %]
72 </div>
73 [% ELSE %]
74 [% IF ( searching ) %]
75 <p>No results found</p>
76 [% END %]
77 [% END %]
78 <fieldset class="action"><a href="#" class="button close">Close</a></fieldset>
79 </div>
80
81 </div> 
82
83 [% INCLUDE 'intranet-bottom.inc' %]