2 [% INCLUDE 'doc-head-open.inc' %]
3 <title>Koha › Administration › Budgets › Funds › Planning for [% budget_period_description %] by [% authcat %]</title>
4 [% INCLUDE 'doc-head-close.inc' %]
5 <script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.checkboxes.min.js"></script>
6 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
7 <script type="text/javascript">
13 var arr = document.getElementsByName('est_total')
15 for ( var i=0, len=arr.length; i<len; ++i ){
16 var tot = arr[i].innerHTML;
19 _alertString += "\n- " + _("One or more cell values is non-numeric");
23 if (_alertString.length==0) {
25 var op = document.createElement('input');
26 op.setAttribute("type","hidden");
27 op.setAttribute("name","op");
28 op.setAttribute("value","save"); //ohh the pain...
30 document.Aform.appendChild(op);
31 document.Aform.submit()
34 alertString2 = _("Form not submitted because of the following problem(s)");
35 alertString2 += "\n------------------------------------------------------------------------------------\n";
36 alertString2 += _alertString;
40 $(document).ready(function() {
41 $("#selections input").on("change",function(e){
42 var num = $(this).attr("id");
46 } else if(num == 'hideall'){
50 if($(this).attr("checked")){
60 <style type="text/css">td.locked { background-image: url('[% interface %]/[% theme %]/img/locked.png'); padding-left : 20px; background-repeat: no-repeat; background-position: 5px 5px; } a.control { font-size:85%;text-decoration:none; }</style>
62 <body id="admin_aqplan" class="admin">
63 [% INCLUDE 'header.inc' %]
64 [% INCLUDE 'budgets-admin-search.inc' %]
66 <div id="breadcrumbs">
67 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
68 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
69 <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> ›
70 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">Funds</a> ›
71 <a href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id %]">Planning</a> ›
74 <div id="doc3" class="yui-t2">
79 [% INCLUDE 'budgets-admin-toolbar.inc' %]
81 <form method="post" id="Aform" name="Aform" action="/cgi-bin/koha/admin/aqplan.pl">
82 <h3>Planning for [% budget_period_description %] by [% authcat %]</h3>
83 <input type="hidden" name="authcat" value="[% authcat %]" />
86 [% IF ( budget_lines ) %]
88 [% IF ( currency ) %]<p><b>Currency = [% currency %]</b>.
89 [% IF ( show_actual ) %]
90 <b>Each cell contain both actual and estimated values.</b>
92 <b>Cells contain estimated values only.</b>
94 </p>[% ELSE %]<div class="dialog alert"><h3>No active currency is defined</h3><p>Please <a href="/cgi-bin/koha/admin/currency.pl">specify an active currency</a>.</p></div>
95 [% IF ( show_actual ) %]
96 <p><b>Each cell contain both actual and estimated values.</b></p>
98 <p><b>Cells contain estimated values only.</b></p>
102 <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>
103 [% FOREACH authvals_ro IN authvals_row %]
104 <span class="selected"><label><input type="checkbox" checked="checked" id="col[% authvals_ro.colnum %]">[% authvals_ro.code %]</label></span>
113 [% FOREACH authvals_ro IN authvals_row %]
114 [% IF ( authvals_ro.display ) %]
115 <th id="col[% authvals_ro.code %]" class="[% authvals_ro.colnum %]">
117 <th id="col[% authvals_ro.code %]" style="display:none;" class="[% authvals_ro.colnum %]">
120 [% authvals_ro.code %]</th>
123 <th class="remaining">Fund remaining</th><th> </th>
128 [% FOREACH budget_line IN budget_lines %]
130 [% IF ( budget_line.budget_lock ) %]
131 <td class="locked" title="Fund locked">
135 <a href="/cgi-bin/koha/admin/aqbudgets.pl?op=add_form&budget_id=[% budget_line.budget_id %]&budget_period_id=[% budget_period_id %]">[% budget_line.budget_name %]</a></td>
136 <td><span id="[% budget_line.budget_amount %]">[% budget_line.budget_amount | $Price %] </span>
139 <!-- NEXT DIV ELEMENT IS USED BY JS FOR CALC-ING AUTO-FILL AND ESTIMATED AMOUNTS -->
140 <div style="display:none;" id="budget_tot_[% budget_line.budget_id %]">[% budget_line.budget_amount %]</div></td>
142 [% FOREACH line IN budget_line.lines %]
143 [% IF ( line.display ) %]
144 <td class="[% line.colnum %]">
146 <td style="display:none;" class="[% line.colnum %]">
148 <table class="invis">
151 <td >[% line.actual_amount %]</td>
155 [% IF ( line.budget_lock ) %]
156 [% line.estimated_amount %]
157 <input type="hidden" style="text-align: right;" name="[% line.cell_name %]" value="[% line.estimated_amount %]" />
159 <input type="text" style="text-align: right; width:90%; " size="6" name="[% line.cell_name %]" value="[% line.estimated_amount %]" id="budget_[% line.budget_id %][% line.colnum %]" class="plan_entry_[% line.budget_id %]" onchange="calcTotalRow(this);" />
168 <table class="invis">
171 [% IF ( budget_line.act_negative ) %]
172 <td style="color: red;">
173 [% ELSIF ( budget_line.act_positive ) %]
174 <td style="color: green;">
178 [% budget_line.budget_act_remain %]
182 [% IF ( budget_line.est_negative ) %]
183 <td style="color: red;" id="budget_est_[% budget_line.budget_id %]">
184 [% ELSIF ( budget_line.est_positive ) %]
185 <td style="color: green;" id="budget_est_[% budget_line.budget_id %]">
187 <td id="budget_est_[% budget_line.budget_id %]">
189 [% budget_line.budget_est_remain | $Price %]
196 [% UNLESS ( budget_line.budget_lock ) %]
197 <input type="button" onclick="autoFillRow('[% budget_line.budget_id %]')" value="Auto-fill row"/>
199 <div style="color:red;">not owned</div>
207 <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
208 [% IF ( budget_period_locked ) %]
209 <!-- <input STYLE="background: gray;" type="submit" value="Save" disabled="disabled"/> -->
211 <fieldset class="action"><input type="button" onclick="Check(this.form)" value="Save"/></fieldset>
216 [% FOREACH authvals_ro IN authvals_row %]
218 [% UNLESS ( authvals_ro.display ) %]
219 <input type="hidden" value="[% authvals_ro.code %]" name="hide_cols"/>
229 <div class="dialog message">No funds to display for this search criteria</div>
237 <form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
238 <fieldset class="brief">
240 [% BLOCK planning_types %]
242 [% CASE 'MONTHS' %]<span>by months</span>
243 [% CASE 'ITEMTYPES' %]<span>by item types</span>
244 [% CASE 'BRANCHES' %]<span>by libraries</span>
249 <label for="authcat"> Select planning type:</label>
250 <select name="authcat" id="authcat" size="1">
251 [% FOREACH value IN authcat_dropbox.values %]
252 [% IF ( value == authcat_dropbox.default ) %]
253 <option value="[% value %]" selected="selected">[% PROCESS planning_types type=value %]</option>
255 <option value="[% value %]">[% PROCESS planning_types type=value %]</option>
261 [% IF ( show_mine ) %]
262 <input type="checkbox" id="show_mine" name="show_mine" value="1" checked="checked" />
264 <input type="checkbox" id="show_mine" name="show_mine" value="1" />
266 <label for="show_mine">Show my funds only</label>
270 [% IF ( show_active ) %]
271 <input type="checkbox" id="show_active" name="show_active" value="1" checked="checked" />
273 <input type="checkbox" id="show_active" name="show_active" value="1" />
275 <label for="show_active">Show active funds only</label>
280 [% IF ( show_actual ) %]
281 <input type="checkbox" id="show_actual" name="show_actual" value="1" checked="checked" />
283 <input type="checkbox" id="show_actual" name="show_actual" value="1" />
285 <label for="show_actual">Show actual/estimated values</label>
288 <fieldset class="action">
289 <input type="submit" name="option_submit" value="Submit" />
290 <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
294 [% IF ( budget_lines ) %]
295 <form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
296 <fieldset class="brief">
299 <li><label for="basename">Output to a file named: </label><input type="text" name="basename" id="basename" value="Export" /></li>
300 <li><label class="inline" for="MIME">Into an application</label>
301 <select name="MIME" id="MIME" size="1">
302 [% FOREACH value IN CGIextChoice %]
303 <option value="[% value %]">[% value %]</option>
306 <select name="sep" id="sep" size="1">
307 [% FOREACH value IN CGIsepChoice %]
308 <option value="[% value %]">[% value %]</option>
313 <fieldset class="action"> <input type="submit" value="Submit"/>
314 <input type="hidden" name="report_name" value="[% report_name %]" />
315 <input type="hidden" name="output" value="file" /></fieldset>
316 <input type="hidden" name="budget_period_id" value="[% budget_period_id %]" />
317 <input type="hidden" name="authcat" value="[% authcat %]" />
322 [% INCLUDE 'acquisitions-menu.inc' %]
325 [% INCLUDE 'intranet-bottom.inc' %]