File: /www/wwwroot/www.elwrky.com/runtime/temp/e5430560fde6fc82b1e4f2dad526f0d2.php
<?php /*a:3:{s:65:"/www/wwwroot/www.elwrky.com/application/cms/view/models/edit.html";i:1640819545;s:68:"/www/wwwroot/www.elwrky.com/application/admin/view/index_layout.html";i:1640819545;s:61:"/www/wwwroot/www.elwrky.com/application/admin/view/layui.html";i:1640819545;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php echo config('system_name'); ?>后台管理系统</title>
<meta name="author" content="<?php echo config('system_name'); ?>">
<meta name="csrf-token" content="<?php echo think\facade\Request::token('__token__'); ?>">
<link rel="stylesheet" href="/static/libs/layui/css/layui.css">
<link rel="stylesheet" href="/static/admin/css/admin.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
<link rel="stylesheet" href="/static/common/font/iconfont.css?v=<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>">
<link rel="stylesheet" href="/static/admin/css/my.css">
<script src="/static/libs/layui/layui.js"></script>
<script src="/static/libs/jquery/jquery.min.js"></script>
<script type="text/javascript">
//全局变量
var GV = {
'site':<?php echo json_encode($site); ?>,
'image_upload_url': '<?php echo !empty($image_upload_url) ? htmlentities($image_upload_url) : url("attachment/upload/upload", ["dir" => "images"]); ?>',
'file_upload_url': '<?php echo !empty($file_upload_url) ? htmlentities($file_upload_url) : url("attachment/upload/upload", ["dir" => "files"]); ?>',
'ueditor_upload_url': '<?php echo !empty($ueditor_upload_url) ? htmlentities($ueditor_upload_url) : url("attachment/upload/upload", ["dir" => "images","from"=>"ueditor"]); ?>',
'attachment_select_url': '<?php echo !empty($attachment_select_url) ? htmlentities($attachment_select_url) : url("attachment/attachments/select"); ?>',
};
</script>
</head>
<body class="childrenBody <?php echo defined('IS_DIALOG') && IS_DIALOG ? 'is-dialog' : ''; ?>">
<form class="layui-form" method="post">
<div class="layui-form-item">
<label class="layui-form-label">模型名称</label>
<div class="layui-input-inline">
<input type="text" name="name" lay-verify="required" autocomplete="off" placeholder="模型名称" class="layui-input" value="<?php echo htmlentities($data['name']); ?>">
</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="tablename" lay-verify="required" autocomplete="off" placeholder="模型表键名" class="layui-input" value="<?php echo htmlentities($data['tablename']); ?>">
</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-block">
<textarea name="description" placeholder="模型的相关描述" class="layui-textarea"><?php echo htmlentities($data['description']); ?></textarea>
</div>
</div>
<div class="layui-form-item web_list">
<label class="layui-form-label">栏目模板</label>
<div class="layui-input-block">
<select name="setting[category_template]">
<option value="category.html" selected>默认栏目首页:category.html</option>
<?php if(is_array($tp_category) || $tp_category instanceof \think\Collection || $tp_category instanceof \think\Paginator): $i = 0; $__LIST__ = $tp_category;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<option value="<?php echo htmlentities($vo); ?>" <?php if($data['setting']['category_template'] == $vo): ?>selected<?php endif; ?>><?php echo htmlentities($vo); ?></option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
<div class="layui-form-mid layui-word-aux">新增模板以category_xx.html形式</div>
</div>
<div class="layui-form-item web_list">
<label class="layui-form-label">列表模板</label>
<div class="layui-input-block">
<select name="setting[list_template]">
<option value="list.html" selected>默认栏目列表页:list.html</option>
<?php if(is_array($tp_list) || $tp_list instanceof \think\Collection || $tp_list instanceof \think\Paginator): $i = 0; $__LIST__ = $tp_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<option value="<?php echo htmlentities($vo); ?>" <?php if($data['setting']['list_template'] == $vo): ?>selected<?php endif; ?>><?php echo htmlentities($vo); ?></option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
<div class="layui-form-mid layui-word-aux">新增模板以list_xx.html形式</div>
</div>
<div class="layui-form-item web_list">
<label class="layui-form-label">内容模板</label>
<div class="layui-input-block">
<select name="setting[show_template]">
<option value="show.html" selected>默认内容页:show.html</option>
<?php if(is_array($tp_show) || $tp_show instanceof \think\Collection || $tp_show instanceof \think\Paginator): $i = 0; $__LIST__ = $tp_show;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<option value="<?php echo htmlentities($vo); ?>" <?php if($data['setting']['show_template'] == $vo): ?>selected<?php endif; ?>><?php echo htmlentities($vo); ?></option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
<div class="layui-form-mid layui-word-aux">新增模板以show_xx.html形式</div>
</div>
<div class="layui-form-item web_list" <?php if($data['type']!= 3): ?> style="display:none"<?php endif; ?>>
<label class="layui-form-label">章节模板</label>
<div class="layui-input-block">
<select name="setting[chapter_template]">
<option value="chapter.html" selected>默认章节页:chapter.html</option>
<?php if(is_array($tp_chapter) || $tp_chapter instanceof \think\Collection || $tp_chapter instanceof \think\Paginator): $i = 0; $__LIST__ = $tp_chapter;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
<option value="<?php echo htmlentities($vo); ?>" <?php if($data['setting']['chapter_template'] == $vo): ?>selected<?php endif; ?>><?php echo htmlentities($vo); ?></option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
<div class="layui-form-mid layui-word-aux">新增模板以chapter_xx.html形式</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">状态</label>
<div class="layui-input-inline">
<input type="radio" name="status" value="1" title="正常" <?php if($data['status']==1): ?>checked<?php endif; ?>>
<input type="radio" name="status" value="0" title="禁止" <?php if($data['status']==0): ?>checked<?php endif; ?>>
</div>
</div>
<input type="hidden" value="<?php echo htmlentities($data['id']); ?>" name="id" />
<div class="layui-form-item layer-footer">
<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>
<script type="text/javascript">
layui.config({
version: '<?php echo htmlentities(app('config')->get('version.yzncms_release')); ?>',
base: '/static/libs/layui_exts/'
}).extend({
yzn: 'yzn/yzn',
yznForm: 'yznForm/yznForm',
yznTable: 'yznTable/yznTable',
treeGrid: 'treeGrid/treeGrid',
clipboard: 'clipboard/clipboard.min',
notice: 'notice/notice.min',
iconPicker: 'iconPicker/iconPicker.min',
ztree: 'ztree/ztree',
dragsort: 'dragsort/dragsort.min',
tagsinput: 'tagsinput/tagsinput',
xmSelect: 'xmSelect/xm-select',
selectPage: 'selectPage/selectpage.min',
echarts: 'echarts/echarts',
echartsTheme: 'echarts/echartsTheme',
citypicker: 'citypicker/city-picker',
webuploader: 'webuploader/webuploader',
ueditor: 'ueditor/ueditor.min',
}).use('yznForm');
</script>
<script type="text/javascript">
layui.use('yznForm', function() {
var yznForm = layui.yznForm;
yznForm.listen();
});
</script>
</body>
</html>