fix: about rop
This commit is contained in:
parent
6e29609208
commit
838ad13b05
Binary file not shown.
347
runtime/complile/2a48a8d71cc03c28b3732ac310e81f96.php
Normal file
347
runtime/complile/2a48a8d71cc03c28b3732ac310e81f96.php
Normal file
@ -0,0 +1,347 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
|
||||
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
|
||||
<link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="layui-layout-body">
|
||||
|
||||
<!--定义部分地址方便JS调用-->
|
||||
<div style="display: none">
|
||||
<span id="controller" data-controller="<?php echo C;?>"></span>
|
||||
<span id="url" data-url="<?php echo URL;?>"></span>
|
||||
<span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
|
||||
<span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
|
||||
<span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-header">
|
||||
<div class="layui-logo">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
|
||||
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
|
||||
<?php echo CMSNAME;?>
|
||||
<?php if (LICENSE==3) {?>
|
||||
<span class="layui-badge">SVIP</span>
|
||||
<?php } else { ?>
|
||||
<span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="menu">
|
||||
<li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
|
||||
</ul>
|
||||
<?php if (!$this->getVar('one_area')) {?>
|
||||
<form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-col-xs8">
|
||||
<select name="acode">
|
||||
<?php echo $this->getVar('area_html');?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-col-xs4">
|
||||
<button type="submit" class="layui-btn layui-btn-sm">切换</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="layui-nav layui-layout-right">
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
|
||||
<?php if (session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="layui-side layui-bg-black">
|
||||
<div class="layui-side-scroll">
|
||||
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
||||
<ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
|
||||
<?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
|
||||
<li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
|
||||
<a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
|
||||
<dl class="layui-nav-child">
|
||||
<?php if ($value->mcode=='M130') {?>
|
||||
<?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
|
||||
<?php if ($value3->type==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php if ($value3->type==2) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
|
||||
<?php if (!isset($value2->status)|| $value2->status==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li style="height:1px;background:#666" class="layui-hide-sm"></li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-body">
|
||||
<?php if ($this->getVar('list')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1">模型列表</li>
|
||||
<li lay-id="t2">模型新增</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>名称</th>
|
||||
<th>类型</th>
|
||||
<th>URL名称</th>
|
||||
<th>列表页模板</th>
|
||||
<th>详情页模板</th>
|
||||
<th>状态</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $num = 0;foreach ($this->getVar('models') as $key => $value) { $num++;?>
|
||||
<tr>
|
||||
<td><?php echo @(PAGE-1)*PAGESIZE+$num; ?></td>
|
||||
<td><?php echo $value->name; ?></td>
|
||||
<td>
|
||||
<?php if ($value->type==1) {?>单页<?php } ?>
|
||||
<?php if ($value->type==2) {?>列表<?php } ?>
|
||||
</td>
|
||||
<td><?php echo $value->urlname; ?></td>
|
||||
<td><?php echo $value->listtpl; ?></td>
|
||||
<td><?php echo $value->contenttpl; ?></td>
|
||||
<td>
|
||||
<?php if ($value->status) {?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/id/'.$value->id.'/field/status/value/0');?>" class="switch"><i class='fa fa-toggle-on' title="点击禁用"></i></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/id/'.$value->id.'/field/status/value/1');?>" class="switch"><i class='fa fa-toggle-off' title="点击启用"></i></a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td>
|
||||
<?php if (!$value->issystem) {?>
|
||||
<?php echo get_btn_del($value->id);?>
|
||||
<?php } ?>
|
||||
<?php echo get_btn_mod($value->id);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page"><?php echo $this->getVar('pagebar');?></div>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Model/add');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">模型名称 <span class="layui-text-red">*</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="name" required lay-verify="required" placeholder="请输入模型名称" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">模型类型 <span class="layui-text-red">*</span></label>
|
||||
<div class="layui-input-block">
|
||||
<select name="type" lay-verify="required">
|
||||
<option value="">请选择模型类型</option>
|
||||
<option value="1">单页</option>
|
||||
<option value="2">列表</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">URL名称 </label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="urlname" placeholder="请输入URL地址名称,如:news" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">列表页模板</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="listtpl" placeholder="请输入列表页模板" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">详情页模板</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="contenttpl" placeholder="请输入详情页模板" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">状态</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="status" value="1" title="启用" checked>
|
||||
<input type="radio" name="status" value="0" title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('mod')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">模型修改</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Model/mod/id/'.get('id').'');?><?php echo $this->getVar('backurl');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">模型名称 <span class="layui-text-red">*</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="name" required lay-verify="required" value="<?php echo @$this->getVar('model')->name;?>" placeholder="请输入模型名称" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">模型类型 <span class="layui-text-red">*</span></label>
|
||||
<div class="layui-input-block">
|
||||
<select name="type" lay-verify="required">
|
||||
<option value="">请选择模型类型</option>
|
||||
<option value="1" <?php if ($this->getVar('model')->type==1) {?>selected<?php } ?>>单页</option>
|
||||
<option value="2" <?php if ($this->getVar('model')->type==2) {?>selected<?php } ?>>列表</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">URL名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="urlname" value="<?php echo @$this->getVar('model')->urlname;?>" placeholder="请输入URL地址名称,如:news" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">列表页模板</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="listtpl" value="<?php echo @$this->getVar('model')->listtpl;?>" placeholder="请输入列表页模板" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">详情页模板</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="contenttpl" value="<?php echo @$this->getVar('model')->contenttpl;?>" placeholder="请输入详情页模板" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">状态</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="status" value="1" title="启用" <?php if ($this->getVar('model')->status==1) {?>checked<?php } ?>>
|
||||
<input type="radio" name="status" value="0" title="禁用" <?php if ($this->getVar('model')->status==0) {?>checked<?php } ?>>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
<?php echo get_btn_back();?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
|
||||
|
||||
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php return array (
|
||||
0 => '/home/php/pxgw/apps/admin/view/default/common/head.html',
|
||||
1 => '/home/php/pxgw/apps/admin/view/default/common/foot.html',
|
||||
); ?>
|
@ -80,14 +80,7 @@
|
||||
</a> </li>
|
||||
{/pboot:list}
|
||||
{pboot:sort scode=5}
|
||||
<li class="li_more wow fadeInUp animated"> <a href="[sort:link]" class="ht_w">
|
||||
<div class="img"><img src="[sort:ico]" /></div>
|
||||
<div class="text text_t_ht">
|
||||
<div class="cell">
|
||||
<p>更多精彩课程等你开启</p>
|
||||
<span></span></div>
|
||||
</div>
|
||||
</a> </li>
|
||||
|
||||
{/pboot:sort}
|
||||
</ul>
|
||||
</div>
|
||||
|
261
runtime/complile/432137ec2cd03725ef5eedc93d327087.php
Normal file
261
runtime/complile/432137ec2cd03725ef5eedc93d327087.php
Normal file
@ -0,0 +1,261 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
|
||||
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
|
||||
<link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="layui-layout-body">
|
||||
|
||||
<!--定义部分地址方便JS调用-->
|
||||
<div style="display: none">
|
||||
<span id="controller" data-controller="<?php echo C;?>"></span>
|
||||
<span id="url" data-url="<?php echo URL;?>"></span>
|
||||
<span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
|
||||
<span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
|
||||
<span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-header">
|
||||
<div class="layui-logo">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
|
||||
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
|
||||
<?php echo CMSNAME;?>
|
||||
<?php if (LICENSE==3) {?>
|
||||
<span class="layui-badge">SVIP</span>
|
||||
<?php } else { ?>
|
||||
<span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="menu">
|
||||
<li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
|
||||
</ul>
|
||||
<?php if (!$this->getVar('one_area')) {?>
|
||||
<form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-col-xs8">
|
||||
<select name="acode">
|
||||
<?php echo $this->getVar('area_html');?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-col-xs4">
|
||||
<button type="submit" class="layui-btn layui-btn-sm">切换</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="layui-nav layui-layout-right">
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
|
||||
<?php if (session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="layui-side layui-bg-black">
|
||||
<div class="layui-side-scroll">
|
||||
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
||||
<ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
|
||||
<?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
|
||||
<li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
|
||||
<a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
|
||||
<dl class="layui-nav-child">
|
||||
<?php if ($value->mcode=='M130') {?>
|
||||
<?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
|
||||
<?php if ($value3->type==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php if ($value3->type==2) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
|
||||
<?php if (!isset($value2->status)|| $value2->status==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li style="height:1px;background:#666" class="layui-hide-sm"></li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-body">
|
||||
<?php if ($this->getVar('list')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1">文章内链列表</li>
|
||||
<li lay-id="t2">文章内链新增</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>名称</th>
|
||||
<th>链接</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $num = 0;foreach ($this->getVar('tags') as $key => $value) { $num++;?>
|
||||
<tr>
|
||||
<td><?php echo @(PAGE-1)*PAGESIZE+$num; ?></td>
|
||||
<td><?php echo $value->name; ?></td>
|
||||
<td><?php echo $value->link; ?></td>
|
||||
<td>
|
||||
<?php echo get_btn_del($value->id);?>
|
||||
<?php echo get_btn_mod($value->id);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page"><?php echo $this->getVar('pagebar');?></div>
|
||||
</div>
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Tags/add');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="name" required lay-verify="required" placeholder="请输入名称" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">链接</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="link" required lay-verify="required" placeholder="请输入链接" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('mod')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">文章内链修改</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Tags/mod/id/'.get('id').'');?><?php echo $this->getVar('backurl');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="name" required lay-verify="required" value="<?php echo @$this->getVar('tags')->name;?>" placeholder="请输入名称" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">链接</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="link" required lay-verify="required" value="<?php echo @$this->getVar('tags')->link;?>" placeholder="请输入链接" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
<?php echo get_btn_back();?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
|
||||
|
||||
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php return array (
|
||||
0 => '/home/php/pxgw/apps/admin/view/default/common/head.html',
|
||||
1 => '/home/php/pxgw/apps/admin/view/default/common/foot.html',
|
||||
); ?>
|
619
runtime/complile/4e76b5555bd89574c851a25d4adcf5b1.php
Normal file
619
runtime/complile/4e76b5555bd89574c851a25d4adcf5b1.php
Normal file
@ -0,0 +1,619 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
|
||||
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
|
||||
<link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="layui-layout-body">
|
||||
|
||||
<!--定义部分地址方便JS调用-->
|
||||
<div style="display: none">
|
||||
<span id="controller" data-controller="<?php echo C;?>"></span>
|
||||
<span id="url" data-url="<?php echo URL;?>"></span>
|
||||
<span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
|
||||
<span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
|
||||
<span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-header">
|
||||
<div class="layui-logo">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
|
||||
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
|
||||
<?php echo CMSNAME;?>
|
||||
<?php if (LICENSE==3) {?>
|
||||
<span class="layui-badge">SVIP</span>
|
||||
<?php } else { ?>
|
||||
<span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="menu">
|
||||
<li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
|
||||
</ul>
|
||||
<?php if (!$this->getVar('one_area')) {?>
|
||||
<form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-col-xs8">
|
||||
<select name="acode">
|
||||
<?php echo $this->getVar('area_html');?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-col-xs4">
|
||||
<button type="submit" class="layui-btn layui-btn-sm">切换</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="layui-nav layui-layout-right">
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
|
||||
<?php if (session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="layui-side layui-bg-black">
|
||||
<div class="layui-side-scroll">
|
||||
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
||||
<ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
|
||||
<?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
|
||||
<li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
|
||||
<a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
|
||||
<dl class="layui-nav-child">
|
||||
<?php if ($value->mcode=='M130') {?>
|
||||
<?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
|
||||
<?php if ($value3->type==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php if ($value3->type==2) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
|
||||
<?php if (!isset($value2->status)|| $value2->status==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li style="height:1px;background:#666" class="layui-hide-sm"></li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-body">
|
||||
<?php if ($this->getVar('list')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1"><?php echo $this->getVar('model_name');?>内容</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.get('mcode').'');?>" method="get" class="layui-form">
|
||||
<div class="layui-form-item nospace">
|
||||
<div class="layui-input-inline">
|
||||
<?php echo $this->getVar('pathinfo');?>
|
||||
<select name="field" class="form-control input-sm" style="width:auto;">
|
||||
<option value="b.name" <?php if (get('field')=='b.name') {?>selected="selected" <?php } ?>>栏目名称</option>
|
||||
<option value="a.title" <?php if (get('field')=='a.title') {?>selected="selected" <?php } ?> >文章标题</option>
|
||||
<option value="a.content" <?php if (get('field')=='a.content') {?>selected="selected" <?php } ?>>文章内容</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="keyword" value="<?php echo get('keyword');?>" placeholder="请输入搜索关键字" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-input-inline">
|
||||
<button class="layui-btn" lay-submit>搜索</button>
|
||||
<a class="layui-btn layui-btn-primary" href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.get('mcode').'');?>">清除搜索</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>栏目</th>
|
||||
<th>标题</th>
|
||||
<th>时间</th>
|
||||
<th>状态</th>
|
||||
<th>访问量</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $num = 0;foreach ($this->getVar('contents') as $key => $value) { $num++;?>
|
||||
<tr>
|
||||
<td><?php echo $value->id; ?></td>
|
||||
<td title="<?php echo $value->scode; ?>"><?php echo $value->sortname; ?></td>
|
||||
<td title="<?php echo $value->title; ?>">
|
||||
<?php echo substr_both($value->title,0,15);?>
|
||||
<?php if ($value->ico) {?>
|
||||
<span class="layui-badge layui-bg-orange">缩</span>
|
||||
<?php } ?>
|
||||
<?php if ($value->pics) {?>
|
||||
<span class="layui-badge">图</span>
|
||||
<?php } ?>
|
||||
<?php if ($value->outlink) {?>
|
||||
<span class="layui-badge layui-bg-black">链</span>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td><?php echo $value->date; ?></td>
|
||||
<td>
|
||||
<?php if ($value->status) {?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/id/'.$value->id.'/field/status/value/0');?>" class="switch"><i class='fa fa-toggle-on' title="点击关闭"></i></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/id/'.$value->id.'/field/status/value/1');?>" class="switch"><i class='fa fa-toggle-off' title="点击开启"></i></a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td><?php echo $value->visits; ?></td>
|
||||
<td>
|
||||
<?php if (!$value->outlink) {?>
|
||||
<?php
|
||||
$Parser=new app\home\controller\ParserController();
|
||||
$link=$Parser->parserLink(1,$value->urlname,'about',$value->scode,$value->filename,'','');
|
||||
?>
|
||||
<a href="<?php echo $link?>" class="layui-btn layui-btn-xs layui-btn-primary" target="_blank">查看</a>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (check_level('mod')) {?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Single/mod/mcode/'.$value->mcode.'/id/'.$value->id.'');?><?php echo $this->getVar('btnqs');?>" class="layui-btn layui-btn-xs" >修改</a>
|
||||
<?php if ($this->getVar('baidu_zz_token') && !$value->outlink) {?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/baiduzz/'.$value->id.'');?>" class="layui-btn layui-btn-xs layui-btn-primary" >百度普通推送</a>
|
||||
<?php } ?>
|
||||
<?php if ($this->getVar('baidu_ks_token') && !$value->outlink) {?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/baiduks/'.$value->id.'');?>" class="layui-btn layui-btn-xs layui-btn-primary" >百度快速推送</a>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('mod')) {?>
|
||||
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">单页修改</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Single/mod/id/'.get('id').'');?><?php echo $this->getVar('backurl');?>" method="post" class="layui-form" id="edit">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">基本内容</li>
|
||||
<li>高级内容</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">内容标题 <span class="layui-text-red">*</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="title" required lay-verify="required" value="<?php echo @$this->getVar('content')->title;?>" placeholder="请输入内容标题" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php $num = 0;foreach ($this->getVar('extfield') as $key => $value) { $num++;?>
|
||||
<?php if ($value->type==1) {?> <!-- 单行文本 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="<?php echo $value->name; ?>" value="<?php echo @$this->getVar('content')->{$value->name};?>" placeholder="请输入<?php echo $value->description; ?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==2) {?><!-- 多行文本 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?></label>
|
||||
<div class="layui-input-block">
|
||||
<textarea name="<?php echo $value->name; ?>" class="layui-textarea" placeholder="请输入<?php echo $value->description; ?>"><?php $name=$value->name;echo str_replace('<br>', "\r\n",$this->vars['content']->$name);?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==3) {?><!-- 单选 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?></label>
|
||||
<div class="layui-input-block">
|
||||
<div>
|
||||
<?php
|
||||
$radios=explode(',',$value->value);
|
||||
$name=$value->name;
|
||||
foreach ($radios as $value2) {
|
||||
if($this->vars['content']->$name==$value2){
|
||||
echo '<input type="radio" name="'.$value->name.'" value="'.$value2.'" title="'.$value2.'" checked>';
|
||||
}else{
|
||||
echo '<input type="radio" name="'.$value->name.'" value="'.$value2.'" title="'.$value2.'">';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==4) {?><!-- 多选 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?></label>
|
||||
<div class="layui-input-block">
|
||||
<div>
|
||||
<?php
|
||||
$checkboxs=explode(',',$value->value);
|
||||
$name=$value->name;
|
||||
echo '<input name="'.$value->name.'" type="hidden">';//占位清空
|
||||
$values=explode(',',$this->vars['content']->$name);
|
||||
foreach ($checkboxs as $value2) {
|
||||
if(in_array($value2,$values)){
|
||||
echo '<input type="checkbox" name="'.$value->name.'[]" value="'.$value2.'" title="'.$value2.'" checked>';
|
||||
}else{
|
||||
echo '<input type="checkbox" name="'.$value->name.'[]" value="'.$value2.'" title="'.$value2.'">';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==5) {?><!-- 图片 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?></label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="<?php echo $value->name; ?>" id="<?php echo $value->name; ?>" value="<?php echo @$this->getVar('content')->{$value->name};?>" placeholder="请上传<?php echo $value->description; ?>" class="layui-input">
|
||||
</div>
|
||||
<button type="button" class="layui-btn upload watermark" data-des="<?php echo $value->name; ?>">
|
||||
<i class="layui-icon"></i>上传图片
|
||||
</button>
|
||||
<?php $name=$value->name; ?>
|
||||
<div id="<?php echo $value->name; ?>_box" class="pic"><dl><dt><?php if ($this->getVar('content')->$name) {?><img src='<?php echo SITE_DIR;?><?php echo @$this->getVar('content')->{$value->name};?>' data-url="<?php echo @$this->getVar('content')->{$value->name};?>"></dt><dd>删除</dd></dl><?php } ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==6) {?><!-- 文件 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?></label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="<?php echo $value->name; ?>" id="<?php echo $value->name; ?>" value="<?php echo @$this->getVar('content')->{$value->name};?>" placeholder="请上传<?php echo $value->description; ?>" class="layui-input">
|
||||
</div>
|
||||
<button type="button" class="layui-btn file" data-des="<?php echo $value->name; ?>">
|
||||
<i class="layui-icon"></i>上传文件
|
||||
</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==7) {?><!-- 日期 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="<?php echo $value->name; ?>" value="<?php echo @$this->getVar('content')->{$value->name};?>" readonly placeholder="请选择<?php echo $value->description; ?>" class="layui-input datetime">
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==8) {?><!-- 编辑器 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?></label>
|
||||
<div class="layui-input-block">
|
||||
<?php
|
||||
$name=@$value->name;
|
||||
?>
|
||||
<script type="text/plain" id="editor_<?php echo $value->name; ?>" name="<?php echo $value->name; ?>" style="width:100%;height:240px;"><?php echo decode_string($this->getVar('content')->$name);?></script>
|
||||
<script>
|
||||
//初始化编辑器
|
||||
$(document).ready(function (e) {
|
||||
var ue = UE.getEditor('editor_<?php echo $value->name; ?>',{
|
||||
maximumWords:10000
|
||||
});
|
||||
})
|
||||
</script>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==9) {?><!-- 下拉 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?></label>
|
||||
<div class="layui-input-block">
|
||||
<select name="<?php echo $value->name; ?>">
|
||||
<?php
|
||||
$selects=explode(',',$value->value);
|
||||
$name=$value->name;
|
||||
foreach ($selects as $value2) {
|
||||
if($this->vars['content']->$name==$value2){
|
||||
echo '<option value="'.$value2.'" selected>'.$value2.'</option>';
|
||||
}else{
|
||||
echo '<option value="'.$value2.'">'.$value2.'</option>';
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">内容</label>
|
||||
<div class="layui-input-block">
|
||||
<script type="text/plain" id="editor" name="content" style="width:100%;height:240px;"><?php echo decode_string($this->getVar('content')->content);?></script>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">tags</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="tags" placeholder="请输入文章tag,英文逗号隔开" value="<?php echo @$this->getVar('content')->tags;?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">作者</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="author" placeholder="请输入作者" value="<?php echo @$this->getVar('content')->author;?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">来源</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="source" placeholder="请输入来源" value="<?php echo @$this->getVar('content')->source;?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">缩略图</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="ico" id="ico" value="<?php echo @$this->getVar('content')->ico;?>" placeholder="请上传缩略图" class="layui-input">
|
||||
</div>
|
||||
<button type="button" class="layui-btn upload watermark" data-des="ico">
|
||||
<i class="layui-icon"></i>上传图片
|
||||
</button>
|
||||
<div id="ico_box" class="pic addedit"><?php if ($this->getVar('content')->ico) {?><dl><dt><img src="<?php echo SITE_DIR;?><?php echo @$this->getVar('content')->ico;?>" data-url="<?php echo @$this->getVar('content')->ico;?>"></dt><dd>删除</dd></dl><?php } ?></div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">轮播多图</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="pics" id="pics" value="<?php echo @$this->getVar('content')->pics;?>" placeholder="请上传轮播多图" class="layui-input">
|
||||
</div>
|
||||
<button type="button" class="layui-btn uploads watermark" data-des="pics">
|
||||
<i class="layui-icon"></i>上传多图
|
||||
</button>
|
||||
<div id="pics_box" class="pic addedit">
|
||||
<dl></dl> <!-- 规避空内容拖动bug -->
|
||||
<?php
|
||||
if($this->getVar('content')->pics){
|
||||
$pics=explode(',',$this->getVar('content')->pics);
|
||||
}else{
|
||||
$pics = array();
|
||||
}
|
||||
if($this->getVar('content')->picstitle){
|
||||
$picstitle=explode(',',$this->getVar('content')->picstitle);
|
||||
}else{
|
||||
$picstitle = array();
|
||||
}
|
||||
foreach ($pics as $key=>$value) {
|
||||
//需要留一个空,不然被解析为标签了
|
||||
echo "<dl><dt><img src='".SITE_DIR.$value."' data-url='".$value."'></dt><dd>删除</dd><dt><input type='text' value='".$picstitle[$key ]."' name='picstitle[]' style='width:95%' /></dt></dl>";
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item ">
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">标题颜色</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="titlecolor" value="<?php echo @$this->getVar('content')->titlecolor;?>" placeholder="请选择标题颜色" class="layui-input jscolor {hash:true}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">副标题</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="subtitle" value="<?php echo @$this->getVar('content')->subtitle;?>" placeholder="请输入副标题" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">时间</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="date" value="<?php echo @$this->getVar('content')->date;?>" readonly placeholder="请选择发布时间" class="layui-input datetime">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">温馨提示:单页不支持定时发布!</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">附件</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="enclosure" id="enclosure" value="<?php echo @$this->getVar('content')->enclosure;?>" placeholder="请上传附件" class="layui-input">
|
||||
</div>
|
||||
<button type="button" class="layui-btn file" data-des="enclosure">
|
||||
<i class="layui-icon"></i>上传附件
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">SEO关键字</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="keywords" value="<?php echo @$this->getVar('content')->keywords;?>" placeholder="请输入详情页SEO关键字" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">SEO描述</label>
|
||||
<div class="layui-input-block">
|
||||
<textarea name="description" placeholder="请输入详情页SEO描述" class="layui-textarea"><?php echo @$this->getVar('content')->description;?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">状态</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="status" value="1" title="显示" <?php if ($this->getVar('content')->status==1) {?> checked="checked"<?php } ?>>
|
||||
<input type="radio" name="status" value="0" title="隐藏" <?php if ($this->getVar('content')->status==0) {?> checked="checked"<?php } ?>>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
<?php echo get_btn_back();?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<style>.placeHolder {border:dashed 2px gray; }</style>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.dragsort-0.5.2.min.js"></script>
|
||||
<script type="text/javascript">
|
||||
$("#pics_box").dragsort({
|
||||
dragSelector: "dl",
|
||||
dragSelectorExclude: "input,textarea,dd",
|
||||
dragBetween: false,
|
||||
dragEnd: saveOrder,
|
||||
placeHolderTemplate: "<dl class='placeHolder'><dt></dt></dl>"
|
||||
});
|
||||
|
||||
function saveOrder() {
|
||||
var data = $("#pics_box dl dt img").map(function() {
|
||||
return $(this).data("url");
|
||||
}).get();
|
||||
$("input[name=pics]").val(data.join(","))
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jscolor.js"></script>
|
||||
|
||||
<!-- 引入编辑器文件 -->
|
||||
<script type="text/javascript" charset="utf-8" src="<?php echo CORE_DIR;?>/extend/ueditor/ueditor.config.js?v=v3.0.2"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="<?php echo CORE_DIR;?>/extend/ueditor/ueditor.all.min.js?v=v2.0.1"> </script>
|
||||
<script type="text/javascript" charset="utf-8" src="<?php echo CORE_DIR;?>/extend/ueditor/lang/zh-cn/zh-cn.js?v=1.3.5"></script>
|
||||
<script>
|
||||
//初始化编辑器
|
||||
$(document).ready(function (e) {
|
||||
var ue = UE.getEditor('editor',{
|
||||
maximumWords:30000
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!-- 解决源码模式无法保存 -->
|
||||
function editor_init() {
|
||||
$('#edit').submit(function () {
|
||||
editor=UE.getEditor('editor');
|
||||
if(editor.queryCommandState('source')==1) editor.execCommand('source');
|
||||
})
|
||||
}
|
||||
|
||||
<!-- 点击后添加到编辑器 -->
|
||||
$(".addedit").on("click",'img',function(){
|
||||
editor=UE.getEditor('editor');
|
||||
$img = $(this).attr("src");
|
||||
editor.execCommand('inserthtml',"<img src='"+$img+"'>");
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">editor_init();</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
|
||||
|
||||
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php return array (
|
||||
0 => '/home/php/pxgw/apps/admin/view/default/common/head.html',
|
||||
1 => '/home/php/pxgw/apps/admin/view/default/common/ueditor.html',
|
||||
2 => '/home/php/pxgw/apps/admin/view/default/common/foot.html',
|
||||
); ?>
|
1145
runtime/complile/583962598e2490c0e6648b24a0ba48d1.php
Normal file
1145
runtime/complile/583962598e2490c0e6648b24a0ba48d1.php
Normal file
File diff suppressed because it is too large
Load Diff
976
runtime/complile/7182b675a107434022a9ef05e917238d.php
Normal file
976
runtime/complile/7182b675a107434022a9ef05e917238d.php
Normal file
@ -0,0 +1,976 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
|
||||
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
|
||||
<link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="layui-layout-body">
|
||||
|
||||
<!--定义部分地址方便JS调用-->
|
||||
<div style="display: none">
|
||||
<span id="controller" data-controller="<?php echo C;?>"></span>
|
||||
<span id="url" data-url="<?php echo URL;?>"></span>
|
||||
<span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
|
||||
<span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
|
||||
<span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-header">
|
||||
<div class="layui-logo">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
|
||||
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
|
||||
<?php echo CMSNAME;?>
|
||||
<?php if (LICENSE==3) {?>
|
||||
<span class="layui-badge">SVIP</span>
|
||||
<?php } else { ?>
|
||||
<span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="menu">
|
||||
<li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
|
||||
</ul>
|
||||
<?php if (!$this->getVar('one_area')) {?>
|
||||
<form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-col-xs8">
|
||||
<select name="acode">
|
||||
<?php echo $this->getVar('area_html');?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-col-xs4">
|
||||
<button type="submit" class="layui-btn layui-btn-sm">切换</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="layui-nav layui-layout-right">
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
|
||||
<?php if (session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="layui-side layui-bg-black">
|
||||
<div class="layui-side-scroll">
|
||||
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
||||
<ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
|
||||
<?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
|
||||
<li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
|
||||
<a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
|
||||
<dl class="layui-nav-child">
|
||||
<?php if ($value->mcode=='M130') {?>
|
||||
<?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
|
||||
<?php if ($value3->type==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php if ($value3->type==2) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
|
||||
<?php if (!isset($value2->status)|| $value2->status==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li style="height:1px;background:#666" class="layui-hide-sm"></li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-body">
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1">基本配置</li>
|
||||
<li lay-id="t2">邮件通知</li>
|
||||
<li lay-id="t3">百度接口</li>
|
||||
<li lay-id="t4">WebAPI</li>
|
||||
<li lay-id="t5">图片水印</li>
|
||||
<li lay-id="t6">安全配置</li>
|
||||
<li lay-id="t7">URL规则</li>
|
||||
<li lay-id="t8">标题样式</li>
|
||||
<li lay-id="t9">会员配置</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Config/index');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">网站状态</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="close_site" value="1" <?php if ($this->vars['configs']['close_site']['value']==1) {?> checked="checked" <?php } ?> title="关闭">
|
||||
<input type="radio" name="close_site" value="0" <?php if ($this->vars['configs']['close_site']['value']==0) {?> checked="checked" <?php } ?> title="开启">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">关站提示</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea name="close_site_note" placeholder="" class="layui-textarea"><?php echo @$this->vars['configs']['close_site_note']['value'];?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">独立手机版</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="open_wap" value="1" <?php if ($this->vars['configs']['open_wap']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="open_wap" value="0" <?php if ($this->vars['configs']['open_wap']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
<span class="layui-icon layui-icon-about tips" data-content="使用响应式模板的用户请不要开启!"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">手机版域名绑定</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="wap_domain" value="<?php echo @$this->vars['configs']['wap_domain']['value'];?>" placeholder="如:m.xxx.com" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">动态缓存</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="tpl_html_cache" value="1" <?php if ($this->vars['configs']['tpl_html_cache']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="tpl_html_cache" value="0" <?php if ($this->vars['configs']['tpl_html_cache']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
<span class="layui-icon layui-icon-about tips" data-content="本功能效果接近生成静态,开启后将提高前端访问速度及并发能力!"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">缓存有效期(秒)</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="tpl_html_cache_time" value="<?php echo @$this->vars['configs']['tpl_html_cache_time']['value'];?>" placeholder="请输入缓存有效期(秒)" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">秒</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">Gzip页面压缩</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="gzip" value="1" <?php if ($this->vars['configs']['gzip']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="gzip" value="0" <?php if ($this->vars['configs']['gzip']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会话文件路径</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="session_in_sitepath" value="1" <?php if ($this->vars['configs']['session_in_sitepath']['value']==1) {?> checked="checked" <?php } ?> title="站内">
|
||||
<input type="radio" name="session_in_sitepath" value="0" <?php if ($this->vars['configs']['session_in_sitepath']['value']==0) {?> checked="checked" <?php } ?> title="系统">
|
||||
<span class="layui-icon layui-icon-about tips" data-content="站内则使用站点下runtime路径,系统则使用操作系统的缓存路径!"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">跨语言自动切换</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="lgautosw" value="1" <?php if ($this->vars['configs']['lgautosw']['value']=='1'||$this->vars['configs']['lgautosw']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="lgautosw" value="0" <?php if ($this->vars['configs']['lgautosw']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">记录蜘蛛访问</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="spiderlog" value="1" <?php if ($this->vars['configs']['spiderlog']['value']=='1'||$this->vars['configs']['spiderlog']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="spiderlog" value="0" <?php if ($this->vars['configs']['spiderlog']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
<span class="layui-icon layui-icon-about tips" data-content="开启后自动在系统日志进行记录!"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">自动转HTTPS</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="to_https" value="1" <?php if ($this->vars['configs']['to_https']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="to_https" value="0" <?php if ($this->vars['configs']['to_https']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
<span class="layui-icon layui-icon-about tips" data-content="访问非HTPPS地址时自动跳转!"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">自动转主域名</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="to_main_domain" value="1" <?php if ($this->vars['configs']['to_main_domain']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="to_main_domain" value="0" <?php if ($this->vars['configs']['to_main_domain']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
<span class="layui-icon layui-icon-about tips" data-content="访问非主域名地址时自动跳转!"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">网站主域名</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="main_domain" value="<?php echo @$this->vars['configs']['main_domain']['value'];?>" placeholder="如:www.xxx.com" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">分页数字条数量</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="pagenum" value="<?php echo @$this->vars['configs']['pagenum']['value'];?>" placeholder="请输入前端分页数字条显示数量" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">条</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">内链替换次数</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="content_tags_replace_num" value="<?php echo @$this->vars['configs']['content_tags_replace_num']['value'];?>" placeholder="请输入文章内链替换次数,默认3次" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">次</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">敏感词过滤</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea name="content_keyword_replace" placeholder="请输入需要过滤的关键词,多个之间逗号隔开" class="layui-textarea"><?php echo @$this->vars['configs']['content_keyword_replace']['value'];?></textarea>
|
||||
<div class="layui-form-mid layui-word-aux">注:多个敏感词之间用逗号隔开!</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<?php if (LICENSE<2) {?>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">系统授权码</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="sn" value="<?php echo @$this->vars['configs']['sn']['value'];?>" placeholder="请输入授权码,多个授权码用逗号隔开" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">授权码手机</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="sn_user" value="<?php echo @$this->vars['configs']['sn_user']['value'];?>" placeholder="请购买了万能授权码的用户填写" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit name="submit" value="basic">立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Config/index');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">服务器状态 </label>
|
||||
<div class="layui-input-block" style="line-height:36px;">
|
||||
stream_socket_client函数<i class="layui-icon layui-icon-ok-circle" style="color: <?php echo function_exists('stream_socket_client')?'#5FB878':'#f2f2f2';?>"></i>
|
||||
fsockopen函数 <i class="layui-icon layui-icon-ok-circle" style="color: <?php echo function_exists('fsockopen')?'#5FB878':'#f2f2f2';?>"></i>
|
||||
<span class="layui-icon layui-icon-about tips" data-content="至少需要支持其中一个函数才能正常使用!"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">SMTP服务器</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="smtp_server" value="<?php echo @$this->vars['configs']['smtp_server']['value'];?>" placeholder="请输入SMTP服务器" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">SMTP端口</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="smtp_port" value="<?php echo @$this->vars['configs']['smtp_port']['value'];?>" placeholder="请输入SMTP端口,一般SSL为465,普通为25" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">是否为SSL</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="smtp_ssl" value="1" <?php if ($this->vars['configs']['smtp_ssl']['value']==1) {?> checked="checked" <?php } ?> title="是">
|
||||
<input type="radio" name="smtp_ssl" value="0" <?php if ($this->vars['configs']['smtp_ssl']['value']==0) {?> checked="checked" <?php } ?> title="否">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">邮箱账号</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="smtp_username" value="<?php echo @$this->vars['configs']['smtp_username']['value'];?>" placeholder="请输入邮箱账号" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">邮箱密码</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="password" name="smtp_password" value="<?php echo @$this->vars['configs']['smtp_password']['value'];?>" placeholder="请输入邮箱密码或邮箱授权码" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">测试账号</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="smtp_username_test" id="smtp_username_test" value="<?php echo @$this->vars['configs']['smtp_username_test']['value'];?>" placeholder="请输入用于接受测试邮件的账号" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">留言发送邮件</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="message_send_mail" value="1" <?php if ($this->vars['configs']['message_send_mail']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="message_send_mail" value="0" <?php if ($this->vars['configs']['message_send_mail']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">表单发送邮件</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="form_send_mail" value="1" <?php if ($this->vars['configs']['form_send_mail']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="form_send_mail" value="0" <?php if ($this->vars['configs']['form_send_mail']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">评论发送邮件</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="comment_send_mail" value="1" <?php if ($this->vars['configs']['comment_send_mail']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="comment_send_mail" value="0" <?php if ($this->vars['configs']['comment_send_mail']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">信息接收邮箱</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="message_send_to" value="<?php echo @$this->vars['configs']['message_send_to']['value'];?>" placeholder="请输入信息接收邮箱" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit name="submit" value="email">立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Config/index/action/sendemail');?>" onclick="return sendtest(this,'#smtp_username_test')" class="layui-btn layui-btn-primary">发送测试邮件</a>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
function sendtest(obj,to){
|
||||
$(obj).attr('href',$(obj).attr('href')+'&to='+$(to).val());
|
||||
return true;
|
||||
}
|
||||
</script>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Config/index');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">普通收录token</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="baidu_zz_token" value="<?php echo @$this->vars['configs']['baidu_zz_token']['value'];?>" placeholder="请输入普通收录token" class="layui-input">
|
||||
</div>
|
||||
<span class="layui-icon layui-icon-about tips" data-content="请到百度站长中心获取!"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">快速收录token</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="baidu_ks_token" value="<?php echo @$this->vars['configs']['baidu_ks_token']['value'];?>" placeholder="请输入快速收录token" class="layui-input">
|
||||
</div>
|
||||
<span class="layui-icon layui-icon-about tips" data-content="请到百度站长中心获取!"></span>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit name="submit" value="baidu">立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Config/index');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">API状态</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="api_open" value="1" <?php if (@$this->vars['configs']['api_open']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="api_open" value="0" <?php if (@$this->vars['configs']['api_open']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">API强制认证</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="api_auth" value="1" <?php if (@$this->vars['configs']['api_auth']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="api_auth" value="0" <?php if (@$this->vars['configs']['api_auth']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">API认证用户</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="api_appid" value="<?php echo @$this->vars['configs']['api_appid']['value'];?>" placeholder="请输入API认证用户名" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">API认证密钥</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="password" name="api_secret" value="<?php echo @$this->vars['configs']['api_secret']['value'];?>" placeholder="请输入API认证密钥" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit name="submit" value="api">立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Config/index');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">状态</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="watermark_open" value="1" <?php if (@$this->vars['configs']['watermark_open']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="watermark_open" value="0" <?php if (@$this->vars['configs']['watermark_open']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">水印文字</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="watermark_text" value="<?php echo @$this->vars['configs']['watermark_text']['value'];?>" placeholder="请输入水印文字,如:XXXCMS" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">文字字体</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="watermark_text_font" id="watermark_text_font" value="<?php echo @$this->vars['configs']['watermark_text_font']['value'];?>" placeholder="请上传水印文字字体" class="layui-input">
|
||||
</div>
|
||||
<button type="button" class="layui-btn file" data-des="watermark_text_font">
|
||||
<i class="layui-icon"></i>上传字体
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">文字大小</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="watermark_text_size" value="<?php echo @$this->vars['configs']['watermark_text_size']['value'];?>" placeholder="请输入水印文字大小,如:20" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">文字颜色</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="watermark_text_color" value="<?php echo @$this->vars['configs']['watermark_text_color']['value'];?>" placeholder="请输入水印文字颜色,如:100,100,100" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">水印图片</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="watermark_pic" id="watermark_pic" value="<?php echo @$this->vars['configs']['watermark_pic']['value'];?>" placeholder="请上传水印图片,优先文字水印" class="layui-input">
|
||||
</div>
|
||||
<button type="button" class="layui-btn upload" data-des="watermark_pic">
|
||||
<i class="layui-icon"></i>上传图片
|
||||
</button>
|
||||
<div id="watermark_pic_box" class="pic"><dl><dt><?php if (@$this->vars['configs']['watermark_pic']['value']) {?><img src="<?php echo SITE_DIR;?><?php echo @$this->vars['configs']['watermark_pic']['value'];?>" data-url="<?php echo @$this->vars['configs']['watermark_pic']['value'];?>"></dt><dd>删除</dd></dl><?php } ?></div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">水印位置</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="watermark_position" value="1" <?php if (@$this->vars['configs']['watermark_position']['value']==1) {?> checked="checked" <?php } ?> title="左上">
|
||||
<input type="radio" name="watermark_position" value="2" <?php if (@$this->vars['configs']['watermark_position']['value']==2) {?> checked="checked" <?php } ?> title="右上">
|
||||
<input type="radio" name="watermark_position" value="3" <?php if (@$this->vars['configs']['watermark_position']['value']==3) {?> checked="checked" <?php } ?> title="左下">
|
||||
<input type="radio" name="watermark_position" value="4" <?php if (@$this->vars['configs']['watermark_position']['value']==4) {?> checked="checked" <?php } ?> title="右下">
|
||||
<input type="radio" name="watermark_position" value="5" <?php if (@$this->vars['configs']['watermark_position']['value']==5) {?> checked="checked" <?php } ?> title="中间">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit name="submit" value="watermark">立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Config/index');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">留言功能</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="message_status" value="1" <?php if ($this->vars['configs']['message_status']['value']=='1'||$this->vars['configs']['message_status']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="message_status" value="0" <?php if ($this->vars['configs']['message_status']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">留言验证码</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="message_check_code" value="1" <?php if ($this->vars['configs']['message_check_code']['value']=='1'||$this->vars['configs']['message_check_code']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="message_check_code" value="0" <?php if ($this->vars['configs']['message_check_code']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">留言审核</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="message_verify" value="1" <?php if ($this->vars['configs']['message_verify']['value']=='1'||$this->vars['configs']['message_verify']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="message_verify" value="0" <?php if ($this->vars['configs']['message_verify']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">留言需登录</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="message_rqlogin" value="1" <?php if ($this->vars['configs']['message_rqlogin']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="message_rqlogin" value="0" <?php if ($this->vars['configs']['message_rqlogin']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">表单功能</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="form_status" value="1" <?php if ($this->vars['configs']['form_status']['value']=='1'||$this->vars['configs']['form_status']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="form_status" value="0" <?php if ($this->vars['configs']['form_status']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">表单验证码</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="form_check_code" value="1" <?php if ($this->vars['configs']['form_check_code']['value']=='1'||$this->vars['configs']['form_check_code']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="form_check_code" value="0" <?php if ($this->vars['configs']['form_check_code']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">模板子目录</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="tpl_html_dir" value="<?php echo @$this->vars['configs']['tpl_html_dir']['value'];?>" placeholder="首次请手动移动模板文件到填写的目录!" class="layui-input">
|
||||
</div>
|
||||
<span class="layui-icon layui-icon-about tips" data-content="一定程度上防盗,如填 html,则默认模板情况下路径为 default/html 目录!"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">IP黑名单</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea name="ip_deny" placeholder="请输入需要禁止访问的IP,多个之间逗号隔开,IP地址支持使用/掩码位数模式,如:192.168.1.0/24, 192.168.2.100" class="layui-textarea"><?php echo @$this->vars['configs']['ip_deny']['value'];?></textarea>
|
||||
</div>
|
||||
<span class="layui-icon layui-icon-about tips" data-content="请输入需要禁止访问的IP,多个之间逗号隔开,IP地址支持使用/掩码位数模式,如:192.168.1.0/24, 192.168.2.100"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">IP白名单</label>
|
||||
<div class="layui-input-inline">
|
||||
<textarea name="ip_allow" placeholder="请输入需要允许访问的IP,多个之间逗号隔开,IP地址支持使用/掩码位数模式,如:192.168.1.0/24, 192.168.2.100" class="layui-textarea"><?php echo @$this->vars['configs']['ip_allow']['value'];?></textarea>
|
||||
</div>
|
||||
<span class="layui-icon layui-icon-about tips" data-content="请输入需要允许访问的IP,多个之间逗号隔开,IP地址支持使用/掩码位数模式,如:192.168.1.0/24,192.168.2.100"></span>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">后台验证码</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="admin_check_code" value="1" <?php if ($this->vars['configs']['admin_check_code']['value']=='1'||$this->vars['configs']['admin_check_code']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="admin_check_code" value="0" <?php if ($this->vars['configs']['admin_check_code']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">后台登录阀值</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="lock_count" value="<?php echo @$this->vars['configs']['lock_count']['value'];?>" placeholder="请输入后台登录失败几次后锁定IP,默认5次" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">次</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">失败锁定时间</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="lock_time" value="<?php echo @$this->vars['configs']['lock_time']['value'];?>" placeholder="请输入后台登录异常锁定时间,默认为900秒" class="layui-input">
|
||||
</div>
|
||||
<div class="layui-form-mid layui-word-aux">秒</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit name="submit" value="security">立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Config/index');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">地址模式</label>
|
||||
<div class="layui-input-block">
|
||||
<P>
|
||||
<input type="radio" name="url_rule_type" value="1" <?php if ($this->vars['configs']['url_rule_type']['value']==1) {?> checked="checked" <?php } ?> title="普通模式,类似:/index.php/product/1.html">
|
||||
<span class="layui-icon layui-icon-about tips" data-content="基本模式需要服务器支持pathinfo,特别是nginx下pathinfo要手动配置!"></span>
|
||||
</P>
|
||||
<P>
|
||||
<input type="radio" name="url_rule_type" value="2" <?php if ($this->vars['configs']['url_rule_type']['value']==2) {?> checked="checked" <?php } ?> title="伪静态模式,类似:/product/1.html">
|
||||
<span class="layui-icon layui-icon-about tips" data-content="伪静态时需要服务器环境的支持,并需要添加伪静态规则!"></span>
|
||||
</P>
|
||||
<P>
|
||||
<input type="radio" name="url_rule_type" value="3" <?php if ($this->vars['configs']['url_rule_type']['value']==3||!$this->vars['configs']['url_rule_type']['value']) {?> checked="checked" <?php } ?> title="兼容模式,类似:/?product/1.html">
|
||||
</P>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">文章路径</label>
|
||||
<div class="layui-input-block">
|
||||
<P>
|
||||
<input type="radio" name="url_rule_content_path" value="0" <?php if (!$this->vars['configs']['url_rule_content_path']['value']) {?> checked="checked" <?php } ?> title="带栏目路径,类似:/product/1.html">
|
||||
</P>
|
||||
<P>
|
||||
<input type="radio" name="url_rule_content_path" value="1" <?php if ($this->vars['configs']['url_rule_content_path']['value']==1) {?> checked="checked" <?php } ?> title="不带栏目路径,类似:/1.html">
|
||||
</P>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit name="submit" value="urlrule">立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Config/index');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">常用组合标签: </label>
|
||||
<div class="layui-input-block" style="line-height:36px;">
|
||||
<p>全局标签:{pboot:sitetitle}站点标题、{pboot:sitesubtitle}站点副标题</p>
|
||||
<p>列表或内容页:{sort:name}栏目名称、{sort:title}栏目标题</p>
|
||||
<p>内容页:{content:title}内容标题</p>
|
||||
<p>搜索结果页:{pboot:keyword}搜索关键字</p>
|
||||
<p>个人中心:{user:nickname}会员昵称</p>
|
||||
<p>例如定义内容页样式:{content:title}-{sort:name}-{pboot:sitetitle}-{pboot:sitesubtitle}</p>
|
||||
<p>以下配置参数不设置时将使用系统默认规则。</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">首页</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="index_title" value="<?php echo @$this->vars['configs']['index_title']['value'];?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">专题页</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="about_title" value="<?php echo @$this->vars['configs']['about_title']['value'];?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">列表页</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="list_title" value="<?php echo @$this->vars['configs']['list_title']['value'];?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">内容页</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="content_title" value="<?php echo @$this->vars['configs']['content_title']['value'];?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">搜索结果页</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="search_title" value="<?php echo @$this->vars['configs']['search_title']['value'];?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会员注册页</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="register_title" value="<?php echo @$this->vars['configs']['register_title']['value'];?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会员登录页</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="login_title" value="<?php echo @$this->vars['configs']['login_title']['value'];?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">个人中心页</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="ucenter_title" value="<?php echo @$this->vars['configs']['ucenter_title']['value'];?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">资料修改页</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="umodify_title" value="<?php echo @$this->vars['configs']['umodify_title']['value'];?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">其它页</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="other_title" value="<?php echo @$this->vars['configs']['other_title']['value'];?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit name="submit" value="pagetitle">立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Config/index');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会员注册</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="register_status" value="1" <?php if ($this->vars['configs']['register_status']['value']=='1'||$this->vars['configs']['register_status']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="register_status" value="0" <?php if ($this->vars['configs']['register_status']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会员注册类型</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="register_type" value="1" <?php if ($this->vars['configs']['register_type']['value']=='1'||$this->vars['configs']['register_type']['value']=='') {?> checked="checked" <?php } ?> title="用户名">
|
||||
<input type="radio" name="register_type" value="2" <?php if ($this->vars['configs']['register_type']['value']=='2') {?> checked="checked" <?php } ?> title="邮箱账号">
|
||||
<input type="radio" name="register_type" value="3" <?php if ($this->vars['configs']['register_type']['value']=='3') {?> checked="checked" <?php } ?> title="手机号码">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会员注册验证码</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="register_check_code" value="0" <?php if ($this->vars['configs']['register_check_code']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
<input type="radio" name="register_check_code" value="1" <?php if ($this->vars['configs']['register_check_code']['value']=='1'||$this->vars['configs']['register_check_code']['value']=='') {?> checked="checked" <?php } ?> title="普通验证码">
|
||||
<input type="radio" name="register_check_code" value="2" <?php if ($this->vars['configs']['register_check_code']['value']=='2') {?> checked="checked" <?php } ?> title="邮箱验证码">
|
||||
<!-- <input type="radio" name="register_check_code" value="3" <?php if ($this->vars['configs']['register_check_code']['value']=='3') {?> checked="checked" <?php } ?> title="短信验证码"> -->
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会员注册审核</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="register_verify" value="1" <?php if ($this->vars['configs']['register_verify']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="register_verify" value="0" <?php if ($this->vars['configs']['register_verify']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会员登录</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="login_status" value="1" <?php if ($this->vars['configs']['login_status']['value']=='1'||$this->vars['configs']['login_status']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="login_status" value="0" <?php if ($this->vars['configs']['login_status']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会员登录验证码</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="login_check_code" value="1" <?php if ($this->vars['configs']['login_check_code']['value']=='1'||$this->vars['configs']['login_check_code']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="login_check_code" value="0" <?php if ($this->vars['configs']['login_check_code']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">不等待跳登录</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="login_no_wait" value="1" <?php if ($this->vars['configs']['login_no_wait']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="login_no_wait" value="0" <?php if ($this->vars['configs']['login_no_wait']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">评论功能</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="comment_status" value="1" <?php if ($this->vars['configs']['comment_status']['value']=='1'||$this->vars['configs']['comment_status']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="comment_status" value="0" <?php if ($this->vars['configs']['comment_status']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">匿名评论</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="comment_anonymous" value="1" <?php if ($this->vars['configs']['comment_anonymous']['value']==1) {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="comment_anonymous" value="0" <?php if ($this->vars['configs']['comment_anonymous']['value']==0) {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">评论验证码</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="comment_check_code" value="1" <?php if ($this->vars['configs']['comment_check_code']['value']=='1'||$this->vars['configs']['comment_check_code']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="comment_check_code" value="0" <?php if ($this->vars['configs']['comment_check_code']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">评论审核</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="comment_verify" value="1" <?php if ($this->vars['configs']['comment_verify']['value']=='1'||$this->vars['configs']['comment_verify']['value']=='') {?> checked="checked" <?php } ?> title="启用">
|
||||
<input type="radio" name="comment_verify" value="0" <?php if ($this->vars['configs']['comment_verify']['value']=='0') {?> checked="checked" <?php } ?> title="禁用">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会员注册积分</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="register_score" value="<?php echo @$this->vars['configs']['register_score']['value'];?>" placeholder="请输入会员注册初始积分" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会员登录积分</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="login_score" value="<?php echo @$this->vars['configs']['login_score']['value'];?>" placeholder="请输入会员每次登录积分" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">会员默认等级</label>
|
||||
<div class="layui-input-inline">
|
||||
<select name="register_gcode">
|
||||
<option value="">请选择</option>
|
||||
<?php $num = 0;foreach ($this->getVar('groups') as $key => $value) { $num++;?>
|
||||
<option value="<?php echo $value->gcode; ?>" <?php if ($this->vars['configs']['register_gcode']['value']==$value->gcode) {?>selected<?php } ?>><?php echo $value->gname; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">允许上传格式</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="home_upload_ext" value="<?php echo @$this->vars['configs']['home_upload_ext']['value'];?>" placeholder="以英文逗号隔开!" class="layui-input">
|
||||
</div>
|
||||
<span class="layui-icon layui-icon-about tips" data-content="以英文逗号隔开,默认:jpg, jpeg, png, gif, xls, xlsx, doc, docx, ppt, pptx, rar, zip, pdf, txt!"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit name="submit" value="member">立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
|
||||
|
||||
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php return array (
|
||||
0 => '/home/php/pxgw/apps/admin/view/default/common/head.html',
|
||||
1 => '/home/php/pxgw/apps/admin/view/default/common/foot.html',
|
||||
); ?>
|
386
runtime/complile/7b0cb593795dfa168eb84dd59fb4dcdf.php
Normal file
386
runtime/complile/7b0cb593795dfa168eb84dd59fb4dcdf.php
Normal file
@ -0,0 +1,386 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
|
||||
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
|
||||
<link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="layui-layout-body">
|
||||
|
||||
<!--定义部分地址方便JS调用-->
|
||||
<div style="display: none">
|
||||
<span id="controller" data-controller="<?php echo C;?>"></span>
|
||||
<span id="url" data-url="<?php echo URL;?>"></span>
|
||||
<span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
|
||||
<span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
|
||||
<span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-header">
|
||||
<div class="layui-logo">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
|
||||
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
|
||||
<?php echo CMSNAME;?>
|
||||
<?php if (LICENSE==3) {?>
|
||||
<span class="layui-badge">SVIP</span>
|
||||
<?php } else { ?>
|
||||
<span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="menu">
|
||||
<li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
|
||||
</ul>
|
||||
<?php if (!$this->getVar('one_area')) {?>
|
||||
<form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-col-xs8">
|
||||
<select name="acode">
|
||||
<?php echo $this->getVar('area_html');?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-col-xs4">
|
||||
<button type="submit" class="layui-btn layui-btn-sm">切换</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="layui-nav layui-layout-right">
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
|
||||
<?php if (session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="layui-side layui-bg-black">
|
||||
<div class="layui-side-scroll">
|
||||
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
||||
<ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
|
||||
<?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
|
||||
<li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
|
||||
<a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
|
||||
<dl class="layui-nav-child">
|
||||
<?php if ($value->mcode=='M130') {?>
|
||||
<?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
|
||||
<?php if ($value3->type==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php if ($value3->type==2) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
|
||||
<?php if (!isset($value2->status)|| $value2->status==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li style="height:1px;background:#666" class="layui-hide-sm"></li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-body">
|
||||
<?php if ($this->getVar('list')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1">扩展字段列表</li>
|
||||
<li lay-id="t2">扩展字段新增</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>内容模型</th>
|
||||
<th>字段描述</th>
|
||||
<th>字段名称</th>
|
||||
<th>字段类型</th>
|
||||
<th>排序</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $num = 0;foreach ($this->getVar('extfields') as $key => $value) { $num++;?>
|
||||
<tr>
|
||||
<td><?php echo @(PAGE-1)*PAGESIZE+$num; ?></td>
|
||||
<td>
|
||||
<?php $num2 = 0;foreach ($this->getVar('models') as $key2 => $value2) { $num2++;?>
|
||||
<?php if ($value2->mcode==$value->mcode) {?>
|
||||
<?php echo $value2->name; ?>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td><?php echo $value->description; ?></td>
|
||||
<td><?php echo $value->name; ?></td>
|
||||
<td>
|
||||
<?php if ($value->type==1) {?>单行文本<?php } ?>
|
||||
<?php if ($value->type==2) {?>多行文本<?php } ?>
|
||||
<?php if ($value->type==3) {?>单选按钮<?php } ?>
|
||||
<?php if ($value->type==4) {?>多选按钮<?php } ?>
|
||||
<?php if ($value->type==5) {?>单图上传<?php } ?>
|
||||
<?php if ($value->type==10) {?>多图上传<?php } ?>
|
||||
<?php if ($value->type==6) {?>附件上传<?php } ?>
|
||||
<?php if ($value->type==7) {?>日期选择<?php } ?>
|
||||
<?php if ($value->type==8) {?>编辑器<?php } ?>
|
||||
<?php if ($value->type==9) {?>下拉选择<?php } ?>
|
||||
</td>
|
||||
<td><?php echo $value->sorting; ?></td>
|
||||
<td>
|
||||
<?php echo get_btn_del($value->id);?>
|
||||
<?php echo get_btn_mod($value->id);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page"><?php echo $this->getVar('pagebar');?></div>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/ExtField/add');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">内容模型</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="mcode" lay-verify="required">
|
||||
<option value="">请选择内容模型</option>
|
||||
<?php $num = 0;foreach ($this->getVar('models') as $key => $value) { $num++;?>
|
||||
<option value="<?php echo $value->mcode; ?>"><?php echo $value->name; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段描述</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="description" required lay-verify="required" placeholder="请输入字段描述,如:产品价格" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="name" required maxlength="20" lay-verify="required" placeholder="请输入字段名称,字母、数组、下划线,如:price" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段类型</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="type" lay-verify="required">
|
||||
<option value="1">单行文本</option>
|
||||
<option value="2">多行文本</option>
|
||||
<option value="3">单选按钮</option>
|
||||
<option value="4">多选按钮</option>
|
||||
<option value="5">单图上传</option>
|
||||
<option value="10">多图上传</option>
|
||||
<option value="6">附件上传</option>
|
||||
<option value="7">日期选择</option>
|
||||
<option value="8">编辑器</option>
|
||||
<option value="9">下拉选择</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">选择按钮值</label>
|
||||
<div class="layui-input-block">
|
||||
<textarea name="value" placeholder="多个选项用逗号隔开或者回车" class="layui-textarea"></textarea>
|
||||
<div class="layui-form-mid layui-word-aux">只在类型为单选或多选时填写有效。</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">排序</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="sorting" required lay-verify="required" value="255" placeholder="请输入排序" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('mod')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">扩展字段修改</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/ExtField/mod/id/'.get('id').'');?><?php echo $this->getVar('backurl');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">内容模型</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="mcode" lay-verify="required">
|
||||
<option value="">请选择内容模型</option>
|
||||
<?php $num = 0;foreach ($this->getVar('models') as $key => $value) { $num++;?>
|
||||
<option value="<?php echo $value->mcode; ?>" <?php if ($value->mcode==$this->getVar('extfield')->mcode) {?>selected<?php } ?>><?php echo $value->name; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段描述</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="description" value="<?php echo @$this->getVar('extfield')->description;?>" placeholder="请输入字段描述,如:产品价格" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="name" readonly value="<?php echo @$this->getVar('extfield')->name;?>" maxlength="20" placeholder="请输入字段名称,字母、数组、下划线,如:price" class="layui-input readonly">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段类型</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="type" lay-verify="required">
|
||||
<?php if ($this->getVar('extfield')->type==2) {?>
|
||||
<option value="2" selected>多行文本</option>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('extfield')->type==7) {?>
|
||||
<option value="7" selected>日期选择</option>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('extfield')->type==8) {?>
|
||||
<option value="8" selected>编辑器</option>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('extfield')->type==10) {?>
|
||||
<option value="10" selected>多图上传</option>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('extfield')->type!=2 && $this->getVar('extfield')->type!=7 && $this->getVar('extfield')->type!=8 && $this->getVar('extfield')->type!=10) {?>
|
||||
<option value="1" <?php if ($this->getVar('extfield')->type==1) {?>selected<?php } ?>>单行文本</option>
|
||||
<option value="3" <?php if ($this->getVar('extfield')->type==3) {?>selected<?php } ?>>单选按钮</option>
|
||||
<option value="4" <?php if ($this->getVar('extfield')->type==4) {?>selected<?php } ?>>多选按钮</option>
|
||||
<option value="5" <?php if ($this->getVar('extfield')->type==5) {?>selected<?php } ?>>单图上传</option>
|
||||
<option value="6" <?php if ($this->getVar('extfield')->type==6) {?>selected<?php } ?>>附件上传</option>
|
||||
<option value="9" <?php if ($this->getVar('extfield')->type==9) {?>selected<?php } ?>>下拉选择</option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">选择按钮值</label>
|
||||
<div class="layui-input-block">
|
||||
<textarea name="value" placeholder="多个选项用逗号或回车隔开" class="layui-textarea"><?php echo @$this->getVar('extfield')->value;?></textarea>
|
||||
<div class="layui-form-mid layui-word-aux">只在类型为单选或多选时填写有效,多个选项用逗号或回车隔开。</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">排序</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="sorting" required lay-verify="required" value="<?php echo @$this->getVar('extfield')->sorting;?>" placeholder="请输入排序" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
<?php echo get_btn_back();?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
|
||||
|
||||
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php return array (
|
||||
0 => '/home/php/pxgw/apps/admin/view/default/common/head.html',
|
||||
1 => '/home/php/pxgw/apps/admin/view/default/common/foot.html',
|
||||
); ?>
|
@ -42,27 +42,16 @@
|
||||
<!-------------------------------------- 头部结束 -------------------------------------->
|
||||
<!-------------------------------------- 内容开始 -------------------------------------->
|
||||
<div class="mainer">
|
||||
<div class="wrap">
|
||||
<div class="title wow fadeInUp" style="background-image: ;" data-wow-delay=".1s">
|
||||
<h3>{sort:topname}</h3>
|
||||
<div class="wrap" style="width: 100%;max-width: unset;">
|
||||
<div class="title wow fadeInUp" style="background-image: url('/static/upload/image/20220330/1648605362186801.png');background-size: cover;background-position: center;" data-wow-delay=".1s">
|
||||
<h3 style="color: #fff">{sort:topname}</h3>
|
||||
<label></label>
|
||||
<span></span> </div>
|
||||
<!-- <div class="class_nav wow fadeInUp" data-wow-delay=".2s">
|
||||
<ul>
|
||||
{pboot:nav num=15 parent={sort:tcode}}
|
||||
{pboot:if('[nav:scode]'=='{sort:scode}')}
|
||||
<li class="on"><a href="[nav:link]">[nav:name]</a></li>
|
||||
{else}
|
||||
<li><a href="[nav:link]">[nav:name]</a></li>
|
||||
{/pboot:if}
|
||||
{/pboot:nav}
|
||||
</ul>
|
||||
<div class="clear"></div>
|
||||
</div> -->
|
||||
|
||||
<div class="about_gsjj">
|
||||
<div class="list wow fadeInUp" data-wow-delay=".3s" style="margin: 0;">
|
||||
<div class="list wow fadeInUp" data-wow-delay=".3s" style="margin: 0 auto;max-width: 1180px;padding: 0 20px;">
|
||||
<div class="web">
|
||||
<div class="text" id="maximg">
|
||||
<div class="text" id="maximg" style="margin: 0;">
|
||||
<p>{content:content}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
246
runtime/complile/b5c14d1d1c708786c9f4bf5dcad82635.php
Normal file
246
runtime/complile/b5c14d1d1c708786c9f4bf5dcad82635.php
Normal file
@ -0,0 +1,246 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
|
||||
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
|
||||
<link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="layui-layout-body">
|
||||
|
||||
<!--定义部分地址方便JS调用-->
|
||||
<div style="display: none">
|
||||
<span id="controller" data-controller="<?php echo C;?>"></span>
|
||||
<span id="url" data-url="<?php echo URL;?>"></span>
|
||||
<span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
|
||||
<span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
|
||||
<span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-header">
|
||||
<div class="layui-logo">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
|
||||
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
|
||||
<?php echo CMSNAME;?>
|
||||
<?php if (LICENSE==3) {?>
|
||||
<span class="layui-badge">SVIP</span>
|
||||
<?php } else { ?>
|
||||
<span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="menu">
|
||||
<li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
|
||||
</ul>
|
||||
<?php if (!$this->getVar('one_area')) {?>
|
||||
<form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-col-xs8">
|
||||
<select name="acode">
|
||||
<?php echo $this->getVar('area_html');?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-col-xs4">
|
||||
<button type="submit" class="layui-btn layui-btn-sm">切换</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="layui-nav layui-layout-right">
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
|
||||
<?php if (session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="layui-side layui-bg-black">
|
||||
<div class="layui-side-scroll">
|
||||
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
||||
<ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
|
||||
<?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
|
||||
<li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
|
||||
<a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
|
||||
<dl class="layui-nav-child">
|
||||
<?php if ($value->mcode=='M130') {?>
|
||||
<?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
|
||||
<?php if ($value3->type==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php if ($value3->type==2) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
|
||||
<?php if (!isset($value2->status)|| $value2->status==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li style="height:1px;background:#666" class="layui-hide-sm"></li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-body">
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1">数据库管理</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Database/mod');?>" method="post">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<?php if ($this->getVar('db')=='mysql') {?>
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>选择</th>
|
||||
<th>表名称</th>
|
||||
<th>表引擎</th>
|
||||
<th>编码</th>
|
||||
<th>版本</th>
|
||||
<th>行数</th>
|
||||
<th>表创建时间</th>
|
||||
<th>最后更新时间</th>
|
||||
<th>大小</th>
|
||||
<th>多余</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<?php $sum1 = 0; $sum2 = 0;?>
|
||||
<tbody>
|
||||
<?php $num = 0;foreach ($this->getVar('tables') as $key => $value) { $num++;?>
|
||||
<tr>
|
||||
<td><input type="checkbox" class="checkbox checkitem" name="list[]" value="<?php echo $value->Name; ?>"></td>
|
||||
<td><?php echo $value->Name; ?></td>
|
||||
<td><?php echo $value->Engine; ?></td>
|
||||
<td><?php echo $value->Collation; ?></td>
|
||||
<td><?php echo $value->Version; ?></td>
|
||||
<td><?php echo $value->Rows; ?></td>
|
||||
<td><?php echo $value->Create_time; ?></td>
|
||||
<td><?php echo $value->Update_time; ?></td>
|
||||
<?php
|
||||
$size = round(($value->Data_length + $value->Index_length)/1024,2);
|
||||
$sum1 += $size;
|
||||
?>
|
||||
<td><?php echo $size?> KB</td>
|
||||
<td>
|
||||
<?php if ($value->Data_free) {?>
|
||||
<?php
|
||||
$free = round($value->Data_free/1024,2);
|
||||
echo $free.' KB';
|
||||
$sum2 += $free;
|
||||
?>
|
||||
<?php } else { ?>
|
||||
-
|
||||
<?php } ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td><input type="checkbox" class="checkbox" id="checkall" title="全选"></td>
|
||||
<td><?php echo $num; ?> 张表</td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td>总计:</td>
|
||||
<td><?php echo $sum1?> KB</td>
|
||||
<td><?php echo $sum2?:0?> KB</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if (check_level('mod')) {?>
|
||||
<button class="layui-btn" lay-submit type="submit" name="submit" value="yh">优化</button>
|
||||
<button class="layui-btn" lay-submit type="submit" name="submit" value="xf">修复</button>
|
||||
<button class="layui-btn" lay-submit type="submit" name="submit" value="bf">备份表</button>
|
||||
<button class="layui-btn" lay-submit type="submit" name="submit" value="bfdb">备份数据库</button>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php if ($this->getVar('db')=='sqlite') {?>
|
||||
<button class="layui-btn" lay-submit type="submit" name="submit" value="bfsqlite" >备份</button>
|
||||
<p class="layui-text">注意:Sqlite数据库只支持直接备份。</p>
|
||||
<?php } ?>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
|
||||
|
||||
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php return array (
|
||||
0 => '/home/php/pxgw/apps/admin/view/default/common/head.html',
|
||||
1 => '/home/php/pxgw/apps/admin/view/default/common/foot.html',
|
||||
); ?>
|
343
runtime/complile/ba0a59eefc37cc15e011a47a6c8c2f8c.php
Normal file
343
runtime/complile/ba0a59eefc37cc15e011a47a6c8c2f8c.php
Normal file
@ -0,0 +1,343 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
|
||||
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
|
||||
<link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="layui-layout-body">
|
||||
|
||||
<!--定义部分地址方便JS调用-->
|
||||
<div style="display: none">
|
||||
<span id="controller" data-controller="<?php echo C;?>"></span>
|
||||
<span id="url" data-url="<?php echo URL;?>"></span>
|
||||
<span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
|
||||
<span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
|
||||
<span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-header">
|
||||
<div class="layui-logo">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
|
||||
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
|
||||
<?php echo CMSNAME;?>
|
||||
<?php if (LICENSE==3) {?>
|
||||
<span class="layui-badge">SVIP</span>
|
||||
<?php } else { ?>
|
||||
<span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="menu">
|
||||
<li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
|
||||
</ul>
|
||||
<?php if (!$this->getVar('one_area')) {?>
|
||||
<form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-col-xs8">
|
||||
<select name="acode">
|
||||
<?php echo $this->getVar('area_html');?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-col-xs4">
|
||||
<button type="submit" class="layui-btn layui-btn-sm">切换</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="layui-nav layui-layout-right">
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
|
||||
<?php if (session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="layui-side layui-bg-black">
|
||||
<div class="layui-side-scroll">
|
||||
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
||||
<ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
|
||||
<?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
|
||||
<li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
|
||||
<a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
|
||||
<dl class="layui-nav-child">
|
||||
<?php if ($value->mcode=='M130') {?>
|
||||
<?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
|
||||
<?php if ($value3->type==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php if ($value3->type==2) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
|
||||
<?php if (!isset($value2->status)|| $value2->status==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li style="height:1px;background:#666" class="layui-hide-sm"></li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-body">
|
||||
<?php if ($this->getVar('list')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1">幻灯片列表</li>
|
||||
<li lay-id="t2">幻灯片新增</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Slide/mod');?>" method="post" class="layui-form" onkeydown="if(event.keyCode==13) return false;">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>分组(gid)</th>
|
||||
<th>图片</th>
|
||||
<th>链接</th>
|
||||
<th>标题</th>
|
||||
<th>副标题</th>
|
||||
<th>排序</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $num = 0;foreach ($this->getVar('slides') as $key => $value) { $num++;?>
|
||||
<tr>
|
||||
<td><?php echo $value->gid; ?></td>
|
||||
<td><img src="<?php echo SITE_DIR;?><?php echo $value->pic; ?>" style="height:30px;"></td>
|
||||
<td><?php echo $value->link; ?></td>
|
||||
<td><?php echo $value->title; ?></td>
|
||||
<td><?php echo $value->subtitle; ?></td>
|
||||
<td class="table-input">
|
||||
<input type="hidden" name="listall[]" value="<?php echo $value->id; ?>">
|
||||
<input type="text" lay-ignore class="layui-input" name="sorting[]" value="<?php echo $value->sorting; ?>">
|
||||
</td>
|
||||
<td>
|
||||
<?php echo get_btn_del($value->id);?>
|
||||
<?php echo get_btn_mod($value->id);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<button type="submit" name="submit" value="sorting" class="layui-btn layui-btn-sm">保存排序</button>
|
||||
</form>
|
||||
<div class="page"><?php echo $this->getVar('pagebar');?></div>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Slide/add');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">分组</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="gid" >
|
||||
<?php $num = 0;foreach ($this->getVar('gids') as $key => $value) { $num++;?>
|
||||
<option value="<?php echo $value; ?>" >分组<?php echo $value; ?></option>
|
||||
<?php } ?>
|
||||
<option value="" >自动新增分组</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">图片</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="pic" id="pic" required lay-verify="required" placeholder="请上传图片" class="layui-input">
|
||||
</div>
|
||||
<button type="button" class="layui-btn upload" data-des="pic">
|
||||
<i class="layui-icon"></i>上传图片
|
||||
</button>
|
||||
<div id="pic_box" class="pic"></div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">链接</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="link" placeholder="请输入跳转链接" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">标题</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="title" placeholder="请输入标题" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">副标题</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="subtitle" placeholder="请输入副标题" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">排序</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="sorting" required lay-verify="required" value="255" placeholder="请输入排序" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('mod')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">幻灯片修改</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Slide/mod/id/'.get('id').'');?><?php echo $this->getVar('backurl');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">分组</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="gid" required lay-verify="required" value="<?php echo @$this->getVar('slide')->gid;?>" placeholder="请输入分组" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">图片</label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="pic" id="pic" required lay-verify="required" value="<?php echo @$this->getVar('slide')->pic;?>" placeholder="请上传图片" class="layui-input">
|
||||
</div>
|
||||
<button type="button" class="layui-btn upload" data-des="pic">
|
||||
<i class="layui-icon"></i>上传图片
|
||||
</button>
|
||||
<div id="pic_box" class="pic"><?php if ($this->getVar('slide')->pic) {?><dl><dt><img src="<?php echo SITE_DIR;?><?php echo @$this->getVar('slide')->pic;?>" data-url="<?php echo @$this->getVar('slide')->pic;?>"></dt><dd>删除</dd></dl><?php } ?></div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">跳转链接</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="link" value="<?php echo @$this->getVar('slide')->link;?>" placeholder="请输入跳转链接" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">标题</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="title" value="<?php echo @$this->getVar('slide')->title;?>" placeholder="请输入标题" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">副标题</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="subtitle" value="<?php echo @$this->getVar('slide')->subtitle;?>" placeholder="请输入副标题" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">排序</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="sorting" required lay-verify="required" value="<?php echo @$this->getVar('slide')->sorting;?>" placeholder="请输入排序" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
<?php echo get_btn_back();?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
|
||||
|
||||
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php return array (
|
||||
0 => '/home/php/pxgw/apps/admin/view/default/common/head.html',
|
||||
1 => '/home/php/pxgw/apps/admin/view/default/common/foot.html',
|
||||
); ?>
|
200
runtime/complile/dae35197a6352eb7882f23ca69504158.php
Normal file
200
runtime/complile/dae35197a6352eb7882f23ca69504158.php
Normal file
@ -0,0 +1,200 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
|
||||
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
|
||||
<link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="layui-layout-body">
|
||||
|
||||
<!--定义部分地址方便JS调用-->
|
||||
<div style="display: none">
|
||||
<span id="controller" data-controller="<?php echo C;?>"></span>
|
||||
<span id="url" data-url="<?php echo URL;?>"></span>
|
||||
<span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
|
||||
<span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
|
||||
<span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-header">
|
||||
<div class="layui-logo">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
|
||||
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
|
||||
<?php echo CMSNAME;?>
|
||||
<?php if (LICENSE==3) {?>
|
||||
<span class="layui-badge">SVIP</span>
|
||||
<?php } else { ?>
|
||||
<span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="menu">
|
||||
<li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
|
||||
</ul>
|
||||
<?php if (!$this->getVar('one_area')) {?>
|
||||
<form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-col-xs8">
|
||||
<select name="acode">
|
||||
<?php echo $this->getVar('area_html');?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-col-xs4">
|
||||
<button type="submit" class="layui-btn layui-btn-sm">切换</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="layui-nav layui-layout-right">
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
|
||||
<?php if (session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="layui-side layui-bg-black">
|
||||
<div class="layui-side-scroll">
|
||||
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
||||
<ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
|
||||
<?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
|
||||
<li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
|
||||
<a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
|
||||
<dl class="layui-nav-child">
|
||||
<?php if ($value->mcode=='M130') {?>
|
||||
<?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
|
||||
<?php if ($value3->type==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php if ($value3->type==2) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
|
||||
<?php if (!isset($value2->status)|| $value2->status==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li style="height:1px;background:#666" class="layui-hide-sm"></li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-body">
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1">系统日志</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>事件内容</th>
|
||||
<th>用户IP</th>
|
||||
<th>操作系统</th>
|
||||
<th>浏览器</th>
|
||||
<th>用户名</th>
|
||||
<th>时间</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $num = 0;foreach ($this->getVar('syslogs') as $key => $value) { $num++;?>
|
||||
<tr>
|
||||
<td><?php echo @(PAGE-1)*PAGESIZE+$num; ?></td>
|
||||
<td><?php echo $value->event; ?></td>
|
||||
<td><?php echo long2ip($value->user_ip);?></td>
|
||||
<td><?php echo $value->user_os; ?></td>
|
||||
<td><?php echo $value->user_bs; ?></td>
|
||||
<td><?php echo $value->create_user; ?></td>
|
||||
<td><?php echo $value->create_time; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php if (session('ucode')==10001 && $this->getVar('syslogs')) {?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Syslog/clear');?>" class="layui-btn layui-btn-sm" onclick='return confirm("您确定要清空么?")'>清空日志</a>
|
||||
<?php } ?>
|
||||
<div class="page"><?php echo $this->getVar('pagebar');?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
|
||||
|
||||
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php return array (
|
||||
0 => '/home/php/pxgw/apps/admin/view/default/common/head.html',
|
||||
1 => '/home/php/pxgw/apps/admin/view/default/common/foot.html',
|
||||
); ?>
|
483
runtime/complile/e4796d8cbf05a853ca15a024b75ab42d.php
Normal file
483
runtime/complile/e4796d8cbf05a853ca15a024b75ab42d.php
Normal file
@ -0,0 +1,483 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
|
||||
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
|
||||
<link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="layui-layout-body">
|
||||
|
||||
<!--定义部分地址方便JS调用-->
|
||||
<div style="display: none">
|
||||
<span id="controller" data-controller="<?php echo C;?>"></span>
|
||||
<span id="url" data-url="<?php echo URL;?>"></span>
|
||||
<span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
|
||||
<span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
|
||||
<span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-header">
|
||||
<div class="layui-logo">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
|
||||
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
|
||||
<?php echo CMSNAME;?>
|
||||
<?php if (LICENSE==3) {?>
|
||||
<span class="layui-badge">SVIP</span>
|
||||
<?php } else { ?>
|
||||
<span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="menu">
|
||||
<li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
|
||||
</ul>
|
||||
<?php if (!$this->getVar('one_area')) {?>
|
||||
<form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-col-xs8">
|
||||
<select name="acode">
|
||||
<?php echo $this->getVar('area_html');?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-col-xs4">
|
||||
<button type="submit" class="layui-btn layui-btn-sm">切换</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="layui-nav layui-layout-right">
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
|
||||
<?php if (session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="layui-side layui-bg-black">
|
||||
<div class="layui-side-scroll">
|
||||
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
||||
<ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
|
||||
<?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
|
||||
<li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
|
||||
<a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
|
||||
<dl class="layui-nav-child">
|
||||
<?php if ($value->mcode=='M130') {?>
|
||||
<?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
|
||||
<?php if ($value3->type==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php if ($value3->type==2) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
|
||||
<?php if (!isset($value2->status)|| $value2->status==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li style="height:1px;background:#666" class="layui-hide-sm"></li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-body">
|
||||
<?php if ($this->getVar('list')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1">表单列表</li>
|
||||
<li lay-id="t2">表单新增</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>编码</th>
|
||||
<th>表单名称</th>
|
||||
<th>表名称</th>
|
||||
<th>数据</th>
|
||||
<th>字段</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $num = 0;foreach ($this->getVar('forms') as $key => $value) { $num++;?>
|
||||
<tr>
|
||||
<td><?php echo $value->fcode; ?></td>
|
||||
<td><?php echo $value->form_name; ?></td>
|
||||
<td><?php echo $value->table_name; ?></td>
|
||||
<td>
|
||||
<?php if ($value->id==1) {?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Message/index');?>"><i class="fa fa-list"></i> 查看数据</a></td>
|
||||
<?php } else { ?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Form/index/fcode/'.$value->fcode.'/action/showdata');?>"><i class="fa fa-list"></i> 查看数据</a></td>
|
||||
<?php } ?>
|
||||
<td><a href="<?php echo \core\basic\Url::get('/admin/Form/index/fcode/'.$value->fcode.'/action/showfield');?>"><i class="fa fa-pencil-square-o"></i> 编辑字段</a></td>
|
||||
<td>
|
||||
|
||||
<?php if ($value->id!=1) {?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Form/mod/id/'.$value->id.'/action/addmenu');?><?php echo $this->getVar('btnqs');?>" class="layui-btn layui-btn-xs layui-btn-primary">添加到菜单</a>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Form/del/id/'.$value->id.'/action/delform');?>" onclick="return confirm('您确定要删除么?')" class="layui-btn layui-btn-xs layui-btn-danger" title="删除">删除</a>
|
||||
<?php } ?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Form/mod/id/'.$value->id.'/action/modform');?><?php echo $this->getVar('btnqs');?>" class="layui-btn layui-btn-xs">修改</a>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page"><?php echo $this->getVar('pagebar');?></div>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Form/add/action/addform');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">表单名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="form_name" maxlength=20 required lay-verify="required" placeholder="请输入表单名称,如:报名表" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">表名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="table_name" maxlength=30 required lay-verify="required" placeholder="请输入表名称,如:baoming" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('showdata')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1"><?php echo @$this->getVar('form')->form_name;?> — 数据</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<?php $num = 0;foreach ($this->getVar('formdata') as $key => $value) { $num++;?>
|
||||
<table class="layui-table table-two">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
<?php echo @$this->getVar('form')->form_name;?>-<?php echo @(PAGE-1)*PAGESIZE+$num; ?>
|
||||
<span style="float:right"><a href="<?php echo \core\basic\Url::get('/admin/Form/del/id/'.$value->id.'/fcode/'.$this->getVar('form')->fcode.'/action/deldata');?>" onclick="return confirm('您确定要删除么?')" class="layui-btn layui-btn-xs layui-btn-danger" style="margin-bottom:0px" title="删除">删除</a></span>
|
||||
</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $num2 = 0;foreach ($this->getVar('fields') as $key2 => $value2) { $num2++;?>
|
||||
<tr>
|
||||
<th><?php echo $value2->description; ?></th>
|
||||
<?php $field=$value2->name ?>
|
||||
<td><?php echo $value->$field; ?></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<th>时间</th>
|
||||
<td><?php echo $value->create_time; ?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (session('ucode')==10001 && $this->getVar('formdata')) {?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Form/clear/fcode/'.$this->getVar('form')->fcode.'');?>" onclick='return confirm("您确定要清空么?")' class="layui-btn layui-btn-sm">清空记录</a>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('formdata')) {?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Form/index/fcode/'.$this->getVar('form')->fcode.'/action/showdata/export/1');?>" class="layui-btn layui-btn-sm">导出记录</a>
|
||||
<?php } ?>
|
||||
|
||||
<div class="page"><?php echo $this->getVar('pagebar');?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($this->getVar('showfield')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1"><?php echo @$this->getVar('form')->form_name;?>-表单字段</li>
|
||||
<li lay-id="t2">新增字段</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th width=40>序号</th>
|
||||
<th>描述</th>
|
||||
<th>字段</th>
|
||||
<th>长度</th>
|
||||
<th>是否必填</th>
|
||||
<th>排序</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $num = 0;foreach ($this->getVar('fields') as $key => $value) { $num++;?>
|
||||
<tr>
|
||||
<td><?php echo @(PAGE-1)*PAGESIZE+$num; ?></td>
|
||||
<td><?php echo $value->description; ?></td>
|
||||
<td><?php echo $value->name; ?></td>
|
||||
<td><?php echo $value->length; ?></td>
|
||||
<td>
|
||||
<?php if ($value->required) {?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/id/'.$value->id.'/field/required/value/0');?>"><i class='fa fa-toggle-on' title="点击关闭必填"></i></a>
|
||||
<?php } else { ?>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/'.C.'/mod/id/'.$value->id.'/field/required/value/1');?>"><i class='fa fa-toggle-off' title="点击开启必填"></i></a>
|
||||
<?php } ?>
|
||||
</td>
|
||||
<td><?php echo $value->sorting; ?></td>
|
||||
<td>
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Form/del/id/'.$value->id.'/fcode/'.get('fcode').'');?>" onclick="return confirm('您确定要删除么?')" class="layui-btn layui-btn-xs layui-btn-danger" title="删除">删除</a>
|
||||
<?php echo get_btn_mod($value->id);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="page"><?php echo $this->getVar('pagebar');?></div>
|
||||
<div><a href="<?php echo \core\basic\Url::get('/admin/Form/index');?>" class="layui-btn">返回表单</a></div>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Form/add');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段描述</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="hidden" value="<?php echo get('fcode');?>" name="fcode" >
|
||||
<input type="text" name="description" required lay-verify="required" placeholder="请输入字段描述,如:联系人" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="name" required maxlength="20" lay-verify="required" placeholder="请输入字段名称,必须以字母开头,如:contacts" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段长度</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="length" value="20" required lay-verify="required" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">是否必填</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="required" value="1" title="必填" checked>
|
||||
<input type="radio" name="required" value="0" title="非必填" checked>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段排序</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="sorting" value="255" required lay-verify="required" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if (@$this->getVar('mod')) {?>
|
||||
|
||||
<?php if ($this->getVar('form')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">自定义表单修改</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Form/mod/id/'.get('id').'/action/modform');?><?php echo $this->getVar('backurl');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">表单名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="form_name" maxlength=20 required value="<?php echo @$this->getVar('form')->form_name;?>" lay-verify="required" placeholder="请输入表单名称,如:报名表" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">表名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" maxlength=30 required readonly value="<?php echo @$this->getVar('form')->table_name;?>" lay-verify="required" placeholder="请输入表名称,如:baoming" class="layui-input readonly">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
<?php echo get_btn_back();?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if (@$this->getVar('field')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">表单字段修改</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Form/mod/id/'.get('id').'');?><?php echo $this->getVar('backurl');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段描述</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="description" value="<?php echo @$this->getVar('field')->description;?>" placeholder="请输入字段描述,如:联系人" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="name" readonly value="<?php echo @$this->getVar('field')->name;?>" class="layui-input readonly">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段长度</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="length" readonly value="<?php echo @$this->getVar('field')->length;?>" class="layui-input readonly">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">是否必填</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="required" value="1" title="必填" <?php if ($this->getVar('field')->required==1) {?>checked<?php } ?>>
|
||||
<input type="radio" name="required" value="0" title="非必填" <?php if ($this->getVar('field')->required==0) {?>checked<?php } ?>>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">字段排序</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="sorting" value="<?php echo @$this->getVar('field')->sorting;?>" required lay-verify="required" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
<?php echo get_btn_back();?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
|
||||
|
||||
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php return array (
|
||||
0 => '/home/php/pxgw/apps/admin/view/default/common/head.html',
|
||||
1 => '/home/php/pxgw/apps/admin/view/default/common/foot.html',
|
||||
); ?>
|
448
runtime/complile/e730ba75f35bd94ed56cf223fad3868a.php
Normal file
448
runtime/complile/e730ba75f35bd94ed56cf223fad3868a.php
Normal file
@ -0,0 +1,448 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<meta name="renderer" content="webkit">
|
||||
<title><?php echo CMSNAME;?>管理中心-V<?php echo APP_VERSION;?>-<?php echo RELEASE_TIME;?></title>
|
||||
<link rel="shortcut icon" href="<?php echo SITE_DIR;?>/favicon.ico" type="image/x-icon">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/layui/css/layui.css?v=v2.5.4">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/font-awesome/css/font-awesome.min.css?v=v4.7.0" type="text/css">
|
||||
<link rel="stylesheet" href="<?php echo APP_THEME_DIR;?>/css/comm.css?v=v3.0.6">
|
||||
<link href="<?php echo APP_THEME_DIR;?>/css/jquery.treetable.css" rel="stylesheet" type="text/css" />
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery-1.12.4.min.js"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/jquery.treetable.js"></script>
|
||||
</head>
|
||||
|
||||
<body class="layui-layout-body">
|
||||
|
||||
<!--定义部分地址方便JS调用-->
|
||||
<div style="display: none">
|
||||
<span id="controller" data-controller="<?php echo C;?>"></span>
|
||||
<span id="url" data-url="<?php echo URL;?>"></span>
|
||||
<span id="preurl" data-preurl="<?php echo url('/admin',false);?>"></span>
|
||||
<span id="sitedir" data-sitedir="<?php echo SITE_DIR;?>"></span>
|
||||
<span id="mcode" data-mcode="<?php echo get('mcode');?>"></span>
|
||||
</div>
|
||||
|
||||
<div class="layui-layout layui-layout-admin">
|
||||
<div class="layui-header">
|
||||
<div class="layui-logo">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/home');?>">
|
||||
<img src="<?php echo APP_THEME_DIR;?>/images/logo.png" height="30">
|
||||
<?php echo CMSNAME;?>
|
||||
<?php if (LICENSE==3) {?>
|
||||
<span class="layui-badge">SVIP</span>
|
||||
<?php } else { ?>
|
||||
<span class="layui-badge layui-bg-gray">V<?php echo APP_VERSION;?></span>
|
||||
<?php } ?>
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<ul class="menu">
|
||||
<li class="menu-ico" title="显示或隐藏侧边栏"><i class="fa fa-bars" aria-hidden="true"></i></li>
|
||||
</ul>
|
||||
<?php if (!$this->getVar('one_area')) {?>
|
||||
<form method="post" action="<?php echo \core\basic\Url::get('/admin/Index/area');?>" class="area-select">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-col-xs8">
|
||||
<select name="acode">
|
||||
<?php echo $this->getVar('area_html');?>
|
||||
</select>
|
||||
</div>
|
||||
<div class="layui-col-xs4">
|
||||
<button type="submit" class="layui-btn layui-btn-sm">切换</button>
|
||||
</div>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<ul class="layui-nav layui-layout-right">
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-xs">
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-user-circle-o" aria-hidden="true"></i> <?php echo session('realname');?>
|
||||
</a>
|
||||
<dl class="layui-nav-child">
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 密码修改</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a></dd>
|
||||
<?php if (session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i> 在线更新</a></dd>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Index/clearSession');?>" class="ajaxlink"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理会话</a></dd>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="layui-side layui-bg-black">
|
||||
<div class="layui-side-scroll">
|
||||
<!-- 左侧导航区域(可配合layui已有的垂直导航) -->
|
||||
<ul class="layui-nav layui-nav-tree" id="nav" lay-shrink="all">
|
||||
<?php $num = 0;foreach ($this->getVar('menu_tree') as $key => $value) { $num++;?>
|
||||
<li class="layui-nav-item nav-item <?php if ($this->getVar('primary_menu_url')==$value->url) {?>layui-nav-itemed<?php } ?>">
|
||||
<a class="" href="javascript:;"><i class="fa <?php echo $value->ico; ?>" aria-hidden="true"></i><?php echo $value->name; ?></a>
|
||||
<dl class="layui-nav-child">
|
||||
<?php if ($value->mcode=='M130') {?>
|
||||
<?php $num3 = 0;foreach ($this->getVar('menu_models') as $key3 => $value3) { $num3++;?>
|
||||
<?php if ($value3->type==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Single/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php if ($value3->type==2) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Content/index/mcode/'.$value3->mcode.'');?>"><i class="fa fa-file-text-o" aria-hidden="true"></i><?php echo $value3->name; ?>内容</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<?php } else { ?>
|
||||
<?php $num2 = 0;foreach ($value->son as $key2 => $value2) { $num2++;?>
|
||||
<?php if (!isset($value2->status)|| $value2->status==1) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get(''.$value2->url.'');?>"><i class="fa <?php echo $value2->ico; ?>" aria-hidden="true"></i><?php echo $value2->name; ?></a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->mcode=='M101' && session('ucode')==10001) {?>
|
||||
<dd><a href="<?php echo \core\basic\Url::get('/admin/Upgrade/index');?>"><i class="fa fa-cloud-upload" aria-hidden="true"></i>在线更新</a></dd>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
</dl>
|
||||
</li>
|
||||
<?php } ?>
|
||||
|
||||
<li style="height:1px;background:#666" class="layui-hide-sm"></li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo SITE_DIR;?>/" target="_blank"><i class="fa fa-home" aria-hidden="true"></i> 网站主页</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/ucenter');?>"><i class="fa fa-address-card-o" aria-hidden="true"></i> 资料修改</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/clearCache');?>"><i class="fa fa-trash-o" aria-hidden="true"></i> 清理缓存</a>
|
||||
</li>
|
||||
|
||||
<li class="layui-nav-item layui-hide-sm">
|
||||
<a href="<?php echo \core\basic\Url::get('/admin/Index/loginOut');?>"><i class="fa fa-sign-out" aria-hidden="true"></i> 退出登录</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-body">
|
||||
|
||||
<?php if ($this->getVar('list')) {?>
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this" lay-id="t1">标签内容</li>
|
||||
<li lay-id="t2">标签管理</li>
|
||||
<li lay-id="t3">新增标签</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Label/index');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<?php $num = 0;foreach ($this->getVar('labels') as $key => $value) { $num++;?>
|
||||
<?php if ($value->type==1) {?> <!-- 文本 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?><br><span class="layui-badge layui-bg-gray">{label:<?php echo $value->name; ?>}</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="<?php echo $value->name; ?>" value="<?php echo $value->value; ?>" placeholder="请输入<?php echo $value->description; ?>" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==2) {?><!-- 日期 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?><br><span class="layui-badge layui-bg-gray">{label:<?php echo $value->name; ?>}</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="<?php echo $value->name; ?>" readonly value="<?php echo $value->value; ?>" placeholder="请选择<?php echo $value->description; ?>" class="layui-input datetime">
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==3) {?><!-- 图片 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?><br><span class="layui-badge layui-bg-gray">{label:<?php echo $value->name; ?>}</span></label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="<?php echo $value->name; ?>" id="<?php echo $value->name; ?>" value="<?php echo $value->value; ?>" placeholder="请上传<?php echo $value->description; ?>" class="layui-input">
|
||||
</div>
|
||||
<button type="button" class="layui-btn upload" data-des="<?php echo $value->name; ?>">
|
||||
<i class="layui-icon"></i>上传图片
|
||||
</button>
|
||||
<div id="<?php echo $value->name; ?>_box" class="pic"><?php if ($value->value) {?><dl><dt><img src="<?php echo SITE_DIR;?><?php echo $value->value; ?>" data-url="<?php echo $value->value; ?>"></dt><dd>删除</dd></dl><?php } ?></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==4) {?><!-- 文件 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?><br><span class="layui-badge layui-bg-gray">{label:<?php echo $value->name; ?>}</span></label>
|
||||
<div class="layui-input-inline">
|
||||
<input type="text" name="<?php echo $value->name; ?>" id="<?php echo $value->name; ?>" value="<?php echo $value->value; ?>" placeholder="请上传<?php echo $value->description; ?>" class="layui-input">
|
||||
</div>
|
||||
<button type="button" class="layui-btn file" data-des="<?php echo $value->name; ?>">
|
||||
<i class="layui-icon"></i>上传文件
|
||||
</button>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==5) {?><!-- 编辑器 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?><br><span class="layui-badge layui-bg-gray">{label:<?php echo $value->name; ?>}</span></label>
|
||||
<div class="layui-input-block">
|
||||
<script type="text/plain" id="<?php echo $value->name; ?>" name="<?php echo $value->name; ?>" style="width:100%;height:240px;"><?php echo decode_string($value->value);?></script>
|
||||
</div>
|
||||
</div>
|
||||
<script>
|
||||
//初始化编辑器
|
||||
$(document).ready(function (e) {
|
||||
var ue = UE.getEditor('<?php echo $value->name; ?>',{
|
||||
maximumWords:500
|
||||
});
|
||||
})
|
||||
</script>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==6) {?> <!-- 开关 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?><br><span class="layui-badge layui-bg-gray">{label:<?php echo $value->name; ?>}</span></label>
|
||||
<div class="layui-input-block">
|
||||
<input type="radio" name="<?php echo $value->name; ?>" value="1" title="开启" <?php if ($value->value) {?>checked<?php } ?>>
|
||||
<input type="radio" name="<?php echo $value->name; ?>" value="0" title="关闭" <?php if (!$value->value) {?>checked<?php } ?>>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($value->type==7) {?> <!-- 多行文本 -->
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label"><?php echo $value->description; ?><br><span class="layui-badge layui-bg-gray">{label:<?php echo $value->name; ?>}</span></label>
|
||||
<div class="layui-input-block">
|
||||
<textarea name="<?php echo $value->name; ?>" class="layui-textarea" placeholder="请输入<?php echo $value->description; ?>"><?php echo str_replace("<br>","\r\n",html_entity_decode($value->value));?></textarea>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<table class="layui-table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>序号</th>
|
||||
<th>名称</th>
|
||||
<th>描述</th>
|
||||
<th>类型</th>
|
||||
<th>添加人员</th>
|
||||
<th>修改人员</th>
|
||||
<th>添加时间</th>
|
||||
<th>修改时间</th>
|
||||
<th>操作</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php $num = 0;foreach ($this->getVar('labels') as $key => $value) { $num++;?>
|
||||
<tr>
|
||||
<td><?php echo $num; ?></td>
|
||||
<td><?php echo $value->name; ?></td>
|
||||
<td><?php echo $value->description; ?></td>
|
||||
<td>
|
||||
<?php if ($value->type==1) {?>单行文本<?php } ?>
|
||||
<?php if ($value->type==7) {?>多行文本<?php } ?>
|
||||
<?php if ($value->type==2) {?>时间<?php } ?>
|
||||
<?php if ($value->type==3) {?>图片<?php } ?>
|
||||
<?php if ($value->type==4) {?>附件<?php } ?>
|
||||
<?php if ($value->type==5) {?>编辑器<?php } ?>
|
||||
<?php if ($value->type==6) {?>开关<?php } ?>
|
||||
</td>
|
||||
<td><?php echo $value->create_user; ?></td>
|
||||
<td><?php echo $value->update_user; ?></td>
|
||||
<td><?php echo $value->create_time; ?></td>
|
||||
<td><?php echo $value->update_time; ?></td>
|
||||
<td>
|
||||
<?php echo get_btn_del($value->id);?>
|
||||
<?php echo get_btn_mod($value->id);?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Label/add');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">标签名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="name" required lay-verify="required" placeholder="请输入标签名称" class="layui-input">
|
||||
<div class="layui-form-mid layui-word-aux">只能含有字母、数字、下划线</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">标签描述</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="description" required lay-verify="required" placeholder="请输入标签描述" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">标签类型</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="type" lay-verify="required">
|
||||
<option value="1">单行文本</option>
|
||||
<option value="7">多行文本</option>
|
||||
<option value="2">时间</option>
|
||||
<option value="3">图片</option>
|
||||
<option value="4">附件</option>
|
||||
<option value="5">编辑器</option>
|
||||
<option value="6">开关</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if ($this->getVar('mod')) {?>
|
||||
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="tab">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">标签修改</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<form action="<?php echo \core\basic\Url::get('/admin/Label/mod/id/'.get('id').'');?><?php echo $this->getVar('backurl');?>" method="post" class="layui-form">
|
||||
<input type="hidden" name="formcheck" value="<?php echo $this->getVar('formcheck');?>" >
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">标签名称</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="name" required lay-verify="required" value="<?php echo @$this->getVar('label')->name;?>" placeholder="请输入标签名称" class="layui-input">
|
||||
<div class="layui-form-mid layui-word-aux">只能含有字母、数字、下划线</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">标签描述</label>
|
||||
<div class="layui-input-block">
|
||||
<input type="text" name="description" required lay-verify="required" value="<?php echo @$this->getVar('label')->description;?>" placeholder="请输入标签描述" class="layui-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<label class="layui-form-label">标签类型</label>
|
||||
<div class="layui-input-block">
|
||||
<select name="type" lay-verify="required">
|
||||
<option value="1" <?php if ($this->getVar('label')->type==1) {?>selected<?php } ?>>单行文本</option>
|
||||
<option value="7" <?php if ($this->getVar('label')->type==7) {?>selected<?php } ?>>多行文本</option>
|
||||
<option value="2" <?php if ($this->getVar('label')->type==2) {?>selected<?php } ?>>时间</option>
|
||||
<option value="3" <?php if ($this->getVar('label')->type==3) {?>selected<?php } ?>>图片</option>
|
||||
<option value="4" <?php if ($this->getVar('label')->type==4) {?>selected<?php } ?>>附件</option>
|
||||
<option value="5" <?php if ($this->getVar('label')->type==5) {?>selected<?php } ?>>编辑器</option>
|
||||
<option value="6" <?php if ($this->getVar('label')->type==6) {?>selected<?php } ?>>开关</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="layui-form-item">
|
||||
<div class="layui-input-block">
|
||||
<button class="layui-btn" lay-submit>立即提交</button>
|
||||
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
|
||||
<?php echo get_btn_back();?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<!-- 引入编辑器文件 -->
|
||||
<script type="text/javascript" charset="utf-8" src="<?php echo CORE_DIR;?>/extend/ueditor/ueditor.config.js?v=v3.0.2"></script>
|
||||
<script type="text/javascript" charset="utf-8" src="<?php echo CORE_DIR;?>/extend/ueditor/ueditor.all.min.js?v=v2.0.1"> </script>
|
||||
<script type="text/javascript" charset="utf-8" src="<?php echo CORE_DIR;?>/extend/ueditor/lang/zh-cn/zh-cn.js?v=1.3.5"></script>
|
||||
<script>
|
||||
//初始化编辑器
|
||||
$(document).ready(function (e) {
|
||||
var ue = UE.getEditor('editor',{
|
||||
maximumWords:30000
|
||||
});
|
||||
})
|
||||
</script>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
<!-- 解决源码模式无法保存 -->
|
||||
function editor_init() {
|
||||
$('#edit').submit(function () {
|
||||
editor=UE.getEditor('editor');
|
||||
if(editor.queryCommandState('source')==1) editor.execCommand('source');
|
||||
})
|
||||
}
|
||||
|
||||
<!-- 点击后添加到编辑器 -->
|
||||
$(".addedit").on("click",'img',function(){
|
||||
editor=UE.getEditor('editor');
|
||||
$img = $(this).attr("src");
|
||||
editor.execCommand('inserthtml',"<img src='"+$img+"'>");
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/javascript">editor_init();</script>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/layui/layui.all.js?v=v2.5.4"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/comm.js?v=v3.1.1"></script>
|
||||
<script type="text/javascript" src="<?php echo APP_THEME_DIR;?>/js/mylayui.js?v=v3.1.0"></script>
|
||||
|
||||
|
||||
<!-- 让IE8/9支持媒体查询,从而兼容栅格 -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
|
||||
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
|
||||
<![endif]-->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php return array (
|
||||
0 => '/home/php/pxgw/apps/admin/view/default/common/head.html',
|
||||
1 => '/home/php/pxgw/apps/admin/view/default/common/ueditor.html',
|
||||
2 => '/home/php/pxgw/apps/admin/view/default/common/foot.html',
|
||||
); ?>
|
1
runtime/session/8/sess_8nd8g0br6kns95s39qoaobsdu2
Normal file
1
runtime/session/8/sess_8nd8g0br6kns95s39qoaobsdu2
Normal file
@ -0,0 +1 @@
|
||||
sendemail|b:0;
|
1
runtime/session/j/sess_jcpvpfq8asha92epqc8eglsgi9
Normal file
1
runtime/session/j/sess_jcpvpfq8asha92epqc8eglsgi9
Normal file
@ -0,0 +1 @@
|
||||
sendemail|b:0;
|
1
runtime/session/k/sess_k361nctvd09536k2gcdki8c5tm
Normal file
1
runtime/session/k/sess_k361nctvd09536k2gcdki8c5tm
Normal file
@ -0,0 +1 @@
|
||||
sendemail|b:0;
|
1
runtime/session/s/sess_s578dd5eekrvonkuhp3sudb463
Normal file
1
runtime/session/s/sess_s578dd5eekrvonkuhp3sudb463
Normal file
@ -0,0 +1 @@
|
||||
sendemail|b:0;
|
1
runtime/session/s/sess_su7aa7jhp32rlabp260871k0hh
Normal file
1
runtime/session/s/sess_su7aa7jhp32rlabp260871k0hh
Normal file
@ -0,0 +1 @@
|
||||
sendemail|b:0;
|
@ -650,7 +650,7 @@ img {
|
||||
.title {
|
||||
position: relative;
|
||||
text-align: center;
|
||||
padding: 80px 0;
|
||||
padding: 160px 0;
|
||||
}
|
||||
.title h3 {
|
||||
font-size: 32px;
|
||||
@ -1793,7 +1793,7 @@ img {
|
||||
max-width: initial;
|
||||
}
|
||||
.title {
|
||||
padding: 60px 0;
|
||||
padding: 90px 0;
|
||||
}
|
||||
.owl-carousel .owl-item .img {
|
||||
overflow: hidden;
|
||||
@ -2008,7 +2008,7 @@ img {
|
||||
padding: 0 5px;
|
||||
}
|
||||
.title {
|
||||
padding: 40px 0
|
||||
padding: 80px 0
|
||||
}
|
||||
.div_tag {
|
||||
margin-top: -10px;
|
||||
|
BIN
static/upload/image/20220330/1648604487519425.png
Normal file
BIN
static/upload/image/20220330/1648604487519425.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 35 KiB |
BIN
static/upload/image/20220330/1648605362186801.png
Normal file
BIN
static/upload/image/20220330/1648605362186801.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 219 KiB |
@ -26,16 +26,16 @@
|
||||
<!-------------------------------------- 头部结束 -------------------------------------->
|
||||
<!-------------------------------------- 内容开始 -------------------------------------->
|
||||
<div class="mainer">
|
||||
<div class="wrap">
|
||||
<div class="title wow fadeInUp" style="background-image: ;" data-wow-delay=".1s">
|
||||
<h3>{sort:topname}</h3>
|
||||
<div class="wrap" style="width: 100%;max-width: unset;">
|
||||
<div class="title wow fadeInUp" style="background-image: url('/static/upload/image/20220330/1648605362186801.png');background-size: cover;background-position: center;" data-wow-delay=".1s">
|
||||
<h3 style="color: #fff">{sort:topname}</h3>
|
||||
<label></label>
|
||||
<span></span> </div>
|
||||
|
||||
<div class="about_gsjj">
|
||||
<div class="list wow fadeInUp" data-wow-delay=".3s" style="margin: 0;">
|
||||
<div class="list wow fadeInUp" data-wow-delay=".3s" style="margin: 0 auto;max-width: 1180px;padding: 0 20px;">
|
||||
<div class="web">
|
||||
<div class="text" id="maximg">
|
||||
<div class="text" id="maximg" style="margin: 0;">
|
||||
<p>{content:content}</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -64,14 +64,7 @@
|
||||
</a> </li>
|
||||
{/pboot:list}
|
||||
{pboot:sort scode=5}
|
||||
<li class="li_more wow fadeInUp animated"> <a href="[sort:link]" class="ht_w">
|
||||
<div class="img"><img src="[sort:ico]" /></div>
|
||||
<div class="text text_t_ht">
|
||||
<div class="cell">
|
||||
<p>更多精彩课程等你开启</p>
|
||||
<span></span></div>
|
||||
</div>
|
||||
</a> </li>
|
||||
|
||||
{/pboot:sort}
|
||||
</ul>
|
||||
</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user