1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › System Administration: Funds and Budgets</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6 <!-- TMPL_INCLUDE NAME="header.inc" -->
7 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
9 <div id="doc3" class="yui-t2">
13 <div class="yui-b"><div class="yui-g">
15 <!-- TMPL_IF name="else" -->
16 <h1>Funds and budgets administration</h1>
17 <!-- TMPL_IF NAME="bookfund" -->
26 <form action="<!-- TMPL_VAR name="scriptname" -->" method="post">
29 <select name="filter_bookfundid">
30 <option value="">----</option>
31 <!-- TMPL_LOOP name="filter_bookfundids" -->
32 <!-- TMPL_IF NAME="selected" -->
33 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
35 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
41 <input type="text" name="filter_bookfundname" value="<!-- TMPL_VAR name="filter_bookfundname" -->" />
44 <select name="filter_branchcode">
45 <option value="">----</option>
46 <!-- TMPL_LOOP name="filter_branches" -->
47 <!-- TMPL_IF NAME="selected" -->
48 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
50 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
56 <input type="submit" name="filter" value="Filter" />
61 <form action="aqbudget.pl" method="post">
62 <!-- TMPL_LOOP name="bookfund" -->
63 <!-- TMPL_IF NAME="toggle" -->
64 <tr class="highlight">
69 <!-- TMPL_VAR name="bookfundid" -->
72 <!-- TMPL_VAR name="bookfundname" -->
75 <!-- TMPL_IF NAME="branchname" -->
76 <!-- TMPL_VAR name="branchname" -->
82 <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Edit</a>
83 <a href="<!-- TMPL_VAR name="scriptname" -->?op=delete_confirm&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Delete</a>
84 <a href="aqbudget.pl?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Add budget</a>
85 <!-- TMPL_IF NAME="has_budgets" -->
86 <a href="aqbudget.pl?filter_bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Show budgets</a>
91 <!-- /TMPL_LOOP --> <!-- bookfund -->
94 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
95 <!-- /TMPL_IF --> <!-- bookfund -->
98 <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form">Add bookfund</a>
99 <a href="aqbudget.pl">Show all budgets</a>
103 <!-- /TMPL_IF --> <!-- else -->
105 <!-- TMPL_IF name="add_form" -->
108 function isNotNull(f,noalert) {
109 if (f.value.length ==0) {
116 var x=f.value.toUpperCase();
121 function isNum(v,maybenull) {
122 var n = new Number(v.value);
126 if (maybenull==0 && v.value=="") {
133 var t = Date.parse(f.value);
143 if (f.bookfundid.value.length==0) {
144 _alertString += "- bookfundid missing\n";
146 if (f.bookfundname.value.length==0) {
147 _alertString += "- bookfundname missing\n";
149 if (_alertString.length==0) {
150 document.Aform.submit();
152 alertString2 = "Form not submitted because of the following problem(s)\n";
153 alertString2 += "------------------------------------------------------------------------------------\n\n";
154 alertString2 += _alertString;
160 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
161 <input type="hidden" name="op" value="add_validate" />
162 <input type="hidden" name="checked" value="0" />
165 <caption><!-- TMPL_VAR name="header" --></caption>
167 <!-- TMPL_IF name="add_or_modify" -->
171 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
172 <!-- TMPL_VAR name="bookfundid" -->
179 <input type="text" name="bookfundid" size="5" maxlength="5" onblur="toUC(this)" />
182 <!-- /TMPL_IF --> <!-- add_or_modify -->
191 value="<!-- TMPL_VAR name="bookfundname" escape="HTML" -->"
199 <select name="branchcode">
200 <option value="">None</option>
201 <!-- TMPL_LOOP NAME="branches" -->
202 <!-- TMPL_IF NAME="selected" -->
203 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
205 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
214 <input type="button" value="Submit" onclick="Check(this.form); return false;" />
217 <!-- /TMPL_IF --> <!-- add_form -->
219 <!-- TMPL_IF name="add_validate" -->
220 <h3>Data Recorded</h3>
223 <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
227 <!-- TMPL_IF name="delete_confirm" -->
228 <h3>Confirm Deletion of Fund <em><!-- TMPL_VAR name="bookfundid" --></em></h3>
232 <td><!-- TMPL_VAR name="bookfundid" --></td>
236 <td><!-- TMPL_VAR name="branchcode" --></td>
240 <td><!-- TMPL_VAR name="bookfundname" --></td>
244 <td><!-- TMPL_VAR name="bookfundgroup" --></td>
248 <form action="<!-- TMPL_VAR name="action" -->" method="post">
249 <input type="hidden" name="op" value="delete_confirmed" />
250 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
251 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" -->" />
254 <input type="submit" value="Delete this Fund" />
258 <form action="<!-- TMPL_VAR name="action" -->" method="post">
259 <input type="submit" value="Do not Delete" />
261 <!-- /TMPL_IF --> <!-- delete_confirm -->
263 <!-- TMPL_IF name="delete_confirmed" -->
264 <h3>Data Deleted</h3>
265 <form action="<!-- TMPL_VAR name="action" -->" method="post">
266 <input type="submit" value="OK" />
268 <!-- /TMPL_IF --> <!-- delete_confirmed -->
274 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
275 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->