Bug 5917 : Swapping templates over
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / lateorders.tt
1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha &rsaquo; Acquisitions &rsaquo; Late orders</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 </head>
5 <body>
6 [% INCLUDE 'header.inc' %]
7 [% INCLUDE 'acquisitions-search.inc' %]
8
9 <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; <a href="lateorders.pl">Late orders</a></div>
10
11 <div id="doc3" class="yui-t2">
12    
13    <div id="bd">
14         <div id="yui-main">
15         <div class="yui-b">
16         
17 <h1>[% IF ( Supplier ) %][% Supplier %] : [% END %]Late orders</h1>
18 <div id="acqui_lateorders">
19
20 [% IF ( lateorders ) %]
21 <form action="lateorders.pl" name="claim" method="post">
22   <input type="hidden" name="op" value="send_alert" />
23         [% IF ( letters ) %]
24         <p><label for="letter_code">Claim using notice: </label><select name="letter_code" id="letter_code">
25           [% FOREACH letter IN letters %]
26                 <option value="[% letter.code %]">[% letter.name %]</option>
27           [% END %]
28           </select>
29         </p>
30         [% END %]
31     <table>
32         <tr>
33             <th>Order Date</th>
34             <th>Vendor</th>
35             <th>Information</th>
36             <th>Total cost</th>
37             <th>Basket</th>
38             <th>&nbsp;</th>
39         </tr>
40     [% FOREACH lateorder IN lateorders %]
41         <tr[% UNLESS ( loop.odd ) %] class="highlight"[% END %]> 
42             <td>
43                 [% lateorder.orderdate %]
44                 ([% lateorder.latesince %] days)
45             </td>
46             <td>
47                 [% lateorder.supplier %]
48             </td>
49             <td>
50                 <b>[% lateorder.title |html %]</b>
51                    [% IF ( lateorder.author ) %]<br/><i>Author:</i> [% lateorder.author %][% END %]
52                    [% IF ( lateorder.publisher ) %]
53                         <br/><i>Published by:</i> [% lateorder.publisher %]
54                         [% IF ( lateorder.publicationyear ) %]
55                             <i> in </i>[% lateorder.publicationyear %]
56                         [% END %]
57                    [% END %]
58             </td>
59             <td>
60                    [% lateorder.unitpricesupplier %]x[% lateorder.quantity %] = 
61                    [% lateorder.subtotal %]
62                     <p title="budget">[% lateorder.budget %]</p>
63             </td>
64             <td>
65                  <p><a href="basket.pl?basketno=[% lateorder.basketno %]" title="basket">
66                         [% lateorder.basketno %]
67                         </a>
68                  </p>
69                  <p title="branch">[% lateorder.branch %]</p>
70             </td>
71             <td>
72                 <input type="checkbox" name="claim_for" value="[% lateorder.ordernumber %]" />
73             </td>
74         </tr>
75         [% END %]
76         <tr> 
77             <th>Total</th>
78             <th colspan="2">&nbsp;</th>
79             <th>[% total %]</th>
80             <th>&nbsp;</th>
81             <td>
82                 <input type="submit" value="Claim Order" />
83             </td>
84         </tr>
85     </table>
86      </form>
87 [% ELSE %]<p>There are no late orders.</p>
88 [% END %]
89 </div>
90 </div>
91 </div>
92 <div class="yui-b">
93 <form action="lateorders.pl" method="get">
94 <fieldset class="brief">
95 <h4>Filter Results:</h4>
96 [% FOREACH ERROR_LOO IN ERROR_LOOP %]
97 [% IF ( ERROR_LOO.delay_digits ) %]<p class="error">The number of days ([% ERROR_LOO.bad_delay %]) must be a number between 0 and 999.</p>[% END %]
98 [% END %]
99 <ol><li><label for="delay">Order date:</label><input size="3" maxlength="3" id="delay" type="text" name="delay" value="[% delay %]" /> days ago</li>
100         <li><label for="supplierid">Vendor:</label>
101                 <select id="supplierid" size="1" tabindex="" name="supplierid">
102                         <option value=""/>
103                         [% FOREACH SUPPLIER_LOO IN SUPPLIER_LOOP %]
104                         <option value="[% SUPPLIER_LOO.id %]"[% IF ( SUPPLIER_LOO.selected ) %] selected="selected"[% END %]>[% SUPPLIER_LOO.name %]</option>
105                 [% END %]
106                 </select>
107 </ol>
108         <fieldset class="action"><input type="submit" value="filter" /></fieldset>
109 </fieldset>
110     </form>
111 [% INCLUDE 'acquisitions-menu.inc' %]
112 </div>
113 </div>
114 [% INCLUDE 'intranet-bottom.inc' %]