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="bookfund-admin-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> › <!-- TMPL_IF name="else" -->Funds and Budgets <!-- /TMPL_IF --> <!-- TMPL_IF name="add_form" --><a href="/cgi-bin/koha/admin/aqbookfund.pl">Funds and Budgets</a> › Add fund<!-- /TMPL_IF --></div>
68 <div id="doc3" class="yui-t2">
74 <!-- TMPL_IF name="else" -->
76 <script type="text/javascript">
79 // prepare DOM for YUI Toolbar
81 $(document).ready(function() {
85 // YUI Toolbar Functions
87 function yuiToolbar() {
88 new YAHOO.widget.Button("newfund");
94 <li><a id="newfund" href="/cgi-bin/koha/admin/aqbookfund.pl?op=add_form">New Fund</a></li>
98 <!-- TMPL_IF name="else" -->
99 <h1>Funds and budgets administration</h1>
100 <!-- TMPL_IF NAME="bookfund" -->
101 <form action="aqbudget.pl" method="post">
107 <th colspan="3">Actions</th>
110 <!-- TMPL_LOOP name="bookfund" -->
111 <!-- TMPL_UNLESS NAME="__odd__" -->
112 <tr class="highlight">
115 <!-- /TMPL_UNLESS -->
117 <!-- TMPL_VAR name="bookfundid" -->
120 <!-- TMPL_VAR name="bookfundname" -->
123 <!-- TMPL_IF NAME="branchname" -->
124 <!-- TMPL_VAR name="branchname" -->
129 <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Edit</a></td><td>
130 <a href="<!-- TMPL_VAR name="scriptname" -->?op=delete_confirm&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Delete</a></td><td>
131 <a href="aqbudget.pl?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Add budget</a>
132 <!-- TMPL_IF NAME="has_budgets" -->
133 <a href="aqbudget.pl?filter_bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Show budgets</a>
138 <!-- /TMPL_LOOP --> <!-- bookfund -->
142 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
143 <!-- /TMPL_IF --> <!-- bookfund -->
146 <a href="aqbudget.pl">Show all budgets</a>
149 <!-- /TMPL_IF --> <!-- else -->
151 <!-- TMPL_IF name="add_form" -->
152 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
155 <!-- TMPL_IF name="header-is-modify-p" -->
156 <input type="hidden" name="op" value="mod_validate" />
157 <input type="hidden" name="current_branch" value="<!-- TMPL_VAR name="current_branch" -->"/>
160 <!-- TMPL_IF name="header-is-add-p" -->
161 <input type="hidden" name="op" value="add_validate" />
165 <input type="hidden" name="checked" value="0" />
167 <fieldset class="rows">
168 <legend><!-- TMPL_VAR name="header" --></legend>
170 <ol><!-- TMPL_IF name="add_or_modify" -->
172 <span class="label">Fund: </span>
173 <input type="hidden" name="bookfundid" id="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
174 <!-- TMPL_VAR name="bookfundid" -->
178 <label for="bookfundid">Fund: </label>
179 <input type="text" name="bookfundid" id="bookfundid" size="5" maxlength="5" onblur="toUC(this)" />
181 <!-- /TMPL_IF --> <!-- add_or_modify -->
184 <label for="bookfundname">Name: </label>
185 <input type="text" name="bookfundname" id="bookfundname" size="40" maxlength="80" value="<!-- TMPL_VAR name="bookfundname" escape="HTML" -->" />
189 <label for="branchcode">Library: </label>
190 <select name="branchcode" id="branchcode">
191 <option value="">----</option>
192 <!-- TMPL_LOOP NAME="branches" -->
193 <!-- TMPL_IF NAME="selected" -->
194 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
196 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
204 <fieldset class="action">
205 <input type="button" value="Submit" onclick="Check(this.form); return false;" /> <a class="cancel" href="/cgi-bin/koha/admin/aqbookfund.pl">Cancel</a>
208 <!-- /TMPL_IF --> <!-- add_form -->
211 <!-- TMPL_IF name="add_validate" -->
215 <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
220 <!-- TMPL_IF name="mod_validate" -->
221 <h3>Fund modified</h3>
224 <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
230 <!-- TMPL_IF name="delete_confirm" -->
232 <div class="dialog alert">
233 <h3>Confirm Deletion of Fund <em><!-- TMPL_VAR name="bookfundid" --></em></h3>
234 <form action="<!-- TMPL_VAR name="action" -->" method="post">
235 <input type="hidden" name="op" value="delete_confirmed" />
236 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
237 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" -->" />
240 <th scope="row">Fund: </th><td>
241 <!-- TMPL_VAR name="bookfundid" --></td></tr>
244 <th scope="row">Library: </th><td>
245 <!-- TMPL_VAR name="branchcode" --></td></tr>
248 <th scope="row">Name: </th><td>
249 <!-- TMPL_VAR name="bookfundname" --></td></tr>
252 <th scope="row">Group: </th><td>
253 <!-- TMPL_VAR name="bookfundgroup" --></td></tr>
255 <input type="submit" class="approve" value="Yes, Delete this Fund" /></form>
256 <form action="/cgi-bin/koha/admin/aqbookfund.pl" method="get"><input type="submit" class="deny" value="No, Do not Delete" /></form>
259 <!-- /TMPL_IF --> <!-- delete_confirm -->
261 <!-- TMPL_IF name="delete_confirmed" -->
262 <div class="dialog message"><h3>Data Deleted</h3>
263 <form action="<!-- TMPL_VAR name="action" -->" method="post">
264 <input type="submit" class="approve" value="OK" />
266 <!-- /TMPL_IF --> <!-- delete_confirmed -->
271 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
274 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->