fixing misplaced apostrophe
[koha.git] / koha-tmpl / intranet-tmpl / prog / fr / modules / admin / cities.tmpl
1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha &rsaquo; Administration &rsaquo;système <!-- TMPL_IF NAME="add_form" -->Communes &rsaquo; <!-- TMPL_IF NAME="cityid" --> Modifier une commune<!-- TMPL_ELSE --> Ajouter une commune<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="delete_confirm" -->Communes &rsaquo; 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">
5 //<![CDATA[
6                 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
7                 function isNotNull(f,noalert) {
8                         if (f.value.length == 0) {
9                 return false;
10                         }
11                 return true;
12                 }
13                 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
14                 function toUC(f) {
15                         var x=f.value.toUpperCase();
16                         f.value=x;
17                         return true;
18                 }
19                 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
20                 function isNum(v,maybenull) {
21                 var n = new Number(v.value);
22                 if (isNaN(n)) {
23                         return false;
24                         }
25                 if (maybenull == 0 && v.value =='') {
26                         return false;
27                 }
28                 return true;
29                 }
30                 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
31                 function isDate(f) {
32                         var t = Date.parse(f.value);
33                         if (isNaN(t)) {
34                                 return false;
35                         }
36                 }
37                 /////////////////////////////////////////////////////////////////////////////////////////////////////////////////
38                 function Check(f) {
39                         var ok=1;
40                         var _alertString="";
41                         var alertString2;
42                         if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
43                                 _alertString += "\n- " + _("Nom de commune et code postal absents");
44                                 alert(_alertString);    
45                         }
46                         else{
47                         document.Aform.submit();
48                         }
49                 }
50 //]]>
51 </script>
52 </head>
53 <body>
54 <!-- TMPL_INCLUDE NAME="header.inc" -->
55 <!-- TMPL_INCLUDE NAME="cities-admin-search.inc" -->
56
57 <div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl"> Accueil </a> &rsaquo;<a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> &rsaquo; <!-- TMPL_IF NAME="add_form" --><a href="/cgi-bin/koha/admin/cities.pl">Villes</a> &rsaquo; <!-- 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> &rsaquo; Confirmer la suppression de la ville<!-- TMPL_ELSE --> Communes<!-- /TMPL_IF --><!-- /TMPL_IF --></div>
58
59 <div id="doc3" class="yui-t2">
60    
61    <div id="bd">
62         <div id="yui-main">
63         <div class="yui-b">
64
65 <!-- TMPL_IF NAME="add_form" -->
66         <!-- TMPL_IF NAME="cityid" -->
67                 <h1>Modifier une commune</h1>
68         <!-- TMPL_ELSE -->
69                 <h1>Ajouter une commune</h1>
70         <!-- /TMPL_IF -->
71
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" -->" />
76
77 <fieldset class="rows"><ol>     <!-- TMPL_IF NAME="cityid" -->
78                 <li>
79                 <span class="label">Identifiant commune</span><!-- TMPL_VAR NAME="cityid" --></li>
80         <!-- /TMPL_IF -->
81         <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" -->" />
84         </li>
85         <li>                            
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" -->" />
88         </li></ol></fieldset>
89         
90         <p>
91                 <input class="button" type="button" onclick="Check(this.form)" value="Valider">
92         </p>
93         </form>
94
95 <!-- /TMPL_IF -->
96 <!-- TMPL_IF NAME="delete_confirm" -->
97 <h3>Confirmer la suppression de la commune</h3>
98         <table>
99                 <tr>
100                         <td>
101                                 <b>Identifiant commune</b>
102                         </td>
103                         <td>
104                                 <!-- TMPL_VAR NAME="cityid" -->
105                         </td>
106                 </tr>
107                         
108                 <tr>
109                         <td>Nom de commune</td>
110                         <td><!-- TMPL_VAR NAME="city_name" --></td>
111                 </tr>
112                 <tr>
113                         <td>Code postal de la commune</td>
114                         <td><!-- TMPL_VAR NAME="city_zipcode" --></td>
115                 </tr>
116                 <!-- TMPL_IF NAME="totalgtzero" -->
117                 <tr>
118                         <td colspan="2" align="center" class="problem">Cette notice est utilisée <!-- TMPL_VAR NAME="total" --> fois. Suppression impossible</td>
119                 </tr>
120         <tr>
121                         <td colspan="2">
122                                 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
123                                 <input type="submit" value="OK" />
124                                 </form>
125                         </td>
126                 </tr>
127                 <!-- TMPL_ELSE -->
128                 <tr>
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>
134                 </tr>
135                 <!-- /TMPL_IF -->
136 </table>
137 <!-- /TMPL_IF -->
138
139 <!-- TMPL_IF NAME="else" -->
140         <h2>Communes</h2>
141         <!-- TMPL_IF NAME="searchfield" -->
142                 Recherche : <!-- TMPL_VAR NAME="searchfield" -->
143         <!-- /TMPL_IF -->
144
145 <!-- TMPL_IF NAME="loop" -->    <table>
146                 <tr>
147                         <th>Identifiant commune</th>
148                         <th>Nom de commune</th>
149                         <th>Code postal de la commune</th>
150                         <th>&nbsp;</th>
151                         <th>&nbsp;</th>
152                         
153                 </tr>
154                 <!-- TMPL_LOOP NAME="loop" -->
155                 <!-- TMPL_IF NAME="toggle" -->
156                 <tr class="hilighted">
157                 <!-- TMPL_ELSE -->
158                 <tr>
159                 <!-- /TMPL_IF -->
160                         <td><!-- TMPL_VAR NAME="cityid" --></td>
161                         <td><!-- TMPL_VAR NAME="city_name" --></td>
162                         <td><!-- TMPL_VAR NAME="city_zipcode" --></td>
163                         
164                         <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&amp;cityid=<!-- TMPL_VAR NAME="cityid" -->">Modifier</a></td>
165                         <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&amp;cityid=<!-- TMPL_VAR NAME="cityid" -->">Supprimer</a></td>
166                 </tr>
167                 <!-- /TMPL_LOOP -->
168         </table><!-- /TMPL_IF -->
169         
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>
173         </form>
174 <!-- /TMPL_IF -->
175
176 </div>
177 </div>
178 <div class="yui-b">
179 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
180 </div>
181 </div>
182 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->
183