1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › Funds and Budgets</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_IF name="add_form" -->
5 <script type="text/javascript">
8 function isNotNull(f,noalert) {
9 if (f.value.length ==0) {
16 var x=f.value.toUpperCase();
21 function isNum(v,maybenull) {
22 var n = new Number(v.value);
26 if (maybenull==0 && v.value=="") {
33 var t = Date.parse(f.value);
43 if (f.bookfundid.value.length==0) {
44 _alertString += "- bookfundid missing\n";
46 if (f.bookfundname.value.length==0) {
47 _alertString += "- bookfundname missing\n";
49 if (_alertString.length==0) {
50 document.Aform.submit();
52 alertString2 = "Form not submitted because of the following problem(s)\n";
53 alertString2 += "------------------------------------------------------------------------------------\n\n";
54 alertString2 += _alertString;
63 <!-- TMPL_INCLUDE NAME="header.inc" -->
64 <!-- TMPL_INCLUDE NAME="cat-search.inc" -->
66 <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>
68 <div id="doc3" class="yui-t2">
74 <!-- TMPL_IF name="else" -->
75 <h1>Funds and budgets administration</h1>
76 <!-- TMPL_IF NAME="bookfund" -->
85 <form action="<!-- TMPL_VAR name="scriptname" -->" method="post">
88 <select name="filter_bookfundid">
89 <option value="">----</option>
90 <!-- TMPL_LOOP name="filter_bookfundids" -->
91 <!-- TMPL_IF NAME="selected" -->
92 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
94 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
100 <input type="text" name="filter_bookfundname" value="<!-- TMPL_VAR name="filter_bookfundname" -->" />
103 <select name="filter_branchcode">
104 <option value="">----</option>
105 <!-- TMPL_LOOP name="filter_branches" -->
106 <!-- TMPL_IF NAME="selected" -->
107 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
109 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
115 <input type="submit" name="filter" value="Filter" />
120 <form action="aqbudget.pl" method="post">
121 <!-- TMPL_LOOP name="bookfund" -->
122 <!-- TMPL_IF NAME="toggle" -->
123 <tr class="highlight">
128 <!-- TMPL_VAR name="bookfundid" -->
131 <!-- TMPL_VAR name="bookfundname" -->
134 <!-- TMPL_IF NAME="branchname" -->
135 <!-- TMPL_VAR name="branchname" -->
141 <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Edit</a>
142 <a href="<!-- TMPL_VAR name="scriptname" -->?op=delete_confirm&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Delete</a>
143 <a href="aqbudget.pl?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Add budget</a>
144 <!-- TMPL_IF NAME="has_budgets" -->
145 <a href="aqbudget.pl?filter_bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Show budgets</a>
150 <!-- /TMPL_LOOP --> <!-- bookfund -->
153 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
154 <!-- /TMPL_IF --> <!-- bookfund -->
157 <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form">Add bookfund</a>
158 <a href="aqbudget.pl">Show all budgets</a>
162 <!-- /TMPL_IF --> <!-- else -->
164 <!-- TMPL_IF name="add_form" -->
165 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
166 <input type="hidden" name="op" value="add_validate" />
167 <input type="hidden" name="checked" value="0" />
170 <caption><!-- TMPL_VAR name="header" --></caption>
172 <!-- TMPL_IF name="add_or_modify" -->
176 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
177 <!-- TMPL_VAR name="bookfundid" -->
184 <input type="text" name="bookfundid" size="5" maxlength="5" onblur="toUC(this)" />
187 <!-- /TMPL_IF --> <!-- add_or_modify -->
192 <input type="text" name="bookfundname" size="40" maxlength="80" 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>
215 <input type="button" value="Submit" onclick="Check(this.form); return false;" />
218 <!-- /TMPL_IF --> <!-- add_form -->
220 <!-- TMPL_IF name="add_validate" -->
221 <h3>Data Recorded</h3>
224 <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
228 <!-- TMPL_IF name="delete_confirm" -->
229 <h3>Confirm Deletion of Fund <em><!-- TMPL_VAR name="bookfundid" --></em></h3>
233 <td><!-- TMPL_VAR name="bookfundid" --></td>
237 <td><!-- TMPL_VAR name="branchcode" --></td>
241 <td><!-- TMPL_VAR name="bookfundname" --></td>
245 <td><!-- TMPL_VAR name="bookfundgroup" --></td>
249 <form action="<!-- TMPL_VAR name="action" -->" method="post">
250 <input type="hidden" name="op" value="delete_confirmed" />
251 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
252 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" -->" />
255 <input type="submit" value="Delete this Fund" />
259 <form action="<!-- TMPL_VAR name="action" -->" method="post">
260 <input type="submit" value="Do not Delete" />
262 <!-- /TMPL_IF --> <!-- delete_confirm -->
264 <!-- TMPL_IF name="delete_confirmed" -->
265 <h3>Data Deleted</h3>
266 <form action="<!-- TMPL_VAR name="action" -->" method="post">
267 <input type="submit" value="OK" />
269 <!-- /TMPL_IF --> <!-- delete_confirmed -->
274 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
277 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->