Bug #6143 - New feature: capability to limit the RSS results
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / admin / aqbudget_owner_search.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Budget Owner Search</title>
3 [% INCLUDE '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; }
6     </style>
7
8 <script type="text/javascript">
9 //<![CDATA[
10
11 // modify parent window owner element
12 function returnOwner(ownerId, ownerName){
13     var top1 = top.opener;
14     top1.document.getElementById('budget_owner_name').innerHTML = ownerName;
15     top1.document.getElementById('budget_owner_id').value = ownerId;
16     window.close();
17 }
18 //]]>
19 </script>
20
21
22 </head>
23 <body>
24 <div id="custom-doc" class="yui-t7">
25    <div id="bd">
26         <div class="yui-g">
27
28
29 <h3>Search for Budget Owner</h3>
30         <form action="/cgi-bin/koha/admin/aqbudget_owner_search.pl" method="post">
31                 <fieldset>
32                 <input type="text" name="member" id="member" value="[% member %]" class="focus" />
33
34
35 <!--
36  Ordered by
37                 <select name="orderby">
38                         <option value="surname,firstname">Surname</option>
39                         <option value="cardnumber">Cardnumber</option>
40                 </select>
41 -->
42
43 <input type="submit" class="button" value="Search" /></fieldset>
44 <div class="hint">Only staff with superlibrarian or acquisitions permissions are returned in the search results</div>
45
46         </form>
47
48
49 [% IF ( results ) %]
50         <p>Searched for <span class="ex">[% member %]</span>, [% numresults %] patron(s) found:</p>
51         <table>
52                 <tr>
53                         <th>Cardnumber</th>
54                         <th>Name</th>
55                         <th>Branch</th>
56                         <th>Categorycode</th>
57             <th>Select?</th>
58                 </tr>
59
60                 [% FOREACH resultsloo IN resultsloop %]
61             [% IF ( resultsloo.toggle ) %]<tr>[% ELSE %]<tr class="highlight">[% END %]
62                                 <td>[% resultsloo.cardnumber %]</td>
63                 <td>[% resultsloo.surname %], [% resultsloo.firstname %]</td>
64                                 <td>[% resultsloo.branchcode %]</td>
65                                 <td>[% resultsloo.categorycode %]</td>
66                 <td>
67                  <input type="button" value="Select" onclick="returnOwner('[% resultsloo.budget_owner_id %]', '[% resultsloo.budget_owner_name %]');"  />
68                 </td>
69                         </tr>
70                 [% END %]
71         </table>
72 [% END %]
73
74 <div id="closewindow"><a href="#" class="close">Cancel</a></div>
75 </div>
76 </div>
77 [% INCLUDE 'intranet-bottom.inc' %]