1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › Funds and Budgets</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
6 <!-- TMPL_INCLUDE NAME="header.inc" -->
9 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › Funds and Budgets </div>
11 <div id="doc3" class="yui-t2">
17 <!-- TMPL_IF name="else" -->
18 <h1>Funds and budgets administration</h1>
19 <!-- TMPL_IF NAME="bookfund" -->
28 <form action="<!-- TMPL_VAR name="scriptname" -->" method="post">
31 <select name="filter_bookfundid">
32 <option value="">----</option>
33 <!-- TMPL_LOOP name="filter_bookfundids" -->
34 <!-- TMPL_IF NAME="selected" -->
35 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
37 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
43 <input type="text" name="filter_bookfundname" value="<!-- TMPL_VAR name="filter_bookfundname" -->" />
46 <select name="filter_branchcode">
47 <option value="">----</option>
48 <!-- TMPL_LOOP name="filter_branches" -->
49 <!-- TMPL_IF NAME="selected" -->
50 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
52 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
58 <input type="submit" name="filter" value="Filter" />
63 <form action="aqbudget.pl" method="post">
64 <!-- TMPL_LOOP name="bookfund" -->
65 <!-- TMPL_IF NAME="toggle" -->
66 <tr class="highlight">
71 <!-- TMPL_VAR name="bookfundid" -->
74 <!-- TMPL_VAR name="bookfundname" -->
77 <!-- TMPL_IF NAME="branchname" -->
78 <!-- TMPL_VAR name="branchname" -->
84 <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Edit</a>
85 <a href="<!-- TMPL_VAR name="scriptname" -->?op=delete_confirm&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Delete</a>
86 <a href="aqbudget.pl?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Add budget</a>
87 <!-- TMPL_IF NAME="has_budgets" -->
88 <a href="aqbudget.pl?filter_bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Show budgets</a>
93 <!-- /TMPL_LOOP --> <!-- bookfund -->
96 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
97 <!-- /TMPL_IF --> <!-- bookfund -->
100 <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form">Add bookfund</a>
101 <a href="aqbudget.pl">Show all budgets</a>
105 <!-- /TMPL_IF --> <!-- else -->
107 <!-- TMPL_IF name="add_form" -->
108 <script type="text/javascript">
111 function isNotNull(f,noalert) {
112 if (f.value.length ==0) {
119 var x=f.value.toUpperCase();
124 function isNum(v,maybenull) {
125 var n = new Number(v.value);
129 if (maybenull==0 && v.value=="") {
136 var t = Date.parse(f.value);
146 if (f.bookfundid.value.length==0) {
147 _alertString += "- bookfundid missing\n";
149 if (f.bookfundname.value.length==0) {
150 _alertString += "- bookfundname missing\n";
152 if (_alertString.length==0) {
153 document.Aform.submit();
155 alertString2 = "Form not submitted because of the following problem(s)\n";
156 alertString2 += "------------------------------------------------------------------------------------\n\n";
157 alertString2 += _alertString;
164 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
165 <input type="hidden" name="op" value="add_validate" />
166 <input type="hidden" name="checked" value="0" />
169 <caption><!-- TMPL_VAR name="header" --></caption>
171 <!-- TMPL_IF name="add_or_modify" -->
175 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
176 <!-- TMPL_VAR name="bookfundid" -->
183 <input type="text" name="bookfundid" size="5" maxlength="5" onblur="toUC(this)" />
186 <!-- /TMPL_IF --> <!-- add_or_modify -->
191 <input type="text" name="bookfundname" size="40" maxlength="80" value="<!-- TMPL_VAR name="bookfundname" escape="HTML" -->" />
198 <select name="branchcode">
199 <option value="">None</option>
200 <!-- TMPL_LOOP NAME="branches" -->
201 <!-- TMPL_IF NAME="selected" -->
202 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
204 <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 -->
273 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
276 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->