|
Lines 1-10
Link Here
|
| 1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
| 2 |
<title>Koha › Acquisitions › Late orders</title> |
2 |
<title>Koha › Acquisitions › Late orders</title> |
|
|
3 |
<link rel="stylesheet" type="text/css" href="[% themelang %]/css/datatables.css" /> |
| 3 |
[% INCLUDE 'doc-head-close.inc' %] |
4 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
5 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.dataTables.min.js"></script> |
| 6 |
[% INCLUDE 'datatables-strings.inc' %] |
| 7 |
<script type="text/javascript" src="[% themelang %]/js/datatables.js"></script> |
| 4 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
8 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
| 5 |
<script type="text/javascript"> |
9 |
<script type="text/javascript"> |
| 6 |
//<![CDATA[ |
10 |
//<![CDATA[ |
| 7 |
$(document).ready(function() { |
11 |
$(document).ready(function() { |
|
|
12 |
var late_orderst = $("#late_orders").dataTable($.extend(true, {}, dataTablesDefaults, { |
| 13 |
"aoColumnDefs": [ |
| 14 |
{ "aTargets": [ -1 ], "bSortable": false, "bSearchable": false }, |
| 15 |
], |
| 16 |
"sPaginationType": "four_button" |
| 17 |
} ) ); |
| 18 |
|
| 8 |
$("input:checkbox[name=claim_for]").click(function(){ |
19 |
$("input:checkbox[name=claim_for]").click(function(){ |
| 9 |
var supplierid = $(this).attr('supplierid'); |
20 |
var supplierid = $(this).attr('supplierid'); |
| 10 |
if ( $("input:checkbox[name=claim_for]:checked").length > 0) { |
21 |
if ( $("input:checkbox[name=claim_for]:checked").length > 0) { |
|
Lines 58-63
$(document).ready(function() {
Link Here
|
| 58 |
</p> |
69 |
</p> |
| 59 |
[% END %] |
70 |
[% END %] |
| 60 |
<table id="late_orders"> |
71 |
<table id="late_orders"> |
|
|
72 |
<thead> |
| 61 |
<tr> |
73 |
<tr> |
| 62 |
<th>Order Date</th> |
74 |
<th>Order Date</th> |
| 63 |
<th>Vendor</th> |
75 |
<th>Vendor</th> |
|
Lines 72-77
$(document).ready(function() {
Link Here
|
| 72 |
<th></th> |
84 |
<th></th> |
| 73 |
[% END %] |
85 |
[% END %] |
| 74 |
</tr> |
86 |
</tr> |
|
|
87 |
</thead> |
| 88 |
<tbody> |
| 75 |
[% FOREACH lateorder IN lateorders %] |
89 |
[% FOREACH lateorder IN lateorders %] |
| 76 |
[% UNLESS ( loop.odd ) %]<tr class="highlight"> |
90 |
[% UNLESS ( loop.odd ) %]<tr class="highlight"> |
| 77 |
[% ELSE %]<tr>[% END %] |
91 |
[% ELSE %]<tr>[% END %] |
|
Lines 115-123
$(document).ready(function() {
Link Here
|
| 115 |
</td> |
129 |
</td> |
| 116 |
</tr> |
130 |
</tr> |
| 117 |
[% END %] |
131 |
[% END %] |
|
|
132 |
</tbody> |
| 133 |
<tfoot> |
| 118 |
<tr> |
134 |
<tr> |
| 119 |
<th>Total</th> |
135 |
<th>Total</th> |
| 120 |
<th colspan="2"> </th> |
136 |
<th> </th> |
|
|
137 |
<th> </th> |
| 121 |
<th>[% total %]</th> |
138 |
<th>[% total %]</th> |
| 122 |
<th> </th> |
139 |
<th> </th> |
| 123 |
<th> </th> |
140 |
<th> </th> |
|
Lines 126-133
$(document).ready(function() {
Link Here
|
| 126 |
<input type="submit" value="Claim Order" /> |
143 |
<input type="submit" value="Claim Order" /> |
| 127 |
</td> |
144 |
</td> |
| 128 |
</tr> |
145 |
</tr> |
|
|
146 |
</tfoot> |
| 129 |
</table> |
147 |
</table> |
| 130 |
</form> |
148 |
</form> |
| 131 |
[% ELSE %]<p>There are no late orders.</p> |
149 |
[% ELSE %]<p>There are no late orders.</p> |
| 132 |
[% END %] |
150 |
[% END %] |
| 133 |
</div> |
151 |
</div> |
| 134 |
- |
|
|