Lines 415-431
$(document).ready(function()
Link Here
|
415 |
<input type="hidden" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %] |
415 |
<input type="hidden" name="budget_id" id="budget_id" value="[% budget_id %]" />[% Budget_name %] |
416 |
[% ELSE %] |
416 |
[% ELSE %] |
417 |
<label class="required" for="budget_id">Fund: </label> |
417 |
<label class="required" for="budget_id">Fund: </label> |
|
|
418 |
[% active_count = 0 %] |
419 |
[% IF !ordernumber %] |
420 |
[% FOREACH budget_loo IN budget_loop %] |
421 |
[% active_count= active_count + budget_loo.b_active %] |
422 |
[% END %] |
423 |
[% END %] |
418 |
<select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id"> |
424 |
<select id="budget_id" onchange="fetchSortDropbox(this.form)" size="1" name="budget_id"> |
419 |
<option value="">Select a fund</option> |
425 |
<option value="">Select a fund</option> |
420 |
[% FOREACH budget_loo IN budget_loop %] |
426 |
[% FOREACH budget_loo IN budget_loop %] |
421 |
[% IF ( budget_loo.b_sel ) %] |
427 |
[% IF budget_loo.b_sel %] |
422 |
<option value="[% budget_loo.b_id %]" selected="selected">[% budget_loo.b_txt %]</option> |
428 |
[% active_count = 0 #select no other fund %] |
423 |
[% ELSE %] |
429 |
<option value="[% budget_loo.b_id %]" selected="selected"> |
424 |
[% IF ( budget_loo.b_active ) %]<option value="[% budget_loo.b_id %]">[% budget_loo.b_txt %]</option> |
430 |
[% ELSIF active_count==1 && budget_loo.b_active %] |
425 |
[% ELSE %]<option value="[% budget_loo.b_id %]" class="b_inactive">[% budget_loo.b_txt %] (inactive)</option> |
431 |
<option value="[% budget_loo.b_id %]" selected="selected"> |
|
|
432 |
[% ELSE %] |
433 |
[% bdgclass=budget_loo.b_active? "": "b_inactive" %] |
434 |
<option value="[% budget_loo.b_id %]" class="[% bdgclass %]"> |
426 |
[% END %] |
435 |
[% END %] |
|
|
436 |
[% budget_loo.b_txt %][% IF !budget_loo.b_active %] (inactive)[% END %] |
437 |
</option> |
427 |
[% END %] |
438 |
[% END %] |
428 |
[% END %] |
|
|
429 |
</select> |
439 |
</select> |
430 |
<label for="showallbudgets" style="float:none;width:auto;"> Show all:</label> |
440 |
<label for="showallbudgets" style="float:none;width:auto;"> Show all:</label> |
431 |
<input type="checkbox" id="showallbudgets" /> |
441 |
<input type="checkbox" id="showallbudgets" /> |
432 |
- |
|
|