removing a lot of useless files in misc
[koha.git] / koha-tmpl / intranet-tmpl / prog / fr / admin / aqbudget.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
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 -->
11
12 <!-- TMPL_INCLUDE NAME="menus.inc" -->
13 <!-- TMPL_INCLUDE NAME="menu-admin.inc" -->
14
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 -->
19
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 -->
23 </ul>
24
25 <!-- TMPL_IF name="else" -->
26 <h1>Gestion du budget</h1>
27
28 <table>
29   <tr>
30     <th>Ligne de crédit</th>
31     <th>Site</th>
32     <th>Date de début</th>
33     <th>Date de fin</th>
34     <th>Montant budget</th>
35     <th>Actions</th>
36   </tr>
37
38 <form action="/cgi-bin/koha/admin/aqbudget.pl" method="post">
39   <tr class="filter">
40     <td>
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>
46       <!-- TMPL_ELSE -->
47         <option value="<!-- TMPL_VAR name="bookfundid" -->"><!-- TMPL_VAR name="bookfundid" --></option>
48       <!-- /TMPL_IF -->
49     <!-- /TMPL_LOOP -->
50       </select>
51     </td>
52     <td>
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>
58       <!-- TMPL_ELSE -->
59         <option value="<!-- TMPL_VAR name="code" -->"><!-- TMPL_VAR name="name" --></option>
60       <!-- /TMPL_IF -->
61     <!-- /TMPL_LOOP -->
62       </select>
63     </td>
64     <td>
65       <select name="filter_startdate_sign">
66     <!-- TMPL_IF NAME="filter_startdate_sign_equal_selected" -->
67         <option value="=" selected="selected">=</option>
68     <!-- TMPL_ELSE -->
69         <option value="=">=</option>
70     <!-- /TMPL_IF -->
71
72     <!-- TMPL_IF NAME="filter_startdate_sign_superior_selected" -->
73         <option value="&gt;=" selected="selected">&gt;=</option>
74     <!-- TMPL_ELSE -->
75         <option value="&gt;=">&gt;=</option>
76     <!-- /TMPL_IF -->
77
78     <!-- TMPL_IF NAME="filter_startdate_sign_inferior_selected" -->
79         <option value="&lt;=" selected="selected">&lt;=</option>
80     <!-- TMPL_ELSE -->
81         <option value="&lt;=">&lt;=</option>
82     <!-- /TMPL_IF -->
83       </select>
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">
87         Calendar.setup(
88           {
89             inputField : "filter_startdate",
90             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
91             button : "filter_startdate_button"
92           }
93         );
94       </script>
95     </td>
96     <td>
97       <select name="filter_enddate_sign">
98     <!-- TMPL_IF NAME="filter_enddate_sign_equal_selected" -->
99         <option value="=" selected="selected">=</option>
100     <!-- TMPL_ELSE -->
101         <option value="=">=</option>
102     <!-- /TMPL_IF -->
103
104     <!-- TMPL_IF NAME="filter_enddate_sign_superior_selected" -->
105         <option value="&gt;=" selected="selected">&gt;=</option>
106     <!-- TMPL_ELSE -->
107         <option value="&gt;=">&gt;=</option>
108     <!-- /TMPL_IF -->
109
110     <!-- TMPL_IF NAME="filter_enddate_sign_inferior_selected" -->
111         <option value="&lt;=" selected="selected">&lt;=</option>
112     <!-- TMPL_ELSE -->
113         <option value="&lt;=">&lt;=</option>
114     <!-- /TMPL_IF -->
115       </select>
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">
119         Calendar.setup(
120           {
121             inputField : "filter_enddate",
122             ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
123             button : "filter_enddate_button"
124           }
125         );
126       </script>
127     </td>
128     <td>
129       <select name="filter_amount_sign">
130     <!-- TMPL_IF NAME="filter_amount_sign_equal_selected" -->
131         <option value="=" selected="selected">=</option>
132     <!-- TMPL_ELSE -->
133         <option value="=">=</option>
134     <!-- /TMPL_IF -->
135
136     <!-- TMPL_IF NAME="filter_amount_sign_superior_selected" -->
137         <option value="&gt;=" selected="selected">&gt;=</option>
138     <!-- TMPL_ELSE -->
139         <option value="&gt;=">&gt;=</option>
140     <!-- /TMPL_IF -->
141
142     <!-- TMPL_IF NAME="filter_amount_sign_inferior_selected" -->
143         <option value="&lt;=" selected="selected">&lt;=</option>
144     <!-- TMPL_ELSE -->
145         <option value="&lt;=">&lt;=</option>
146     <!-- /TMPL_IF -->
147       </select>
148       <input type="text" name="filter_amount" value="<!-- TMPL_VAR NAME="filter_amount" -->" size="8"/>
149     </td>
150     <td>
151       <input type="submit" name="filter" value="Sélectionner">
152     </td>
153   </tr>
154 </form>
155   
156   <!-- TMPL_LOOP name="budget" -->
157     <!-- TMPL_IF NAME="toggle" -->
158   <tr class="highlight">
159     <!-- TMPL_ELSE -->
160   <tr>
161     <!-- /TMPL_IF -->
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>
167     <td>
168       <a href="/cgi-bin/koha/admin/aqbudget.pl?op=add_form&amp;aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Modifier</a> <a href="/cgi-bin/koha/admin/aqbudget.pl?op=delete_confirm&amp;aqbudgetid=<!-- TMPL_VAR NAME="aqbudgetid" -->">Supprimer</a>
169     </td>
170   </tr>
171   <!-- /TMPL_LOOP --> <!-- budget -->
172 </table>
173
174 <div class="paginationBar"><!-- TMPL_VAR NAME="pagination_bar" --></div>
175 <!-- /TMPL_IF --> <!-- else -->
176
177 <!-- TMPL_IF name="add_form" -->
178 <script language="JavaScript" type="text/javascript">
179         //
180         function isNotNull(f,noalert) {
181                 if (f.value.length ==0) {
182    return false;
183                 }
184                 return true;
185         }
186         //
187         function toUC(f) {
188                 var x=f.value.toUpperCase();
189                 f.value=x;
190                 return true;
191         }
192         //
193         function isNum(v,maybenull) {
194         var n = new Number(v.value);
195         if (isNaN(n)) {
196                 return false;
197                 }
198         if (maybenull==0 && v.value=='') {
199                 return false;
200         }
201         return true;
202         }
203         //
204         function isDate(f) {
205                 var t = Date.parse(f.value);
206                 if (isNaN(t)) {
207                         return false;
208                 }
209         }
210         //
211         function Check(f) {
212                 var ok=1;
213                 var _alertString="";
214                 var alertString2;
215                 if (f.bookfundid.value.length==0) {
216                         _alertString += "- bookfundid missing\n";
217                 }
218                 if (!(isNotNull(window.document.Aform.budgetamount,1))) {
219                         _alertString += "- Budget missing\n";
220                 }
221                 if (_alertString.length==0) {
222                         document.Aform.submit();
223                 } else {
224                         alertString2 = "Form not submitted because of the following problem(s)\n";
225                         alertString2 += "------------------------------------------------------------------------------------\n\n";
226                         alertString2 += _alertString;
227                         alert(alertString2);
228                 }
229         }
230 </script>
231
232 <form action="/cgi-bin/koha/admin/aqbudget.pl" name="Aform" method="post">
233   <fieldset>
234     <legend>Ajouter un budget</legend>
235     <input type="hidden" name="op" value="add_validate" />
236     <input type="hidden" name="checked" value="0" />
237
238     <table>
239       <tr>
240         <th>Ligne de crédit</th>
241         <td>
242           <input type="hidden" name="bookfundid" value="<!-- TMPL_VAR NAME="bookfundid" -->" />
243           <!-- TMPL_VAR NAME="bookfundname" -->
244         </td>
245       </tr>
246
247       <tr>
248         <th>
249           <label for="startdate">Date de début (<!-- TMPL_VAR NAME="dateformat" -->)</label>
250         </th>
251         <td>
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">
255             Calendar.setup(
256               {
257                 inputField : "startdate",
258                 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
259                 button : "startdate_button"
260               }
261             );
262           </script>
263         </td>
264       </tr>
265       <tr>
266         <th>
267           <label for="enddate">Date de fin (<!-- TMPL_VAR NAME="dateformat" -->)</label>
268         </th>
269         <td>
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">
273             Calendar.setup(
274               {
275                 inputField : "enddate",
276                 ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
277                 button : "enddate_button"
278               }
279             );
280           </script>
281         </td>
282       </tr>
283       <tr>
284         <th>
285           <label for="budgetamount">Montant budget</label>
286         </th>
287         <td>
288           <input type="text" name="budgetamount" id="budgetamount" value="<!-- TMPL_VAR NAME="budgetamount" -->" size="8" />
289         </td>
290       </tr>
291       <tr>
292         <th>
293           <label for="branch">Site</label>
294         </th>
295         <td>
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">
301   <!-- TMPL_ELSE -->
302           <select name="branch">
303   <!-- /TMPL_IF -->
304
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>
309     <!-- TMPL_ELSE -->
310             <option value="<!-- TMPL_VAR NAME="branchcode" -->"><!-- TMPL_VAR NAME="branchname" --></option>
311     <!-- /TMPL_IF -->
312   <!-- /TMPL_LOOP -->
313           </select>
314         </td>
315       </tr>
316     </table>
317
318   <!-- TMPL_IF NAME="aqbudgetid" -->
319     <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
320   <!-- /TMPL_IF -->
321
322     <p id="action">
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;">
325     </p>
326   </fieldset>
327 </form>
328 <!-- /TMPL_IF --> <!-- add_form -->
329
330 <!-- TMPL_IF name="delete_confirm" -->
331 <form action="<!-- TMPL_VAR NAME="action" -->" method="post">
332   <fieldset>
333     <legend>Supprimer le poste budgétaire?</legend>
334
335     <table>
336       <tr>
337         <th>Date de début</th>
338         <td><!-- TMPL_VAR NAME="startdate" --></td>
339       </tr>
340       
341       <tr>
342         <th>Date de fin</th>
343         <td><!-- TMPL_VAR NAME="enddate" --></td>
344       </tr>
345       
346       <tr>
347         <th>Montant budget</th>
348         <td><!-- TMPL_VAR NAME="budgetamount" --></td>
349       </tr>
350     </table>
351
352     <input type="hidden" name="op" value="delete_confirmed" />
353     <input type="hidden" name="aqbudgetid" value="<!-- TMPL_VAR NAME="aqbudgetid" -->" />
354
355     <p id="action">
356       <input type="submit" value="Supprimer ce budget">
357       <input type="submit" value="Ne pas supprimer">
358     </p>
359   </fieldset>
360 </form>
361 <!-- /TMPL_IF -->
362
363 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->