<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>选择分站 - mymps</title>
<script src="<?=$mymps_global['SiteUrl']?>/template/global/noerr.js" type="text/javascript"></script>
<style>
body,dd,dl,dt,form,h1,h2,p,ul{ color:#72849A;font-family:microsoft yahei; font-size:13px; line-height:24px;margin:0;padding:0;list-style:none}
a{ text-decoration:none;}
.pinyin{ width:780px; height:430px; overflow-y:auto; margin:10px 0 10px 20px}
.pinyin dt{margin-left:10px;border-radius:2px;text-align:center;color:#2a2a2a;width:28px;height:28px;line-height:28px; border:1px #eee solid;}
.pinyin dd,.pinyin dt{float:left;display:block;margin:3px 0}
.pinyin dd{padding-left:20px;width:710px}
.pinyin dd a{color:#72849A;float:left;display:block;height:30px;line-height:30px;margin-right:10px;padding-left:5px;padding-right:5px;white-space:nowrap}
.pinyin dd a:hover,.pinyin dd a.current{background-color:#3F87F5;border-radius:2px;color:#fff!important;}
.pinyin dd a.hots{ color:#ff6700;}
.clear{height:10px;clear:both;visibility:hidden;overflow:hidden}
.clearfix{clear:both;visibility:hidden;overflow:hidden}
.exit{ text-align:center;}
.exit a{
	color:#ffffff;
	background-color:#3F87F5;
	margin-left:auto;
	margin-right:auto;
	padding:5px 0;
	display:block;
	cursor:pointer;
	border-radius:4px;
	width:90px;
	margin-bottom:10px;
}
.exit a:hover{
	background-color:#5796F6;
	
}
</style>
</head>

<body>
<div class="wrapper">

<div class="pinyin">
<div class="clear"></div>
<?php $cities = get_changecity_cities();?>
    <?php foreach($cities as $k => $citie){?>
    <a name="alphabet-<?=$k?>"></a>
    <div class="lister">
    <dt><?=$k?></dt>
    <dd>
        <?php foreach($citie as $u => $w){?>
        <a onclick="parent.window.location.href='<?=$admindir?>/<?=$file?>?<?=$params?>&cityid=<?=$w['cityid']?>';parent.closeopendiv();" <?php echo $cityid==$w[cityid] ? 'class="current '.($w['ifhot'] == 1 ?'hots':'').'"' : ''; ?> href="javascript:void(0);" <?php echo $w['ifhot'] == 1 ?'class="hots"':'';?>><?=$w['cityname']?></a>
        <?php }?>
    </dd>
    </div>
    <div class="clearfix"></div>
    <?php }?>
</div>

<?php if($cityid){?>
<div class="clearfix"></div>
<div class="exit"><a onclick="parent.window.location.href='<?=$admindir?>/<?=$file?>?<?=$params?>&cityid=';parent.closeopendiv();">取消选择</a></div>
<?php }?>
		
</div>
</body>
</html>