<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="{viicms::RES}/css/template/common.css" media="all" />
<link rel="stylesheet" type="text/css" href="{viicms::RES}/css/template/reset.css" media="all" />
<link rel="stylesheet" type="text/css" href="{viicms::RES}/css/template/list-10.css" media="all" />
<script type="text/javascript" src="{viicms::RES}/src/jQuery.js"></script>
<script type="text/javascript" src="{viicms::RES}/src/template/zepto.js"></script>
<script type="text/javascript" src="{viicms::RES}/src/template/swipe.js"></script>
<title>{viicms:$tpl.wxname}</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">

<!-- Mobile Devices Support @begin -->
<meta content="application/xhtml+xml;charset=UTF-8" http-equiv="Content-Type">
<meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
<meta content="no-cache" http-equiv="pragma">
<meta content="0" http-equiv="expires">
<meta content="telephone=no, address=no" name="format-detection">
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta name="apple-mobile-web-app-capable" content="yes" />
<!-- apple devices fullscreen -->
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
<!-- Mobile Devices Support @end -->
<link rel="shortcut icon" href="{viicms::RES}/img/favicon.ico" />
</head>
<body onselectstart="return true;" ondragstart="return false;">
<div class="weimob-page">
<link rel="stylesheet" type="text/css" href="{viicms::RES}/css/font-awesome.css?v=2013-08-17" media="all" />
  <div style="height:35px!important;"></div>
  <div class="top_bar">
    <nav>
      <ul class="top_menu">
        <li onClick="window.history.go(-1);"><span class="icon-chevron-sign-left"></span></li>
        <li onClick="location.href='{viicms::U('Index/index',array('token'=>$tpl['token']))}'"><span class="icon-home"></span></li>
        <li><a href="tel:<if condition="$homeInfo.dianhua neq false">{viicms:$homeInfo.dianhua}
          <else/>
          没有留电话
          </if>
          "><span class="icon-phone"></span></a></li>
        <li onClick="$('#menu_font').toggleClass('hidden');"> <span class="icon-list-ul"></span>
          <ul id="menu_font" class="menu_font hidden" onClick="$('#menu_font').toggleClass('hidden');">
            <volist name="info" id="vo">
              <li> <a href="<if condition="$vo['url'] eq ''">{viicms::U('Wap/Index/lists',array('classid'=>$vo['id'],'token'=>$vo['token']))}
                <else/>
                {viicms:$vo.url|htmlspecialchars_decode}
                </if>
                " class="icon-smile">
                {viicms:$vo.name} </a> </li>
            </volist>
          </ul>
        </li>
      </ul>
    </nav>
  </div>
  <!--
分享前控制
-->
  <script>
		document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
			window.shareData = {
				"imgUrl": "http://stc.weimob.com//img/template/lib/home-450300.jpg?v=2013-12-18-2?=2013-12-18-2",
				"timeLineLink": "http://www.weimob.com/weisite/list?pid=34087&bid=64052&wechatid=fromUsername&ltid=93586&wxref=mp.weixin.qq.com",
				"sendFriendLink": "http://www.weimob.com/weisite/list?pid=34087&bid=64052&wechatid=fromUsername&ltid=93586&wxref=mp.weixin.qq.com",
				"weiboLink": "http://www.weimob.com/weisite/list?pid=34087&bid=64052&wechatid=fromUsername&ltid=93586&wxref=mp.weixin.qq.com",
				"tTitle": "二号分类",
				"tContent": "",
				"fTitle": "二号分类",
				"fContent": "",
				"wContent": ""
			};
			// 发送给好友
			WeixinJSBridge.on('menu:share:appmessage', function (argv) {
				WeixinJSBridge.invoke('sendAppMessage', {
					"img_url": window.shareData.imgUrl,
					"img_width": "640",
					"img_height": "640",
					"link": window.shareData.sendFriendLink,
					"desc": window.shareData.fContent,
					"title": window.shareData.fTitle
				}, function (res) {
					_report('send_msg', res.err_msg);
				})
			});
			// 分享到朋友圈
			WeixinJSBridge.on('menu:share:timeline', function (argv) {
				WeixinJSBridge.invoke('shareTimeline', {
					"img_url": window.shareData.imgUrl,
					"img_width": "640",
					"img_height": "640",
					"link": window.shareData.timeLineLink,
					"desc": window.shareData.tContent,
					"title": window.shareData.tTitle
				}, function (res) {
					_report('timeline', res.err_msg);
				});
			});
			// 分享到微博
			WeixinJSBridge.on('menu:share:weibo', function (argv) {
				WeixinJSBridge.invoke('shareWeibo', {
					"content": window.shareData.wContent,
					"url": window.shareData.weiboLink,
				}, function (res) {
					_report('weibo', res.err_msg);
				});
			});
		}, false)
	</script>
  <section>
    <div>
      <ul class="list_ul">
        <volist name="res" id="so">
          <li>
            <if condition="$so['url']">
            <a href="{viicms:$so.url}" class="tbox">
            <else />
            <a href="{viicms::U('Index/content',array('id'=>$so['id'],'token'=>$so['token']))}" class="tbox">
            </if>
            <dd>
              <div> <img src="{viicms:$so.pic}" /> </div>
            </dd>
            <dt>
              <hgroup>
                <h1>{viicms:$so.title}</h1>
                <h2>{viicms:$so.text}</h2>
              </hgroup>
            </dt>
            </a> </li>
        </volist>
      </ul>
    </div>
  </section>
  <!--
下一页 上一页 开始
-->
  <section id="Page_wrapper">
    <div id="pNavDemo" class="c-pnav-con">
      <section class="c-p-sec">
        <div class='c-p-pre <eq name="p" value="1"> c-p-grey </eq> '><span class="c-p-p"><em></em></span><a 
          <eq name="p" value="1">
            <else/>
            href="{viicms::C('site_url')}/index.php?g=Wap&m=Index&a=lists&classid=
            <php>echo $_GET['classid'];</php>
            &token={viicms:$tpl.token}&p=
            <php>echo $p-1;</php>
            "</eq>
          >上一页</a></div>
        <div class="c-p-cur">
          <div class="c-p-arrow c-p-down"><span>{viicms:$p}/{viicms:$page}</span><span></span></div>
          <select class="c-p-select" onChange="dourl('{viicms::C('site_url')}/index.php?g=Wap&m=Index&a=lists&classid=<php>echo $_GET['classid'];</php>&token={viicms:$tpl.token}&p='+this.value)">
            <?php
			for($i=1;$i<=$page;$i++){
				if($i==$p){
					echo '<option value="'.$i.'" selected>第'.$i.'页</option>';
				}else{
					echo '<option value="'.$i.'">第'.$i.'页</option>';
				}
			}
		?>
          </select>
        </div>
        <div class='c-p-next <eq name="p" value="$page"> c-p-grey </eq>'  >
          <?php
	if($p<$page){
		echo '<a href="'.C('site_url').'/index.php?g=Wap&m=Index&a=lists&classid='.(int)$_GET['classid'].'&token='.$tpl['token'].'&p='.($p+1).'">';
	}else{
		echo '<a>';
	}
?>
          下一页</a><span class="c-p-p"><em></em></span></div>
      </section>
    </div>
  </section>
  <!--
下一页 上一页 结束
-->
</div>

<div mark="stat_code" style="width:0px; height:10px; display:none;"> </div>
<br>
<include file="Public:footer"/>
</body>
</html>