1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration ›système <!-- TMPL_IF NAME="add_form" -->Communes › <!-- TMPL_IF NAME="cityid" --> Modifier une commune<!-- TMPL_ELSE --> Ajouter une commune<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="delete_confirm" -->Communes › Confirmer suppression de la commune<!-- TMPL_ELSE --> Communes<!-- /TMPL_IF --><!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
6 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7 function isNotNull(f,noalert) {
8 if (f.value.length == 0) {
13 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
15 var x=f.value.toUpperCase();
19 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
20 function isNum(v,maybenull) {
21 var n = new Number(v.value);
25 if (maybenull == 0 && v.value =='') {
30 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
32 var t = Date.parse(f.value);
37 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
42 if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
43 _alertString += "\n- " + _("Nom de commune et code postal absents");
47 document.Aform.submit();
54 <!-- TMPL_INCLUDE NAME="header.inc" -->
55 <!-- TMPL_INCLUDE NAME="cities-admin-search.inc" -->
57 <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/cities.pl">Villes</a> › <!-- TMPL_IF NAME="cityid" --> Modifier une commune<!-- TMPL_ELSE --> Ajouter une commune<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="delete_confirm" --><a href="/cgi-bin/koha/admin/cities.pl">Villes</a> › Confirmer la suppression de la ville<!-- TMPL_ELSE --> Communes<!-- /TMPL_IF --><!-- /TMPL_IF --></div>
59 <div id="doc3" class="yui-t2">
65 <!-- TMPL_IF NAME="add_form" -->
66 <!-- TMPL_IF NAME="cityid" -->
67 <h1>Modifier une commune</h1>
69 <h1>Ajouter une commune</h1>
72 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
73 <input type="hidden" name="op" value="add_validate" />
74 <input type="hidden" name="checked" value="0" />
75 <input type="hidden" name="cityid" value="<!-- TMPL_VAR NAME="cityid" -->" />
77 <fieldset class="rows"><ol> <!-- TMPL_IF NAME="cityid" -->
79 <span class="label">Identifiant commune</span><!-- TMPL_VAR NAME="cityid" --></li>
82 <label for="city_name">Nom de commune</label>
83 <input type="text" name="city_name" id="city_name" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="city_name" ESCAPE="HTML" -->" />
86 <label for="city_zipcode">Code postal de la commune</label>
87 <input type="text" name="city_zipcode" id="city_zipcode" size="10" maxlength="10" value="<!-- TMPL_VAR NAME="city_zipcode" -->" />
91 <input class="button" type="button" onclick="Check(this.form)" value="Valider">
96 <!-- TMPL_IF NAME="delete_confirm" -->
97 <h3>Confirmer la suppression de la commune</h3>
101 <b>Identifiant commune</b>
104 <!-- TMPL_VAR NAME="cityid" -->
109 <td>Nom de commune</td>
110 <td><!-- TMPL_VAR NAME="city_name" --></td>
113 <td>Code postal de la commune</td>
114 <td><!-- TMPL_VAR NAME="city_zipcode" --></td>
116 <!-- TMPL_IF NAME="totalgtzero" -->
118 <td colspan="2" align="center" class="problem">Cette notice est utilisée <!-- TMPL_VAR NAME="total" --> fois. Suppression impossible</td>
122 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
123 <input type="submit" value="OK" />
129 <td><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
130 <input type="hidden" name="op" value="delete_confirmed" />
131 <input type="hidden" name="cityid" value="<!-- TMPL_VAR NAME="cityid" -->" /><input type="submit" value="OUI"></form></td>
132 <td><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
133 <input type="submit" value="NON"></form></td>
139 <!-- TMPL_IF NAME="else" -->
141 <!-- TMPL_IF NAME="searchfield" -->
142 Recherche : <!-- TMPL_VAR NAME="searchfield" -->
145 <!-- TMPL_IF NAME="loop" --> <table>
147 <th>Identifiant commune</th>
148 <th>Nom de commune</th>
149 <th>Code postal de la commune</th>
154 <!-- TMPL_LOOP NAME="loop" -->
155 <!-- TMPL_IF NAME="toggle" -->
156 <tr class="hilighted">
160 <td><!-- TMPL_VAR NAME="cityid" --></td>
161 <td><!-- TMPL_VAR NAME="city_name" --></td>
162 <td><!-- TMPL_VAR NAME="city_zipcode" --></td>
164 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&cityid=<!-- TMPL_VAR NAME="cityid" -->">Modifier</a></td>
165 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&cityid=<!-- TMPL_VAR NAME="cityid" -->">Supprimer</a></td>
168 </table><!-- /TMPL_IF -->
170 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
171 <input type="hidden" name="op" value="add_form" />
172 <p><input type="submit" class="button" value="Ajouter une commune" alt="Ajouter une commune"></p>
179 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
182 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->