Bug 5345: DataTables integration in acquisition module [13]
[koha.git] / koha-tmpl / intranet-tmpl / prog / en / modules / acqui / spent.tt
1 [% USE KohaDates %]
2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha &rsaquo; Acquisitions &rsaquo; Spent</title>
4 <link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" />
5 [% INCLUDE 'doc-head-close.inc' %]
6 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script>
7 [% INCLUDE 'datatables-strings.inc' %]
8 <script type="text/javascript" src="[% themelang %]/js/datatables.js"></script>
9 <script type="text/javascript">
10 //<![CDATA[
11  $(document).ready(function() {
12     var spent = $("#spent").dataTable($.extend(true, {}, dataTablesDefaults, {
13         "sPaginationType": "four_button"
14     } ) );
15  });
16  //]]>
17 </script>
18 </head>
19 <body id="acq_spent" class="acq">
20 [% INCLUDE 'header.inc' %]
21 [% INCLUDE 'acquisitions-search.inc' %]
22
23 <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; Spent - [% fund_code %]</div>
24
25 <div id="doc3" class="yui-t2">
26
27 <div id="bd">
28     <div id="yui-main">
29         <div class="yui-b">
30
31 <h1>Fund: [% fund_code %]</h1>
32 <h2>Spent</h2>
33
34
35 <table cellspacing="0" cellpadding="0" border="0" id="spent" class="collapse">
36     <thead>
37     <tr>
38         <th> Title </th>
39         <th> Order </th>
40         <th> Vendor </th>
41         <th> Invoice </th>
42         <th> Itemtype </th>
43         <th> Received </th>
44     <th> Unit price </th>
45     <th> Freight per item </th>
46     <th> Date ordered </th>
47     <th> Date received </th>
48         <th> Subtotal </th>
49     </tr>
50     </thead>
51
52 [% FOREACH order IN spent %]
53     [% IF loop.odd %]
54     <tr class="highlight">
55     [% ELSE %]
56     <tr>
57     [% END %]
58
59         <td class="cell">
60             [% order.title %]
61         </td>
62         <td class="cell">
63             <a href="/cgi-bin/koha/acqui/orderreceive.pl?ordernumber=[% order.ordernumber %]&amp;biblio=[% order.biblionumber %]&amp;invoice=[% order.booksellerinvoicenumber %]&amp;booksellerid=[% order.booksellerid %]&amp;catview=yes">[% order.ordernumber %]</a>
64         </td>
65         <td class="cell">
66             <a href="/cgi-bin/koha/acqui/supplier.pl?booksellerid=[% order.booksellerid %]">[% order.booksellerid %]</a>
67         </td>
68         <td class="cell">
69             <a href="/cgi-bin/koha/acqui/parcel.pl?invoice=[% order.booksellerinvoicenumber %]&amp;booksellerid=[% order.booksellerid %]&amp;datereceived=[% order.datereceived %]">[% order.booksellerinvoicenumber %]</a>
70         </td>
71         <td class="cell">
72             [% order.itype %]
73         </td>
74         <td class="cell">
75             [% order.quantityreceived %]
76         </td>
77         <td class="cell" align="right">
78             [% order.unitprice %]
79         </td>
80         <td class="cell" align="right">
81             [% order.freight %]
82         </td>
83         <td class="cell" align="right">
84             [% order.entrydate | $KohaDates %]
85         </td>
86         <td class="cell" align="right">
87             [% order.datereceived | $KohaDates %]
88         </td>
89         <td class="cell" align="right">
90             [% order.subtotal %]
91         </td>
92     </tr>
93 [% END %]
94     <tfoot>
95         <tr valign="top">
96         <td> Total </td>
97         <td> </td>
98         <td> </td>
99         <td> </td>
100         <td> </td>
101         <td> </td>
102         <td> </td>
103         <td> </td>
104         <td> </td>
105         <td> </td>
106         <td align="right">
107                 [% total %]
108         </td>
109         </tr>
110     </tfoot>
111
112 </table>
113
114 </div>
115 </div>
116 <div class="yui-b">
117 [% INCLUDE 'acquisitions-menu.inc' %]
118 </div>
119 </div>
120 [% INCLUDE 'intranet-bottom.inc' %]