<!DOCTYPE html>
<html lang="zh-CN" class="index_page">
<head>
	<?php include mymps_tpl('header');?>
	<meta name="keywords" content="<?=$mymps_global[SiteName]?>,手机版,切换分站"/>
	<meta name="description" content="<?=$mymps_global[SiteName]?>手机版切换分站"/>
	<title>切换分站-<?=$mymps_global[SiteName]?>-手机版</title>
	<link type="text/css" rel="stylesheet" href="template/css/global.css">
	<link type="text/css" rel="stylesheet" href="template/css/style.css">
	<link type="text/css" rel="stylesheet" href="template/css/changecity.css">
</head>

<body>
<?php include mymps_tpl('header_search');?>

<div class="city_box">
    <h3>热门城市<span class="local-city"><?php echo $city['cityname'] ? '目前定位城市：'.$city['cityname'] : '请选择您当前所在城市'?></span></h3>
    <ul class="city_lst hot">
    <?php foreach($hotcities as $k => $v){?>
    <li><a href="index.php?mod=index&cityid=<?php echo $v['cityid']?>"><?php echo $v['cityname']?></a></li>
    <? }?>
    </ul>
    <h3>按<?php echo $mymps_global['cfg_cityshowtype'] == 'province' ? '所在省份' : '首字母'; ?>查找</h3>
    <ul class="letters_lst">		
     <?php foreach($cities as $k => $v){?>
    <li><a href="#<?php echo $k; ?>"><?php echo $k?></a></li>
    <?php }?>
    </ul>
    
    <?php foreach($cities as $k =>$v){?>
    <a name="<?=$k?>"></a>
    <h4><p><span><?=$k?></span><?php if($mymps_global['cfg_cityshowtype'] != 'province'){?>(以<?=$k?>为开头的城市名)<?php }?></p></h4>
    <ul class="city_lst">
    <? foreach($v as $u =>$w){?>
   <li> <a href="index.php?mod=index&cityid=<?=$w[cityid]?>" <? if($w[ifhot] == 1){?>style="color:red;text-decoration:underline;"<? }?>><?=$w[cityname]?></a></li>
    <? }?>
    </ul>
    <?php }?>     

<?php include mymps_tpl('footer');?>
</div>

</body>
</html>