updating french translation
[koha.git] / koha-tmpl / intranet-tmpl / prog / fr / modules / admin / aqbookfund.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; administration système &rsaquo; budgets</title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <!-- TMPL_INCLUDE NAME="menus.inc" -->
5 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
6
7 <!-- TMPL_IF name="else" -->
8 <h1>Gestion des budgets</h1>
9   <!-- TMPL_IF NAME="bookfund" -->
10 <table>
11   <tr>
12     <th>Code</th>
13     <th>Nom</th>
14     <th>Site</th>
15     <th>Actions</th>
16   </tr>
17
18 <form action="<!-- TMPL_VAR name="scriptname" -->" method="post">
19   <tr class="filter">
20     <td>
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>
26       <!-- TMPL_ELSE -->
27         <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
28       <!-- /TMPL_IF -->
29     <!-- /TMPL_LOOP -->
30       </select>
31     </td>
32     <td>
33       <input type="text" name="filter_bookfundname" value="<!-- TMPL_VAR name="filter_bookfundname" -->" />
34     </td>
35     <td>
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>
41       <!-- TMPL_ELSE -->
42         <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
43       <!-- /TMPL_IF -->
44     <!-- /TMPL_LOOP -->
45       </select>
46     </td>
47     <td>
48       <input type="submit" name="filter" value="Sélectionner">
49     </td>
50   </tr>
51 </form>
52
53 <form action="aqbudget.pl" method="post">
54     <!-- TMPL_LOOP name="bookfund" -->
55       <!-- TMPL_IF NAME="toggle" -->
56   <tr class="highlight">
57       <!-- TMPL_ELSE -->
58   <tr>
59       <!-- /TMPL_IF -->
60     <td>
61       <!-- TMPL_VAR name="bookfundid" -->
62     </td>
63     <td>
64       <!-- TMPL_VAR name="bookfundname" -->
65     </td>
66     <td>
67       <!-- TMPL_IF NAME="branchname" -->
68       <!-- TMPL_VAR name="branchname" -->
69       <!-- TMPL_ELSE -->
70       Aucun
71       <!-- /TMPL_IF -->
72     </td>
73     <td>
74       <a href="<!-- TMPL_VAR name="scriptname" -->?op=add_form&amp;bookfundid=<!-- TMPL_VAR name="bookfundid" -->&amp;branchcode=<!-- TMPL_VAR name="branchcode" -->">Modifier</a> <a href="<!-- TMPL_VAR name="scriptname" -->?op=delete_confirm&amp;bookfundid=<!-- TMPL_VAR name="bookfundid" -->&amp;branchcode=<!-- TMPL_VAR name="branchcode" -->">Supprimer</a> <a href="aqbudget.pl?op=add_form&amp;bookfundid=<!-- TMPL_VAR name="bookfundid" -->&amp;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>
77       <!-- /TMPL_IF -->
78     </td>
79   </tr>
80
81     <!-- /TMPL_LOOP --> <!-- bookfund -->
82 </table>
83
84 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
85   <!-- /TMPL_IF --> <!-- bookfund -->
86
87 <p>
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>
89 </p>
90
91 </form>
92 <!-- /TMPL_IF --> <!-- else -->
93
94 <!-- TMPL_IF name="add_form" -->
95 <script>
96         //
97         function isNotNull(f,noalert) {
98                 if (f.value.length ==0) {
99    return false;
100                 }
101                 return true;
102         }
103         //
104         function toUC(f) {
105                 var x=f.value.toUpperCase();
106                 f.value=x;
107                 return true;
108         }
109         //
110         function isNum(v,maybenull) {
111         var n = new Number(v.value);
112         if (isNaN(n)) {
113                 return false;
114                 }
115         if (maybenull==0 && v.value=="") {
116                 return false;
117         }
118         return true;
119         }
120         //
121         function isDate(f) {
122                 var t = Date.parse(f.value);
123                 if (isNaN(t)) {
124                         return false;
125                 }
126         }
127         //
128         function Check(f) {
129                 var ok=1;
130                 var _alertString="";
131                 var alertString2;
132                 if (f.bookfundid.value.length==0) {
133                         _alertString += "- bookfundid missing\n";
134                 }
135                 if (f.bookfundname.value.length==0) {
136                         _alertString += "- bookfundname missing\n";
137                 }
138                 if (_alertString.length==0) {
139                         document.Aform.submit();
140                 } else {
141                         alertString2 = "Form not submitted because of the following problem(s)\n";
142                         alertString2 += "------------------------------------------------------------------------------------\n\n";
143                         alertString2 += _alertString;
144                         alert(alertString2);
145                 }
146         }
147         </script>
148
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" />
152
153   <table>
154     <caption><!-- TMPL_VAR name="header" --></caption>
155     
156   <!-- TMPL_IF name="add_or_modify" -->
157     <tr>
158       <th>Ligne de crédit</th>
159       <td>
160         <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR name="bookfundid" -->" />
161         <!-- TMPL_VAR name="bookfundid" -->
162       </td>
163     </tr>
164   <!-- TMPL_ELSE -->
165     <tr>
166       <th>Ligne de crédit</th>
167       <td>
168         <input type="text" name="bookfundid" size="5" maxlength="5" onblur="toUC(this)" />
169       </td>
170     </tr>
171   <!-- /TMPL_IF --> <!-- add_or_modify -->
172     
173     <tr>
174       <th>Nom</th>
175       <td>
176         <input type="text"
177                name="bookfundname"
178                size="40"
179           maxlength="80"
180               value="<!-- TMPL_VAR name="bookfundname" escape="HTML" -->"
181         />
182       </td>
183     </tr>
184
185     <tr>
186       <th>Site</th>
187       <td>
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>
193     <!-- TMPL_ELSE -->
194           <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
195     <!-- /TMPL_IF -->
196   <!-- /TMPL_LOOP -->
197       </td>
198     </tr>
199     
200   </table>
201
202   <p>
203     <input type="button" value="Valider" onclick="Check(this.form); return false;">
204   </p>
205 </form>
206 <!-- /TMPL_IF --> <!-- add_form -->
207
208 <!-- TMPL_IF name="add_validate" -->
209 <h3>Donnée enregistrée</h3>
210
211 <p>
212   <a href="<!-- TMPL_VAR name="action" -->">Retour à la liste</a>
213 </p>
214 <!-- /TMPL_IF -->
215
216 <!-- TMPL_IF name="delete_confirm" -->
217 <h3>Confirmer la suppression du poste budgétaire <em><!-- TMPL_VAR name="bookfundid" --></em></h3>
218 <table>
219   <tr>
220     <th>Ligne de crédit</th>
221     <td><!-- TMPL_VAR name="bookfundid" --></td>
222   </tr>
223   <tr>
224     <th>Site</th>
225     <td><!-- TMPL_VAR name="branchcode" --></td>
226   </tr>
227   <tr>
228     <th>Nom</th>
229     <td><!-- TMPL_VAR name="bookfundname" --></td>
230   </tr>
231   <tr>
232     <th>Groupe</th>
233     <td><!-- TMPL_VAR name="bookfundgroup" --></td>
234   </tr>
235 </table>
236
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" -->" />
241
242   <div id="action">
243     <input type="submit" value="Supprimer ce poste budgétaire">
244   </div>
245 </form>
246
247 <form action="<!-- TMPL_VAR name="action" -->" method="post">
248   <input type="submit" value="Ne pas supprimer">
249 </form>
250 <!-- /TMPL_IF --> <!-- delete_confirm -->
251
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" />
256 </form>
257 <!-- /TMPL_IF --> <!-- delete_confirmed -->
258
259 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->