1 <!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
2 <title>Koha › Administration › <!-- TMPL_IF NAME="add_form" -->Cities › <!-- TMPL_IF NAME="cityid" --> Modify City<!-- TMPL_ELSE --> New City<!-- /TMPL_IF --><!-- TMPL_ELSE --><!-- TMPL_IF NAME="delete_confirm" -->Cities › Confirm Deletion of City<!-- TMPL_ELSE --> Cities<!-- /TMPL_IF --><!-- /TMPL_IF --></title>
3 <!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
4 <script type="text/javascript">
7 if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
8 alert("City name & zipcode missing");
10 document.Aform.submit();
13 $(document).ready(function() {
14 new YAHOO.widget.Button("newcity");
20 <!-- TMPL_INCLUDE NAME="header.inc" -->
21 <!-- TMPL_INCLUDE NAME="cities-admin-search.inc" -->
23 <div id="breadcrumbs">
24 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
25 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
26 › <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
27 <!-- TMPL_IF NAME="add_form" -->
28 › <!-- TMPL_IF NAME="cityid" -->Modify<!-- TMPL_ELSE -->New<!-- /TMPL_IF --> City
29 <!-- TMPL_ELSIF NAME="delete_confirm" -->
30 › Confirm Deletion of City
34 <div id="doc3" class="yui-t2">
40 <!-- TMPL_IF NAME="add_form" -->
41 <!-- TMPL_IF NAME="cityid" -->
42 <h1>Modify a city</h1>
47 <form action="<!-- TMPL_VAR NAME="script_name" -->" name="Aform" method="post">
48 <input type="hidden" name="op" value="add_validate" />
49 <input type="hidden" name="checked" value="0" />
50 <input type="hidden" name="cityid" value="<!-- TMPL_VAR NAME="cityid" -->" />
52 <fieldset class="rows"><ol> <!-- TMPL_IF NAME="cityid" -->
54 <span class="label">City ID: </span><!-- TMPL_VAR NAME="cityid" --></li>
57 <label for="city_name">City name: </label>
58 <input type="text" name="city_name" id="city_name" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="city_name" ESCAPE="HTML" -->" />
61 <label for="city_zipcode">City zipcode: </label>
62 <input type="text" name="city_zipcode" id="city_zipcode" size="10" maxlength="10" value="<!-- TMPL_VAR NAME="city_zipcode" -->" />
65 <fieldset class="action">
66 <input class="button" type="button" onclick="Check(this.form)" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a>
71 <!-- TMPL_IF NAME="delete_confirm" -->
72 <!-- TMPL_IF NAME="total" -->
73 <div class="dialog message">
74 <h3>Cannot Delete City "<!-- TMPL_VAR NAME="city_name" -->"</h3>
75 <p>This record is used <!-- TMPL_VAR NAME="total" --> times. Impossible to delete it</p>
77 <div class="dialog alert">
78 <h3>Delete City "<!-- TMPL_VAR NAME="city_name" -->?"</h3>
82 <td><!-- TMPL_VAR NAME="cityid" --></td>
84 <tr><th>City name</th>
85 <td><!-- TMPL_VAR NAME="city_name" --></td>
87 <tr><th>City zipcode</th>
88 <td><!-- TMPL_VAR NAME="city_zipcode" --></td>
91 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
92 <!-- TMPL_IF NAME="total" -->
93 <input type="submit" class="approv" value="OK" />
95 <input type="hidden" name="op" value="delete_confirmed" />
96 <input type="hidden" name="cityid" value="<!-- TMPL_VAR NAME="cityid" -->" />
97 <input type="submit" class="approve" value="Yes, Delete" />
99 <form action="<!-- TMPL_VAR NAME="script_name" -->" method="get">
100 <input type="submit" class="deny" value="No, do not Delete" />
106 <!-- TMPL_IF NAME="else" -->
110 <li><a id="newcity" href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form">New City</a></li>
114 <!-- TMPL_IF NAME="searchfield" -->
115 Searching: <!-- TMPL_VAR NAME="searchfield" -->
118 <!-- TMPL_IF NAME="loop" --> <table>
122 <th>City zipcode</th>
126 <!-- TMPL_LOOP NAME="loop" -->
127 <!-- TMPL_UNLESS NAME="__odd__" -->
128 <tr class="highlight">
131 <!-- /TMPL_UNLESS -->
132 <td><!-- TMPL_VAR NAME="cityid" --></td>
133 <td><!-- TMPL_VAR NAME="city_name" --></td>
134 <td><!-- TMPL_VAR NAME="city_zipcode" --></td>
136 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&cityid=<!-- TMPL_VAR NAME="cityid" -->">Edit</a></td>
137 <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&cityid=<!-- TMPL_VAR NAME="cityid" -->">Delete</a></td>
140 </table><!-- /TMPL_IF -->
146 <!-- TMPL_INCLUDE NAME="admin-menu.inc" -->
149 <!-- TMPL_INCLUDE NAME="intranet-bottom.inc" -->