<center> <br/> <h1>Deleted from the list</h1> </center> <?php function __autoload($className) { $fullPath = $className . ".php"; $finalDis = "/../../../" . str_replace("\\", "/", $fullPath); //echo $finalDis; include_once $finalDis; } use src\Bitm\SEIP117637\city\City; $city = new city(); $city->delete(); echo "<hr>";
} break; case 'letter': $result = $db->query("SELECT * FROM {$DT_PRE}city WHERE letter=''"); while ($r = $db->fetch_array($result)) { $letter = $do->letter($r['name']); $db->query("UPDATE {$DT_PRE}city SET letter='{$letter}' WHERE areaid={$r['areaid']}"); } dmsg('更新成功', '?file=' . $file); break; case 'delete': if ($areaid) { $areaids = $areaid; } $areaids or msg(); $do->delete($areaids); dmsg('删除成功', '?file=' . $file); break; case 'update': foreach ($post as $v) { $do->update($v); } dmsg('更新成功', '?file=' . $file); break; default: $condition = '1'; if ($kw) { $condition .= " AND (name LIKE '%{$keyword}%' OR domain LIKE '%{$keyword}%')"; } $lists = $do->get_list($condition); include tpl('city');
require 'path.php'; init_cobalt('Delete city'); if (isset($_GET['city_id'])) { $city_id = urldecode($_GET['city_id']); require_once 'form_data_city.php'; } if (xsrf_guard()) { init_var($_POST['btn_cancel']); init_var($_POST['btn_delete']); require 'components/query_string_standard.php'; if ($_POST['btn_cancel']) { log_action('Pressed cancel button'); redirect("listview_city.php?{$query_string}"); } elseif ($_POST['btn_delete']) { log_action('Pressed delete button'); require_once 'subclasses/city.php'; $dbh_city = new city(); $object_name = 'dbh_city'; require 'components/create_form_data.php'; $dbh_city->delete($arr_form_data); redirect("listview_city.php?{$query_string}"); } } require 'subclasses/city_html.php'; $html = new city_html(); $html->draw_header('Delete City', $message, $message_type); $html->draw_listview_referrer_info($filter_field_used, $filter_used, $page_from, $filter_sort_asc, $filter_sort_desc); $html->draw_hidden('city_id'); $html->detail_view = TRUE; $html->draw_controls('delete'); $html->draw_footer();