Lines 1-12
Link Here
|
1 |
[% INCLUDE 'doc-head-open.inc' %] |
1 |
[% INCLUDE 'doc-head-open.inc' %] |
2 |
<title>Koha › Administration › Budgets › Funds › Planning for [% budget_period_description %] by [% authcat %]</title> |
2 |
<title>Koha › Administration › Budgets › Funds › Planning for [% budget_period_description %] by [% authcat %]</title> |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
3 |
[% INCLUDE 'doc-head-close.inc' %] |
|
|
4 |
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script> |
4 |
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script> |
5 |
<script type="text/javascript" src="[% themelang %]/js/acq.js"></script> |
5 |
<script type="text/javascript"> |
6 |
<script type="text/javascript"> |
6 |
//<![CDATA[ |
7 |
//<![CDATA[ |
7 |
// --------------------------------------------------------------------- |
|
|
8 |
// Javascript |
9 |
// --------------------------------------------------------------------- |
10 |
function Check(f) { |
8 |
function Check(f) { |
11 |
var ok=1; |
9 |
var ok=1; |
12 |
var _alertString=""; |
10 |
var _alertString=""; |
Lines 38-66
Link Here
|
38 |
alert(alertString2); |
36 |
alert(alertString2); |
39 |
} |
37 |
} |
40 |
} |
38 |
} |
41 |
|
39 |
$(document).ready(function() { |
42 |
|
40 |
$("#selectallbutton").on("click",function(e){ |
43 |
YAHOO.util.Event.onAvailable("popmenu", function () { |
41 |
$("#itemst").checkCheckboxes(); |
44 |
|
42 |
e.preventDefault(); |
45 |
var itemData = new Array(); |
43 |
}); |
46 |
table = document.getElementById('plan') |
44 |
$("#clearallbutton").on("click",function(e){ |
47 |
tableTmp = table.cloneNode(true); |
45 |
$("#itemst").unCheckCheckboxes(); |
48 |
tableTmp.id = 'planTmp'; |
46 |
e.preventDefault(); |
49 |
|
47 |
}); |
50 |
[% FOREACH authvals_ro IN authvals_row %] |
48 |
$("#selections input").on("change",function(e){ |
51 |
itemData.push( { text: "[% authvals_ro.val %]", onclick: { fn: addColumn, obj: ["[% authvals_ro.colnum %]", "[% authvals_ro.code %]"] } } ); |
49 |
var num = $(this).attr("id"); |
52 |
|
50 |
if(num == 'showall'){ |
53 |
[% END %] |
51 |
showAllColumns(); |
54 |
oMenu = new YAHOO.widget.Menu("basicmenu", |
52 |
e.stopPropagation(); |
55 |
{ position: "dynamic", itemdata: itemData , clicktohide : "true" , context:["popmenu","tl","tr"] } |
53 |
} else if(num == 'hideall'){ |
56 |
); |
54 |
hideAllColumns(); |
57 |
|
55 |
e.stopPropagation(); |
58 |
oMenu.render("popmenu"); |
56 |
} else { |
59 |
YAHOO.util.Event.addListener("add_popmenu_item", "click", oMenu.show, null, oMenu); |
57 |
if($(this).attr("checked")){ |
60 |
|
58 |
showColumn(num); |
61 |
// oMenu.removeItem(2); // TODO..... |
59 |
} else { |
62 |
|
60 |
hideColumn(num); |
63 |
}); |
61 |
} |
|
|
62 |
} |
63 |
}); |
64 |
}); |
64 |
//]]> |
65 |
//]]> |
65 |
</script> |
66 |
</script> |
66 |
<style type="text/css">td.locked { background-image: url('/intranet-tmpl/prog/img/locked.png'); padding-left : 20px; background-repeat: no-repeat; background-position: 4% 50%; } a.control { font-size:85%;text-decoration:none; }</style> |
67 |
<style type="text/css">td.locked { background-image: url('/intranet-tmpl/prog/img/locked.png'); padding-left : 20px; background-repeat: no-repeat; background-position: 4% 50%; } a.control { font-size:85%;text-decoration:none; }</style> |
Lines 82-88
YAHOO.util.Event.onAvailable("popmenu", function () {
Link Here
|
82 |
<div id="yui-main"> |
83 |
<div id="yui-main"> |
83 |
<div class="yui-b"> |
84 |
<div class="yui-b"> |
84 |
|
85 |
|
85 |
|
|
|
86 |
[% INCLUDE 'budgets-admin-toolbar.inc' %] |
86 |
[% INCLUDE 'budgets-admin-toolbar.inc' %] |
87 |
|
87 |
|
88 |
<form method="post" id="Aform" name="Aform" action="/cgi-bin/koha/admin/aqplan.pl"> |
88 |
<form method="post" id="Aform" name="Aform" action="/cgi-bin/koha/admin/aqplan.pl"> |
Lines 105-112
YAHOO.util.Event.onAvailable("popmenu", function () {
Link Here
|
105 |
<p><b>Cells contain estimated values only.</b></p> |
105 |
<p><b>Cells contain estimated values only.</b></p> |
106 |
[% END %] |
106 |
[% END %] |
107 |
[% END %] |
107 |
[% END %] |
108 |
|
108 |
<p id="selections"> |
109 |
<table id="plan" width="100%"> |
109 |
<strong>Show/hide columns:</strong> <span class="selected"><input type="checkbox" checked="checked" id="showall"/><label for="showall">Show all columns</label></span> <span><input type="checkbox" id="hideall"/><label for="hideall">Hide all columns</label></span> |
|
|
110 |
[% FOREACH authvals_ro IN authvals_row %] |
111 |
<span class="selected"><label><input type="checkbox" checked="checked" id="col[% authvals_ro.colnum %]">[% authvals_ro.code %]</label></span> |
112 |
[% END %] |
113 |
</p> |
114 |
<table id="plan"> |
110 |
<thead> |
115 |
<thead> |
111 |
<tr> |
116 |
<tr> |
112 |
<th>Fund name</th> |
117 |
<th>Fund name</th> |
Lines 122-153
YAHOO.util.Event.onAvailable("popmenu", function () {
Link Here
|
122 |
[% authvals_ro.code %]</th> |
127 |
[% authvals_ro.code %]</th> |
123 |
[% END %] |
128 |
[% END %] |
124 |
|
129 |
|
125 |
<th>Fund remaining</th><th> </th> |
130 |
<th class="remaining">Fund remaining</th><th> </th> |
126 |
</tr> |
131 |
</tr> |
127 |
<tr> |
|
|
128 |
<th> </th><th> </th> |
129 |
[% FOREACH authvals_ro IN authvals_row %] |
130 |
[% IF ( authvals_ro.display ) %] |
131 |
<th class="[% authvals_ro.colnum %]"> |
132 |
[% ELSE %] |
133 |
<th style="display:none;" class="[% authvals_ro.colnum %]"> |
134 |
[% END %] |
135 |
|
136 |
<a class="control" onclick="delColumn('[% authvals_ro.colnum %]', 'col[% authvals_ro.code %]')" href="#" title="Hide this column">[ hide ]</a></th> |
137 |
|
138 |
[% END %] |
139 |
<th id="popmenu"><a style="font-size:85%;text-decoration:none;" id="add_popmenu_item" href="#" title="Show a hidden column">[ show a column ]</a></th><th> </th> |
140 |
</tr> |
141 |
|
142 |
</thead> |
132 |
</thead> |
143 |
|
133 |
|
144 |
<tbody> |
134 |
<tbody> |
145 |
[% FOREACH budget_line IN budget_lines %] |
135 |
[% FOREACH budget_line IN budget_lines %] |
146 |
[% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] |
136 |
[% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] |
147 |
[% IF ( budget_line.budget_lock ) %] |
137 |
[% IF ( budget_line.budget_lock ) %] |
148 |
<td align="left" class="locked" title="Fund locked"> |
138 |
<td class="locked" title="Fund locked"> |
149 |
[% ELSE %] |
139 |
[% ELSE %] |
150 |
<td align="left"> |
140 |
<td> |
151 |
[% END %] |
141 |
[% END %] |
152 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_id=[% budget_line.budget_id %]&budget_period_id=[% budget_line.budget_period_id %]">[% budget_line.budget_name_indent %]</a></td> |
142 |
<a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_id=[% budget_line.budget_id %]&budget_period_id=[% budget_line.budget_period_id %]">[% budget_line.budget_name_indent %]</a></td> |
153 |
<td><span id="budget_tot_formatted_[% budget_line.budget_id %]">[% budget_line.budget_amount_formatted %] </span> |
143 |
<td><span id="budget_tot_formatted_[% budget_line.budget_id %]">[% budget_line.budget_amount_formatted %] </span> |
Lines 162-171
YAHOO.util.Event.onAvailable("popmenu", function () {
Link Here
|
162 |
[% ELSE %] |
152 |
[% ELSE %] |
163 |
<td style="display:none;" class="[% line.colnum %]"> |
153 |
<td style="display:none;" class="[% line.colnum %]"> |
164 |
[% END %] |
154 |
[% END %] |
165 |
<table class="invis" width="100%"> |
155 |
<table class="invis"> |
166 |
<tr> |
156 |
<tr> |
167 |
[% IF ( line.show_actual ) %] |
157 |
[% IF ( line.show_actual ) %] |
168 |
<td width="50%" >[% line.actual_amount %]</td> |
158 |
<td >[% line.actual_amount %]</td> |
169 |
[% END %] |
159 |
[% END %] |
170 |
<td> |
160 |
<td> |
171 |
|
161 |
|
Lines 182-207
YAHOO.util.Event.onAvailable("popmenu", function () {
Link Here
|
182 |
[% END %] |
172 |
[% END %] |
183 |
|
173 |
|
184 |
<td> |
174 |
<td> |
185 |
<table class="invis" width="100%"> |
175 |
<table class="invis"> |
186 |
<tr> |
176 |
<tr> |
187 |
[% IF ( budget_line.show_actual ) %] |
177 |
[% IF ( budget_line.show_actual ) %] |
188 |
[% IF ( budget_line.act_negative ) %] |
178 |
[% IF ( budget_line.act_negative ) %] |
189 |
<td width="50%" style="color: red;"> |
179 |
<td style="color: red;"> |
190 |
[% ELSIF ( budget_line.act_positive ) %] |
180 |
[% ELSIF ( budget_line.act_positive ) %] |
191 |
<td width="50%" style="color: green;"> |
181 |
<td style="color: green;"> |
192 |
[% ELSE %] |
182 |
[% ELSE %] |
193 |
<td width="50%"> |
183 |
<td> |
194 |
[% END %] |
184 |
[% END %] |
195 |
[% budget_line.budget_act_remain %] |
185 |
[% budget_line.budget_act_remain %] |
196 |
</td> |
186 |
</td> |
197 |
[% END %] |
187 |
[% END %] |
198 |
|
188 |
|
199 |
[% IF ( budget_line.est_negative ) %] |
189 |
[% IF ( budget_line.est_negative ) %] |
200 |
<td width="50%" style="color: red;" id="budget_est_[% budget_line.budget_id %]"> |
190 |
<td style="color: red;" id="budget_est_[% budget_line.budget_id %]"> |
201 |
[% ELSIF ( budget_line.est_positive ) %] |
191 |
[% ELSIF ( budget_line.est_positive ) %] |
202 |
<td width="50%" style="color: green;" id="budget_est_[% budget_line.budget_id %]"> |
192 |
<td style="color: green;" id="budget_est_[% budget_line.budget_id %]"> |
203 |
[% ELSE %] |
193 |
[% ELSE %] |
204 |
<td width="50%" id="budget_est_[% budget_line.budget_id %]"> |
194 |
<td id="budget_est_[% budget_line.budget_id %]"> |
205 |
[% END %] |
195 |
[% END %] |
206 |
[% budget_line.budget_est_remain %] |
196 |
[% budget_line.budget_est_remain %] |
207 |
</td> |
197 |
</td> |