1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › Budgets › Funds › Planning for [% budget_period_description %] by [% authcat %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
5 <script type="text/javascript">
7 // ---------------------------------------------------------------------
9 // ---------------------------------------------------------------------
14 var arr = document.getElementsByName('est_total')
16 for ( var i=0, len=arr.length; i<len; ++i ){
17 var tot = arr[i].innerHTML;
20 _alertString += "\n- " + _("One or more cell values is non-numeric");
24 if (_alertString.length==0) {
26 var op = document.createElement('input');
27 op.setAttribute("type","hidden");
28 op.setAttribute("name","op");
29 op.setAttribute("value","save"); //ohh the pain...
31 document.Aform.appendChild(op);
32 document.Aform.submit()
35 alertString2 = _("Form not submitted because of the following problem(s)");
36 alertString2 += "\n------------------------------------------------------------------------------------\n";
37 alertString2 += _alertString;
43 YAHOO.util.Event.onAvailable("popmenu", function () {
45 var itemData = new Array();
46 table = document.getElementById('plan')
47 tableTmp = table.cloneNode(true);
48 tableTmp.id = 'planTmp';
50 [% FOREACH authvals_ro IN authvals_row %]
51 itemData.push( { text: "[% authvals_ro.val %]", onclick: { fn: addColumn, obj: ["[% authvals_ro.colnum %]", "[% authvals_ro.code %]"] } } );
54 oMenu = new YAHOO.widget.Menu("basicmenu",
55 { position: "dynamic", itemdata: itemData , clicktohide : "true" , context:["popmenu","tl","tr"] }
58 oMenu.render("popmenu");
59 YAHOO.util.Event.addListener("add_popmenu_item", "click", oMenu.show, null, oMenu);
61 // oMenu.removeItem(2); // TODO.....
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>
68 <body id="admin_aqplan" class="admin">
69 [% INCLUDE 'header.inc' %]
70 [% INCLUDE 'budgets-admin-search.inc' %]
72 <div id="breadcrumbs">
73 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
74 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
75 <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> ›
76 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">Funds</a> ›
77 <a href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id %]">Planning</a> ›
80 <div id="doc3" class="yui-t2">
86 [% INCLUDE 'budgets-admin-toolbar.inc' %]
88 <form method="post" id="Aform" name="Aform" action="/cgi-bin/koha/admin/aqplan.pl">
89 <h3>Planning for [% budget_period_description %] by [% authcat %]</h3>
90 <input type="hidden" name="authcat" value="[% authcat %]" />
93 [% IF ( budget_lines ) %]
95 [% IF ( currency ) %]<p><b>Currency = [% currency %]</b>.
96 [% IF ( show_actual ) %]
97 <b>Each cell contain both actual and estimated values.</b>
99 <b>Cells contain estimated values only.</b>
101 </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>
102 [% IF ( show_actual ) %]
103 <p><b>Each cell contain both actual and estimated values.</b></p>
105 <p><b>Cells contain estimated values only.</b></p>
109 <table id="plan" width="100%">
115 [% FOREACH authvals_ro IN authvals_row %]
116 [% IF ( authvals_ro.display ) %]
117 <th id="col[% authvals_ro.code %]" class="[% authvals_ro.colnum %]">
119 <th id="col[% authvals_ro.code %]" style="display:none;" class="[% authvals_ro.colnum %]">
122 [% authvals_ro.code %]</th>
125 <th>Fund remaining</th><th> </th>
128 <th> </th><th> </th>
129 [% FOREACH authvals_ro IN authvals_row %]
130 [% IF ( authvals_ro.display ) %]
131 <th class="[% authvals_ro.colnum %]">
133 <th style="display:none;" class="[% authvals_ro.colnum %]">
136 <a class="control" onclick="delColumn('[% authvals_ro.colnum %]', 'col[% authvals_ro.code %]')" href="#" title="Hide this column">[ hide ]</a></th>
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>
145 [% FOREACH budget_line IN budget_lines %]
146 [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
147 [% IF ( budget_line.budget_lock ) %]
148 <td align="left" class="locked" title="Fund locked">
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>
153 <td><span id="budget_tot_formatted_[% budget_line.budget_id %]">[% budget_line.budget_amount_formatted %] </span>
156 <!-- NEXT DIV ELEMENT IS USED BY JS FOR CALC-ING AUTO-FILL AND ESTIMATED AMOUNTS -->
157 <div style="display:none;" id="budget_tot_[% budget_line.budget_id %]">[% budget_line.budget_amount %]</div></td>
159 [% FOREACH line IN budget_line.lines %]
160 [% IF ( line.display ) %]
161 <td class="[% line.colnum %]">
163 <td style="display:none;" class="[% line.colnum %]">
165 <table class="invis" width="100%">
167 [% IF ( line.show_actual ) %]
168 <td width="50%" >[% line.actual_amount %]</td>
172 [% IF ( line.budget_lock ) %]
173 [% line.estimated_amount %]
174 <input type="hidden" style="text-align: right;" name="[% line.cell_name %]" value="[% line.estimated_amount %]" />
176 <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);" />
185 <table class="invis" width="100%">
187 [% IF ( budget_line.show_actual ) %]
188 [% IF ( budget_line.act_negative ) %]
189 <td width="50%" style="color: red;">
190 [% ELSIF ( budget_line.act_positive ) %]
191 <td width="50%" style="color: green;">
195 [% budget_line.budget_act_remain %]
199 [% IF ( budget_line.est_negative ) %]
200 <td width="50%" style="color: red;" id="budget_est_[% budget_line.budget_id %]">
201 [% ELSIF ( budget_line.est_positive ) %]
202 <td width="50%" style="color: green;" id="budget_est_[% budget_line.budget_id %]">
204 <td width="50%" id="budget_est_[% budget_line.budget_id %]">
206 [% budget_line.budget_est_remain %]
213 [% UNLESS ( budget_line.budget_lock ) %]
214 <input type="button" onclick="autoFillRow('[% budget_line.budget_id %]')" value="Auto-fill row"/>
216 <div style="color:red;">not owned</div>
224 [% IF ( budget_period_locked ) %]
225 <!-- <input STYLE="background: gray;" type="submit" value="Save" disabled="disabled"/> -->
227 <fieldset class="action"><input type="button" onclick="Check(this.form)" value="Save"/></fieldset>
232 [% FOREACH authvals_ro IN authvals_row %]
234 [% UNLESS ( authvals_ro.display ) %]
235 <input type="hidden" value="[% authvals_ro.code %]" name="hide_cols"/>
245 <div class="dialog message">No funds to display for this search criteria</div>
253 <form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
254 <fieldset class="brief">
259 <label for="authcat"> Select planning type:</label>
260 [% authcat_dropbox %]
263 [% IF ( show_mine ) %]
264 <input type="checkbox" id="show_mine" name="show_mine" value="1" checked="checked" />
266 <input type="checkbox" id="show_mine" name="show_mine" value="1" />
268 <label for="show_mine">Show my funds only</label>
272 [% IF ( show_active ) %]
273 <input type="checkbox" id="show_active" name="show_active" value="1" checked="checked" />
275 <input type="checkbox" id="show_active" name="show_active" value="1" />
277 <label for="show_active">Show active funds only</label>
282 [% IF ( show_actual ) %]
283 <input type="checkbox" id="show_actual" name="show_actual" value="1" checked="checked" />
285 <input type="checkbox" id="show_actual" name="show_actual" value="1" />
287 <label for="show_actual">Show actual/estimated values</label>
290 <fieldset class="action">
291 <input type="submit" name="option_submit" value="Submit" /></fieldset>
294 [% IF ( budget_lines ) %]
295 <form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
297 <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
301 </label>[% CGIextChoice %]
302 [% CGIsepChoice %]</li>
304 <fieldset class="action"> <input type="submit" value="Submit"/>
305 <input type="hidden" name="report_name" value="[% report_name %]" />
306 <input type="hidden" name="output" value="file" /></fieldset>
311 [% INCLUDE 'acquisitions-menu.inc' %]
314 [% INCLUDE 'intranet-bottom.inc' %]