1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › administration système › budgets</title>
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>Gestion des budgets</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="Sélectionner">
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" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Modifier</a> <a href="<!-- TMPL_VAR name="scriptname" -->?op=delete_confirm&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Supprimer</a> <a href="aqbudget.pl?op=add_form&bookfundid=<!-- TMPL_VAR name="bookfundid" -->&branchcode=<!-- TMPL_VAR name="branchcode" -->">Ajouter un budget</a>
75 <!-- TMPL_IF NAME="has_budgets" -->
76 <a href="aqbudget.pl?filter_bookfundid=<!-- TMPL_VAR name="bookfundid" -->">Voir les budgets</a>
81 <!-- /TMPL_LOOP --> <!-- bookfund -->
84 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
85 <!-- /TMPL_IF --> <!-- bookfund -->
88 <a href="<!-- TMPL_VAR name=scriptname -->?op=add_form">Ajouter un poste budgétaire</a> <a href="aqbudget.pl">Afficher tous les budgets</a>
92 <!-- /TMPL_IF --> <!-- else -->
94 <!-- TMPL_IF name="add_form" -->
97 function isNotNull(f,noalert) {
98 if (f.value.length ==0) {
105 var x=f.value.toUpperCase();
110 function isNum(v,maybenull) {
111 var n = new Number(v.value);
115 if (maybenull==0 && v.value=="") {
122 var t = Date.parse(f.value);
132 if (f.bookfundid.value.length==0) {
133 _alertString += "- bookfundid missing\n";
135 if (f.bookfundname.value.length==0) {
136 _alertString += "- bookfundname missing\n";
138 if (_alertString.length==0) {
139 document.Aform.submit();
141 alertString2 = "Form not submitted because of the following problem(s)\n";
142 alertString2 += "------------------------------------------------------------------------------------\n\n";
143 alertString2 += _alertString;
149 <form action="<!-- TMPL_VAR name="action" -->" name="Aform" method="post">
150 <input type="hidden" name="op" value="add_validate" />
151 <input type="hidden" name="checked" value="0" />
154 <caption><!-- TMPL_VAR name="header" --></caption>
156 <!-- TMPL_IF name="add_or_modify" -->
158 <th>Ligne de crédit</th>
160 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
161 <!-- TMPL_VAR name="bookfundid" -->
166 <th>Ligne de crédit</th>
168 <input type="text" name="bookfundid" size="5" maxlength="5" onblur="toUC(this)" />
171 <!-- /TMPL_IF --> <!-- add_or_modify -->
180 value="<!-- TMPL_VAR name="bookfundname" escape="HTML" -->"
188 <select name="branchcode">
189 <option value="">Aucun</option>
190 <!-- TMPL_LOOP NAME="branches" -->
191 <!-- TMPL_IF NAME="selected" -->
192 <option value="<!-- TMPL_VAR NAME="branchcode" -->" selected="selected"><!-- TMPL_VAR NAME="branchname" --></option>
194 <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
203 <input type="button" value="Valider" onclick="Check(this.form); return false;">
206 <!-- /TMPL_IF --> <!-- add_form -->
208 <!-- TMPL_IF name="add_validate" -->
209 <h3>Donnée enregistrée</h3>
212 <a href="<!-- TMPL_VAR name="action" -->">Retour à la liste</a>
216 <!-- TMPL_IF name="delete_confirm" -->
217 <h3>Confirmer la suppression du poste budgétaire <em><!-- TMPL_VAR name="bookfundid" --></em></h3>
220 <th>Ligne de crédit</th>
221 <td><!-- TMPL_VAR name="bookfundid" --></td>
225 <td><!-- TMPL_VAR name="branchcode" --></td>
229 <td><!-- TMPL_VAR name="bookfundname" --></td>
233 <td><!-- TMPL_VAR name="bookfundgroup" --></td>
237 <form action="<!-- TMPL_VAR name="action" -->" method="post">
238 <input type="hidden" name="op" value="delete_confirmed" />
239 <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
240 <input type="hidden" name="branchcode" value="<!-- TMPL_VAR name="branchcode" -->" />
243 <input type="submit" value="Supprimer ce poste budgétaire">
247 <form action="<!-- TMPL_VAR name="action" -->" method="post">
248 <input type="submit" value="Ne pas supprimer">
250 <!-- /TMPL_IF --> <!-- delete_confirm -->
252 <!-- TMPL_IF name="delete_confirmed" -->
253 <h3>Donnée supprimée</h3>
254 <form action="<!-- TMPL_VAR name="action" -->" method="post">
255 <input type="submit" value="OK" />
257 <!-- /TMPL_IF --> <!-- delete_confirmed -->
259 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->