Merge remote-tracking branch 'kc/new/bug_6726' into kcmaster
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / histsearch.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo; [% IF ( suggestions_loop ) %]Orders search &rsaquo; Search Results[% ELSE %]Order search[% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 [% INCLUDE 'calendar.inc' %]
5 </head>
6 <body>
7 [% INCLUDE 'header.inc' %]
8 [% INCLUDE 'acquisitions-search.inc' %]
9
10 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> &rsaquo; <a href="/cgi-bin/koha/acqui/acqui-home.pl">Acquisitions</a> &rsaquo; [% IF ( suggestions_loop ) %]<a href="/cgi-bin/koha/acqui/histsearch.pl">Orders search</a> &rsaquo; Search Results[% ELSE %]Order search[% END %]</div>
11
12 <div id="doc3" class="yui-t2">
13    
14    <div id="bd">
15         <div id="yui-main">
16         <div class="yui-b">
17         
18                 [% UNLESS ( suggestions_loop ) %]<form action="/cgi-bin/koha/acqui/histsearch.pl" method="post">
19 <fieldset class="rows">
20         <legend>Search Orders</legend>
21                 <ol>
22                 <li><label for="title">Title: </label> <input type="text" name="title" id="title" value="[% title %]" /></li>
23                 <li><label for="author">Author: </label> <input type="text" name="author" id="author" value="[% author %]" /></li>
24                 <li><label for="name">Vendor: </label> <input type="text" name="name" id="name" value="[% name %]" /></li>
25                 <li><label for="basket">Basket: </label> <input type="text" name="basket" id="basket" value="[% basket %]" /></li>
26                 <li><label for="booksellerinvoicenumber ">Bookseller Invoice No: </label> <input type="text" name="booksellerinvoicenumber" id="booksellerinvoicenumber" value="[% booksellerinvoicenumber %]" /></li>
27                 <li><label for="from">From: </label> 
28                         <input type="text" size="10" id="from" name="from" value="[% from_placed_on %]" />
29                         <img src="[% themelang %]/lib/calendar/cal.gif" id="openCalendarFrom" style="cursor: pointer;" alt="Show Calendar" />
30                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
31                 </li>
32                 <li><label for="to">To: </label> 
33                         <input type="text" size="10" id="to" name="to" value="[% to_placed_on %]" />
34                         <img src="[% themelang %]/lib/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" alt="Show Calendar" />
35                         <script type="text/javascript">
36                                 // return true if the date is blocked.
37                                 function disable_from(date) {var limit = get_Calendar_limit(date,'to'  ); return (limit && limit < date);}  // true or false
38                                 function disable_to  (date) {var limit = get_Calendar_limit(date,'from'); return (limit && limit > date);}  // true or false
39                                 Calendar.setup({
40                                         inputField : "from",
41                                         ifFormat : "[% DHTMLcalendar_dateformat %]",
42                                         button : "openCalendarFrom",
43                                         disableFunc : disable_from,
44                                         dateStatusFunc : disable_from
45                                 });
46                                 Calendar.setup({
47                                         inputField : "to",
48                                         ifFormat : "[% DHTMLcalendar_dateformat %]",
49                                         button : "openCalendarTo",
50                                         disableFunc : disable_to,
51                                         dateStatusFunc : disable_to
52                      });
53                         </script>
54                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
55                 </li>
56                 </ol>
57         </fieldset>
58         <fieldset class="action"><input type="submit" value="Search" /></fieldset>
59         </form>[% END %]
60         [% IF ( suggestions_loop ) %]<h1>Search Results</h1>
61         <div id="acqui_histsearch">
62                 <table>
63                         <tr>
64                                 <th>Basket</th>
65                                 <th>Basket group</th>
66                                 <th>Invoice Number</th>
67                                 <th>Summary</th>
68                                 <th>Vendor</th>
69                                 <th>Placed on</th>
70                                 <th>Received on</th>
71                                 <th>Quantity ordered</th>
72                                 <th>Unit cost</th>
73                         </tr>
74                         
75                         [% FOREACH suggestions_loo IN suggestions_loop %]
76                                 <tr>
77                     <td>[% suggestions_loo.basketname %] (<a href="basket.pl?basketno=[% suggestions_loo.basketno %]">[% suggestions_loo.basketno %]</a>)</td>
78                         <td>[% suggestions_loo.groupname %] (<a href="basketgroup.pl?booksellerid=[% suggestions_loo.id %]">[% suggestions_loo.basketgroupid %]</a>)</td>
79                                         <td>[% IF ( suggestions_loo.invoicenumber ) %]
80                                                 <a href="/cgi-bin/koha/acqui/parcel.pl?invoice=[% suggestions_loo.invoicenumber %]&amp;supplierid=[% suggestions_loo.id %]&amp;datereceived=[% suggestions_loo.datereceived %]">[% suggestions_loo.invoicenumber %]</a>
81                                             [% ELSE %]
82                                                 &nbsp;
83                                             [% END %]
84                                         </td>
85                                         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% suggestions_loo.biblionumber %]">[% suggestions_loo.title |html %]</a>
86                         <br />[% suggestions_loo.author %]</td>
87                                         <td><a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% suggestions_loo.id %]">[% suggestions_loo.name %]</a></td>
88                                         <td>[% suggestions_loo.creationdate %]</td>
89                                         <td>[% suggestions_loo.datereceived %]</td>
90                                         <td>[% suggestions_loo.quantity %]</td>
91                                         <td>[% suggestions_loo.ecost %]</td>
92                                 </tr>
93                         [% END %]
94                 </table>
95         </div>[% ELSE %][% END %]
96
97 </div>
98 </div>
99 <div class="yui-b">
100 [% INCLUDE 'acquisitions-menu.inc' %]
101 </div>
102 </div>
103 [% INCLUDE 'intranet-bottom.inc' %]