merging 2.2 branch with head. Sorry for not making it before, many many commits done...
[koha.git] / koha-tmpl / intranet-tmpl / default / fr / bull / subscription-add.tmpl
1 <!-- TMPL_INCLUDE NAME="bull-top.inc" -->
2 <!--------------------------MAIN BODY OF PAGE-------------------------->
3 <div id="mainbloc">
4 <!-- TMPL_IF name="mod" -->
5         <h1 class="bull">Modifier l'abonnement</h1>
6         <form method="post" name="f" action="subscription-detail.pl">
7                 <input type="hidden" name="op" value="modsubscription">
8                 <input type="hidden" name="subscriptionid" value="<!-- TMPL_VAR name="subscriptionid" -->">
9 <!-- TMPL_ELSE -->
10         <h1 class="bull">Ajouter un abonnement</h1>
11         <form method="post" name="f">
12 <!-- /TMPL_IF -->
13 <div id="bloc25">
14         <h2 class="bull">Information d'abonnement</h2>
15                 <input type="hidden" name="op" value="addsubscription">
16                 <input type="hidden" name="user" value="<!-- TMPL_VAR name="user" -->">
17                 <p>Bibliothécaire</td><td> <!-- TMPL_VAR name="user" --></p>
18                 <p><label>Fournisseur</label><input type="text" name="aqbooksellerid" value="<!-- TMPL_VAR name="aqbooksellerid" -->" size=4> (<input type="text" name="aqbooksellername" value="<!-- TMPL_VAR name="aqbooksellername" -->" disabled readonly>)<a href="#" onClick="FindAcqui(f)">...</a></p>
19                 <p><label>Notice bibliographique</label><input type="text" name="biblionumber" value="<!-- TMPL_VAR name="biblionumber" -->" size=4> (<input type="text" name="title" value="<!-- TMPL_VAR name="bibliotitle" -->" disabled readonly>)<a href="#" onClick="Plugin(f)">...</a></p>
20                 <p><label>Notes</label><textarea name="notes" cols="30" rows="2"><!-- TMPL_VAR name="notes" --></textarea></p>
21                 <p class="problem">attention</p>
22                 <ul>
23                         <li>Souvenez vous que vous <b>devez</b> avoir créé une notice <b>avant</b> de créer un abonnement</li>
24                         <li>Vous devez sélectionner un fournisseur si vous souhaitez réclamer les numéros en retard</li>
25                 </ul>
26 </div>
27 <div id="bloc25">
28         <h2 class="bull">Calendrier</h2>
29         <p><label class="label100">Date de début</label> <input type="text" name="startdate" value="<!-- TMPL_VAR name="startdate" -->" size=13 maxlength=10></p>
30         <p><label class="label100">Fréquence (*)</label>
31                         <select name="periodicity" size="1">
32                                 <option value="" selected>Inconnu</option>
33                                 <!-- TMPL_IF name="periodicity1" -->
34                                         <option value="1" selected>1/jour</option>
35                                 <!-- TMPL_ELSE -->
36                                         <option value="1">1/jour</option>
37                                 <!-- /TMPL_IF -->
38                                 <!-- TMPL_IF name="periodicity2" -->
39                                         <option value="2" selected>1/semaine</option>
40                                 <!-- TMPL_ELSE -->
41                                         <option value="2">1/semaine</option>
42                                 <!-- /TMPL_IF -->
43                                 <!-- TMPL_IF name="periodicity3" -->
44                                         <option value="3" selected>1/2 semaines</option>
45                                 <!-- TMPL_ELSE -->
46                                         <option value="3">1/2 semaines</option>
47                                 <!-- /TMPL_IF -->
48                                 <!-- TMPL_IF name="periodicity4" -->
49                                         <option value="4" selected>1/3 semaines</option>
50                                 <!-- TMPL_ELSE -->
51                                         <option value="4">1/3 semaines</option>
52                                 <!-- /TMPL_IF -->
53                                 <!-- TMPL_IF name="periodicity5" -->
54                                         <option value="5" selected>1/mois</option>
55                                 <!-- TMPL_ELSE -->
56                                         <option value="5">1/mois</option>
57                                 <!-- /TMPL_IF -->
58                                 <!-- TMPL_IF name="periodicity6" -->
59                                         <option value="6" selected>1/2 mois</option>
60                                 <!-- TMPL_ELSE -->
61                                         <option value="6">1/2 mois</option>
62                                 <!-- /TMPL_IF -->
63                                 <!-- TMPL_IF name="periodicity7" -->
64                                         <option value="7" selected>1/3 mois</option>
65                                 <!-- TMPL_ELSE -->
66                                         <option value="7">1/3 mois</option>
67                                 <!-- /TMPL_IF -->
68                                 <!-- TMPL_IF name="periodicity8" -->
69                                         <option value="8" selected>1/trimestre</option>
70                                 <!-- TMPL_ELSE -->
71                                         <option value="8">1/trimestre</option>
72                                 <!-- /TMPL_IF -->
73                                 <!-- TMPL_IF name="periodicity9" -->
74                                         <option value="9" selected>1/2 trimestre</option>
75                                 <!-- TMPL_ELSE -->
76                                         <option value="9">1/2 trimestre</option>
77                                 <!-- /TMPL_IF -->
78                                 <!-- TMPL_IF name="periodicity10" -->
79                                         <option value="10" selected>1/an</option>
80                                 <!-- TMPL_ELSE -->
81                                         <option value="10">1/an</option>
82                                 <!-- /TMPL_IF -->
83                                 <!-- TMPL_IF name="periodicity11" -->
84                                         <option value="11" selected>1/2 années</option>
85                                 <!-- TMPL_ELSE -->
86                                         <option value="11">1/2 années</option>
87                                 <!-- /TMPL_IF -->
88                         </select>
89         </p>
90         <p><label class="label100">Arrive le</label>
91                         <select name="dow" size="1">
92                                 <option value="">Aucun</option>
93                                 <!-- TMPL_IF name="dow1" -->
94                                         <option value="1" selected>Lundi</option>
95                                 <!-- TMPL_ELSE -->
96                                         <option value="1">Lundi</option>
97                                 <!-- /TMPL_IF -->
98                                 <!-- TMPL_IF name="dow2" -->
99                                         <option value="2" selected>Mardi</option>
100                                 <!-- TMPL_ELSE -->
101                                         <option value="2">Mardi</option>
102                                 <!-- /TMPL_IF -->
103                                 <!-- TMPL_IF name="dow3" -->
104                                         <option value="3" selected>Mercredi</option>
105                                 <!-- TMPL_ELSE -->
106                                         <option value="3">Mercredi</option>
107                                 <!-- /TMPL_IF -->
108                                 <!-- TMPL_IF name="dow4" -->
109                                         <option value="4" selected>Jeudi</option>
110                                 <!-- TMPL_ELSE -->
111                                         <option value="4">Jeudi</option>
112                                 <!-- /TMPL_IF -->
113                                 <!-- TMPL_IF name="dow5" -->
114                                         <option value="5" selected>Vendredi</option>
115                                 <!-- TMPL_ELSE -->
116                                         <option value="5">Vendredi</option>
117                                 <!-- /TMPL_IF -->
118                                 <!-- TMPL_IF name="dow6" -->
119                                         <option value="6" selected>Samedi</option>
120                                 <!-- TMPL_ELSE -->
121                                         <option value="6">Samedi</option>
122                                 <!-- /TMPL_IF -->
123                                 <!-- TMPL_IF name="dow7" -->
124                                         <option value="7" selected>Dimanche</option>
125                                 <!-- TMPL_ELSE -->
126                                         <option value="7">Dimanche</option>
127                                 <!-- /TMPL_IF -->
128                         </select>
129 </div>
130 <div id="bloc25">
131         <h2 class="bull">Durée d'abonnement</h2>
132         <p>Saisir 1 des champs suivants :</p>
133         <ul>
134                 <p><label class="label100">Nombre de bulletins</label><input type="text" name="numberlength" value="<!-- TMPL_VAR name="numberlength" -->"></p>
135                 <p><label class="label100">Nombre de semaines</label><input type="text" name="weeklength" value="<!-- TMPL_VAR name="weeklength" -->"></p>
136                 <p><label class="label100">Nombre de mois</label><input type="text" name="monthlength" value="<!-- TMPL_VAR name="monthlength" -->"></p>
137         </ul>
138 </div>
139 <div id="bloc25">
140         <h2 class="bull">Calcul de la numérotation</h2>
141         <p>
142                 <p>Formule de numérotation : <input type="text" name="numberingmethod" value="<!-- TMPL_VAR name="numberingmethod" -->"></p>
143                 <table class="small">
144                         <tr>
145                                 <th class="bull">&nbsp;</th>
146                                 <th class="bull">X</th>
147                                 <th class="bull">Y</th>
148                                 <th class="bull">Z</th>
149                         </tr>
150                         <tr>
151                                 <td class="bull">Ajouter</td>
152                                 <td>
153                                         <input type="text" name="add1" value="<!-- TMPL_VAR name="add1" -->">
154                                 </td>
155                                 <td>
156                                         <input type="text" name="add2" value="<!-- TMPL_VAR name="add2" -->">
157                                 </td>
158                                 <td>
159                                         <input type="text" name="add3" value="<!-- TMPL_VAR name="add3" -->">
160                                 </td>
161                         </tr>
162                         <tr>
163                                 <td class="bull">toutes les</td>
164                                 <td><input type="text" name="every1" value="<!-- TMPL_VAR name="every1" -->"></td>
165                                 <td><input type="text" name="every2" value="<!-- TMPL_VAR name="every2" -->"></td>
166                                 <td><input type="text" name="every3" value="<!-- TMPL_VAR name="every3" -->"></td>
167                         </tr>
168                         <tr>
169                                 <td class="bull">Quand supérieur à</td>
170                                 <td><input type="text" name="whenmorethan1" value="<!-- TMPL_VAR name="whenmorethan1" -->"></td>
171                                 <td><input type="text" name="whenmorethan2" value="<!-- TMPL_VAR name="whenmorethan2" -->"></td>
172                                 <td><input type="text" name="whenmorethan3" value="<!-- TMPL_VAR name="whenmorethan3" -->"></td>
173                         </tr>
174                         <!-- TMPL_IF name="mod" -->
175                         <tr>
176                                 <td class="bull">La boucle est pour l'instant</td>
177                                 <td><input type="text" name="innerloop1" value="<!-- TMPL_VAR name="innerloop1" -->"></td>
178                                 <td><input type="text" name="innerloop2" value="<!-- TMPL_VAR name="innerloop2" -->"></td>
179                                 <td><input type="text" name="innerloop3" value="<!-- TMPL_VAR name="innerloop3" -->"></td>
180                         </tr>
181                         <!-- /TMPL_IF -->
182                         <tr>
183                                 <td class="bull">Retourner à</td>
184                                 <td><input type="text" name="setto1" value="<!-- TMPL_VAR name="setto1" -->"></td>
185                                 <td><input type="text" name="setto2" value="<!-- TMPL_VAR name="setto2" -->"></td>
186                                 <td><input type="text" name="setto3" value="<!-- TMPL_VAR name="setto3" -->"></td>
187                         </tr>
188                         <tr>
189                                 <td class="bull">
190                                         <!-- TMPL_IF name="mod" -->
191                                                 Dernière valeur
192                                         <!-- TMPL_ELSE -->
193                                                 Commence par
194                                         <!-- /TMPL_IF -->
195                                 </td>
196                                 <td><input type="text" name="lastvalue1" value="<!-- TMPL_VAR name="lastvalue1" -->"></td>
197                                 <td><input type="text" name="lastvalue2" value="<!-- TMPL_VAR name="lastvalue2" -->"></td>
198                                 <td><input type="text" name="lastvalue3" value="<!-- TMPL_VAR name="lastvalue3" -->"></td>
199                         </tr>
200                 </table>
201         </p>
202 </div>
203 <!-- TMPL_IF name="mod" -->
204         <input type="button" value="Enregister l'abonnement" onclick="Check(this.form)" accesskey="w" class="button bull">
205 <!-- TMPL_ELSE -->
206         <input type="button" value="Ajouter un abonnement" onclick="Check(this.form)" accesskey="w" class="button bull">
207 <!-- /TMPL_IF -->
208 </div>
209
210 </form>
211 <!-- TMPL_INCLUDE NAME="bull-bottom.inc" -->
212
213 <script language="JavaScript" type="text/javascript">
214
215 function Plugin(f)
216 {
217          window.open("subscription-bib-search.pl","Find a bib index",'width=500,height=400,toolbar=false,scrollbars=yes');
218 }
219
220 function FindAcqui(f)
221 {
222          window.open("acqui-search.pl","Find a supplier",'width=500,height=400,toolbar=false,scrollbars=yes');
223 }
224
225
226 function Check(f)
227 {
228         if (f.startdate.value.length != 0 && 
229                         f.numberlength.value+f.weeklength.value+f.monthlength.value > 0)
230                 {
231                         document.f.submit();
232                 }
233 else
234 {
235         alert('field marked with * are mandatory');
236 }
237         return false;
238 }
239 </script>