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="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 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" -->
87 <form action="/cgi-bin/koha/admin/aqbudget.pl" method="post">
88 <fieldset class="rows"><legend>Search Budgets</legend><ol>
89 <li><label for="filter_bookfundid"> Fund:</label>
90 <select name="filter_bookfundid" id="filter_bookfundid">
91 <option value="">----</option>
92 <!-- TMPL_LOOP name="filter_bookfundids" -->
93 <!-- TMPL_IF NAME="selected" -->
94 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
96 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
101 <li><label for="filter_branchcode">Library:</label>
102 <select name="filter_branchcode" id="filter_branchcode">
103 <option value="">----</option>
104 <!-- TMPL_LOOP name="filter_branches" -->
105 <!-- TMPL_IF NAME="selected" -->
106 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
108 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
113 <li><label for="filter_startdate_sign"> Start date:</label>
114 <select name="filter_startdate_sign" id="filter_startdate_sign">
115 <!-- TMPL_IF NAME="filter_startdate_sign_equal_selected" -->
116 <option value="=" selected="selected">=</option>
118 <option value="=">=</option>
121 <!-- TMPL_IF NAME="filter_startdate_sign_superior_selected" -->
122 <option value=">=" selected="selected">>=</option>
124 <option value=">=">>=</option>
127 <!-- TMPL_IF NAME="filter_startdate_sign_inferior_selected" -->
128 <option value="<=" selected="selected"><=</option>
130 <option value="<="><=</option>
133 <input type="text" size="10" id="filter_startdate" name="filter_startdate" value="<!-- TMPL_VAR Name="filter_startdate" -->" />
134 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="filter_startdate_button" alt="Show Calendar" />
135 <script type="text/javascript">
139 inputField : "filter_startdate",
140 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
141 button : "filter_startdate_button"
147 <li><label for="filter_enddate_sign"> End date:</label>
148 <select name="filter_enddate_sign" id="filter_enddate_sign">
149 <!-- TMPL_IF NAME="filter_enddate_sign_equal_selected" -->
150 <option value="=" selected="selected">=</option>
152 <option value="=">=</option>
155 <!-- TMPL_IF NAME="filter_enddate_sign_superior_selected" -->
156 <option value=">=" selected="selected">>=</option>
158 <option value=">=">>=</option>
161 <!-- TMPL_IF NAME="filter_enddate_sign_inferior_selected" -->
162 <option value="<=" selected="selected"><=</option>
164 <option value="<="><=</option>
167 <input type="text" size="10" id="filter_enddate" name="filter_enddate" value="<!-- TMPL_VAR Name="filter_enddate" -->" />
168 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="filter_enddate_button" alt="Show Calendar" />
169 <script type="text/javascript">
173 inputField : "filter_enddate",
174 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
175 button : "filter_enddate_button"
181 <li><label for="filter_amount_sign"> Budget amount:</label>
182 <select name="filter_amount_sign" id="filter_amount_sign">
183 <!-- TMPL_IF NAME="filter_amount_sign_equal_selected" -->
184 <option value="=" selected="selected">=</option>
186 <option value="=">=</option>
189 <!-- TMPL_IF NAME="filter_amount_sign_superior_selected" -->
190 <option value=">=" selected="selected">>=</option>
192 <option value=">=">>=</option>
195 <!-- TMPL_IF NAME="filter_amount_sign_inferior_selected" -->
196 <option value="<=" selected="selected"><=</option>
198 <option value="<="><=</option>
201 <input type="text" name="filter_amount" value="<!-- TMPL_VAR NAME="filter_amount" -->" size="8" />
204 <fieldset class="action"><input type="submit" name="filter" value="Search" /></fieldset>
213 <th>Budget amount</th>
214 <th colspan="2">Actions</th>
217 <!-- TMPL_LOOP name="budget" -->
218 <!-- TMPL_IF NAME="toggle" -->
219 <tr class="highlight">
223 <td><!-- TMPL_VAR NAME="bookfundid" --></td>
224 <td><!-- TMPL_VAR NAME="branchname" --></td>
225 <td><!-- TMPL_VAR NAME="startdate" --></td>
226 <td><!-- TMPL_VAR NAME="enddate" --></td>
227 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
229 <a href="/cgi-bin/koha/admin/aqbudget.pl?op=add_form&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Edit</a></td><td>
230 <a href="/cgi-bin/koha/admin/aqbudget.pl?op=delete_confirm&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Delete</a>
233 <!-- /TMPL_LOOP --> <!-- budget -->
236 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
237 <!-- /TMPL_IF --> <!-- else -->
239 <!-- TMPL_IF name="add_form" -->
241 <form action="/cgi-bin/koha/admin/aqbudget.pl" name="Aform" method="post">
242 <fieldset class="rows">
243 <legend><!-- TMPL_IF NAME="aqbudgetid" -->Modify<!-- TMPL_ELSE -->Add<!-- /TMPL_IF --> budget</legend>
244 <input type="hidden" name="op" value="add_validate" />
245 <input type="hidden" name="checked" value="0" />
249 <span class="label">Fund: </span>
250 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR NAME="bookfundid" -->" />
251 <!-- TMPL_VAR NAME="bookfundname" -->
255 <label for="startdate">Start date (<!-- TMPL_VAR NAME="dateformat" -->): </label>
256 <input type="text" size="8" maxlength="10" id="startdate" name="startdate" value="<!-- TMPL_VAR Name="startdate" -->" />
257 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="startdate_button" alt="Show Calendar" />
258 <script type="text/javascript">
262 inputField : "startdate",
263 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
264 button : "startdate_button"
272 <label for="enddate">End date (<!-- TMPL_VAR NAME="dateformat" -->): </label>
273 <input type="text" size="8" maxlength="10" id="enddate" name="enddate" value="<!-- TMPL_VAR Name="enddate" -->" />
274 <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="enddate_button" alt="Show Calendar" />
275 <script type="text/javascript">
279 inputField : "enddate",
280 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
281 button : "enddate_button"
289 <label for="budgetamount">Budget amount: </label>
290 <input type="text" name="budgetamount" id="budgetamount" value="<!-- TMPL_VAR NAME="budgetamount" -->" size="8" />
294 <label for="branch">Branch: </label>
296 <!-- TMPL_IF NAME="disable_branchselection" -->
297 <!-- Pierrick's note: I've found that a disabled select was not -->
298 <!-- giving its value to Perl :-/ So I use a hidden field trick -->
299 <input type="hidden" name="branch" id="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
300 <select name="branch" disabled="disabled">
302 <select name="branch" id="branch">
305 <option value="">----</option>
306 <!-- TMPL_LOOP NAME="branches" -->
307 <!-- TMPL_IF NAME="selected" -->
308 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
310 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
318 <!-- TMPL_IF NAME="aqbudgetid" -->
319 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
323 <fieldset class="action">
324 <input type="button" value="Submit" onclick="Check(this.form)" /> <a class="cancel" href="/cgi-bin/koha/admin/aqbudget.pl">Cancel</a>
327 <!-- /TMPL_IF --> <!-- add_form -->
329 <!-- TMPL_IF name="delete_confirm" -->
331 <legend>Delete Budget?</legend>
335 <th scope="row">Start date: </th>
336 <td><!-- TMPL_VAR NAME="startdate" --></td>
340 <th scope="row">End date: </th>
341 <td><!-- TMPL_VAR NAME="enddate" --></td>
345 <th scope="row">Budget Amount: </th>
346 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
351 <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
352 <fieldset class="action">
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" />
356 <a class="cancel" href="/cgi-bin/koha/admin/aqbudget.pl">Cancel</a>
365 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
368 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->