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 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="bookfund-admin-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 Budget?<!-- /TMPL_IF --></div>
69 <div id="doc3" class="yui-t2">
76 <!-- TMPL_IF NAME="add_validate" -->
77 <div class="dialog message">
78 <h3>Budget Data Recorded</h3>
79 <form action="<!-- TMPL_VAR name="script_name" -->" method="get"><input type="submit" class="approve" value="OK" /></form></div>
80 <!-- /TMPL_IF --> <!-- add_validate -->
82 <!-- TMPL_IF name="delete_confirmed" -->
83 <div class="dialog message"><h3>Budget deleted</h3>
84 <form action="<!-- TMPL_VAR name="script_name" -->" method="get"><input type="submit" class="approve" value="OK" /></form></div>
85 <!-- /TMPL_IF --> <!-- delete_confirmed -->
88 <!-- TMPL_IF name="else" -->
90 <form action="/cgi-bin/koha/admin/aqbudget.pl" method="post">
91 <fieldset class="rows"><legend>Search Budgets</legend><ol>
92 <li><label for="filter_bookfundid"> Fund:</label>
93 <select name="filter_bookfundid" id="filter_bookfundid">
94 <option value="">----</option>
95 <!-- TMPL_LOOP name="filter_bookfundids" -->
96 <!-- TMPL_IF NAME="selected" -->
97 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
99 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
104 <li><label for="filter_branchcode">Library:</label>
105 <select name="filter_branchcode" id="filter_branchcode">
106 <option value="">----</option>
107 <!-- TMPL_LOOP name="filter_branches" -->
108 <!-- TMPL_IF NAME="selected" -->
109 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
111 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
116 <li><label for="filter_startdate_sign"> Start date:</label>
117 <select name="filter_startdate_sign" id="filter_startdate_sign">
118 <!-- TMPL_IF NAME="filter_startdate_sign_equal_selected" -->
119 <option value="=" selected="selected">=</option>
121 <option value="=">=</option>
124 <!-- TMPL_IF NAME="filter_startdate_sign_superior_selected" -->
125 <option value=">=" selected="selected">>=</option>
127 <option value=">=">>=</option>
130 <!-- TMPL_IF NAME="filter_startdate_sign_inferior_selected" -->
131 <option value="<=" selected="selected"><=</option>
133 <option value="<="><=</option>
136 <input type="text" size="10" id="filter_startdate" name="filter_startdate" value="<!-- TMPL_VAR Name="filter_startdate" -->" />
137 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="filter_startdate_button" alt="Show Calendar" />
138 <script type="text/javascript">
142 inputField : "filter_startdate",
143 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
144 button : "filter_startdate_button"
150 <li><label for="filter_enddate_sign"> End date:</label>
151 <select name="filter_enddate_sign" id="filter_enddate_sign">
152 <!-- TMPL_IF NAME="filter_enddate_sign_equal_selected" -->
153 <option value="=" selected="selected">=</option>
155 <option value="=">=</option>
158 <!-- TMPL_IF NAME="filter_enddate_sign_superior_selected" -->
159 <option value=">=" selected="selected">>=</option>
161 <option value=">=">>=</option>
164 <!-- TMPL_IF NAME="filter_enddate_sign_inferior_selected" -->
165 <option value="<=" selected="selected"><=</option>
167 <option value="<="><=</option>
170 <input type="text" size="10" id="filter_enddate" name="filter_enddate" value="<!-- TMPL_VAR Name="filter_enddate" -->" />
171 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="filter_enddate_button" alt="Show Calendar" />
172 <script type="text/javascript">
176 inputField : "filter_enddate",
177 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
178 button : "filter_enddate_button"
184 <li><label for="filter_amount_sign"> Budget amount:</label>
185 <select name="filter_amount_sign" id="filter_amount_sign">
186 <!-- TMPL_IF NAME="filter_amount_sign_equal_selected" -->
187 <option value="=" selected="selected">=</option>
189 <option value="=">=</option>
192 <!-- TMPL_IF NAME="filter_amount_sign_superior_selected" -->
193 <option value=">=" selected="selected">>=</option>
195 <option value=">=">>=</option>
198 <!-- TMPL_IF NAME="filter_amount_sign_inferior_selected" -->
199 <option value="<=" selected="selected"><=</option>
201 <option value="<="><=</option>
204 <input type="text" name="filter_amount" value="<!-- TMPL_VAR NAME="filter_amount" -->" size="8" />
207 <fieldset class="action"><input type="submit" name="filter" value="Search" /></fieldset>
216 <th>Budget amount</th>
217 <th colspan="2">Actions</th>
220 <!-- TMPL_LOOP name="budget" -->
221 <!-- TMPL_UNLESS name="__odd__" -->
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></td><td>
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" -->
244 <form action="/cgi-bin/koha/admin/aqbudget.pl" name="Aform" method="post">
245 <fieldset class="rows">
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" />
252 <span class="label">Fund: </span>
253 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR NAME="bookfundid" -->" />
254 <!-- TMPL_VAR NAME="bookfundname" -->
258 <label for="startdate">Start date (<!-- TMPL_VAR NAME="dateformat" -->): </label>
259 <input type="text" size="8" maxlength="10" id="startdate" name="startdate" value="<!-- TMPL_VAR Name="startdate" -->" />
260 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="startdate_button" alt="Show Calendar" />
261 <script type="text/javascript">
265 inputField : "startdate",
266 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
267 button : "startdate_button"
275 <label for="enddate">End date (<!-- TMPL_VAR NAME="dateformat" -->): </label>
276 <input type="text" size="8" maxlength="10" id="enddate" name="enddate" value="<!-- TMPL_VAR Name="enddate" -->" />
277 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="enddate_button" alt="Show Calendar" />
278 <script type="text/javascript">
282 inputField : "enddate",
283 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
284 button : "enddate_button"
292 <label for="budgetamount">Budget amount: </label>
293 <input type="text" name="budgetamount" id="budgetamount" value="<!-- TMPL_VAR NAME="budgetamount" -->" size="8" />
297 <label for="branch">Library: </label>
299 <!-- TMPL_IF NAME="disable_branchselection" -->
300 <!-- Pierrick's note: I've found that a disabled select was not -->
301 <!-- giving its value to Perl :-/ So I use a hidden field trick -->
302 <input type="hidden" name="branch" id="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
303 <select name="branch" disabled="disabled">
305 <select name="branch" id="branch">
308 <option value="">----</option>
309 <!-- TMPL_LOOP NAME="branches" -->
310 <!-- TMPL_IF NAME="selected" -->
311 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
313 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
321 <!-- TMPL_IF NAME="aqbudgetid" -->
322 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
326 <fieldset class="action">
327 <input type="button" value="Submit" onclick="Check(this.form)" /> <a class="cancel" href="/cgi-bin/koha/admin/aqbudget.pl">Cancel</a>
330 <!-- /TMPL_IF --> <!-- add_form -->
332 <!-- TMPL_IF name="delete_confirm" -->
333 <div class="dialog alert"> <h3>Delete Budget?</h3>
337 <th scope="row">Start date: </th>
338 <td><!-- TMPL_VAR NAME="startdate" --></td>
342 <th scope="row">End date: </th>
343 <td><!-- TMPL_VAR NAME="enddate" --></td>
347 <th scope="row">Budget Amount: </th>
348 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
352 <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
353 <input type="hidden" name="op" value="delete_confirmed" />
354 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
355 <input type="submit" value="Delete this budget" class="approve" /></form>
356 <form action="<!-- TMPL_VAR NAME="action" -->" method="get">
357 <input type="submit" class="deny" value="No, Do Not Delete" /></form></div>
364 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
367 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->