Merge remote branch 'kc/new/enh/bug_5431' 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-history-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="from">From: </label> 
26                         <input type="text" size="10" id="from" name="from" value="[% from_placed_on %]" />
27                         <img src="[% themelang %]/lib/calendar/cal.gif" id="openCalendarFrom" style="cursor: pointer;" alt="Show Calendar" />
28                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
29                 </li>
30                 <li><label for="to">To: </label> 
31                         <input type="text" size="10" id="to" name="to" value="[% to_placed_on %]" />
32                         <img src="[% themelang %]/lib/calendar/cal.gif" id="openCalendarTo" style="cursor: pointer;" alt="Show Calendar" />
33                         <script type="text/javascript">
34                                 // return true if the date is blocked.
35                                 function disable_from(date) {var limit = get_Calendar_limit(date,'to'  ); return (limit && limit < date);}  // true or false
36                                 function disable_to  (date) {var limit = get_Calendar_limit(date,'from'); return (limit && limit > date);}  // true or false
37                                 Calendar.setup({
38                                         inputField : "from",
39                                         ifFormat : "[% DHTMLcalendar_dateformat %]",
40                                         button : "openCalendarFrom",
41                                         disableFunc : disable_from,
42                                         dateStatusFunc : disable_from
43                                 });
44                                 Calendar.setup({
45                                         inputField : "to",
46                                         ifFormat : "[% DHTMLcalendar_dateformat %]",
47                                         button : "openCalendarTo",
48                                         disableFunc : disable_to,
49                                         dateStatusFunc : disable_to
50                      });
51                         </script>
52                                 <div class="hint">[% INCLUDE 'date-format.inc' %]</div>
53                 </li>
54                 </ol>
55         </fieldset>
56         <fieldset class="action"><input type="submit" value="Search" /></fieldset>
57         </form>[% END %]
58         [% IF ( suggestions_loop ) %]<h1>Search Results</h1>
59         <div id="acqui_histsearch">
60                 <table>
61                         <tr>
62                                 <th>Basket</th>
63                                 <th>Basket group</th>
64                                 <th>Invoice Number</th>
65                                 <th>Summary</th>
66                                 <th>Vendor</th>
67                                 <th>Placed on</th>
68                                 <th>Received on</th>
69                                 <th>Quantity ordered</th>
70                                 <th>Unit cost</th>
71                         </tr>
72                         
73                         [% FOREACH suggestions_loo IN suggestions_loop %]
74                                 <tr>
75                     <td>[% suggestions_loo.basketname %] (<a href="basket.pl?basketno=[% suggestions_loo.basketno %]">[% suggestions_loo.basketno %]</a>)</td>
76                         <td>[% suggestions_loo.groupname %] (<a href="basketgroup.pl?booksellerid=[% suggestions_loo.id %]">[% suggestions_loo.basketgroupid %]</a>)</td>
77                                         <td>[% IF ( suggestions_loo.invoicenumber ) %]
78                                                 <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>
79                                             [% ELSE %]
80                                                 &nbsp;
81                                             [% END %]
82                                         </td>
83                                         <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% suggestions_loo.biblionumber %]">[% suggestions_loo.title |html %]</a>
84                         <br />[% suggestions_loo.author %]</td>
85                                         <td><a href="/cgi-bin/koha/acqui/supplier.pl?supplierid=[% suggestions_loo.id %]">[% suggestions_loo.name %]</a></td>
86                                         <td>[% suggestions_loo.creationdate %]</td>
87                                         <td>[% suggestions_loo.datereceived %]</td>
88                                         <td>[% suggestions_loo.quantity %]</td>
89                                         <td>[% suggestions_loo.ecost %]</td>
90                                 </tr>
91                         [% END %]
92                 </table>
93         </div>[% ELSE %][% END %]
94
95 </div>
96 </div>
97 <div class="yui-b">
98 [% INCLUDE 'acquisitions-menu.inc' %]
99 </div>
100 </div>
101 [% INCLUDE 'intranet-bottom.inc' %]