1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › System Administration › Budgets</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6 <!-- TMPL_INCLUDE NAME="header.inc" -->
8 <!-- Additions to enable Calendar system -->
9 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-system.css" />
10 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar.js"></script>
11 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-en.js"></script>
12 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/calendar/calendar-setup.js"></script>
13 <!-- End of additions -->
15 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
17 <div id="doc3" class="yui-t2">
21 <div class="yui-b"><div class="yui-g">
23 <ul id="_informations">
24 <!-- TMPL_IF NAME="add_validate" -->
25 <li>Budget Data Recorded, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li>
26 <!-- /TMPL_IF --> <!-- add_validate -->
28 <!-- TMPL_IF name="delete_confirmed" -->
29 <li>Budget deleted, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li>
30 <!-- /TMPL_IF --> <!-- delete_confirmed -->
33 <!-- TMPL_IF name="else" -->
42 <th>Budget amount</th>
46 <form action="/cgi-bin/koha/admin/aqbudget.pl" method="post">
49 <select name="filter_bookfundid">
50 <option value="">----</option>
51 <!-- TMPL_LOOP name="filter_bookfundids" -->
52 <!-- TMPL_IF NAME="selected" -->
53 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
55 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
61 <select name="filter_branchcode">
62 <option value="">----</option>
63 <!-- TMPL_LOOP name="filter_branches" -->
64 <!-- TMPL_IF NAME="selected" -->
65 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
67 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
73 <select name="filter_startdate_sign">
74 <!-- TMPL_IF NAME="filter_startdate_sign_equal_selected" -->
75 <option value="=" selected="selected">=</option>
77 <option value="=">=</option>
80 <!-- TMPL_IF NAME="filter_startdate_sign_superior_selected" -->
81 <option value=">=" selected="selected">>=</option>
83 <option value=">=">>=</option>
86 <!-- TMPL_IF NAME="filter_startdate_sign_inferior_selected" -->
87 <option value="<=" selected="selected"><=</option>
89 <option value="<="><=</option>
92 <input type="text" size="10" id="filter_startdate" name="filter_startdate" value="<!-- TMPL_VAR Name="filter_startdate" -->" />
93 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="filter_startdate_button" />
94 <script language="JavaScript" type="text/javascript">
97 inputField : "filter_startdate",
98 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
99 button : "filter_startdate_button"
105 <select name="filter_enddate_sign">
106 <!-- TMPL_IF NAME="filter_enddate_sign_equal_selected" -->
107 <option value="=" selected="selected">=</option>
109 <option value="=">=</option>
112 <!-- TMPL_IF NAME="filter_enddate_sign_superior_selected" -->
113 <option value=">=" selected="selected">>=</option>
115 <option value=">=">>=</option>
118 <!-- TMPL_IF NAME="filter_enddate_sign_inferior_selected" -->
119 <option value="<=" selected="selected"><=</option>
121 <option value="<="><=</option>
124 <input type="text" size="8" maxlength="10" id="filter_enddate" name="filter_enddate" value="<!-- TMPL_VAR Name="filter_enddate" -->" />
125 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="filter_enddate_button" />
126 <script language="JavaScript" type="text/javascript">
129 inputField : "filter_enddate",
130 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
131 button : "filter_enddate_button"
137 <select name="filter_amount_sign">
138 <!-- TMPL_IF NAME="filter_amount_sign_equal_selected" -->
139 <option value="=" selected="selected">=</option>
141 <option value="=">=</option>
144 <!-- TMPL_IF NAME="filter_amount_sign_superior_selected" -->
145 <option value=">=" selected="selected">>=</option>
147 <option value=">=">>=</option>
150 <!-- TMPL_IF NAME="filter_amount_sign_inferior_selected" -->
151 <option value="<=" selected="selected"><=</option>
153 <option value="<="><=</option>
156 <input type="text" name="filter_amount" value="<!-- TMPL_VAR NAME="filter_amount" -->" size="8" />
159 <input type="submit" name="filter" value="Filter" />
164 <!-- TMPL_LOOP name="budget" -->
165 <!-- TMPL_IF NAME="toggle" -->
166 <tr class="highlight">
170 <td><!-- TMPL_VAR NAME="bookfundid" --></td>
171 <td><!-- TMPL_VAR NAME="branchname" --></td>
172 <td><!-- TMPL_VAR NAME="startdate" --></td>
173 <td><!-- TMPL_VAR NAME="enddate" --></td>
174 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
176 <a href="/cgi-bin/koha/admin/aqbudget.pl?op=add_form&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Edit</a>
177 <a href="/cgi-bin/koha/admin/aqbudget.pl?op=delete_confirm&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Delete</a>
180 <!-- /TMPL_LOOP --> <!-- budget -->
183 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
184 <!-- /TMPL_IF --> <!-- else -->
186 <!-- TMPL_IF name="add_form" -->
187 <script language="JavaScript" type="text/javascript">
189 function isNotNull(f,noalert) {
190 if (f.value.length ==0) {
197 var x=f.value.toUpperCase();
202 function isNum(v,maybenull) {
203 var n = new Number(v.value);
207 if (maybenull==0 && v.value=='') {
214 var t = Date.parse(f.value);
224 if (f.bookfundid.value.length==0) {
225 _alertString += "- bookfundid missing\n";
227 if (!(isNotNull(window.document.Aform.budgetamount,1))) {
228 _alertString += "- Budget missing\n";
230 if (_alertString.length==0) {
231 document.Aform.submit();
233 alertString2 = "Form not submitted because of the following problem(s)\n";
234 alertString2 += "------------------------------------------------------------------------------------\n\n";
235 alertString2 += _alertString;
241 <form action="/cgi-bin/koha/admin/aqbudget.pl" name="Aform" method="post">
243 <legend>Add budget</legend>
244 <input type="hidden" name="op" value="add_validate" />
245 <input type="hidden" name="checked" value="0" />
251 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR NAME="bookfundid" -->" />
252 <!-- TMPL_VAR NAME="bookfundname" -->
258 <label for="startdate">Start date (<!-- TMPL_VAR NAME="dateformat" -->)</label>
261 <input type="text" size="8" maxlength="10" id="startdate" name="startdate" value="<!-- TMPL_VAR Name="startdate" -->" />
262 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="startdate_button" />
263 <script language="JavaScript" type="text/javascript">
266 inputField : "startdate",
267 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
268 button : "startdate_button"
276 <label for="enddate">End date (<!-- TMPL_VAR NAME="dateformat" -->)</label>
279 <input type="text" size="8" maxlength="10" id="enddate" name="enddate" value="<!-- TMPL_VAR Name="enddate" -->" />
280 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="enddate_button" alt="" />
281 <script language="JavaScript" type="text/javascript">
284 inputField : "enddate",
285 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
286 button : "enddate_button"
294 <label for="budgetamount">Budget amount</label>
297 <input type="text" name="budgetamount" id="budgetamount" value="<!-- TMPL_VAR NAME="budgetamount" -->" size="8" />
302 <label for="branch">Branch</label>
305 <!-- TMPL_IF NAME="disable_branchselection" -->
306 <!-- Pierrick's note: I've found that a disabled select was not -->
307 <!-- giving its value to Perl :-/ So I use a hidden field trick -->
308 <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
309 <select name="branch" disabled="disabled">
311 <select name="branch">
314 <option value="">----</option>
315 <!-- TMPL_LOOP NAME="branches" -->
316 <!-- TMPL_IF NAME="selected" -->
317 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
319 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
327 <!-- TMPL_IF NAME="aqbudgetid" -->
328 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
332 <input type="button" value="Submit" onclick="Check(this.form)" />
333 <input type="submit" value="Cancel" onclick="location.href='/cgi-bin/koha/admin/aqbudget.pl'; return false;" />
337 <!-- /TMPL_IF --> <!-- add_form -->
339 <!-- TMPL_IF name="delete_confirm" -->
340 <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
342 <legend>Delete Book Budget?</legend>
347 <td><!-- TMPL_VAR NAME="startdate" --></td>
352 <td><!-- TMPL_VAR NAME="enddate" --></td>
356 <th>Budget Amount</th>
357 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
361 <input type="hidden" name="op" value="delete_confirmed" />
362 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
365 <input type="submit" value="Delete this budget" />
366 <input type="submit" value="Do Not Delete" />
376 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
377 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->