<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" type="text/css" href="{viicms::RES}/css/template/weimob-ui-1-1.css" media="all" />
<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/list-2.css " media="all" />
<script type="text/javascript" src="{viicms::RES}/src/jQuery.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">
<meta name="Keywords" content="VIICMS、微信营销、微信代运营、微信定制开发、微信托管、微网站、微商城、微营销" />
<meta name="Description" content="VIICMS，国内最大的微信公众智能服务平台，VIICMS八大微体系：微菜单、微官网、微会员、微活动、微商城、微推送、微服务、微统计，企业微营销必备。" />
<!-- 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;">
<link rel="stylesheet" type="text/css" href="../../wm-xin-a/font-awesome.css?v=2013122901" media="all" />
<div class="weimob-page">
  <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>
  <div class="weimob-content">
    <volist name="res" id="so">
      <div class="weimob-list">
        <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>
        <div class="weimob-list-item-line">
          <div class="weimob-list-item-title">{viicms:$so.title}</div>
          <div class="weimob-list-item-summary">{viicms:$so.createtime|date="y-m-d",###}</div>
          <div class="weimob-list-item-img"><img src="{viicms:$so.pic}"/></div>
          <div class="weimob-list-item-summary">{viicms:$so.text}</div>
        </div>
        <div class="weimob-list-more">
          <div class="weimob-list-item-more">阅读全文</div>
          <div class="weimob-list-item-more-icon icon-arrow-r"></div>
        </div>
        </a> </div>
    </volist>
  </div>
  <!--
下一页 上一页 开始
-->
  <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>
<footer>
  <div class="weimob-copyright"> <a href="{viicms::U('Index/index',array('token'=>$res['token']))}">© {viicms:$tpl.wxname}</a> </div>
  <span class="weimob-support" style="display:none;">©{viicms::C('copyright')}</span> </footer>
<div mark="stat_code" style="width:0px; height:0px; display:none;"> </div>
</body>
</html>