1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › System Administration › Budgets</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- Additions to enable Calendar system -->
5 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
6 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
7 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
9 <!-- End of additions -->
10 <!-- TMPL_IF name="add_form" -->
11 <script type="text/javascript">
13 function isNotNull(f,noalert) {
14 if (f.value.length ==0) {
21 var x=f.value.toUpperCase();
26 function isNum(v,maybenull) {
27 var n = new Number(v.value);
31 if (maybenull==0 && v.value=='') {
38 var t = Date.parse(f.value);
48 if (f.bookfundid.value.length==0) {
49 _alertString += "- bookfundid missing\n";
51 if (!(isNotNull(window.document.Aform.budgetamount,1))) {
52 _alertString += "- Budget missing\n";
54 if (_alertString.length==0) {
55 document.Aform.submit();
57 alertString2 = "Form not submitted because of the following problem(s)\n";
58 alertString2 += "------------------------------------------------------------------------------------\n\n";
59 alertString2 += _alertString;
67 <!-- TMPL_INCLUDE NAME="header.inc" -->
71 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
73 <div id="doc3" class="yui-t2">
77 <div class="yui-b"><div class="yui-g">
79 <ul id="_informations">
80 <!-- TMPL_IF NAME="add_validate" -->
81 <li>Budget Data Recorded, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li>
82 <!-- /TMPL_IF --> <!-- add_validate -->
84 <!-- TMPL_IF name="delete_confirmed" -->
85 <li>Budget deleted, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li>
86 <!-- /TMPL_IF --> <!-- delete_confirmed -->
89 <!-- TMPL_IF name="else" -->
98 <th>Budget amount</th>
102 <form action="/cgi-bin/koha/admin/aqbudget.pl" method="post">
105 <select name="filter_bookfundid">
106 <option value="">----</option>
107 <!-- TMPL_LOOP name="filter_bookfundids" -->
108 <!-- TMPL_IF NAME="selected" -->
109 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
111 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
117 <select name="filter_branchcode">
118 <option value="">----</option>
119 <!-- TMPL_LOOP name="filter_branches" -->
120 <!-- TMPL_IF NAME="selected" -->
121 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
123 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
129 <select name="filter_startdate_sign">
130 <!-- TMPL_IF NAME="filter_startdate_sign_equal_selected" -->
131 <option value="=" selected="selected">=</option>
133 <option value="=">=</option>
136 <!-- TMPL_IF NAME="filter_startdate_sign_superior_selected" -->
137 <option value=">=" selected="selected">>=</option>
139 <option value=">=">>=</option>
142 <!-- TMPL_IF NAME="filter_startdate_sign_inferior_selected" -->
143 <option value="<=" selected="selected"><=</option>
145 <option value="<="><=</option>
148 <input type="text" size="10" id="filter_startdate" name="filter_startdate" value="<!-- TMPL_VAR Name="filter_startdate" -->" />
149 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="filter_startdate_button" />
150 <script type="text/javascript">
153 inputField : "filter_startdate",
154 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
155 button : "filter_startdate_button"
161 <select name="filter_enddate_sign">
162 <!-- TMPL_IF NAME="filter_enddate_sign_equal_selected" -->
163 <option value="=" selected="selected">=</option>
165 <option value="=">=</option>
168 <!-- TMPL_IF NAME="filter_enddate_sign_superior_selected" -->
169 <option value=">=" selected="selected">>=</option>
171 <option value=">=">>=</option>
174 <!-- TMPL_IF NAME="filter_enddate_sign_inferior_selected" -->
175 <option value="<=" selected="selected"><=</option>
177 <option value="<="><=</option>
180 <input type="text" size="8" maxlength="10" id="filter_enddate" name="filter_enddate" value="<!-- TMPL_VAR Name="filter_enddate" -->" />
181 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="filter_enddate_button" />
182 <script type="text/javascript">
185 inputField : "filter_enddate",
186 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
187 button : "filter_enddate_button"
193 <select name="filter_amount_sign">
194 <!-- TMPL_IF NAME="filter_amount_sign_equal_selected" -->
195 <option value="=" selected="selected">=</option>
197 <option value="=">=</option>
200 <!-- TMPL_IF NAME="filter_amount_sign_superior_selected" -->
201 <option value=">=" selected="selected">>=</option>
203 <option value=">=">>=</option>
206 <!-- TMPL_IF NAME="filter_amount_sign_inferior_selected" -->
207 <option value="<=" selected="selected"><=</option>
209 <option value="<="><=</option>
212 <input type="text" name="filter_amount" value="<!-- TMPL_VAR NAME="filter_amount" -->" size="8" />
215 <input type="submit" name="filter" value="Filter" />
220 <!-- TMPL_LOOP name="budget" -->
221 <!-- TMPL_IF NAME="toggle" -->
222 <tr class="highlight">
226 <td><!-- TMPL_VAR NAME="bookfundid" --></td>
227 <td><!-- TMPL_VAR NAME="branchname" --></td>
228 <td><!-- TMPL_VAR NAME="startdate" --></td>
229 <td><!-- TMPL_VAR NAME="enddate" --></td>
230 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
232 <a href="/cgi-bin/koha/admin/aqbudget.pl?op=add_form&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Edit</a>
233 <a href="/cgi-bin/koha/admin/aqbudget.pl?op=delete_confirm&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Delete</a>
236 <!-- /TMPL_LOOP --> <!-- budget -->
239 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
240 <!-- /TMPL_IF --> <!-- else -->
242 <!-- TMPL_IF name="add_form" -->
245 <form action="/cgi-bin/koha/admin/aqbudget.pl" name="Aform" method="post">
247 <legend>Add budget</legend>
248 <input type="hidden" name="op" value="add_validate" />
249 <input type="hidden" name="checked" value="0" />
255 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR NAME="bookfundid" -->" />
256 <!-- TMPL_VAR NAME="bookfundname" -->
262 <label for="startdate">Start date (<!-- TMPL_VAR NAME="dateformat" -->)</label>
265 <input type="text" size="8" maxlength="10" id="startdate" name="startdate" value="<!-- TMPL_VAR Name="startdate" -->" />
266 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="startdate_button" />
267 <script type="text/javascript">
270 inputField : "startdate",
271 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
272 button : "startdate_button"
280 <label for="enddate">End date (<!-- TMPL_VAR NAME="dateformat" -->)</label>
283 <input type="text" size="8" maxlength="10" id="enddate" name="enddate" value="<!-- TMPL_VAR Name="enddate" -->" />
284 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="enddate_button" alt="" />
285 <script type="text/javascript">
288 inputField : "enddate",
289 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
290 button : "enddate_button"
298 <label for="budgetamount">Budget amount</label>
301 <input type="text" name="budgetamount" id="budgetamount" value="<!-- TMPL_VAR NAME="budgetamount" -->" size="8" />
306 <label for="branch">Branch</label>
309 <!-- TMPL_IF NAME="disable_branchselection" -->
310 <!-- Pierrick's note: I've found that a disabled select was not -->
311 <!-- giving its value to Perl :-/ So I use a hidden field trick -->
312 <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
313 <select name="branch" disabled="disabled">
315 <select name="branch">
318 <option value="">----</option>
319 <!-- TMPL_LOOP NAME="branches" -->
320 <!-- TMPL_IF NAME="selected" -->
321 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
323 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
331 <!-- TMPL_IF NAME="aqbudgetid" -->
332 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
336 <input type="button" value="Submit" onclick="Check(this.form)" />
337 <input type="submit" value="Cancel" onclick="location.href='/cgi-bin/koha/admin/aqbudget.pl'; return false;" />
341 <!-- /TMPL_IF --> <!-- add_form -->
343 <!-- TMPL_IF name="delete_confirm" -->
344 <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
346 <legend>Delete Book Budget?</legend>
351 <td><!-- TMPL_VAR NAME="startdate" --></td>
356 <td><!-- TMPL_VAR NAME="enddate" --></td>
360 <th>Budget Amount</th>
361 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
365 <input type="hidden" name="op" value="delete_confirmed" />
366 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
369 <input type="submit" value="Delete this budget" />
370 <input type="submit" value="Do Not Delete" />
380 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
381 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->