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" -->
4 <!-- TMPL_INCLUDE NAME="header.inc" -->
5 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
7 <div id="doc3" class="yui-t2">
11 <div class="yui-b"><div class="yui-g">
13 <!-- TMPL_IF name="else" -->
14 <h1>Funds and budgets administration</h1>
15 <!-- TMPL_IF NAME="bookfund" -->
24 <form action="<!-- TMPL_VAR name="scriptname" -->" method="post">
27 <select name="filter_bookfundid">
28 <option value="">----</option>
29 <!-- TMPL_LOOP name="filter_bookfundids" -->
30 <!-- TMPL_IF NAME="selected" -->
31 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
33 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
39 <input type="text" name="filter_bookfundname" value="<!-- TMPL_VAR name="filter_bookfundname" -->" />
42 <select name="filter_branchcode">
43 <option value="">----</option>
44 <!-- TMPL_LOOP name="filter_branches" -->
45 <!-- TMPL_IF NAME="selected" -->
46 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
48 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
54 <input type="submit" name="filter" value="Filter" />
59 <form action="aqbudget.pl" method="post">
60 <!-- TMPL_LOOP name="bookfund" -->
61 <!-- TMPL_IF NAME="toggle" -->
62 <tr class="highlight">
67 <!-- TMPL_VAR name="bookfundid" -->
70 <!-- TMPL_VAR name="bookfundname" -->
73 <!-- TMPL_IF NAME="branchname" -->
74 <!-- TMPL_VAR name="branchname" -->
80 <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Edit</a>
81 <a href="<!-- TMPL_VAR name="scriptname" -->?op=delete_confirm&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Delete</a>
82 <a href="aqbudget.pl?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Add budget</a>
83 <!-- TMPL_IF NAME="has_budgets" -->
84 <a href="aqbudget.pl?filter_bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Show budgets</a>
89 <!-- /TMPL_LOOP --> <!-- bookfund -->
92 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
93 <!-- /TMPL_IF --> <!-- bookfund -->
96 <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form">Add bookfund</a>
97 <a href="aqbudget.pl">Show all budgets</a>
101 <!-- /TMPL_IF --> <!-- else -->
103 <!-- TMPL_IF name="add_form" -->
106 function isNotNull(f,noalert) {
107 if (f.value.length ==0) {
114 var x=f.value.toUpperCase();
119 function isNum(v,maybenull) {
120 var n = new Number(v.value);
124 if (maybenull==0 && v.value=="") {
131 var t = Date.parse(f.value);
141 if (f.bookfundid.value.length==0) {
142 _alertString += "- bookfundid missing\n";
144 if (f.bookfundname.value.length==0) {
145 _alertString += "- bookfundname missing\n";
147 if (_alertString.length==0) {
148 document.Aform.submit();
150 alertString2 = "Form not submitted because of the following problem(s)\n";
151 alertString2 += "------------------------------------------------------------------------------------\n\n";
152 alertString2 += _alertString;
158 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
159 <input type="hidden" name="op" value="add_validate" />
160 <input type="hidden" name="checked" value="0" />
163 <caption><!-- TMPL_VAR name="header" --></caption>
165 <!-- TMPL_IF name="add_or_modify" -->
169 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
170 <!-- TMPL_VAR name="bookfundid" -->
177 <input type="text" name="bookfundid" size="5" maxlength="5" onblur="toUC(this)" />
180 <!-- /TMPL_IF --> <!-- add_or_modify -->
189 value="<!-- TMPL_VAR name="bookfundname" escape="HTML" -->"
197 <select name="branchcode">
198 <option value="">None</option>
199 <!-- TMPL_LOOP NAME="branches" -->
200 <!-- TMPL_IF NAME="selected" -->
201 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
203 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
212 <input type="button" value="Submit" onclick="Check(this.form); return false;" />
215 <!-- /TMPL_IF --> <!-- add_form -->
217 <!-- TMPL_IF name="add_validate" -->
218 <h3>Data Recorded</h3>
221 <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
225 <!-- TMPL_IF name="delete_confirm" -->
226 <h3>Confirm Deletion of Fund <em><!-- TMPL_VAR name="bookfundid" --></em></h3>
230 <td><!-- TMPL_VAR name="bookfundid" --></td>
234 <td><!-- TMPL_VAR name="branchcode" --></td>
238 <td><!-- TMPL_VAR name="bookfundname" --></td>
242 <td><!-- TMPL_VAR name="bookfundgroup" --></td>
246 <form action="<!-- TMPL_VAR name="action" -->" method="post">
247 <input type="hidden" name="op" value="delete_confirmed" />
248 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
249 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" -->" />
252 <input type="submit" value="Delete this Fund" />
256 <form action="<!-- TMPL_VAR name="action" -->" method="post">
257 <input type="submit" value="Do not Delete" />
259 <!-- /TMPL_IF --> <!-- delete_confirm -->
261 <!-- TMPL_IF name="delete_confirmed" -->
262 <h3>Data Deleted</h3>
263 <form action="<!-- TMPL_VAR name="action" -->" method="post">
264 <input type="submit" value="OK" />
266 <!-- /TMPL_IF --> <!-- delete_confirmed -->
272 <!-- TMPL_INCLUDE NAME="mainmenu.inc" -->
273 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->