<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
    <php>$headtitle=$GLOBALS['ts']['site']['site_name'];</php>
    <title><?php echo $headtitle;?></title>
    <!--<base href="__APP__/" />-->
    <meta charset="utf-8">
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <link rel="stylesheet" href="__APP__/css/pure.css">
    <link rel="stylesheet" href="__APP__/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="__APP__/css/pureUI.css?t=1.18">
    <link rel="stylesheet" type="text/css" href="__APP__/css/ts.css"/>
    <!--TS-U function-->
    <script type="text/javascript">
        var SITE_URL  = '<php> echo SITE_URL;</php>';
        //载入函数
        var U = function(url, params) {
            var website = SITE_URL+'/index.php';
            url = url.split('/');
            if(url[0]=='' || url[0]=='@')
                url[0] = APPNAME;
            if (!url[1])
                url[1] = 'Index';
            if (!url[2])
                url[2] = 'index';
            website = website+'?app='+url[0]+'&mod='+url[1]+'&act='+url[2];
            if(params) {
                params = params.join('&');
                website = website + '&' + params;
            }
            return website;
        };
        var _static = '__APP__';
    </script>
    <script src="__APP__/js/jquery-2.1.1.min.js"></script>
    <script type="text/javascript" src="__APP__/js/appframework.js"></script>
    <script src="__APP__/js/jquery.tap.min.js"></script>
    <script src="__APP__/js/iscroll.js"></script>
    <script src="__APP__/js/zepto.js"></script>
    <!--script src="__THEME__/js/jquery-1.7.1.min.js?v={$site.sys_version}"></script-->
    <!--<script src="__THEME__/js/core.wap.js?v={$site.sys_version}"></script>-->

    <!--<script src="__THEME__/js/core.js?v={$site.sys_version}"></script>-->

    <!--<script src="__THEME__/js/module.wap.js?v={$site.sys_version}"></script>-->

    <!--<script src="__THEME__/js/module.js?v={$site.sys_version}"></script>-->

    <!--script src="__THEME__/js/common.js?v={$site.sys_version}"></script>
    <script src="__THEME__/js/module.js?v={$site.sys_version}"></script>
    <script src="__THEME__/js/core.js?v={$site.sys_version}"></script-->
    <!--<script src="__APP__/plugins/af.touchEvents.js"></script>-->
    <!--<script src="__APP__/js/ui.js?t=1.16-dev"></script>-->
    <script src="__APP__/js/ui4jq.js"></script>
    <script src="__APP__/js/basic.js?t=1.03"></script>
    <script src="__APP__/js/app.js?t=1.06-dev"></script>

<script>
/**
 * 全局变量
 */
var SITE_URL  = '<php> echo SITE_URL;</php>';
var UPLOAD_URL= '<php> echo UPLOAD_URL;</php>';
var THEME_URL = '__THEME__';
var APPNAME   = '<php> echo APP_NAME;</php>';
var MID       = '<php> echo $mid;</php>';
var UID       = '<php> echo $uid;</php>';
var initNums  =  '<php> echo $initNums;</php>';
var SYS_VERSION = '<php> echo $site["sys_version"];</php>'
var ISWAP = 1;
// Js语言变量
var LANG = new Array();
</script>
<php>if(!empty($langJsList)) {</php>
<volist name="langJsList" id="vo">
<script src="{$vo}?v={$site.sys_version}"></script>
</volist>
<php>}</php>
<script type="text/javascript" src="__APP__/js/form.js?v={$site.sys_version}"></script>
<script type="text/javascript" src="__APP__/js/core.js?v={$site.sys_version}"></script>
<script type="text/javascript" src="__THEME__/js/module.js?v={$site.sys_version}"></script>
<script src="__THEME__/js/js.php?t=js&f=jquery.form.js,common.js,module.js,module.common.js,jwidget_1.0.0.js,jquery.atwho.js,jquery.caret.js,ui.core.js,plugins/core.comment.js,plugins/core.digg.js&v={$site.sys_version}.js"></script>
<script src="__THEME__/js/plugins/core.comment.js?v={$site.sys_version}"></script>
<script src="__THEME__/js/plugins/core.digg.js?v={$site.sys_version}"></script>
</head>
<body>
<div id="wechat_bar" class="hide">
    <div id="wechat_back" class="fa fa-chevron-left"></div>
    <div id="wechat_forward" class="fa fa-chevron-right"></div>
    <div class="fa"></div>
    <div id="wechat_menu" class="fa fa-bars"></div>
</div>
<div id="menu">
    <include file="../Public/menu" />
</div>
<div id="header">
    <div id="header-buttons">
        <div id="back" class="header-menu-link"></div>
        <div id="messageLink" class="header-menu-link"><a href="{:U('w3g/Index/msgbox')}"><i class="num"></i></a></div>
        <div id="menuLink" class="header-menu-link"></div>
    </div>
    <h1>
        <!--<?php echo $headtitle;?>-->
        <img src="<?php if($logo) { ?>{$logo}<?php } else { ?>__APP__/img/sys/logo.png<?php } ?>" alt="<?php echo $headtitle;?>">
    </h1>
</div>
<div id="layout">
    <!-- Menu toggle -->
    <!--<a id="menuLink" class="menu-link">-->
        <!-- Hamburger icon -->
        <!--<span></span>-->
    <!--</a>-->
    <div id="main">