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 book fund<!-- /TMPL_IF --></div>
68 <div id="doc3" class="yui-t2">
74 <!-- TMPL_UNLESS NAME="header-is-add-p" --><!-- TMPL_INCLUDE NAME="bookfund-admin-toolbar.inc" --><!-- /TMPL_UNLESS -->
76 <!-- TMPL_IF name="else" -->
77 <h1>Funds and budgets administration</h1>
78 <!-- TMPL_IF NAME="bookfund" -->
79 <form action="aqbudget.pl" method="post">
85 <th colspan="3">Actions</th>
88 <!-- TMPL_LOOP name="bookfund" -->
89 <!-- TMPL_IF NAME="toggle" -->
90 <tr class="highlight">
95 <!-- TMPL_VAR name="bookfundid" -->
98 <!-- TMPL_VAR name="bookfundname" -->
101 <!-- TMPL_IF NAME="branchname" -->
102 <!-- TMPL_VAR name="branchname" -->
107 <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Edit</a></td><td>
108 <a href="<!-- TMPL_VAR name="scriptname" -->?op=delete_confirm&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Delete</a></td><td>
109 <a href="aqbudget.pl?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Add budget</a>
110 <!-- TMPL_IF NAME="has_budgets" -->
111 <a href="aqbudget.pl?filter_bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Show budgets</a>
116 <!-- /TMPL_LOOP --> <!-- bookfund -->
120 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
121 <!-- /TMPL_IF --> <!-- bookfund -->
124 <a href="aqbudget.pl">Show all budgets</a>
127 <!-- /TMPL_IF --> <!-- else -->
129 <!-- TMPL_IF name="add_form" -->
130 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
133 <!-- TMPL_IF name="header-is-modify-p" -->
134 <input type="hidden" name="op" value="mod_validate" />
135 <input type="hidden" name="current_branch" value="<!-- TMPL_VAR name="current_branch" -->"
138 <!-- TMPL_IF name="header-is-add-p" -->
139 <input type="hidden" name="op" value="add_validate" />
143 <input type="hidden" name="checked" value="0" />
145 <fieldset class="rows">
146 <legend><!-- TMPL_VAR name="header" --></legend>
148 <ol><!-- TMPL_IF name="add_or_modify" -->
150 <span class="label">Fund: </span>
151 <input type="hidden" name="bookfundid" id="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
152 <!-- TMPL_VAR name="bookfundid" -->
156 <label for="bookfundid">Fund: </label>
157 <input type="text" name="bookfundid" id="bookfundid" size="5" maxlength="5" onblur="toUC(this)" />
159 <!-- /TMPL_IF --> <!-- add_or_modify -->
162 <label for="bookfundname">Name: </label>
163 <input type="text" name="bookfundname" id="bookfundname" size="40" maxlength="80" value="<!-- TMPL_VAR name="bookfundname" escape="HTML" -->" />
167 <label for="branchcode">Library: </label>
168 <select name="branchcode" id="branchcode">
169 <option value="">----</option>
170 <!-- TMPL_LOOP NAME="branches" -->
171 <!-- TMPL_IF NAME="selected" -->
172 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
174 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
182 <fieldset class="action">
183 <input type="button" value="Submit" onclick="Check(this.form); return false;" /> <a class="cancel" href="/cgi-bin/koha/admin/aqbookfund.pl">Cancel</a>
186 <!-- /TMPL_IF --> <!-- add_form -->
189 <!-- TMPL_IF name="add_validate" -->
190 <h3>Bookfund Added</h3>
193 <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
198 <!-- TMPL_IF name="mod_validate" -->
199 <h3>Bookfund Modified</h3>
202 <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
208 <!-- TMPL_IF name="delete_confirm" -->
209 <h3>Confirm Deletion of Fund <em><!-- TMPL_VAR name="bookfundid" --></em></h3>
213 <td><!-- TMPL_VAR name="bookfundid" --></td>
217 <td><!-- TMPL_VAR name="branchcode" --></td>
221 <td><!-- TMPL_VAR name="bookfundname" --></td>
225 <td><!-- TMPL_VAR name="bookfundgroup" --></td>
229 <form action="<!-- TMPL_VAR name="action" -->" method="post">
230 <input type="hidden" name="op" value="delete_confirmed" />
231 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
232 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" -->" />
235 <input type="submit" value="Delete this Fund" />
239 <form action="<!-- TMPL_VAR name="action" -->" method="post">
240 <input type="submit" value="Do not Delete" />
242 <!-- /TMPL_IF --> <!-- delete_confirm -->
244 <!-- TMPL_IF name="delete_confirmed" -->
245 <h3>Data Deleted</h3>
246 <form action="<!-- TMPL_VAR name="action" -->" method="post">
247 <input type="submit" value="OK" />
249 <!-- /TMPL_IF --> <!-- delete_confirmed -->
254 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
257 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->