1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › administration système › budgets</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
5 <!-- Additions to enable Calendar system -->
6 <link rel="stylesheet" type="text/css" href="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-system.css">
7 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar.js"></script>
8 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-en.js"></script>
9 <script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/includes/calendar/calendar-setup.js"></script>
10 <!-- End of additions -->
12 <!-- TMPL_INCLUDE NAME="menus.inc" -->
13 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
15 <ul id="_informations">
16 <!-- TMPL_IF NAME="add_validate" -->
17 <li>Données sur les budgets enregistrées, retourner à <a href="<!-- TMPL_VAR name="script_name" -->">la liste des budgets</a></li>
18 <!-- /TMPL_IF --> <!-- add_validate -->
20 <!-- TMPL_IF name="delete_confirmed" -->
21 <li>Budget supprimé, retourner à la <a href="<!-- TMPL_VAR name="script_name" -->">liste des budgets</a></li>
22 <!-- /TMPL_IF --> <!-- delete_confirmed -->
25 <!-- TMPL_IF name="else" -->
26 <h1>Gestion du budget</h1>
30 <th>Ligne de crédit</th>
32 <th>Date de début</th>
34 <th>Montant budget</th>
38 <form action="/cgi-bin/koha/admin/aqbudget.pl" method="post">
41 <select name="filter_bookfundid">
42 <option value="">----</option>
43 <!-- TMPL_LOOP name="filter_bookfundids" -->
44 <!-- TMPL_IF NAME="selected" -->
45 <option value="<!-- TMPL_VAR name="bookfundid" -->" selected="selected"><!-- TMPL_VAR name="bookfundid" --></option>
47 <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
53 <select name="filter_branchcode">
54 <option value="">----</option>
55 <!-- TMPL_LOOP name="filter_branches" -->
56 <!-- TMPL_IF NAME="selected" -->
57 <option value="<!-- TMPL_VAR name="code" -->" selected="selected"><!-- TMPL_VAR name="name" --></option>
59 <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
65 <select name="filter_startdate_sign">
66 <!-- TMPL_IF NAME="filter_startdate_sign_equal_selected" -->
67 <option value="=" selected="selected">=</option>
69 <option value="=">=</option>
72 <!-- TMPL_IF NAME="filter_startdate_sign_superior_selected" -->
73 <option value=">=" selected="selected">>=</option>
75 <option value=">=">>=</option>
78 <!-- TMPL_IF NAME="filter_startdate_sign_inferior_selected" -->
79 <option value="<=" selected="selected"><=</option>
81 <option value="<="><=</option>
84 <input type="text" size="10" id="filter_startdate" name="filter_startdate" value="<!-- TMPL_VAR Name="filter_startdate" -->" />
85 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="filter_startdate_button" />
86 <script language="JavaScript" type="text/javascript">
89 inputField : "filter_startdate",
90 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
91 button : "filter_startdate_button"
97 <select name="filter_enddate_sign">
98 <!-- TMPL_IF NAME="filter_enddate_sign_equal_selected" -->
99 <option value="=" selected="selected">=</option>
101 <option value="=">=</option>
104 <!-- TMPL_IF NAME="filter_enddate_sign_superior_selected" -->
105 <option value=">=" selected="selected">>=</option>
107 <option value=">=">>=</option>
110 <!-- TMPL_IF NAME="filter_enddate_sign_inferior_selected" -->
111 <option value="<=" selected="selected"><=</option>
113 <option value="<="><=</option>
116 <input type="text" size="8" maxlength="10" id="filter_enddate" name="filter_enddate" value="<!-- TMPL_VAR Name="filter_enddate" -->" />
117 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="filter_enddate_button" />
118 <script language="JavaScript" type="text/javascript">
121 inputField : "filter_enddate",
122 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
123 button : "filter_enddate_button"
129 <select name="filter_amount_sign">
130 <!-- TMPL_IF NAME="filter_amount_sign_equal_selected" -->
131 <option value="=" selected="selected">=</option>
133 <option value="=">=</option>
136 <!-- TMPL_IF NAME="filter_amount_sign_superior_selected" -->
137 <option value=">=" selected="selected">>=</option>
139 <option value=">=">>=</option>
142 <!-- TMPL_IF NAME="filter_amount_sign_inferior_selected" -->
143 <option value="<=" selected="selected"><=</option>
145 <option value="<="><=</option>
148 <input type="text" name="filter_amount" value="<!-- TMPL_VAR NAME="filter_amount" -->" size="8"/>
151 <input type="submit" name="filter" value="Sélectionner">
156 <!-- TMPL_LOOP name="budget" -->
157 <!-- TMPL_IF NAME="toggle" -->
158 <tr class="highlight">
162 <td><!-- TMPL_VAR NAME="bookfundid" --></td>
163 <td><!-- TMPL_VAR NAME="branchname" --></td>
164 <td><!-- TMPL_VAR NAME="startdate" --></td>
165 <td><!-- TMPL_VAR NAME="enddate" --></td>
166 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
168 <a href="/cgi-bin/koha/admin/aqbudget.pl?op=add_form&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Modifier</a> <a href="/cgi-bin/koha/admin/aqbudget.pl?op=delete_confirm&aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Supprimer</a>
171 <!-- /TMPL_LOOP --> <!-- budget -->
174 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
175 <!-- /TMPL_IF --> <!-- else -->
177 <!-- TMPL_IF name="add_form" -->
178 <script language="JavaScript" type="text/javascript">
180 function isNotNull(f,noalert) {
181 if (f.value.length ==0) {
188 var x=f.value.toUpperCase();
193 function isNum(v,maybenull) {
194 var n = new Number(v.value);
198 if (maybenull==0 && v.value=='') {
205 var t = Date.parse(f.value);
215 if (f.bookfundid.value.length==0) {
216 _alertString += "- bookfundid missing\n";
218 if (!(isNotNull(window.document.Aform.budgetamount,1))) {
219 _alertString += "- Budget missing\n";
221 if (_alertString.length==0) {
222 document.Aform.submit();
224 alertString2 = "Form not submitted because of the following problem(s)\n";
225 alertString2 += "------------------------------------------------------------------------------------\n\n";
226 alertString2 += _alertString;
232 <form action="/cgi-bin/koha/admin/aqbudget.pl" name="Aform" method="post">
234 <legend>Ajouter un budget</legend>
235 <input type="hidden" name="op" value="add_validate" />
236 <input type="hidden" name="checked" value="0" />
240 <th>Ligne de crédit</th>
242 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR NAME="bookfundid" -->" />
243 <!-- TMPL_VAR NAME="bookfundname" -->
249 <label for="startdate">Date de début (<!-- TMPL_VAR NAME="dateformat" -->)</label>
252 <input type="text" size="8" maxlength="10" id="startdate" name="startdate" value="<!-- TMPL_VAR Name="startdate" -->" />
253 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="startdate_button" />
254 <script language="JavaScript" type="text/javascript">
257 inputField : "startdate",
258 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
259 button : "startdate_button"
267 <label for="enddate">Date de fin (<!-- TMPL_VAR NAME="dateformat" -->)</label>
270 <input type="text" size="8" maxlength="10" id="enddate" name="enddate" value="<!-- TMPL_VAR Name="enddate" -->" />
271 <img src="<!-- TMPL_VAR Name="themelang" -->/includes/calendar/cal.gif" id="enddate_button" />
272 <script language="JavaScript" type="text/javascript">
275 inputField : "enddate",
276 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
277 button : "enddate_button"
285 <label for="budgetamount">Montant budget</label>
288 <input type="text" name="budgetamount" id="budgetamount" value="<!-- TMPL_VAR NAME="budgetamount" -->" size="8" />
293 <label for="branch">Site</label>
296 <!-- TMPL_IF NAME="disable_branchselection" -->
297 <!-- Pierrick's note: I've found that a disabled select was not -->
298 <!-- giving its value to Perl :-/ So I use a hidden field trick -->
299 <input type="hidden" name="branch" value="<!-- TMPL_VAR NAME="branch" -->" />
300 <select name="branch" disabled="disabled">
302 <select name="branch">
305 <option value="">----</option>
306 <!-- TMPL_LOOP NAME="branches" -->
307 <!-- TMPL_IF NAME="selected" -->
308 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
310 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
318 <!-- TMPL_IF NAME="aqbudgetid" -->
319 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
323 <input type="button" value="Valider" onclick="Check(this.form)">
324 <input type="submit" value="Annuler" onclick="location.href='/cgi-bin/koha/admin/aqbudget.pl'; return false;">
328 <!-- /TMPL_IF --> <!-- add_form -->
330 <!-- TMPL_IF name="delete_confirm" -->
331 <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
333 <legend>Supprimer le poste budgétaire?</legend>
337 <th>Date de début</th>
338 <td><!-- TMPL_VAR NAME="startdate" --></td>
343 <td><!-- TMPL_VAR NAME="enddate" --></td>
347 <th>Montant budget</th>
348 <td><!-- TMPL_VAR NAME="budgetamount" --></td>
352 <input type="hidden" name="op" value="delete_confirmed" />
353 <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
356 <input type="submit" value="Supprimer ce budget">
357 <input type="submit" value="Ne pas supprimer">
363 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->