1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › Catégories d'adhérents <!-- TMPL_IF NAME="add_form" --><!-- TMPL_IF NAME="categorycode" -->Modifier la catégorie <!-- TMPL_VAR NAME="categorycode" --><!-- TMPL_ELSE -->Ajouter une catégorie<!-- /TMPL_IF --><!-- /TMPL_IF -->
3 <!-- TMPL_IF NAME="add_validate" -->Donnée enregistrée<!-- /TMPL_IF -->
4 <!-- TMPL_IF NAME="delete_confirm" --><!-- TMPL_IF NAME="totalgtzero" -->Impossible de supprimer cette catégorie (utilisée <!-- TMPL_VAR NAME="categorycode" --> fois)<!-- TMPL_ELSE -->Confirmer la suppression de la catégorie <!-- TMPL_VAR NAME="categorycode" --> ?<!-- /TMPL_IF --><!-- /TMPL_IF -->
5 <!-- TMPL_IF NAME="delete_confirmed" -->Catégorie supprimée<!-- /TMPL_IF --></title>
6 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
7 <script type="text/javascript">
10 function isNotNull(f,noalert) {
11 if (f.value.length ==0) {
18 var x=f.value.toUpperCase();
23 function isNum(v,maybenull) {
24 var n = new Number(v.value);
28 if (maybenull==0 && v.value=='') {
35 var t = Date.parse(f.value);
40 // to check if the data are correctly entered.
43 var _alertString="Form not submitted because of the following problem(s)\n";
44 _alertString +="-------------------------------------------------------------------\n\n";
45 if (ff.categorycode.value.length==0) {
47 _alertString += "- categorycode missing\n";
49 if (!(ff.category_type.value)){
51 _alertString += "- category type missing\n";
53 if (!(isNotNull(ff.description,1))) {
55 _alertString += "- description missing\n";
57 if (!isNum(ff.upperagelimit,0)) {
59 _alertString += "- upperagelimit is not a number\n";
62 if (ok) { // if there is a problem
73 <!-- TMPL_INCLUDE NAME="header.inc" -->
74 <!-- TMPL_INCLUDE NAME="patrons-admin-search.inc" -->
76 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl"> Accueil </a> ›<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <!-- TMPL_IF NAME="add_form" --> <a href="/cgi-bin/koha/admin/categorie.pl">Catégories de lecteurs</a> › <!-- TMPL_IF NAME="categorycode" -->Modifier la catégorie <!-- TMPL_VAR NAME="categorycode" --><!-- TMPL_ELSE -->Ajouter une catégorie<!-- /TMPL_IF --><!-- /TMPL_IF -->
77 <!-- TMPL_IF NAME="add_validate" --> <a href="/cgi-bin/koha/admin/categorie.pl">Catégories de lecteurs</a> › donnée enregistrée<!-- /TMPL_IF -->
78 <!-- TMPL_IF NAME="delete_confirm" --> <a href="/cgi-bin/koha/admin/categorie.pl">Catégories de lecteurs</a> › <!-- TMPL_IF NAME="totalgtzero" -->Impossible de supprimer cette catégorie (utilisée <!-- TMPL_VAR NAME="categorycode" --> fois)<!-- TMPL_ELSE -->Confirmer la suppression de la catégorie <!-- TMPL_VAR NAME="categorycode" --> ?<!-- /TMPL_IF --><!-- /TMPL_IF -->
79 <!-- TMPL_IF NAME="delete_confirmed" --> <a href="/cgi-bin/koha/admin/categorie.pl">Catégories de lecteurs</a> › Catégories supprimée<!-- /TMPL_IF -->
80 <!-- TMPL_IF NAME="else" -->Catégories adhérent<!-- /TMPL_IF --></div>
82 <div id="doc3" class="yui-t2">
88 <!-- TMPL_IF NAME="add_form" -->
93 <form name="Aform" action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
94 <input type="hidden" name="op" value="add_validate" />
95 <input type="hidden" name="checked" value="0" />
96 <!-- TMPL_IF NAME="categorycode" -->
97 <h1>Modifier une catégorie <!-- TMPL_VAR NAME="categorycode" --></h1>
99 <h1>Ajouter une catégorie</h1>
101 <fieldset class="rows">
102 <ol><!-- TMPL_IF NAME="categorycode" -->
103 <li><span class="label">Code catégorie</span><!-- TMPL_VAR NAME="categorycode" -->
104 <input type="hidden" name="categorycode" value="<!-- TMPL_VAR NAME="categorycode" -->" /><input type="hidden" name="is_a_modif" value="1" /></li>
106 <li><label for="categorycode">Code catégorie</label><input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" onblur="toUC(this)" /></li>
108 <li><label for="description">Description</label> <input type="text" name="description" id="description" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="description" -->" /></li>
109 <li><label for="enrolmentperiod">Durée d'inscription</label> <input type="text" name="enrolmentperiod" id="enrolmentperiod" size="2" maxlength="2" value="<!-- TMPL_VAR NAME="enrolmentperiod" -->" /> mois</li>
110 <li><label for="dateofbirthrequired">Age requis</label> <input type="text" name="dateofbirthrequired" id="dateofbirthrequired" value="<!-- TMPL_VAR NAME="dateofbirthrequired" -->" size="3" maxlength="3" /> ans</li>
111 <li><label for="upperagelimit">Limite d'âge supérieure</label> <input type="text" name="upperagelimit" id="upperagelimit" size="3" maxlength="3" value="<!-- TMPL_VAR NAME="upperagelimit" -->" /> ans</li>
112 <li><label for="enrolmentfee">Frais d'inscription</label><input type="text" name="enrolmentfee" id="enrolmentfee" size="6" value="<!-- TMPL_VAR NAME="enrolmentfee" -->" /> €</li>
113 <li><label for="overduenoticerequired">Message de retard demandé</label> <select name="overduenoticerequired" id="overduenoticerequired">
114 <!-- TMPL_IF NAME="overduenoticerequired" -->
115 <option value="0">Non</option>
116 <option value="1" selected="selected">Oui</option>
118 <option value="0" selected="selected">Non</option>
119 <option value="1">Oui</option>
122 <li><label for="reservefee">Droits de réservation</label><input type="text" name="reservefee" id="reservefee" size="6" value="<!-- TMPL_VAR NAME="reservefee" -->" /> €</li>
123 <li><label for="category_type">Type de catégorie</label><select name="category_type" id="category_type">
124 <!-- TMPL_IF NAME="type_n" --><option value="" selected="selected">Sélectionnez un type de catégorie</option><!-- TMPL_ELSE --><option value="">Sélectionnez un type de catégorie</option><!-- /TMPL_IF -->
125 <!-- TMPL_IF NAME="type_A" --><option value="A" selected="selected">Adulte</option><!-- TMPL_ELSE --><option value="A">Adulte</option><!-- /TMPL_IF -->
126 <!-- TMPL_IF NAME="type_C" --><option value="C" selected="selected">Enfant</option><!-- TMPL_ELSE --><option value="C">Enfant</option><!-- /TMPL_IF -->
127 <!-- TMPL_IF NAME="type_I" --><option value="I" selected="selected">Collectivité</option><!-- TMPL_ELSE --><option value="I">Collectivité</option><!-- /TMPL_IF -->
128 <!-- TMPL_IF NAME="type_P" --><option value="P" selected="selected">Professionnel</option><!-- TMPL_ELSE --><option value="P">Professionnel</option><!-- /TMPL_IF -->
133 <p> <input type="submit" value='<!-- TMPL_IF NAME="categorycode" -->Valider les modifications<!-- TMPL_ELSE -->Ajout catégorie<!-- /TMPL_IF -->' onclick="Check(this.form);"> </p>
138 <!-- TMPL_IF NAME="add_validate" -->
139 <h3>Donnée enregistrée</h3>
140 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
141 <input type="submit" value="OK" />
146 <!-- TMPL_IF NAME="delete_confirm" -->
149 <!-- TMPL_IF NAME="totalgtzero" --><h3>Cette catégorie est utilisée <!-- TMPL_VAR NAME="categorycode" --> fois. Suppression impossible!</h3><!-- TMPL_ELSE --><h2>Confirmer la suppression de la catégorie <!-- TMPL_VAR NAME="categorycode" --> ?</h2><!-- /TMPL_IF -->
150 <!-- TMPL_IF NAME="totalgtzero" --><div class="error">Cet enregistrement est utilisé <!-- TMPL_VAR NAME="total" --> fois. Suppression impossible<!-- /TMPL_IF -->
152 <li><strong>Code catégorie : </strong><!-- TMPL_VAR NAME="categorycode" --></li>
153 <li><strong>Description : </strong><!-- TMPL_VAR NAME="description" --></li>
154 <li><strong>Durée d'inscription : </strong><!-- TMPL_VAR NAME="enrolmentperiod" --> mois</li>
155 <li><strong>Age requis </strong><!-- TMPL_VAR NAME="dateofbirthrequired" --> années</li>
156 <li><strong>Limite d'âge supérieure : </strong><!-- TMPL_VAR NAME="upperagelimit" --> années</li>
157 <li><strong>Frais d'inscription : </strong><!-- TMPL_VAR NAME="enrolmentfee" --> €</li>
158 <li><strong>Message de retard demandé </strong><!-- TMPL_IF NAME="overduenoticerequired" -->Oui<!-- TMPL_ELSE -->Non<!-- /TMPL_IF --></li>
159 <li><strong>Droits de réservation : </strong><!-- TMPL_VAR NAME="reservefee" --> €</li>
161 <!-- TMPL_IF NAME="totalgtzero" -->
162 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="OK" /></form>
164 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
165 <input type="hidden" name="op" value="delete_confirmed" />
166 <input type="hidden" name="categorycode" value="<!-- TMPL_VAR NAME="categorycode" -->" /> <input type="submit" value="Supprimer cette catégorie"></form> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="Ne pas supprimer"></form>
167 <!-- /TMPL_IF --></div>
170 <!-- TMPL_IF NAME="delete_confirmed" -->
171 <h3>Catégorie supprimée</h3>
173 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
174 <input type="submit" value="OK" />
178 <!-- TMPL_IF NAME="else" -->
179 <h2>Gestion des catégories d'adhérents</h2>
180 <!-- TMPL_IF NAME="searchfield" -->
181 Vous recherchiez <!-- TMPL_VAR NAME="searchfield" --></span>
186 <th scope="col">Code</th>
187 <th scope="col">Nom de la catégorie</th>
188 <th scope="col">Type</th>
189 <th scope="col">Durée d'inscription</th>
190 <th scope="col">Age requis</th>
191 <th scope="col">Limite d'âge supérieure</th>
192 <th scope="col">Frais d'inscription</th>
193 <th scope="col">Retard</th>
194 <th scope="col">Frais de réservation</th>
195 <th scope="col" colspan="2"> </th>
197 <!-- TMPL_LOOP NAME="loop" -->
198 <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
199 <td><!-- TMPL_VAR NAME="categorycode" --></td>
201 <a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&categorycode=<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="description" --></a>
204 <!-- TMPL_IF NAME="type_A" -->Adulte<!-- /TMPL_IF -->
205 <!-- TMPL_IF NAME="type_C" -->Enfant<!-- /TMPL_IF -->
206 <!-- TMPL_IF NAME="type_P" -->Prof.<!-- /TMPL_IF -->
207 <!-- TMPL_IF NAME="type_I" -->Coll.<!-- /TMPL_IF -->
209 <td><!-- TMPL_VAR NAME="enrolmentperiod" --> mois</td>
210 <td><!-- TMPL_VAR NAME="dateofbirthrequired" --> années</td>
211 <td><!-- TMPL_VAR NAME="upperagelimit" --> années</td>
212 <td><!-- TMPL_VAR NAME="enrolmentfee" --></td>
213 <td><!-- TMPL_IF NAME="overduenoticerequired" -->Oui<!-- TMPL_ELSE -->Non<!-- /TMPL_IF --></td>
214 <td><!-- TMPL_VAR NAME="reservefee" --></td>
215 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&categorycode=<!-- TMPL_VAR NAME="categorycode" -->">Modifier</a></td>
216 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&categorycode=<!-- TMPL_VAR NAME="categorycode" -->">Supprimer</a></td>
219 </table><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
220 <input type="hidden" name="op" value="add_form" />
221 <input type="submit" value="Ajouter une catégorie">
228 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
231 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->