Lines 13-23
dt_overwrite_html_sorting_localeCompare();
Link Here
|
13 |
|
13 |
|
14 |
$(document).ready(function() { |
14 |
$(document).ready(function() { |
15 |
|
15 |
|
16 |
var inactive = $(".b_inactive,.bu_active"); |
|
|
17 |
var active = $(".bu_inactive"); |
18 |
inactive.hide(); |
19 |
active.show(); |
20 |
|
21 |
var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, { |
16 |
var oTable = $("#accounts").dataTable($.extend(true, {}, dataTablesDefaults, { |
22 |
"fnDrawCallback": function ( oSettings ) { |
17 |
"fnDrawCallback": function ( oSettings ) { |
23 |
if ( oSettings.aiDisplay.length == 0 ) |
18 |
if ( oSettings.aiDisplay.length == 0 ) |
Lines 45-50
$(document).ready(function() {
Link Here
|
45 |
} |
40 |
} |
46 |
} |
41 |
} |
47 |
}, |
42 |
}, |
|
|
43 |
"footerCallback": function ( row, data, start, end, display ) { |
44 |
var api = this.api(), data; |
45 |
footer_column_sum( api, [ 6, 7, 8, 9 ] ); |
46 |
}, |
48 |
"aoColumnDefs": [ |
47 |
"aoColumnDefs": [ |
49 |
{ "bVisible": false, "aTargets": [ 0, 1 ] }, |
48 |
{ "bVisible": false, "aTargets": [ 0, 1 ] }, |
50 |
{ "bSortable": false, "aTargets": ["_all"] } |
49 |
{ "bSortable": false, "aTargets": ["_all"] } |
Lines 168-177
$(document).ready(function() {
Link Here
|
168 |
<th></th> |
167 |
<th></th> |
169 |
<th></th> |
168 |
<th></th> |
170 |
<th colspan="4">Total</th> |
169 |
<th colspan="4">Total</th> |
171 |
<th class="data"><span class="bu_active">[% total %]</span><span class="bu_inactive" >[% total_active %]</span></th> |
170 |
<th class="data"></th> |
172 |
<th class="data"><span class="bu_active">[% totordered %]</span><span class="bu_inactive" >[% totordered_active %]</span></th> |
171 |
<th class="data"></th> |
173 |
<th class="data"><span class="bu_active">[% totspent %]</span><span class="bu_inactive" >[% totspent_active %]</span></th> |
172 |
<th class="data"></th> |
174 |
<th class="data"><span class="bu_active">[% totavail %]</span><span class="bu_inactive" >[% totavail_active %]</span></th> |
173 |
<th class="data"></th> |
175 |
</tr> |
174 |
</tr> |
176 |
</tfoot> |
175 |
</tfoot> |
177 |
<tbody> |
176 |
<tbody> |
Lines 199-208
$(document).ready(function() {
Link Here
|
199 |
[% END %] |
198 |
[% END %] |
200 |
</td> |
199 |
</td> |
201 |
<td>[% loop_budge.budget_branchname %]</td> |
200 |
<td>[% loop_budge.budget_branchname %]</td> |
202 |
<td class="data"><span title="[% loop_budge.budget_amount %]">[% loop_budge.formatted_budget_amount %]</span></td> |
201 |
<td class="data"> |
203 |
<td class="data"><span title="[% loop_budge.budget_ordered %]"><a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.formatted_budget_ordered %]</a></span></td> |
202 |
[% IF loop_budge.budget_parent_id %] |
204 |
<td class="data"><span title="[% loop_budge.budget_spent %]"><a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]">[% loop_budge.formatted_budget_spent %]</span></a></td> |
203 |
[% loop_budge.formatted_budget_amount %] |
205 |
<td class="data"><span title="[% loop_budge.budget_avail %]">[% loop_budge.formatted_budget_avail %]</td> |
204 |
[% ELSE %] |
|
|
205 |
<span class="total_amount">[% loop_budge.formatted_budget_amount %]</span> |
206 |
[% END %] |
207 |
</td> |
208 |
<td class="data"> |
209 |
<a href="ordered.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]"> |
210 |
[% IF loop_budge.budget_parent_id %] |
211 |
[% loop_budge.formatted_budget_ordered %] |
212 |
[% ELSE %] |
213 |
<span class="total_amount">[% loop_budge.formatted_budget_ordered %]</span> |
214 |
[% END %] |
215 |
</a> |
216 |
</td> |
217 |
<td class="data"> |
218 |
<a href="spent.pl?fund=[% loop_budge.budget_id %]&fund_code=[% loop_budge.budget_code %]"> |
219 |
[% IF loop_budge.budget_parent_id %] |
220 |
[% loop_budge.formatted_budget_spent %] |
221 |
[% ELSE %] |
222 |
<span class="total_amount">[% loop_budge.formatted_budget_spent %]</span> |
223 |
[% END %] |
224 |
</a> |
225 |
</td> |
226 |
<td class="data"> |
227 |
[% IF loop_budge.budget_parent_id %] |
228 |
[% loop_budge.formatted_budget_avail %] |
229 |
[% ELSE %] |
230 |
<span class="total_amount">[% loop_budge.formatted_budget_avail %]</span> |
231 |
[% END %] |
232 |
</td> |
206 |
</tr> |
233 |
</tr> |
207 |
[% END %] |
234 |
[% END %] |
208 |
</tbody> |
235 |
</tbody> |
209 |
- |
|
|