1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
5 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
7 <link href="<!-- TMPL_VAR NAME="yuipath" -->/reset/reset.css" rel="stylesheet" type="text/css" />
8 <link href="<!-- TMPL_VAR NAME="yuipath" -->/fonts/fonts.css" rel="stylesheet" type="text/css" />
9 <link href="<!-- TMPL_VAR NAME="yuipath" -->/menu/assets/menu.css" rel="stylesheet" type="text/css" />
10 <link href="<!-- TMPL_VAR NAME="yuipath" -->/container/assets/skins/sam/container.css" rel="stylesheet" type="text/css" />
14 <!-- TMPL_INCLUDE NAME="header.inc" -->
15 <!-- TMPL_INCLUDE NAME="budgets-admin-search.inc" -->
17 <script src="<!-- TMPL_VAR NAME="yuipath" -->/yahoo/yahoo.js" type="text/javascript"></script>
18 <script src="<!-- TMPL_VAR NAME="yuipath" -->/event/event.js" type="text/javascript"></script>
19 <script src="<!-- TMPL_VAR NAME="yuipath" -->/dom/dom.js" type="text/javascript"></script>
20 <script src="<!-- TMPL_VAR NAME="yuipath" -->/menu/menu.js" type="text/javascript"></script>
21 <script src="<!-- TMPL_VAR NAME="yuipath" -->/container/menu.js" type="text/javascript"></script>
22 <script src="<!-- TMPL_VAR NAME="yuipath" -->/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"></script>
25 <script type="text/javascript" src="<!-- TMPL_VAR NAME='themelang' -->/js/acq.js"></script>
26 <script type="text/javascript">
27 // ---------------------------------------------------------------------
29 // ---------------------------------------------------------------------
34 var arr = document.getElementsByName('est_total')
36 for ( var i=0, len=arr.length; i<len; ++i ){
37 var tot = arr[i].innerHTML;
40 _alertString += "\n- " + _("One or more cell values is non-numeric");
44 if (_alertString.length==0) {
46 var op = document.createElement('input');
47 op.setAttribute("type","hidden");
48 op.setAttribute("name","op");
49 op.setAttribute("value","save"); //ohh the pain...
51 document.Aform.appendChild(op);
52 document.Aform.submit()
55 alertString2 = _("Form not submitted because of the following problem(s)");
56 alertString2 += "\n------------------------------------------------------------------------------------\n";
57 alertString2 += _alertString;
63 YAHOO.util.Event.onAvailable("popmenu", function () {
65 var itemData = new Array();
66 table = document.getElementById('plan')
67 tableTmp = table.cloneNode(true);
68 tableTmp.id = 'planTmp';
70 <!-- TMPL_LOOP NAME="authvals_row" -->
71 itemData.push( { text: "<!-- TMPL_VAR NAME="val" -->", onclick: { fn: addColumn, obj: ["<!-- TMPL_VAR NAME="colnum" -->", "<!-- TMPL_VAR NAME="code" -->"] } } );
74 oMenu = new YAHOO.widget.Menu("basicmenu",
75 { position: "dynamic", itemdata: itemData , clicktohide : "true" , context:["popmenu","tl","tr"] }
78 oMenu.render("popmenu");
79 YAHOO.util.Event.addListener("add_popmenu_item", "click", oMenu.show, null, oMenu);
81 // oMenu.removeItem(2); // TODO.....
89 <div id="breadcrumbs">
90 <a href="/cgi-bin/koha/mainpage.pl">Home</a> ›
91 <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> ›
92 <a href="/cgi-bin/koha/admin/aqbudgets.pl?budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->">Budgets</a> ›
93 <a href="/cgi-bin/koha/admin/aqplan.pl?budget_period_id=<!-- TMPL_VAR NAME="budget_period_id" -->">Planning</a> ›
96 <div id="doc3" class="yui-t2">
102 <!-- TMPL_INCLUDE NAME="budgets-admin.inc" -->
106 <form method="post" id='Aform' name="Aform" action="/cgi-bin/koha/admin/aqplan.pl">
108 <fieldset style=" border:2px solid #EEEEEE; " >
109 <legend>Planning for <!-- TMPL_VAR NAME="budget_period_description" --> by <!-- TMPL_VAR NAME="authcat" --></legend>
110 <table class="invis" >
112 <!-- TMPL_IF NAME="show_mine" -->
113 <input type="checkbox" id="show_mine" name="show_mine" value="1" checked="checked" />
115 <input type="checkbox" id="show_mine" name="show_mine" value="1" />
117 <label for="show_mine">Show my budgets only</label>
120 <label for="authcat_dropbox" > Select planning type:</label>
121 <!-- TMPL_VAR NAME="authcat_dropbox" -->
122 <input type="submit" name="option_submit" value="Select" />
127 <!-- TMPL_IF NAME="show_active" -->
128 <input type="checkbox" id="show_active" name="show_active" value="1" checked="checked" />
130 <input type="checkbox" id="show_active" name="show_active" value="1" />
132 <label for="show_active">Show active budgets only</label>
137 <!-- TMPL_UNLESS name="budget_period_locked" -->
139 <!-- TMPL_IF NAME="show_actual" -->
140 <input type="checkbox" id="show_actual" name="show_actual" value="1" checked="checked" />
142 <input type="checkbox" id="show_actual" name="show_actual" value="1" />
144 <label for="show_actual">Show actual/estimated values:</label>
148 <!-- /TMPL_UNLESS -->
154 <!-- Budget Lines -->
156 <!-- TMPL_IF NAME="budget_lines" -->
158 <table id="plan" width="100%">
162 <th>Budget total</th>
164 <!-- TMPL_LOOP NAME="authvals_row" -->
165 <!-- TMPL_IF NAME="display" -->
166 <th id="<!-- TMPL_VAR NAME="code" -->" style="text-align: center;"
167 class="<!-- TMPL_VAR NAME='colnum' -->" >
169 <th id="<!-- TMPL_VAR NAME="code" -->" style="text-align: center;
171 class="<!-- TMPL_VAR NAME='colnum' -->" >
174 <!-- TMPL_VAR NAME="code" --> <span class="buttonPlus" onclick="delColumn('<!-- TMPL_VAR NAME="colnum" -->', '<!-- TMPL_VAR NAME="code" -->')" > - </span></th>
178 <th >Budget remaining </th>
180 <th id='popmenu' style=" text-align: center;" >
181 <span id="add_popmenu_item" class="buttonPlus" > + </span></th>
186 <!-- TMPL_LOOP NAME="budget_lines" -->
187 <!-- TMPL_IF Name="budget_lock" -->
188 <tr class="highlight" >
193 <td align='left'><!-- TMPL_VAR NAME="budget_name_indent"--></td>
194 <td align='right'><span id='budget_tot_formatted" -->'><!-- TMPL_VAR NAME="budget_amount_formatted"--> </span>
196 <!-- NEXT DIV ELEMENT IS USED BY JS FOR CALC-ING AUTO-FILL AND ESTIMATED AMOUNTS -->
197 <div style="display:none;" id='budget_tot_<!-- TMPL_VAR NAME="budget_id" -->'><!-- TMPL_VAR NAME="budget_amount"--></div></td>
199 <!-- TMPL_LOOP NAME="lines" -->
201 <!-- TMPL_UNLESS Name="display" --> style="display:none;"<!-- /TMPL_UNLESS -->
202 class="<!-- TMPL_VAR NAME="colnum"-->" >
203 <table class="invis" width="100%">
205 <!-- TMPL_IF Name="show_actual" -->
206 <td width="50%" align="right" ><!-- TMPL_VAR NAME="actual_amount" --></td>
210 <!--TMPL_IF Name="budget_lock" -->
211 <!-- TMPL_VAR NAME="estimated_amount" -->
212 <input type="hidden" style="text-align: right;" name='<!-- TMPL_VAR NAME="cell_name"-->' value="<!-- TMPL_VAR NAME="estimated_amount" -->" />
214 <input type="text" style="text-align: right; width:90%; " size='6' name='<!-- TMPL_VAR NAME="cell_name"-->' value="<!-- TMPL_VAR NAME="estimated_amount" -->" id='<!-- TMPL_VAR NAME="budget_id"-->' class='<!-- TMPL_VAR NAME="budget_id"-->' onchange="calcTotalRow(this);" />
223 <table class="invis" width="100%">
225 <td width="50%" align="right"
226 <!-- TMPL_IF Name="show_actual" -->
227 <!-- TMPL_IF NAME="act_negative" --> style="color: red;" <!--/TMPL_IF -->
228 <!-- TMPL_IF NAME="act_positive" --> style="color: green;" <!--/TMPL_IF --> >
229 <!-- TMPL_VAR NAME="budget_act_remain"-->
234 <td width="50%" align="right"
235 <!-- TMPL_IF NAME="est_negative" --> style="color: red;" <!--/TMPL_IF -->
236 <!-- TMPL_IF NAME="est_positive" --> style="color: green;" <!--/TMPL_IF -->
237 name="est_total" id='budget_est_<!-- TMPL_VAR NAME="budget_id"-->'> <!-- TMPL_VAR NAME="budget_est_remain"-->
244 <!-- TMPL_UNLESS Name="budget_lock" -->
245 <input type="button" onclick="autoFillRow('<!-- TMPL_VAR NAME="budget_id"-->')" value="Auto-fill row"/>
247 <div style="color:red;">not owned</div>
248 <!-- /TMPL_UNLESS -->
255 <!-- TMPL_IF NAME="show_actual" -->
256 <span><b>Each cell contain both actual and estimated values.</b></span><br />
258 <span><b>Cells contain estimated values only.</b></span><br />
260 <span><b>Currency = <!-- TMPL_VAR NAME="cur" --> <!-- TMPL_VAR NAME="cur_format" --></b></span><br />
261 <!-- TMPL_IF name="budget_period_locked" -->
262 <!-- <input STYLE="background: gray;" type="submit" value="Save" disabled='disabled'/> -->
264 <input type="button" onclick="Check(this.form)" value="Save"/>
269 <!-- TMPL_LOOP NAME="authvals_row" -->
271 <!-- TMPL_UNLESS Name="display" -->
272 <input type="hidden" value="<!-- TMPL_VAR NAME="code" -->" name="hide_cols"/>
273 <!-- /TMPL_UNLESS -->
281 <form method="post" action="/cgi-bin/koha/admin/aqplan.pl">
282 <fieldset class="rows">
284 <li><label for="outputfile">Output to a file named: </label><input type="text" name="basename" id="basename" value="Export" />
285 <label class="inline" for="MIME">Into an application
286 </label><!-- TMPL_VAR NAME="CGIextChoice" -->
287 <!-- TMPL_VAR NAME="CGIsepChoice" -->
288 <input type="submit" value="Output"/>
289 <input type="hidden" name="report_name" value="<!--TMPL_VAR NAME="report_name" -->" />
290 <input type="hidden" name="output" value="file" />
296 No budgets to display for this search criteria
303 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
306 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->