www.gusucode.com > SDCMS三合一企业网站管理系统PHP源码程序 > SDCMS三合一企业网站管理系统/sdcms_swhy_v1.7/sdcms_swhy_v1.7/上传本目录中文件/app/admin/view/module/theme/template.php

    <?php if(!defined('IN_SDCMS')) exit;?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<title>模板选择</title>
<link rel="stylesheet" href="{WEB_ROOT}public/css/amazeui.min.css">
<link rel="stylesheet" href="{WEB_ROOT}public/admin/css/layout.css">
<link rel="stylesheet" href="{WEB_ROOT}public/admin/css/toastr.css">
<script src="{WEB_ROOT}public/js/jquery.min.js"></script>
<script src="{WEB_ROOT}public/js/amazeui.min.js"></script>
<script src="{WEB_ROOT}public/dialog/dialog-min.js"></script>
<!--[if lt IE 9]>
<script src="{WEB_ROOT}public/js/html5shiv.js"></script>
<script src="{WEB_ROOT}public/js/respond.min.js"></script>
<![endif]-->
</head>

<body class="bg_tree">
    <input type="hidden" name="go" id="go" value="">
    <div class="position">当前位置:<a href="{U('template')}">根目录</a>{$position}模板列表</div>
    <table class="am-table am-table-hover am-margin-top" style="cursor:pointer;">
        <thead>
            <tr>
                <th>名称</th>
                <th width="120">说明</th>
                <th width="180">修改时间</th>
            </tr>
        </thead>
        <tbody>
        {foreach $folder as $key=>$val}
        {if !(in_array($val[0],['block']))}
        <tr>
            <td class="am-text-primary"><a href="{U('template','root='.base64_encode($root.$val[0]).'')}">{$val[0]}</a></td>
            <td></td>
            <td>{date('Y-m-d H:i:s',$val[1])}</td>
        </tr>
        {/if}
        {/foreach}
        {foreach $file as $key=>$val}
        {php $a=$dir.$val[0]}
        {if !(in_array($val[0],['_config.php','_note.php','_theme.php']))}
        <tr config="{$a}" class="choose" title="点击选择此模板">
            <td><a href="javascript:;">{$val[0]}</a></td>
            <td>{if isset($name[$a])}{$name[$a]}{/if}</td>
            <td>{date('Y-m-d H:i:s',$val[1])}</td>
        </tr>
        {/if}
        {/foreach}
        </tbody>
    </table>
<script>
$(".choose").click(function(){
	var val=$(this).attr("config");
	$("table tr").each(function(){
		$(this).removeClass("am-active");
	})
	$(this).addClass("am-active");
	$("#go").val(val);
})
</script>
</body>
</html>