1 [% INCLUDE 'doc-head-open.inc' %]
2 <title>Koha › Administration › [% IF ( add_form ) %]Cities › [% IF ( cityid ) %] Modify city[% ELSE %] New city[% END %][% ELSE %][% IF ( delete_confirm ) %]Cities › Confirm deletion of city[% ELSE %] Cities[% END %][% END %]</title>
3 [% INCLUDE 'doc-head-close.inc' %]
4 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
5 <script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
6 <script type="text/javascript" id="js">$(document).ready(function() {
7 $.tablesorter.defaults.widgets = ['zebra'];
8 $("#table_cities").tablesorter({
10 headers: { 5: { sorter: false},6: { sorter: false}}
11 }).tablesorterPager({container: $("#pagertable_cities"),positionFixed: false,size: 20});
13 <script type="text/javascript">
16 if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
17 alert(_("City name & zipcode missing"));
19 document.Aform.submit();
22 $(document).ready(function() {
23 new YAHOO.widget.Button("newcity");
28 <body id="admin_cities" class="admin">
29 [% INCLUDE 'header.inc' %]
30 [% INCLUDE 'cities-admin-search.inc' %]
32 <div id="breadcrumbs">
33 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
34 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
35 › <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
37 › [% IF ( cityid ) %]Modify[% ELSE %]New[% END %] City
38 [% ELSIF ( delete_confirm ) %]
39 › Confirm deletion of city
43 <div id="doc3" class="yui-t2">
51 <h1>Modify a city</h1>
56 <form action="[% script_name %]" name="Aform" method="post">
57 <input type="hidden" name="op" value="add_validate" />
58 <input type="hidden" name="checked" value="0" />
59 <input type="hidden" name="cityid" value="[% cityid %]" />
61 <fieldset class="rows"><ol> [% IF ( cityid ) %]
63 <span class="label">City ID: </span>[% cityid %]</li>
66 <label for="city_name" class="required" title="required">City: </label>
67 <input type="text" name="city_name" id="city_name" size="80" maxlength="100" value="[% city_name |html %]" />
70 <label for="city_state">State: </label>
71 <input type="text" name="city_state" id="city_state" size="80" maxlength="100" value="[% city_state |html %]" />
74 <label for="city_zipcode" class="required" title="required">Zip/Postal code: </label>
75 <input type="text" name="city_zipcode" id="city_zipcode" size="20" maxlength="20" value="[% city_zipcode %]" />
78 <label for="city_country">Country: </label>
79 <input type="text" name="city_country" id="city_country" size="80" maxlength="100" value="[% city_country |html %]" />
82 <fieldset class="action">
83 <input class="button" type="button" onclick="Check(this.form)" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a>
88 [% IF ( delete_confirm ) %]
89 <div class="dialog alert">
90 <h3>Delete City "[% city_name %]?"</h3>
96 <td>[% city_name %]</td>
99 <td>[% city_state %]</td>
101 <tr><th>Zip/Postal code</th>
102 <td>[% city_zipcode %]</td>
105 <td>[% city_country %]</td>
108 <form action="[% script_name %]" method="post">
109 <input type="hidden" name="op" value="delete_confirmed" />
110 <input type="hidden" name="cityid" value="[% cityid %]" />
111 <input type="submit" class="approve" value="Yes, Delete" />
113 <form action="[% script_name %]" method="get">
114 <input type="submit" class="deny" value="No, do not Delete" />
123 <li><a id="newcity" href="[% script_name %]?op=add_form">New city</a></li>
127 [% IF ( searchfield ) %]
128 Searching: [% searchfield %]
132 <div id="pagertable_cities">
133 [% INCLUDE 'table-pager.inc' perpage='20' %]
135 <table id="table_cities">
140 <th>Zip/Postal code</th>
145 [% FOREACH loo IN loop %]
146 [% UNLESS ( loop.odd ) %]
147 <tr class="highlight">
151 <td>[% loo.cityid %]</td>
152 <td>[% loo.city_name %]</td>
153 <td>[% loo.city_state %]</td>
154 <td>[% loo.city_zipcode %]</td>
155 <td>[% loo.city_country %]</td>
156 <td><a href="[% loo.script_name %]?op=add_form&cityid=[% loo.cityid %]">Edit</a></td>
157 <td><a href="[% loo.script_name %]?op=delete_confirm&cityid=[% loo.cityid %]">Delete</a></td>
166 [% INCLUDE 'admin-menu.inc' %]
169 [% INCLUDE 'intranet-bottom.inc' %]