1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › System Administration › Budgets</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <!-- Additions to enable Calendar system -->
6 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-system.css">
7 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-en.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-setup.js"></script>
10 <!-- End of additions -->
12 <!-- TMPL_INCLUDE NAME="menus.inc" -->
13 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
15 <ul id="_informations">
16 <!-- TMPL_IF NAME="add_validate" -->
17 <li>Budget Data Recorded, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li>
18 <!-- /TMPL_IF --> <!-- add_validate -->
20 <!-- TMPL_IF name="delete_confirmed" -->
21 <li>Budget deleted, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li>
22 <!-- /TMPL_IF --> <!-- delete_confirmed -->
25 <!-- TMPL_IF name="else" -->
34 <th>Budget amount</th>
38 <form action="/cgi-bin/koha/admin/aqbudget.pl" method="post">
41 <select name="filter_bookfundid">
42 <option value="">----</option>
43 <!-- TMPL_LOOP name="filter_bookfundids" -->
44 <!-- TMPL_IF NAME="selected" -->
45 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
47 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
53 <select name="filter_branchcode">
54 <option value="">----</option>
55 <!-- TMPL_LOOP name="filter_branches" -->
56 <!-- TMPL_IF NAME="selected" -->
57 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
59 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
65 <select name="filter_startdate_sign">
66 <!-- TMPL_IF NAME="filter_startdate_sign_equal_selected" -->
67 <option value="=" selected="selected">=</option>
69 <option value="=">=</option>
72 <!-- TMPL_IF NAME="filter_startdate_sign_superior_selected" -->
73 <option value=">=" selected="selected">>=</option>
75 <option value=">=">>=</option>
78 <!-- TMPL_IF NAME="filter_startdate_sign_inferior_selected" -->
79 <option value="<=" selected="selected"><=</option>
81 <option value="<="><=</option>
84 <input type="text" size="10" id="filter_startdate" name="filter_startdate" value="<!-- TMPL_VAR Name="filter_startdate" -->" />
85 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="filter_startdate_button" />
86 <script language="JavaScript" type="text/javascript">
89 inputField : "filter_startdate",
90 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
91 button : "filter_startdate_button"
97 <select name="filter_enddate_sign">
98 <!-- TMPL_IF NAME="filter_enddate_sign_equal_selected" -->
99 <option value="=" selected="selected">=</option>
101 <option value="=">=</option>
104 <!-- TMPL_IF NAME="filter_enddate_sign_superior_selected" -->
105 <option value=">=" selected="selected">>=</option>
107 <option value=">=">>=</option>
110 <!-- TMPL_IF NAME="filter_enddate_sign_inferior_selected" -->
111 <option value="<=" selected="selected"><=</option>
113 <option value="<="><=</option>
116 <input type="text" size="8" maxlength="10" id="filter_enddate" name="filter_enddate" value="<!-- TMPL_VAR Name="filter_enddate" -->" />
117 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="filter_enddate_button" />
118 <script language="JavaScript" type="text/javascript">
121 inputField : "filter_enddate",
122 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
123 button : "filter_enddate_button"
129 <select name="filter_amount_sign">
130 <!-- TMPL_IF NAME="filter_amount_sign_equal_selected" -->
131 <option value="=" selected="selected">=</option>
133 <option value="=">=</option>
136 <!-- TMPL_IF NAME="filter_amount_sign_superior_selected" -->
137 <option value=">=" selected="selected">>=</option>
139 <option value=">=">>=</option>
142 <!-- TMPL_IF NAME="filter_amount_sign_inferior_selected" -->
143 <option value="<=" selected="selected"><=</option>
145 <option value="<="><=</option>
148 <input type="text" name="filter_amount" value="<!-- TMPL_VAR NAME="filter_amount" -->" size="8"/>
151 <input type="submit" name="filter" value="Filter" />
156 <!-- TMPL_LOOP name="budget" -->
157 <!-- TMPL_IF NAME="toggle" -->
158 <tr class="highlight">
162 <td><!-- TMPL_VAR NAME="bookfundid" --></td>
163 <td><!-- TMPL_VAR NAME="branchname" --></td>
164 <td><!-- TMPL_VAR NAME="startdate" --></td>
165 <td><!-- TMPL_VAR NAME="enddate" --></td>
166 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
168 <a href="/cgi-bin/koha/admin/aqbudget.pl?op=add_form&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Edit</a>
169 <a href="/cgi-bin/koha/admin/aqbudget.pl?op=delete_confirm&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Delete</a>
172 <!-- /TMPL_LOOP --> <!-- budget -->
175 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
176 <!-- /TMPL_IF --> <!-- else -->
178 <!-- TMPL_IF name="add_form" -->
179 <script language="JavaScript" type="text/javascript">
181 function isNotNull(f,noalert) {
182 if (f.value.length ==0) {
189 var x=f.value.toUpperCase();
194 function isNum(v,maybenull) {
195 var n = new Number(v.value);
199 if (maybenull==0 && v.value=='') {
206 var t = Date.parse(f.value);
216 if (f.bookfundid.value.length==0) {
217 _alertString += "- bookfundid missing\n";
219 if (!(isNotNull(window.document.Aform.budgetamount,1))) {
220 _alertString += "- Budget missing\n";
222 if (_alertString.length==0) {
223 document.Aform.submit();
225 alertString2 = "Form not submitted because of the following problem(s)\n";
226 alertString2 += "------------------------------------------------------------------------------------\n\n";
227 alertString2 += _alertString;
233 <form action="/cgi-bin/koha/admin/aqbudget.pl" name="Aform" method="post">
235 <legend>Add budget</legend>
236 <input type="hidden" name="op" value="add_validate" />
237 <input type="hidden" name="checked" value="0" />
243 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR NAME="bookfundid" -->" />
244 <!-- TMPL_VAR NAME="bookfundname" -->
250 <label for="startdate">Start date (<!-- TMPL_VAR NAME="dateformat" -->)</label>
253 <input type="text" size="8" maxlength="10" id="startdate" name="startdate" value="<!-- TMPL_VAR Name="startdate" -->" />
254 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="startdate_button" />
255 <script language="JavaScript" type="text/javascript">
258 inputField : "startdate",
259 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
260 button : "startdate_button"
268 <label for="enddate">End date (<!-- TMPL_VAR NAME="dateformat" -->)</label>
271 <input type="text" size="8" maxlength="10" id="enddate" name="enddate" value="<!-- TMPL_VAR Name="enddate" -->" />
272 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="enddate_button" />
273 <script language="JavaScript" type="text/javascript">
276 inputField : "enddate",
277 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
278 button : "enddate_button"
286 <label for="budgetamount">Budget amount</label>
289 <input type="text" name="budgetamount" id="budgetamount" value="<!-- TMPL_VAR NAME="budgetamount" -->" size="8" />
294 <label for="branch">Branch</label>
297 <!-- TMPL_IF NAME="disable_branchselection" -->
298 <!-- Pierrick's note: I've found that a disabled select was not -->
299 <!-- giving its value to Perl :-/ So I use a hidden field trick -->
300 <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
301 <select name="branch" disabled="disabled">
303 <select name="branch">
306 <option value="">----</option>
307 <!-- TMPL_LOOP NAME="branches" -->
308 <!-- TMPL_IF NAME="selected" -->
309 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
311 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
319 <!-- TMPL_IF NAME="aqbudgetid" -->
320 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
324 <input type="button" value="Submit" onclick="Check(this.form)" />
325 <input type="submit" value="Cancel" onclick="location.href='/cgi-bin/koha/admin/aqbudget.pl'; return false;" />
329 <!-- /TMPL_IF --> <!-- add_form -->
331 <!-- TMPL_IF name="delete_confirm" -->
332 <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
334 <legend>Delete Book Budget?</legend>
339 <td><!-- TMPL_VAR NAME="startdate" --></td>
344 <td><!-- TMPL_VAR NAME="enddate" --></td>
348 <th>Budget Amount</th>
349 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
353 <input type="hidden" name="op" value="delete_confirmed" />
354 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
357 <input type="submit" value="Delete this budget" />
358 <input type="submit" value="Do Not Delete" />
364 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->