1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › <!-- TMPL_IF NAME="else" -->Budgets<!-- /TMPL_IF --><!-- TMPL_IF name="add_form" -->Budgets › <!-- TMPL_IF NAME="aqbudgetid" -->Modify<!-- TMPL_ELSE -->Add<!-- /TMPL_IF --> Budget<!-- /TMPL_IF --><!-- TMPL_IF NAME="add_validate" -->Budgets › Budget Data Recorded<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" -->Budgets › Budget Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirm" -->Budgets › Delete Book Budget?<!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="calendar.inc" -->
5 <!-- TMPL_IF name="add_form" -->
6 <script type="text/javascript">
9 function isNotNull(f,noalert) {
10 if (f.value.length ==0) {
17 var x=f.value.toUpperCase();
22 function isNum(v,maybenull) {
23 var n = new Number(v.value);
27 if (maybenull==0 && v.value=='') {
34 var t = Date.parse(f.value);
44 if (f.bookfundid.value.length==0) {
45 _alertString += "- bookfundid missing\n";
47 if (!(isNotNull(window.document.Aform.budgetamount,1))) {
48 _alertString += "- Budget missing\n";
50 if (_alertString.length==0) {
51 document.Aform.submit();
53 alertString2 = "Form not submitted because of the following problem(s)\n";
54 alertString2 += "------------------------------------------------------------------------------------\n\n";
55 alertString2 += _alertString;
64 <!-- TMPL_INCLUDE NAME="header.inc" -->
65 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
67 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <!-- TMPL_IF NAME="else" -->Budgets<!-- /TMPL_IF --><!-- TMPL_IF name="add_form" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> › <!-- TMPL_IF NAME="aqbudgetid" -->Modify<!-- TMPL_ELSE -->Add<!-- /TMPL_IF --> Budget<!-- /TMPL_IF --><!-- TMPL_IF NAME="add_validate" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> › Budget Data Recorded<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirmed" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> › Budget Deleted<!-- /TMPL_IF --><!-- TMPL_IF name="delete_confirm" --><a href="/cgi-bin/koha/admin/aqbudget.pl">Budgets</a> › Delete Book Budget?<!-- /TMPL_IF --></div>
69 <div id="doc3" class="yui-t2">
76 <!-- TMPL_IF NAME="add_validate" -->
77 <ul id="_informations"><li>Budget Data Recorded, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li></ul>
78 <!-- /TMPL_IF --> <!-- add_validate -->
80 <!-- TMPL_IF name="delete_confirmed" -->
81 <ul id="_informations"><li>Budget deleted, return to <a href="<!-- TMPL_VAR name="script_name" -->">budget list</a></li></ul>
82 <!-- /TMPL_IF --> <!-- delete_confirmed -->
85 <!-- TMPL_IF name="else" -->
88 <form action="/cgi-bin/koha/admin/aqbudget.pl" method="post">
95 <th>Budget amount</th>
101 <select name="filter_bookfundid">
102 <option value="">----</option>
103 <!-- TMPL_LOOP name="filter_bookfundids" -->
104 <!-- TMPL_IF NAME="selected" -->
105 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
107 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
113 <select name="filter_branchcode">
114 <option value="">----</option>
115 <!-- TMPL_LOOP name="filter_branches" -->
116 <!-- TMPL_IF NAME="selected" -->
117 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
119 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
125 <select name="filter_startdate_sign">
126 <!-- TMPL_IF NAME="filter_startdate_sign_equal_selected" -->
127 <option value="=" selected="selected">=</option>
129 <option value="=">=</option>
132 <!-- TMPL_IF NAME="filter_startdate_sign_superior_selected" -->
133 <option value=">=" selected="selected">>=</option>
135 <option value=">=">>=</option>
138 <!-- TMPL_IF NAME="filter_startdate_sign_inferior_selected" -->
139 <option value="<=" selected="selected"><=</option>
141 <option value="<="><=</option>
144 <input type="text" size="10" id="filter_startdate" name="filter_startdate" value="<!-- TMPL_VAR Name="filter_startdate" -->" />
145 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="filter_startdate_button" alt="Show Calendar" />
146 <script type="text/javascript">
150 inputField : "filter_startdate",
151 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
152 button : "filter_startdate_button"
159 <select name="filter_enddate_sign">
160 <!-- TMPL_IF NAME="filter_enddate_sign_equal_selected" -->
161 <option value="=" selected="selected">=</option>
163 <option value="=">=</option>
166 <!-- TMPL_IF NAME="filter_enddate_sign_superior_selected" -->
167 <option value=">=" selected="selected">>=</option>
169 <option value=">=">>=</option>
172 <!-- TMPL_IF NAME="filter_enddate_sign_inferior_selected" -->
173 <option value="<=" selected="selected"><=</option>
175 <option value="<="><=</option>
178 <input type="text" size="8" maxlength="10" id="filter_enddate" name="filter_enddate" value="<!-- TMPL_VAR Name="filter_enddate" -->" />
179 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="filter_enddate_button" alt="Show Calendar" />
180 <script type="text/javascript">
184 inputField : "filter_enddate",
185 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
186 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" />
219 <!-- TMPL_LOOP name="budget" -->
220 <!-- TMPL_IF NAME="toggle" -->
221 <tr class="highlight">
225 <td><!-- TMPL_VAR NAME="bookfundid" --></td>
226 <td><!-- TMPL_VAR NAME="branchname" --></td>
227 <td><!-- TMPL_VAR NAME="startdate" --></td>
228 <td><!-- TMPL_VAR NAME="enddate" --></td>
229 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
231 <a href="/cgi-bin/koha/admin/aqbudget.pl?op=add_form&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Edit</a>
232 <a href="/cgi-bin/koha/admin/aqbudget.pl?op=delete_confirm&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Delete</a>
235 <!-- /TMPL_LOOP --> <!-- budget -->
239 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
240 <!-- /TMPL_IF --> <!-- else -->
242 <!-- TMPL_IF name="add_form" -->
244 <form action="/cgi-bin/koha/admin/aqbudget.pl" name="Aform" method="post">
246 <legend><!-- TMPL_IF NAME="aqbudgetid" -->Modify<!-- TMPL_ELSE -->Add<!-- /TMPL_IF --> budget</legend>
247 <input type="hidden" name="op" value="add_validate" />
248 <input type="hidden" name="checked" value="0" />
254 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR NAME="bookfundid" -->" />
255 <!-- TMPL_VAR NAME="bookfundname" -->
261 <label for="startdate">Start date (<!-- TMPL_VAR NAME="dateformat" -->)</label>
264 <input type="text" size="8" maxlength="10" id="startdate" name="startdate" value="<!-- TMPL_VAR Name="startdate" -->" />
265 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="startdate_button" alt="Show Calendar" />
266 <script type="text/javascript">
270 inputField : "startdate",
271 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
272 button : "startdate_button"
281 <label for="enddate">End date (<!-- TMPL_VAR NAME="dateformat" -->)</label>
284 <input type="text" size="8" maxlength="10" id="enddate" name="enddate" value="<!-- TMPL_VAR Name="enddate" -->" />
285 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="enddate_button" alt="Show Calendar" />
286 <script type="text/javascript">
290 inputField : "enddate",
291 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
292 button : "enddate_button"
301 <label for="budgetamount">Budget amount</label>
304 <input type="text" name="budgetamount" id="budgetamount" value="<!-- TMPL_VAR NAME="budgetamount" -->" size="8" />
309 <label for="branch">Branch</label>
312 <!-- TMPL_IF NAME="disable_branchselection" -->
313 <!-- Pierrick's note: I've found that a disabled select was not -->
314 <!-- giving its value to Perl :-/ So I use a hidden field trick -->
315 <input type="hidden" name="branch" id="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
316 <select name="branch" disabled="disabled">
318 <select name="branch">
321 <option value="">----</option>
322 <!-- TMPL_LOOP NAME="branches" -->
323 <!-- TMPL_IF NAME="selected" -->
324 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
326 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
334 <!-- TMPL_IF NAME="aqbudgetid" -->
335 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
339 <input type="button" value="Submit" onclick="Check(this.form)" />
340 <input type="submit" value="Cancel" onclick="location.href='/cgi-bin/koha/admin/aqbudget.pl'; return false;" />
344 <!-- /TMPL_IF --> <!-- add_form -->
346 <!-- TMPL_IF name="delete_confirm" -->
347 <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
349 <legend>Delete Book Budget?</legend>
354 <td><!-- TMPL_VAR NAME="startdate" --></td>
359 <td><!-- TMPL_VAR NAME="enddate" --></td>
363 <th>Budget Amount</th>
364 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
368 <input type="hidden" name="op" value="delete_confirmed" />
369 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
372 <input type="submit" value="Delete this budget" />
373 <input type="submit" value="Do Not Delete" />
382 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
385 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->