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 $("#table_cities").tablesorter({
9 headers: { 3: { sorter: false},4: { sorter: false}}
10 }).tablesorterPager({container: $("#pagertable_cities"),positionFixed: false,size: 20});
12 <script type="text/javascript">
15 if (f.city_zipcode.value.length == 0 && f.city_name.value.length == 0 ) {
16 alert(_("City name & zipcode missing"));
18 document.Aform.submit();
21 $(document).ready(function() {
22 new YAHOO.widget.Button("newcity");
28 [% INCLUDE 'header.inc' %]
29 [% INCLUDE 'cities-admin-search.inc' %]
31 <div id="breadcrumbs">
32 <a href="/cgi-bin/koha/mainpage.pl">Home</a>
33 › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a>
34 › <a href="/cgi-bin/koha/admin/cities.pl">Cities</a>
36 › [% IF ( cityid ) %]Modify[% ELSE %]New[% END %] City
37 [% ELSIF ( delete_confirm ) %]
38 › Confirm Deletion of City
42 <div id="doc3" class="yui-t2">
50 <h1>Modify a city</h1>
55 <form action="[% script_name %]" name="Aform" method="post">
56 <input type="hidden" name="op" value="add_validate" />
57 <input type="hidden" name="checked" value="0" />
58 <input type="hidden" name="cityid" value="[% cityid %]" />
60 <fieldset class="rows"><ol> [% IF ( cityid ) %]
62 <span class="label">City ID: </span>[% cityid %]</li>
65 <label for="city_name">City, State: </label>
66 <input type="text" name="city_name" id="city_name" size="40" maxlength="80" value="[% city_name |html %]" />
69 <label for="city_zipcode">Zip/Postal code: </label>
70 <input type="text" name="city_zipcode" id="city_zipcode" size="10" maxlength="10" value="[% city_zipcode %]" />
73 <fieldset class="action">
74 <input class="button" type="button" onclick="Check(this.form)" value="Submit" /> <a class="cancel" href="/cgi-bin/koha/admin/cities.pl">Cancel</a>
79 [% IF ( delete_confirm ) %]
80 <div class="dialog alert">
81 <h3>Delete City "[% city_name %]?"</h3>
86 <tr><th>City, State</th>
87 <td>[% city_name %]</td>
89 <tr><th>Zip/Postal code</th>
90 <td>[% city_zipcode %]</td>
93 <form action="[% script_name %]" method="post">
94 <input type="hidden" name="op" value="delete_confirmed" />
95 <input type="hidden" name="cityid" value="[% cityid %]" />
96 <input type="submit" class="approve" value="Yes, Delete" />
98 <form action="[% script_name %]" method="get">
99 <input type="submit" class="deny" value="No, do not Delete" />
108 <li><a id="newcity" href="[% script_name %]?op=add_form">New City</a></li>
112 [% IF ( searchfield ) %]
113 Searching: [% searchfield %]
117 <span id="pagertable_cities" class="pager">
118 <form class="formpager"> <strong>page(s)</strong> :
119 <img src="[% interface %]/prog/img/first.png" class="first"/>
120 <img src="[% interface %]/prog/img/prev.png" class="prev"/>
121 <input type="text" size="5" class="pagedisplay"/>
122 <img src="[% interface %]/prog/img/next.png" class="next"/>
123 <img src="[% interface %]/prog/img/last.png" class="last"/>
125 <select class="pagesize">
126 <option value="10">10</option>
127 <option selected="selected" value="20">20</option>
128 <option value="30">30</option>
129 <option value="40">40</option>
130 <option value="50">50</option>
131 <option value="100">100</option>
135 <table id="table_cities">
139 <th>Zip/Postal code</th>
143 [% FOREACH loo IN loop %]
144 [% UNLESS ( loop.odd ) %]
145 <tr class="highlight">
149 <td>[% loo.cityid %]</td>
150 <td>[% loo.city_name %]</td>
151 <td>[% loo.city_zipcode %]</td>
153 <td><a href="[% loo.script_name %]?op=add_form&cityid=[% loo.cityid %]">Edit</a></td>
154 <td><a href="[% loo.script_name %]?op=delete_confirm&cityid=[% loo.cityid %]">Delete</a></td>
163 [% INCLUDE 'admin-menu.inc' %]
166 [% INCLUDE 'intranet-bottom.inc' %]