<!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" class="loading">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta name="viewport" content="width=device-width, initial-scale=0.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="keywords" content="" />
<meta name="description" content="">
<meta name="author" content="" />
<link rel="stylesheet" type="text/css" href="public/style/style.css" />
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<link rel="apple-touch-icon-precomposed" href="http://www.lede.cc/images/favicon.ico">
<title><?=encode_output($seo['title'])?></title>
</head>

<body>
<?include tpl("header");?>
<div id="sort">
			<table width="100%" border="0" cellspacing="0">
				<tr>
					<td class="sort_left">
						<div class="sort_cate">
							<div class="sort_b"><a href="#" onclick="return false;"><div class="sort_b_inner"><i class="cate_default"></i><span><?=$com_city?></span><div class="clear"></div></div></a></div>
						</div>
					</td>
					<td>
						<div class="sort_sort">
							<div class="sort_b"><a href="#" onclick="return false;"><div class="sort_b_inner"><i class="cate_sort"></i><span><?=$com_cat?></span><div class="clear"></div></div></a></div>
						</div>
					</td>
					<td class="sort_right">
						<div class="sort_tag">
							<div class="sort_b"><a href="#" onclick="return false;"><div class="sort_b_inner"><i class="cate_tag"></i><span><?=$com_order?></span><div class="clear"></div></div></a></div>
						</div>
					</td>
				</tr>
			</table>
		</div>
		<div id="content">	
			<div id="list">
				<ul>
<?php
foreach((array)$coms as $val){
?>
                    <li>
						<div class="wrap">
							<a class="alist" href="<?=$val['url']?>">
								<div class="list_litpic fl"><img src="../<? if($val['thumb']){ ?><?=$val['thumb']?><? }else{ ?><?=$CFG['com_thumbs']?><? }?>" /></div>
								<div class="list_info">
									<h4><?=$val['comname']?></h4>
									<h5><img src="../images/star/s<? echo floor($val['sum_cm']) ?>.png" /> <?=$val['sum_cm']?></h5>
                                    <h5 class="song"><? if ($val['zk_sojian']>0){?><span class="bor_5">首减<?=$val['zk_sojian']?>元</span><?}?><?if (!empty($val['jifens'][0]) && !empty($val['jifens'][1])){?><span class="bor_5"><?=$val['jifens'][0]?>元<?=$val['jifens'][1]?>分</span><?}?><?if (!empty($val['jd'][0]) && ($val['jd'][0]!=',0,')){?><span class="bor_5">优惠日<?=$val['jd'][1]?>倍</span><? } ?></h5>
									<div class="list_info_i">
										<dl class="list_info_views">
											<dt></dt>
											<dd><?=$val['click']?></dd>
											<div class="clear"></div>
										</dl>
										<dl class="list_info_comment">
											<dt></dt>
											<dd><?=$val['ccid']?></dd>
											<div class="clear"></div>
										</dl>
										<dl class="list_info_like">
											<dt></dt>
											<dd></dd>
											<div class="clear"></div>
										</dl>
										<div class="clear"></div>
									</div>
								</div>
								<div class="clear"></div>
							</a>
						</div>
					</li>
<?php
}
?>
				</ul>
				<?include tpl("page");?>
			</div>
			
		</div>
		
		<div class="push_msk"></div>
	</div>

	<div id="sort_content">
		<div class="asort">
			<div class="hd">
				<div class="wrap">
					<div class="fl"><span>选择城市</span><div class="clear"></div></div>
					<div class="fr"></div>
					<div class="clear"></div>
				</div>
			</div>
			<div class="ct">
				<div class="wrap">
					<ul class="choose_cate">
                    <li>
                    <a href="<? echo url_rewrite('com',array('act'=>'list','catid'=>$catid,'eid'=>$_COOKIE['cityid'],'order'=>$order,'keyword'=>$keyword,'check_p'=>$check_p,'check_wf'=>$check_wf)) ?>">
                    <i style="background:none;width:0;margin-right:0;" class="s"></i><span>全城</span><i class="<? if (empty($areago) || $areago==$_COOKIE['cityid']){ ?>es<?}else{?>e<?}?>"></i>
                    </a>
                    </li>
                    
<?php
foreach((array)$area_arr as $val){
?>
						<li>
                        <a href="<?=$val[url]?>">
                        <i style="background:none;width:0;margin-right:0;" class="s"></i><span><?=$val[areaname]?></span><i class="<? if ($areago==$val['areaid']){ ?>es<?}else{?>e<?}?>"></i>
                        </a>
                        </li>
<?php
}
?>
					</ul>
					<div class="clear"></div>
				</div>
			</div>
		</div>
				
		<div class="asort">
			<div class="hd">
				<div class="wrap">
					<div class="fl"><span>选择分类</span><div class="clear"></div></div>
					<div class="fr"></div>
					<div class="clear"></div>
				</div>
			</div>
			<div class="ct">
				<div class="wrap">
					<ul class="choose_sort">
<?php
foreach((array)$com_cats as $key=>$cat){
?>
                    <li>
                    <a href="<?echo url_rewrite('com',array('act'=>'list','eid'=>$areago,'order'=>$order,'keyword'=>$keyword,'check_p'=>$check_p,'check_wf'=>$check_wf))?>">
                    <i class="s"></i><span>全部</span><i class="<? if($catid==$com_cat_info['parentid']){?>es<?}else{?>e<?}?>"></i>
                    </a>
                    </li>
<?php
  foreach((array)$cat[children] as $chi){
?>
					<li>
                    <a href="<?=$chi[url]?>">
                    <i class="s"></i><span><?=$chi['name']?></span><i class="<? if ($chi['id']==$catid){?>es<?}else{?>e<?}?>"></i>
                    </a>
                    </li>
<?php
 }
}
?>
					</ul>
					<div class="clear"></div>
				</div>
			</div>
		</div>

		<div class="asort">
			<div class="hd">
				<div class="wrap">
					<div class="fl"><i></i><span>选择排序</span><div class="clear"></div></div>
					<div class="fr"></div>
					<div class="clear"></div>
				</div>
			</div>
			<div class="ct">
				<div class="wrap">
					<ul>
                                                <li>
                                                <a href="<? echo url_rewrite('com',array('act'=>'list','catid'=>$catid,'eid'=>$areago,'order'=>'new','keyword'=>$keyword,'check_p'=>$check_p,'check_wf'=>$check_wf)) ?>">
                                                <i></i><span>最新</span><i class="<? if ($order=='new'){?>es<?}else{?>e<?}?>"></i>
                                                </a>
                                                </li>
												<li>
                                                <a href="<? echo url_rewrite('com',array('act'=>'list','catid'=>$catid,'eid'=>$areago,'order'=>'star','keyword'=>$keyword,'check_p'=>$check_p,'check_wf'=>$check_wf)) ?>">
                                                <i></i><span>评分</span><i class="<? if ($order=='star'){?>es<?}else{?>e<?}?>"></i>
                                                </a>
                                                </li>
												<li>
                                                <a href="<? echo url_rewrite('com',array('act'=>'list','catid'=>$catid,'eid'=>$areago,'order'=>'hot','keyword'=>$keyword,'check_p'=>$check_p,'check_wf'=>$check_wf)) ?>">
                                                <i></i><span>人气</span><i class="<? if ($order=='hot'){?>es<?}else{?>e<?}?>"></i>
                                                </a>
                                                </li>
											</ul>
					<div class="clear"></div>
				</div>
			</div>
		</div>
		
	</div>
	
	
	<?include tpl("plus_share");?>
	
</body>
</html>