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 [% INCLUDE 'calendar.inc' %]
5 <script type="text/javascript" src="[% themelang %]/js/acq.js"></script>
6 <script type="text/javascript">
8 // ---------------------------------------------------------------------
10 // ---------------------------------------------------------------------
15 var arr = document.getElementsByName('est_total')
17 for ( var i=0, len=arr.length; i<len; ++i ){
18 var tot = arr[i].innerhtml;
21 _alertString += "\n- " + _("One or more cell values is non-numeric");
25 if (_alertString.length==0) {
27 var op = document.createElement('input');
28 op.setAttribute("type","hidden");
29 op.setAttribute("name","op");
30 op.setAttribute("value","save"); //ohh the pain...
32 document.Aform.appendChild(op);
33 document.Aform.submit()
36 alertString2 = _("Form not submitted because of the following problem(s)");
37 alertString2 += "\n------------------------------------------------------------------------------------\n";
38 alertString2 += _alertString;
44 YAHOO.util.Event.onAvailable("popmenu", function () {
46 var itemData = new Array();
47 table = document.getElementById('plan')
48 tableTmp = table.cloneNode(true);
49 tableTmp.id = 'planTmp';
51 [% FOREACH authvals_ro IN authvals_row %]
52 itemData.push( { text: "[% authvals_ro.val %]", onclick: { fn: addColumn, obj: ["[% authvals_ro.colnum %]", "[% authvals_ro.code %]"] } } );
55 oMenu = new YAHOO.widget.Menu("basicmenu",
56 { position: "dynamic", itemdata: itemData , clicktohide : "true" , context:["popmenu","tl","tr"] }
59 oMenu.render("popmenu");
60 YAHOO.util.Event.addListener("add_popmenu_item", "click", oMenu.show, null, oMenu);
62 // oMenu.removeItem(2); // TODO.....
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>
70 [% INCLUDE 'header.inc' %]
71 [% INCLUDE 'budgets-admin-search.inc' %]
73 <div id="breadcrumbs">
74 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
75 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
76 <a href="/cgi-bin/koha/admin/aqbudgetperiods.pl">Budgets</a> ›
77 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=[% budget_period_id %]">Funds</a> ›
78 <a href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=[% budget_period_id %]">Planning</a> ›
81 <div id="doc3" class="yui-t2">
87 [% INCLUDE 'budgets-admin-toolbar.inc' %]
89 <form method="post" id="Aform" name="Aform" action="/cgi-bin/koha/admin/aqplan.pl">
90 <h3>Planning for [% budget_period_description %] by [% authcat %]</h3>
91 <input type="hidden" name="authcat" value="[% authcat %]" />
94 [% IF ( budget_lines ) %]
96 [% IF ( currency ) %]<p><b>Currency = [% currency %]</b>.
97 [% IF ( show_actual ) %]
98 <b>Each cell contain both actual and estimated values.</b>
100 <b>Cells contain estimated values only.</b>
102 </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>
103 [% IF ( show_actual ) %]
104 <p><b>Each cell contain both actual and estimated values.</b></p>
106 <p><b>Cells contain estimated values only.</b></p>
110 <table id="plan" width="100%">
116 [% FOREACH authvals_ro IN authvals_row %]
117 [% IF ( authvals_ro.display ) %]
118 <th id="col[% authvals_ro.code %]" class="[% authvals_ro.colnum %]">
120 <th id="col[% authvals_ro.code %]" styl="display:none;" class="[% authvals_ro.colnum %]">
123 [% authvals_ro.code %]</th>
126 <th>Fund remaining</th><th> </th>
129 <th> </th><th> </th>
130 [% FOREACH authvals_ro IN authvals_row %]
131 [% IF ( authvals_ro.display ) %]
132 <th class="[% authvals_ro.colnum %]">
134 <th style="display:none;" class="[% authvals_ro.colnum %]">
137 <a class="control" onclick="delColumn('[% authvals_ro.colnum %]', 'col[% authvals_ro.code %]')" href="#" title="Hide this column">[ hide ]</a></th>
140 <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>
146 [% FOREACH budget_line IN budget_lines %]
147 [% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
149 <td align="left"[% IF ( budget_line.budget_lock ) %] class="locked" title="Fund locked"[% END %]><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>
150 <td><span id="budget_tot_formatted_[% budget_line.budget_id %]">[% budget_line.budget_amount_formatted %] </span>
153 <!-- NEXT DIV ELEMENT IS USED BY JS FOR CALC-ING AUTO-FILL AND ESTIMATED AMOUNTS -->
154 <div style="display:none;" id="budget_tot_[% budget_line.budget_id %]">[% budget_line.budget_amount %]</div></td>
156 [% FOREACH line IN budget_line.lines %]
157 [% IF ( line.display ) %]
158 <td class="[% line.colnum %]">
160 <td style="display:none;" class="[% line.colnum %]">
162 <table class="invis" width="100%">
164 [% IF ( line.show_actual ) %]
165 <td width="50%" >[% line.actual_amount %]</td>
169 [% IF ( line.budget_lock ) %]
170 [% line.estimated_amount %]
171 <input type="hidden" style="text-align: right;" name="[% line.cell_name %]" value="[% line.estimated_amount %]" />
173 <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);" />
182 <table class="invis" width="100%">
184 [% IF ( budget_line.show_actual ) %]
185 [% IF ( budget_line.act_negative ) %]
186 <td width="50%" style="color: red;">
187 [% ELSIF ( budget_line.act_positive ) %]
188 <td width="50%" style="color: green;">
192 [% budget_line.budget_act_remain %]
196 [% IF ( budget_line.est_negative ) %]
197 <td width="50%" style="color: red;" id="budget_est_[% budget_line.budget_id %]">
198 [% ELSIF ( budget_line.est_positive ) %]
199 <td width="50%" style="color: green;" id="budget_est_[% budget_line.budget_id %]">
201 <td width="50%" id="budget_est_[% budget_line.budget_id %]">
203 [% budget_line.budget_est_remain %]
210 [% UNLESS ( budget_line.budget_lock ) %]
211 <input type="button" onclick="autoFillRow('[% budget_line.budget_id %]')" value="Auto-fill row"/>
213 <div style="color:red;">not owned</div>
221 [% IF ( budget_period_locked ) %]
222 <!-- <input STYLE="background: gray;" type="submit" value="Save" disabled="disabled"/> -->
224 <fieldset class="action"><input type="button" onclick="Check(this.form)" value="Save"/></fieldset>
229 [% FOREACH authvals_ro IN authvals_row %]
231 [% UNLESS ( authvals_ro.display ) %]
232 <input type="hidden" value="[% authvals_ro.code %]" name="hide_cols"/>
242 <div class="dialog message">No funds to display for this search criteria</div>
250 <form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
251 <fieldset class="brief">
256 <label for="authcat"> Select planning type:</label>
257 [% authcat_dropbox %]
260 [% IF ( show_mine ) %]
261 <input type="checkbox" id="show_mine" name="show_mine" value="1" checked="checked" />
263 <input type="checkbox" id="show_mine" name="show_mine" value="1" />
265 <label for="show_mine">Show my funds only</label>
269 [% IF ( show_active ) %]
270 <input type="checkbox" id="show_active" name="show_active" value="1" checked="checked" />
272 <input type="checkbox" id="show_active" name="show_active" value="1" />
274 <label for="show_active">Show active funds only</label>
279 [% IF ( show_actual ) %]
280 <input type="checkbox" id="show_actual" name="show_actual" value="1" checked="checked" />
282 <input type="checkbox" id="show_actual" name="show_actual" value="1" />
284 <label for="show_actual">Show actual/estimated values</label>
287 <fieldset class="action">
288 <input type="submit" name="option_submit" value="Submit" /></fieldset>
291 [% IF ( budget_lines ) %]
292 <form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
294 <fieldset class="brief">
296 <li><label for="basename">Output to a file named: </label><input type="text" name="basename" id="basename" value="Export" /></li>
297 <li><label class="inline" for="MIME">Into an application
298 </label>[% CGIextChoice %]
299 [% CGIsepChoice %]</li>
301 <fieldset class="action"> <input type="submit" value="Submit"/>
302 <input type="hidden" name="report_name" value="[% report_name %]" />
303 <input type="hidden" name="output" value="file" /></fieldset>
308 [% INCLUDE 'acquisitions-menu.inc' %]
311 [% INCLUDE 'intranet-bottom.inc' %]