1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 Koha -- System Administration: Book Funds
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="menus.inc" -->
5 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
7 <!-- TMPL_IF name="else" -->
8 <h1>Book Fund Administration</h1>
9 <!-- TMPL_IF NAME="bookfund" -->
18 <form action="<!-- TMPL_VAR name="scriptname" -->" method="post">
21 <select name="filter_bookfundid">
22 <option value="">----</option>
23 <!-- TMPL_LOOP name="filter_bookfundids" -->
24 <!-- TMPL_IF NAME="selected" -->
25 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
27 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
33 <input type="text" name="filter_bookfundname" value="<!-- TMPL_VAR name="filter_bookfundname" -->" />
36 <select name="filter_branchcode">
37 <option value="">----</option>
38 <!-- TMPL_LOOP name="filter_branches" -->
39 <!-- TMPL_IF NAME="selected" -->
40 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
42 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
48 <input type="submit" name="filter" value="Filter" />
53 <form action="aqbudget.pl" method="post">
54 <!-- TMPL_LOOP name="bookfund" -->
55 <!-- TMPL_IF NAME="toggle" -->
56 <tr class="highlight">
61 <!-- TMPL_VAR name="bookfundid" -->
64 <!-- TMPL_VAR name="bookfundname" -->
67 <!-- TMPL_IF NAME="branchname" -->
68 <!-- TMPL_VAR name="branchname" -->
74 <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Edit</a>
75 <a href="<!-- TMPL_VAR name="scriptname" -->?op=delete_confirm&bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Delete</a>
76 <a href="aqbudget.pl?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Add budget</a>
77 <!-- TMPL_IF NAME="has_budgets" -->
78 <a href="aqbudget.pl?filter_bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Show budgets</a>
83 <!-- /TMPL_LOOP --> <!-- bookfund -->
86 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
87 <!-- /TMPL_IF --> <!-- bookfund -->
90 <a href="<!-- TMPL_VAR name=scriptname -->?op=add_form">Add bookfund</a>
91 <a href="aqbudget.pl">Show all budgets</a>
95 <!-- /TMPL_IF --> <!-- else -->
97 <!-- TMPL_IF name="add_form" -->
100 function isNotNull(f,noalert) {
101 if (f.value.length ==0) {
108 var x=f.value.toUpperCase();
113 function isNum(v,maybenull) {
114 var n = new Number(v.value);
118 if (maybenull==0 && v.value=="") {
125 var t = Date.parse(f.value);
135 if (f.bookfundid.value.length==0) {
136 _alertString += "- bookfundid missing\n";
138 if (f.bookfundname.value.length==0) {
139 _alertString += "- bookfundname missing\n";
141 if (_alertString.length==0) {
142 document.Aform.submit();
144 alertString2 = "Form not submitted because of the following problem(s)\n";
145 alertString2 += "------------------------------------------------------------------------------------\n\n";
146 alertString2 += _alertString;
152 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
153 <input type="hidden" name="op" value="add_validate" />
154 <input type="hidden" name="checked" value="0" />
157 <caption><!-- TMPL_VAR name="header" --></caption>
159 <!-- TMPL_IF name="add_or_modify" -->
163 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
164 <!-- TMPL_VAR name="bookfundid" -->
171 <input type="text" name="bookfundid" size="5" maxlength="5" onblur="toUC(this)" />
174 <!-- /TMPL_IF --> <!-- add_or_modify -->
183 value="<!-- TMPL_VAR name="bookfundname" escape="HTML" -->"
191 <select name="branchcode">
192 <option value="">None</option>
193 <!-- TMPL_LOOP NAME="branches" -->
194 <option value="<!-- TMPL_VAR NAME="branchcode" -->" <!-- TMPL_IF NAME="selected" -->selected="selected" <!-- /TMPL_IF -->><!-- TMPL_VAR NAME="branchname" --></option>
202 <input type="button" value="Submit" onclick="Check(this.form); return false;" />
203 <input type="reset" value="Reset" />
206 <!-- /TMPL_IF --> <!-- add_form -->
208 <!-- TMPL_IF name="add_validate" -->
209 <h3>Data Recorded</h3>
212 <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
216 <!-- TMPL_IF name="delete_confirm" -->
217 <h3>Confirm Deletion of Fund <em><!-- TMPL_VAR name="bookfundid" --></em></h3>
221 <td><!-- TMPL_VAR name="bookfundid" --></td>
225 <td><!-- TMPL_VAR name="bookfundname" --></td>
229 <td><!-- TMPL_VAR name="bookfundgroup" --></td>
233 <form action="<!-- TMPL_VAR name="action" -->" method="post">
234 <input type="hidden" name="op" value="delete_confirmed" />
235 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
238 <input type="submit" value="Delete this Fund" />
242 <form action="<!-- TMPL_VAR name="action" -->" method="post">
243 <input type="submit" value="Do not Delete" />
245 <!-- /TMPL_IF --> <!-- delete_confirm -->
247 <!-- TMPL_IF name="delete_confirmed" -->
248 <h3>Data Deleted</h3>
249 <form action="<!-- TMPL_VAR name="action" -->" method="post">
250 <input type="submit" value="OK" />
252 <!-- /TMPL_IF --> <!-- delete_confirmed -->
254 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->