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 <script type="text/javascript">
6 <!-- TMPL_IF name="add_form" -->
8 f.value=f.value.toUpperCase();
15 if (f.bookfundid.value.length==0) {
16 _alertString += "- bookfundid missing\n";
18 if (f.bookfundname.value.length==0) {
19 _alertString += "- bookfundname missing\n";
21 if (_alertString.length==0) {
22 document.Aform.submit();
24 alertString2 = "Form not submitted because of the following problem(s)\n";
25 alertString2 += "------------------------------------------------------------------------------------\n\n";
26 alertString2 += _alertString;
31 $(document).ready(function() {
32 new YAHOO.widget.Button("newfund");
38 <!-- TMPL_INCLUDE NAME="header.inc" -->
39 <!-- TMPL_INCLUDE NAME="bookfund-admin-search.inc" -->
41 <div id="breadcrumbs">
42 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
43 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
44 › <a href="/cgi-bin/koha/admin/aqbookfund.pl">Funds and Budgets</a>
45 <!-- TMPL_IF name="add_form" -->› Add fund<!-- /TMPL_IF -->
48 <div id="doc3" class="yui-t2">
53 <!-- TMPL_IF name="else" -->
56 <li><a id="newfund" href="/cgi-bin/koha/admin/aqbookfund.pl?op=add_form">New Fund</a></li>
58 <h1>Funds and budgets administration</h1>
59 <!-- TMPL_IF NAME="bookfund" -->
60 <form action="aqbudget.pl" method="post">
66 <th colspan="3">Actions</th>
69 <!-- TMPL_LOOP name="bookfund" -->
70 <!-- TMPL_UNLESS NAME="__odd__" -->
71 <tr class="highlight">
75 <td><!-- TMPL_VAR name="bookfundid" --></td>
76 <td><!-- TMPL_VAR name="bookfundname" --></td>
77 <td><!-- TMPL_VAR name="branchname" DEFAULT="" --></td>
79 <a href="<!-- TMPL_VAR name="script_name" -->?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Edit</a></td><td>
80 <a href="<!-- TMPL_VAR name="script_name" -->?op=delete_confirm&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Delete</a></td><td>
81 <a href="aqbudget.pl?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Add budget</a>
82 <!-- TMPL_IF NAME="has_budgets" -->
83 <a href="aqbudget.pl?filter_bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Show budgets</a>
87 <!-- /TMPL_LOOP --> <!-- bookfund -->
91 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
92 <!-- /TMPL_IF --> <!-- bookfund -->
95 <a href="aqbudget.pl">Show all budgets</a>
98 <!-- /TMPL_IF --> <!-- else -->
100 <!-- TMPL_IF name="add_form" -->
101 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
102 <input type="hidden" name="checked" value="0" />
104 <!-- TMPL_IF name="header-is-modify-p" -->
105 <input type="hidden" name="op" value="mod_validate" />
106 <input type="hidden" name="current_branch" value="<!-- TMPL_VAR name="current_branch" -->"/>
107 <!-- TMPL_ELSIF name="header-is-add-p" -->
108 <input type="hidden" name="op" value="add_validate" />
111 <fieldset class="rows">
112 <legend><!-- TMPL_IF name="header-is-modify-p" -->Modify book fund<!-- TMPL_ELSIF name="header-is-add-p" -->Add book fund<!-- /TMPL_IF -->
116 <!-- TMPL_IF name="add_or_modify" -->
117 <li><span class="label">Fund: </span>
118 <input type="hidden" name="bookfundid" id="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
119 <!-- TMPL_VAR name="bookfundid" -->
122 <li><label for="bookfundid">Fund: </label>
123 <input type="text" name="bookfundid" id="bookfundid" size="5" maxlength="5" onblur="toUC(this)" />
125 <!-- /TMPL_IF --> <!-- add_or_modify -->
127 <li><label for="bookfundname">Name: </label>
128 <input type="text" name="bookfundname" id="bookfundname" size="40" maxlength="80" value="<!-- TMPL_VAR name="bookfundname" escape="HTML" -->" />
131 <li><label for="branchcode">Library: </label>
132 <select name="branchcode" id="branchcode">
133 <option value="">----</option>
134 <!-- TMPL_LOOP NAME="branches" -->
135 <!-- TMPL_IF NAME="selected" -->
136 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
138 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
147 <fieldset class="action">
148 <input type="button" value="Submit" onclick="Check(this.form); return false;" />
149 <a class="cancel" href="/cgi-bin/koha/admin/aqbookfund.pl">Cancel</a>
152 <!-- /TMPL_IF --> <!-- add_form -->
154 <!-- TMPL_IF name="add_validate" -->
157 <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
159 <!-- TMPL_ELSIF name="mod_validate" -->
160 <h3>Fund modified</h3>
162 <a href="<!-- TMPL_VAR name="action" -->">Return to fund list</a>
164 <!-- TMPL_ELSIF name="delete_confirm" -->
165 <div class="dialog alert">
166 <h3>Confirm Deletion of Fund <em><!-- TMPL_VAR name="bookfundid" --></em></h3>
167 <form action="<!-- TMPL_VAR name="action" -->" method="post">
168 <input type="hidden" name="op" value="delete_confirmed" />
169 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
170 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" -->" />
173 <th scope="row">Fund: </th><td>
174 <!-- TMPL_VAR name="bookfundid" --></td></tr>
176 <th scope="row">Library: </th><td>
177 <!-- TMPL_VAR name="branchcode" --></td></tr>
179 <th scope="row">Name: </th><td>
180 <!-- TMPL_VAR name="bookfundname" --></td></tr>
182 <th scope="row">Group: </th><td>
183 <!-- TMPL_VAR name="bookfundgroup" --></td></tr>
185 <input type="submit" class="approve" value="Yes, Delete this Fund" />
187 <form action="/cgi-bin/koha/admin/aqbookfund.pl" method="get"><input type="submit" class="deny" value="No, Do not Delete" /></form>
190 <!-- TMPL_ELSIF name="delete_confirmed" -->
191 <div class="dialog message"><h3>Data Deleted</h3>
192 <form action="<!-- TMPL_VAR name="action" -->" method="get">
193 <input type="submit" class="approve" value="OK" />
195 <!-- /TMPL_IF --> <!-- delete_confirmed -->
200 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
203 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->