作者 v_bairong06

代码上传

正在显示 65 个修改的文件 包含 4724 行增加0 行删除

要显示太多修改。

为保证性能只显示 65 of 65+ 个文件。

.idea/
/data/runtime/
data/runtime/
/data/upload/
\ No newline at end of file
... ...
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
... ...
ZzJVb2EgXmLU61VQ
\ No newline at end of file
... ...
<?php
class Utils
{
public static function traceHttp()
{
$content = date('Y-m-d H:i:s')."\n\rremote_ip:".$_SERVER["REMOTE_ADDR"].
"\n\r".$_SERVER["QUERY_STRING"]."\n\r\n\r";
$max_size = 1000;
$log_filename = "./query.xml";
if (file_exists($log_filename) and (abs(filesize($log_filename))) > $max_size){
unlink($log_filename);
}else {
}
file_put_contents($log_filename, $content, FILE_APPEND);
}
public static function logger($log_content, $type = '用户')
{
$max_size = 3000;
$log_filename = "./log.xml";
if (file_exists($log_filename) and (abs(filesize($log_filename)) >
$max_size)) {
unlink($log_filename);
}
file_put_contents($log_filename, "$type ".date('Y-m-d H:i:s')."\n\r".$log_content."\n\r",
FILE_APPEND);
}
}
\ No newline at end of file
... ...
<Files *.html>
Order Allow,Deny
Deny from all
</Files>
... ...
<?php
/**
* 后台入口文件
*/
$upw =empty($_GET['upw'])?"":'&upw='.$_GET['upw'];
header("Location: ../index.php?g=admin&m=public&a=login".$upw );
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('ad/index')}">{:L('ADMIN_AD_INDEX')}</a></li>
<li class="active"><a href="{:U('ad/add')}">{:L('ADMIN_AD_ADD')}</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('ad/add_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('NAME')}</label>
<div class="controls">
<input type="text" name="ad_name">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('AD_CONTENT')}</label>
<div class="controls">
<textarea name="ad_content" rows="5" cols="57"></textarea>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('ad/index')}">{:L('ADMIN_AD_INDEX')}</a></li>
<li><a href="{:U('ad/add')}">{:L('ADMIN_AD_ADD')}</a></li>
<li class="active"><a>编辑广告</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('ad/edit_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('NAME')}</label>
<div class="controls">
<input type="text" name="ad_name" value="{$ad_name}"><span class="form-required">*</span>
<input type="hidden" name="ad_id" value="{$ad_id}">
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('AD_CONTENT')}</label>
<div class="controls">
<textarea name="ad_content" rows="5" cols="57">{$ad_content}</textarea>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:U('ad/index')}">{:L('ADMIN_AD_INDEX')}</a></li>
<li><a href="{:U('ad/add')}">{:L('ADMIN_AD_ADD')}</a></li>
</ul>
<form method="post" class="js-ajax-form">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('ad/toggle',array('display'=>1))}" data-subcheck="true">{:L('DISPLAY')}</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('ad/toggle',array('hide'=>1))}" data-subcheck="true">{:L('HIDE')}</button>
</div>
<php> $status=array("1"=>L('DISPLAY'),"0"=>L('HIDDEN')); </php>
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<th width="50">ID</th>
<th>{:L('NAME')}</th>
<th>{:L('HOW_TO_USE')}</th>
<th width="45">{:L('STATUS')}</th>
<th width="120">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<foreach name="ads" item="vo">
<tr>
<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.ad_id}"></td>
<td>{$vo.ad_id}</td>
<td>{$vo.ad_name}</td>
<php>$usercode="{".":sp_getad('".$vo['ad_name']."')}";</php>
<td>{$usercode}</td>
<td>{$status[$vo['status']]}</td>
<td>
<a href="{:U('ad/edit',array('id'=>$vo['ad_id']))}">{:L('EDIT')}</a> |
<a href="{:U('ad/delete',array('id'=>$vo['ad_id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
</tr>
</foreach>
</tbody>
<tfoot>
<tr>
<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<th width="50">ID</th>
<th>{:L('NAME')}</th>
<th>{:L('HOW_TO_USE')}</th>
<th width="45">{:L('STATUS')}</th>
<th width="120">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('ad/toggle',array('display'=>1))}" data-subcheck="true">{:L('DISPLAY')}</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('ad/toggle',array('hide'=>1))}" data-subcheck="true">{:L('HIDE')}</button>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
<style type="text/css">
.pic-list li {
margin-bottom: 5px;
}
</style>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('Exam/index')}">在线调查列表</a></li>
<li class="active"><a href="{:U('Exam/add')}" target="_self">添加在线调查</a></li>
</ul>
<form action="{:U('Exam/add_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
<div class="row-fluid">
<div class="span9">
<table class="table table-bordered">
<tr>
<th width="80">标题</th>
<td>
<input type="text" style="width:400px;" name="name" id="name" required placeholder="请输入名称"/>
<span class="form-required">*</span>
</td>
</tr>
<tr>
<th width="80">跳转地址</th>
<td>
<input type="text" style="width:400px;" name="url" id="url" required placeholder="请输入跳转地址"/>
<span class="form-required">*</span>
</td>
</tr>
</table>
</div>
</div>
<div class="form-actions">
<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
<a class="btn" href="{:U('Exam/index')}">返回</a>
</div>
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
//编辑器路径定义
var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
$(function() {
$(".js-ajax-close-btn").on('click', function(e) {
e.preventDefault();
Wind.use("artDialog", function() {
art.dialog({
id : "question",
icon : "question",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : "您确定需要关闭当前页面嘛?",
ok : function() {
setCookie("refersh_time", 1);
window.close();
return true;
}
});
});
});
/////---------------------
Wind.use('validate', 'ajaxForm', 'artDialog', function() {
//javascript
var form = $('form.js-ajax-forms');
//ie处理placeholder提交问题
if ($.browser && $.browser.msie) {
form.find('[placeholder]').each(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
});
}
var formloading = false;
//表单验证开始
form.validate({
//是否在获取焦点时验证
onfocusout : false,
//是否在敲击键盘时验证
onkeyup : false,
//当鼠标掉级时验证
onclick : false,
//验证错误
showErrors : function(errorMap, errorArr) {
//errorMap {'name':'错误信息'}
//errorArr [{'message':'错误信息',element:({})}]
try {
$(errorArr[0].element).focus();
art.dialog({
id : 'error',
icon : 'error',
lock : true,
fixed : true,
background : "#CCCCCC",
opacity : 0,
content : errorArr[0].message,
cancelVal : '确定',
cancel : function() {
$(errorArr[0].element).focus();
}
});
} catch (err) {
}
},
//验证规则
rules : {
'name' : {
required : 1
},
'url' : {
required : 1
}
},
//验证未通过提示消息
messages : {
'name' : {
required : '请输入标题'
},
'url' : {
required : '请输入跳转地址'
}
},
//给未通过验证的元素加效果,闪烁等
highlight : false,
//是否在获取焦点时验证
onfocusout : false,
//验证通过,提交表单
submitHandler : function(forms) {
if (formloading)
return;
$(forms).ajaxSubmit({
url : form.attr('action'), //按钮上是否自定义提交地址(多按钮情况)
dataType : 'json',
beforeSubmit : function(arr, $form, options) {
formloading = true;
},
success : function(data, statusText, xhr, $form) {
formloading = false;
if (data.status) {
setCookie("refersh_time", 1);
//添加成功
Wind.use("artDialog", function() {
art.dialog({
id : "succeed",
icon : "succeed",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : data.info,
button : [ {
name : '继续添加?',
callback : function() {
reloadPage(window);
return true;
},
focus : true
}, {
name : '返回列表页',
callback : function() {
location = "{:U('Exam/index')}";
return true;
}
} ]
});
});
} else {
artdialog_alert(data.info);
}
}
});
}
});
});
////-------------------------
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
<style type="text/css">
.pic-list li {
margin-bottom: 5px;
}
</style>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('Exam/index')}">在线调查列表</a></li>
<li class="active"><a href="{:U('Exam/edit')}" target="_self">编辑在线调查</a></li>
</ul>
<form action="{:U('Exam/edit_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
<div class="row-fluid">
<div class="span9">
<table class="table table-bordered">
<tr>
<th width="80">标题</th>
<td>
<input type="text" style="width:400px;" name="name" id="name" value="{$post.name}" required placeholder="请输入名称"/>
<span class="form-required">*</span>
<input type="hidden" name="id" value="{$post.id}"/>
</td>
</tr>
<tr>
<th width="80">跳转地址</th>
<td>
<input type="text" style="width:400px;" name="url" id="url" value="{$post.url}" required placeholder="请输入跳转地址"/>
<span class="form-required">*</span>
</td>
</tr>
</table>
</div>
</div>
<div class="form-actions">
<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
<a class="btn" href="{:U('Exam/index')}">返回</a>
</div>
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
$(function() {
$(".js-ajax-close-btn").on('click', function(e) {
e.preventDefault();
Wind.use("artDialog", function() {
art.dialog({
id : "question",
icon : "question",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : "您确定需要关闭当前页面嘛?",
ok : function() {
setCookie("refersh_time", 1);
window.close();
return true;
}
});
});
});
/////---------------------
Wind.use('validate', 'ajaxForm', 'artDialog', function() {
//javascript
var form = $('form.js-ajax-forms');
//ie处理placeholder提交问题
if ($.browser && $.browser.msie) {
form.find('[placeholder]').each(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
});
}
var formloading = false;
//表单验证开始
form.validate({
//是否在获取焦点时验证
onfocusout : false,
//是否在敲击键盘时验证
onkeyup : false,
//当鼠标掉级时验证
onclick : false,
//验证错误
showErrors : function(errorMap, errorArr) {
//errorMap {'name':'错误信息'}
//errorArr [{'message':'错误信息',element:({})}]
try {
$(errorArr[0].element).focus();
art.dialog({
id : 'error',
icon : 'error',
lock : true,
fixed : true,
background : "#CCCCCC",
opacity : 0,
content : errorArr[0].message,
cancelVal : '确定',
cancel : function() {
$(errorArr[0].element).focus();
}
});
} catch (err) {
}
},
//验证规则
rules : {
'name' : {
required : 1
},
'url' : {
required : 1
}
},
//验证未通过提示消息
messages : {
'name' : {
required : '请输入标题'
},
'url' : {
required : '请输入跳转地址'
}
},
//给未通过验证的元素加效果,闪烁等
highlight : false,
//是否在获取焦点时验证
onfocusout : false,
//验证通过,提交表单
submitHandler : function(forms) {
if (formloading)
return;
$(forms).ajaxSubmit({
url : form.attr('action'), //按钮上是否自定义提交地址(多按钮情况)
dataType : 'json',
beforeSubmit : function(arr, $form, options) {
formloading = true;
},
success : function(data, statusText, xhr, $form) {
formloading = false;
if (data.status) {
setCookie("refersh_time", 1);
//添加成功
Wind.use("artDialog", function() {
art.dialog({
id : "succeed",
icon : "succeed",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : data.info,
button : [ {
name : '继续编辑?',
callback : function() {
return true;
},
focus : true
}, {
name : '返回列表页',
callback : function() {
location = "{:U('Exam/index')}";
return true;
}
} ]
});
});
} else {
artdialog_alert(data.info);
}
}
});
}
});
});
////-------------------------
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:;">在线调查列表</a></li>
<li><a href="{:U('Exam/add')}" target="_self">添加在线调查</a></li>
</ul>
<form class="well form-search" method="post" action="{:U('Exam/index')}">
时间:
<input type="text" name="start_time" class="js-datetime" value="{$formget.start_time|default=''}" style="width: 120px;" autocomplete="off">-
<input type="text" class="js-datetime" name="end_time" value="{$formget.end_time|default=''}" style="width: 120px;" autocomplete="off"> &nbsp; &nbsp;
关键字:
<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword|default=''}" placeholder="请输入关键字...">
<input type="submit" class="btn btn-primary" value="搜索" />
<a class="btn btn-danger" href="{:U('Exam/index')}">清空</a>
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Exam/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<th width="50">ID</th>
<th>标题</th>
<th>跳转地址</th>
<th width="150">添加时间</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
<foreach name="posts" item="vo">
<tr>
<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" title="ID:{$vo.id}"></td>
<td><b>{$vo.id}</b></td>
<td>{$vo.name}</td>
<td>{$vo.url}</td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<a href="{:U('Exam/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('Exam/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
</tr>
</foreach>
<tfoot>
<tr>
<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<th width="50">ID</th>
<th>标题</th>
<th>跳转地址</th>
<th width="100">添加时间</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Exam/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
function refersh_window() {
var refersh_time = getCookie('refersh_time');
if (refersh_time == 1) {
window.location = "{:U('Exam/index',$formget)}";
}
}
setInterval(function() {
refersh_window();
}, 2000);
$(function() {
setCookie("refersh_time", 0);
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
<style type="text/css">
.pic-list li {
margin-bottom: 5px;
}
</style>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="#">联系我们</a></li>
</ul>
<form action="{:U('Foundation/editcontact_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
<div class="row-fluid">
<div class="span9">
<table class="table table-bordered">
<tr>
<th width="100">标题</th>
<td>
<input type="hidden" name="id" value="{$post.id}">
<input type="text" style="width: 400px;" name="post[post_title]" required value="{$post.post_title}" placeholder="请输入标题"/>
<span class="form-required">*</span>
</td>
</tr>
<tr>
<th>内容</th>
<td>
<script type="text/plain" id="content" name="post[post_content]">{$post.post_content}</script>
</td>
</tr>
</table>
</div>
</div>
<div class="form-actions">
<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
</div>
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
//编辑器路径定义
var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
$(function() {
//setInterval(function(){public_lock_renewal();}, 10000);
$(".js-ajax-close-btn").on('click', function(e) {
e.preventDefault();
Wind.use("artDialog", function() {
art.dialog({
id : "question",
icon : "question",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : "您确定需要关闭当前页面嘛?",
ok : function() {
setCookie("refersh_time", 1);
window.close();
return true;
}
});
});
});
/////---------------------
Wind.use('validate', 'ajaxForm', 'artDialog', function() {
//javascript
//编辑器
editorcontent = new baidu.editor.ui.Editor();
editorcontent.render('content');
try {
editorcontent.sync();
} catch (err) {
}
//增加编辑器验证规则
jQuery.validator.addMethod('editorcontent', function() {
try {
editorcontent.sync();
} catch (err) {
}
;
return editorcontent.hasContents();
});
var form = $('form.js-ajax-forms');
//ie处理placeholder提交问题
if ($.browser && $.browser.msie) {
form.find('[placeholder]').each(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
});
}
//表单验证开始
form.validate({
//是否在获取焦点时验证
onfocusout : false,
//是否在敲击键盘时验证
onkeyup : false,
//当鼠标掉级时验证
onclick : false,
//验证错误
showErrors : function(errorMap, errorArr) {
//errorMap {'name':'错误信息'}
//errorArr [{'message':'错误信息',element:({})}]
try {
$(errorArr[0].element).focus();
art.dialog({
id : 'error',
icon : 'error',
lock : true,
fixed : true,
background : "#CCCCCC",
opacity : 0,
content : errorArr[0].message,
cancelVal : '确定',
cancel : function() {
$(errorArr[0].element).focus();
}
});
} catch (err) {
}
},
//验证规则
rules : {
'post[post_title]' : {
required : 1
},
'post[post_content]' : {
editorcontent : true
}
},
//验证未通过提示消息
messages : {
'post[post_title]' : {
required : '请输入标题'
},
'post[post_content]' : {
editorcontent : '内容不能为空'
}
},
//给未通过验证的元素加效果,闪烁等
highlight : false,
//是否在获取焦点时验证
onfocusout : false,
//验证通过,提交表单
submitHandler : function(forms) {
$(forms).ajaxSubmit({
url : form.attr('action'), //按钮上是否自定义提交地址(多按钮情况)
dataType : 'json',
beforeSubmit : function(arr, $form, options) {
},
success : function(data, statusText, xhr, $form) {
if (data.status) {
setCookie("refersh_time", 1);
//添加成功
Wind.use("artDialog", function() {
art.dialog({
id : "succeed",
icon : "succeed",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : data.info,
button : [ {
name : '继续编辑?',
callback : function() {
//reloadPage(window);
return true;
},
focus : true
}]
});
});
} else {
artdialog_alert(data.info);
}
}
});
}
});
});
////-------------------------
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
<style type="text/css">
.pic-list li {
margin-bottom: 5px;
}
</style>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="#">基金会介绍</a></li>
</ul>
<form action="{:U('Foundation/edit_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
<div class="row-fluid">
<div class="span9">
<table class="table table-bordered">
<tr>
<th width="100">标题</th>
<td>
<input type="hidden" name="id" value="{$post.id}">
<input type="text" style="width: 400px;" name="post[post_title]" required value="{$post.post_title}" placeholder="请输入标题"/>
<span class="form-required">*</span>
</td>
</tr>
<tr>
<th>内容</th>
<td>
<script type="text/plain" id="content" name="post[post_content]">{$post.post_content}</script>
</td>
</tr>
</table>
</div>
</div>
<div class="form-actions">
<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
</div>
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
//编辑器路径定义
var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
$(function() {
//setInterval(function(){public_lock_renewal();}, 10000);
$(".js-ajax-close-btn").on('click', function(e) {
e.preventDefault();
Wind.use("artDialog", function() {
art.dialog({
id : "question",
icon : "question",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : "您确定需要关闭当前页面嘛?",
ok : function() {
setCookie("refersh_time", 1);
window.close();
return true;
}
});
});
});
/////---------------------
Wind.use('validate', 'ajaxForm', 'artDialog', function() {
//javascript
//编辑器
editorcontent = new baidu.editor.ui.Editor();
editorcontent.render('content');
try {
editorcontent.sync();
} catch (err) {
}
//增加编辑器验证规则
jQuery.validator.addMethod('editorcontent', function() {
try {
editorcontent.sync();
} catch (err) {
}
;
return editorcontent.hasContents();
});
var form = $('form.js-ajax-forms');
//ie处理placeholder提交问题
if ($.browser && $.browser.msie) {
form.find('[placeholder]').each(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
});
}
//表单验证开始
form.validate({
//是否在获取焦点时验证
onfocusout : false,
//是否在敲击键盘时验证
onkeyup : false,
//当鼠标掉级时验证
onclick : false,
//验证错误
showErrors : function(errorMap, errorArr) {
//errorMap {'name':'错误信息'}
//errorArr [{'message':'错误信息',element:({})}]
try {
$(errorArr[0].element).focus();
art.dialog({
id : 'error',
icon : 'error',
lock : true,
fixed : true,
background : "#CCCCCC",
opacity : 0,
content : errorArr[0].message,
cancelVal : '确定',
cancel : function() {
$(errorArr[0].element).focus();
}
});
} catch (err) {
}
},
//验证规则
rules : {
'post[post_title]' : {
required : 1
},
'post[post_content]' : {
editorcontent : true
}
},
//验证未通过提示消息
messages : {
'post[post_title]' : {
required : '请输入标题'
},
'post[post_content]' : {
editorcontent : '内容不能为空'
}
},
//给未通过验证的元素加效果,闪烁等
highlight : false,
//是否在获取焦点时验证
onfocusout : false,
//验证通过,提交表单
submitHandler : function(forms) {
$(forms).ajaxSubmit({
url : form.attr('action'), //按钮上是否自定义提交地址(多按钮情况)
dataType : 'json',
beforeSubmit : function(arr, $form, options) {
},
success : function(data, statusText, xhr, $form) {
if (data.status) {
setCookie("refersh_time", 1);
//添加成功
Wind.use("artDialog", function() {
art.dialog({
id : "succeed",
icon : "succeed",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : data.info,
button : [ {
name : '继续编辑?',
callback : function() {
//reloadPage(window);
return true;
},
focus : true
}]
});
});
} else {
artdialog_alert(data.info);
}
}
});
}
});
});
////-------------------------
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="boot/index"/>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('link/index')}">{:L('ADMIN_LINK_INDEX')}</a></li>
<li class="active"><a href="{:U('link/add')}">{:L('ADMIN_LINK_ADD')}</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('link/add_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('NAME')}</label>
<div class="controls">
<input type="text" name="link_name">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('LINK_ADDRESS')}</label>
<div class="controls">
<input type="text" name="link_url">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('LINK_ICON')}</label>
<div class="controls">
<input type="text" name="link_image" id="js-link-image"> <a href="javascript:upload_one_image('图片上传','#js-link-image');">上传图片</a>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('LINK_TARGET')}</label>
<div class="controls">
<select name="link_target">
<foreach name="targets" item="vo">
<option value="{$key}">{$vo}</option>
</foreach>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('LINK_DESCRIPTION')}</label>
<div class="controls">
<textarea name="link_description" rows="5" cols="57"></textarea>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('link/index')}">{:L('ADMIN_LINK_INDEX')}</a></li>
<li><a href="{:U('link/add')}">{:L('ADMIN_LINK_ADD')}</a></li>
<li class="active"><a>编辑友情链接</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('link/edit_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('NAME')}</label>
<div class="controls">
<input type="text" name="link_name" value="{$link_name}">
<span class="form-required">*</span>
<input type="hidden" name="link_id" value="{$link_id}">
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('LINK_ADDRESS')}</label>
<div class="controls">
<input type="text" name="link_url" value="{$link_url}">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('LINK_ICON')}</label>
<div class="controls">
<input type="text" name="link_image" value="{$link_image}" id="js-link-image"> <a href="javascript:upload_one_image('图片上传','#js-link-image');">上传图片</a>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('LINK_TARGET')}</label>
<div class="controls">
<select name="link_target">
<foreach name="targets" item="vo">
<php>$link_target_selected=$link_target==$key?"selected='selected'":"";</php>
<option value="{$key}" {$link_target_selected}>{$vo}</option>
</foreach>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('LINK_DESCRIPTION')}</label>
<div class="controls">
<textarea name="link_description" rows="5" cols="57">{$link_description}</textarea>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:U('link/index')}">{:L('ADMIN_LINK_INDEX')}</a></li>
<li><a href="{:U('link/add')}">{:L('ADMIN_LINK_ADD')}</a></li>
</ul>
<form method="post" class="js-ajax-form" action="{:U('Link/listorders')}">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit">{:L('SORT')}</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('link/toggle',array('display'=>1))}" data-subcheck="true">{:L('DISPLAY')}</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('link/toggle',array('hide'=>1))}" data-subcheck="true">{:L('HIDE')}</button>
</div>
<php>$status=array("1"=>L('DISPLAY'),"0"=>L('HIDDEN'));</php>
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<th width="50">{:L('SORT')}</th>
<th width="50">ID</th>
<th>{:L('NAME')}</th>
<th>{:L('LINK_ADDRESS')}</th>
<th width="45">{:L('STATUS')}</th>
<th width="120">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<foreach name="links" item="vo">
<tr>
<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.link_id}"></td>
<td><input name='listorders[{$vo.link_id}]' class="input input-order mr5" type='text' size='3' value='{$vo.listorder}'></td>
<td>{$vo.link_id}</td>
<td>{$vo.link_name}</td>
<td><a href="{$vo.link_url}" target="_blank">{$vo.link_url}</a></td>
<td>{$status[$vo['link_status']]}</td>
<td>
<a href="{:U('link/edit',array('id'=>$vo['link_id']))}">{:L('EDIT')}</a>|
<a href="{:U('link/delete',array('id'=>$vo['link_id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
</tr>
</foreach>
</tbody>
<tfoot>
<tr>
<th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<th width="50">{:L('SORT')}</th>
<th width="50">ID</th>
<th>{:L('NAME')}</th>
<th>{:L('LINK_ADDRESS')}</th>
<th width="45">{:L('STATUS')}</th>
<th width="120">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit">{:L('SORT')}</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('link/toggle',array('display'=>1))}" data-subcheck="true">{:L('DISPLAY')}</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('link/toggle',array('hide'=>1))}" data-subcheck="true">{:L('HIDE')}</button>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="#" data-toggle="tab">{:L('ADMIN_MAILER_ACTIVE')}</a></li>
</ul>
<div class="common-form">
<form method="post" class="form-horizontal js-ajax-form" action="{:U('Admin/mailer/active_post')}">
<table cellpadding="2" cellspacing="2" width="100%">
<tbody>
<tr>
<td width="100">{:L('EMAIL_ACTIVATION')}</td>
<td>
<php>
$radio1=''; $radio2=' checked';
if(C('SP_MEMBER_EMAIL_ACTIVE')==1){
$radio1=' checked';
$radio2='';
}
</php>
<label class="radio inline" for="lightup_true"> <input type="radio" {$radio1} id="lightup_true" class="radio" name="lightup" value="1" />{:L('OPEN')}</label> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<label class="radio inline" for="lightup_false"> <input type="radio" {$radio2} id="lightup_false" class="radio" name="lightup" value="0" />{:L('CLOSE')}</label>
</td>
</tr>
<tr>
<td>{:L('EMAIL_SUBJECT')}</td>
<td><input type="text" name="options[title]" value="{$options.title}"/></td>
</tr>
<tr>
<td>{:L('EMAIL_TEMPLATE')}</td>
<td>
<script type="text/plain" id="content" name="options[template]">{$options.template}</script>
<span style="color: #ffb752;">{:L('EMAIL_TEMPLATE_HELP_TEXT',array('link'=>'http://#link#','username'=>'#username#'))}</span>
</td>
</tr>
</tbody>
</table>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
</div>
</form>
</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
//编辑器路径定义
var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
var editorcontent = new baidu.editor.ui.Editor();
editorcontent.render('content');
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="#" data-toggle="tab">{:L('ADMIN_MAILER_INDEX')}</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('Admin/mailer/index_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('SENDER_NAME')}</label>
<div class="controls">
<input type="text" name="sender" value="{$Think.config.SP_MAIL_SENDER}" />
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('SENDER_EMAIL_ADDRESS')}</label>
<div class="controls">
<input type="text" name="address" value="{$Think.config.SP_MAIL_ADDRESS}" />
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('SENDER_SMTP_SERVER')}</label>
<div class="controls">
<input type="text" name="smtp" value="{$Think.config.SP_MAIL_SMTP}" />
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">连接方式</label>
<div class="controls">
<select name="smtpsecure" id="js-smtpsecure">
<option value="">默认</option>
<option value="ssl">ssl</option>
<option value="tls">tls</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">SMTP服务器端口</label>
<div class="controls">
<input type="text" name="smtp_port" value="{$Think.config.SP_MAIL_SMTP_PORT}" placeholder="默认为25"/>
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('SMTP_MAIL_ADDRESS')}</label>
<div class="controls">
<input type="text" name="loginname" value="{$Think.config.SP_MAIL_LOGINNAME}" />
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('SMTP_MAIL_PASSWORD')}</label>
<div class="controls">
<input type="password" name="password" value="{$Think.config.SP_MAIL_PASSWORD}" />
<span class="form-required">*</span>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
<a class="btn btn-warning" href="javascript:parent.open_iframe_dialog('{:U('mailer/test')}','发送测试邮件',{})">测试邮件</a>
</div>
</fieldset>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
$(function(){
$('#js-smtpsecure').val('{$Think.config.SP_MAIL_SECURE}');
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<form method="post" class="form-horizontal js-ajax-form" action="{:U('mailer/test')}">
<fieldset>
<div class="control-group">
<label class="control-label">收件箱</label>
<div class="controls">
<input type="text" name="to">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">标题</label>
<div class="controls">
<input type="text" name="subject">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">内容</label>
<div class="controls">
<textarea name="content" rows="5" cols="57"></textarea>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">发送</button>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
<style>
.home_info li em {
float: left;
width: 120px;
font-style: normal;
}
li {
list-style: none;
}
</style>
</head>
<body>
<div class="wrap">
<div id="home_toptip"></div>
<h4 class="well">{:L('SYSTEM_INFORMATIONS')}</h4>
<div class="home_info">
<ul>
<volist name="server_info" id="vo">
<li><em>{$key}</em> <span>{$vo}</span></li>
</volist>
</ul>
</div>
<h4 class="well">{:L('CONTRIBUTORS')}</h4>
<div class="">
<ul class="inline" style="margin-left: 25px;">
<li>技术支持</li>
<li><a href="http://bronet.cn" target="_blank">百荣科技</a></li>
</ul>
</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<php>
$lang_set=defined('LANG_SET')?LANG_SET:'';
$thinkcmf_version=defined('THINKCMF_VERSION')?THINKCMF_VERSION:'';
</php>
<script>
//获取官方通知
$.getJSON("http://www.thinkcmf.com/service/sms_jsonp.php?lang={$lang_set}&v={$thinkcmf_version}&callback=?",
function(data) {
var tpl = '<li><em class="title"></em><span class="content"></span></li>';
var $thinkcmf_notices = $("#thinkcmf_notices");
$thinkcmf_notices.empty();
if (data.length > 0) {
$.each(data, function(i, n) {
var $tpl = $(tpl);
$(".title", $tpl).html(n.title);
$(".content", $tpl).html(n.content);
$thinkcmf_notices.append($tpl);
});
} else {
$thinkcmf_notices.append("<li>^_^,{:L('NO_NOTICE')}~~</li>");
}
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('menu/index')}">{:L('ADMIN_MENU_INDEX')}</a></li>
<li class="active"><a href="{:U('menu/add')}">{:L('ADMIN_MENU_ADD')}</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('Menu/add_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">上级:</label>
<div class="controls">
<select name="parentid">
<option value="0">作为一级菜单</option>
{$select_categorys}
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">名称:</label>
<div class="controls">
<input type="text" name="name">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">应用:</label>
<div class="controls">
<input type="text" name="app" id="app">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">控制器:</label>
<div class="controls">
<input type="text" name="model" id="model">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">方法:</label>
<div class="controls">
<input type="text" name="action" id="action">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">参数:</label>
<div class="controls">
<input type="text" name="data">
例:id=3&amp;p=3
</div>
</div>
<div class="control-group">
<label class="control-label">图标:</label>
<div class="controls">
<input type="text" name="icon" id="action">
<a href="http://www.thinkcmf.com/font/icons" target="_blank">选择图标</a> 不带前缀fa-,如fa-user => user
</div>
</div>
<div class="control-group">
<label class="control-label">备注:</label>
<div class="controls">
<textarea name="remark" rows="5" cols="57" style="width: 500px;"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">状态:</label>
<div class="controls">
<select name="status">
<option value="1">显示</option>
<option value="0">隐藏</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">类型:</label>
<div class="controls">
<select name="type">
<option value="1" selected>权限认证+菜单</option>
<option value="0">只作为菜单</option>
</select>
注意:“权限认证+菜单”表示加入后台权限管理,纯碎是菜单项请不要选择此项。
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<div id="error_tips">
<h2>菜单已同步!</h2>
<div class="error_cont">
<ul>
<li>菜单已同步!</li>
</ul>
<div class="error_return">
<a href="{:U('menu/index')}" class="btn">关闭</a>
</div>
</div>
</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
var close_timeout = setTimeout(function() {
location.href = "{:U('menu/index')}";
}, 2000);
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('menu/index')}">{:L('ADMIN_MENU_INDEX')}</a></li>
<li><a href="{:U('menu/add')}">{:L('ADMIN_MENU_ADD')}</a></li>
<li class="active"><a>编辑菜单</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('Menu/edit_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">上级:</label>
<div class="controls">
<select name="parentid">
<option value="0">作为一级菜单</option>{$select_categorys}
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">名称:</label>
<div class="controls">
<input type="text" name="name" value="{$data.name}">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">应用:</label>
<div class="controls">
<input type="text" name="app" value="{$data.app}">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">控制器:</label>
<div class="controls">
<input type="text" name="model" value="{$data.model}">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">方法:</label>
<div class="controls">
<input type="text" name="action" value="{$data.action}">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">参数:</label>
<div class="controls">
<input type="text" name="data" value="{$data.data}"> 例:id=3&amp;p=3
</div>
</div>
<div class="control-group">
<label class="control-label">图标:</label>
<div class="controls">
<input type="text" name="icon" value="{$data.icon}">
<a href="http://www.thinkcmf.com/font/icons" target="_blank">选择图标</a> 不带前缀fa-,如fa-user => user
</div>
</div>
<div class="control-group">
<label class="control-label">备注:</label>
<div class="controls">
<textarea name="remark" rows="5" cols="57" style="width: 500px;">{$data.remark}</textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">状态:</label>
<div class="controls">
<select name="status">
<option value="1">显示</option>
<php>$status_selected=empty($data['status'])?"selected":"";</php>
<option value="0" {$status_selected}>隐藏</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">类型:</label>
<div class="controls">
<select name="type">
<option value="1">权限认证+菜单</option>
<php>$type_selected=empty($data['type'])?"selected":"";</php>
<option value="0" {$type_selected}>只作为菜单</option>
</select>
注意:“权限认证+菜单”表示加入后台权限管理,纯碎是菜单项请不要选择此项。
</div>
</div>
</fieldset>
<div class="form-actions">
<input type="hidden" name="id" value="{$data.id}" />
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
<!-- <button class="btn js-ajax-close-btn" type="submit">{:L('CLOSE')}</button> -->
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
$(function() {
$(".js-ajax-close-btn").on('click', function(e) {
e.preventDefault();
Wind.use("artDialog", function() {
art.dialog({
id : "question",
icon : "question",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : "您确定需要关闭当前页面嘛?",
ok : function() {
setCookie('refersh_time_admin_menu_index', 1);
window.close();
return true;
}
});
});
});
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<div id="error_tips">
<h2>菜单备份成功!</h2>
<div class="error_cont">
<ul>
<li>菜单备份成功!</li>
</ul>
<div class="error_return">
<a href="{:U('menu/index')}" class="btn">关闭</a>
</div>
</div>
</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
var close_timeout = setTimeout(function() {
location.href = "{:U('menu/index')}";
}, 2000);
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<div id="error_tips">
<h2>应用{$app}菜单导入成功!</h2>
<div class="error_cont">
<ul>
<if condition="!empty($newmenus)">
<foreach name="newmenus" item="vo">
<li>{$vo}</li>
</foreach>
<else />
<li>应用{$app}没有新菜单导入!</li>
</if>
</ul>
<if condition="!empty($nextapp)">
<script>
setTimeout(function() {
location.href = "{:U('admin/menu/getactions',array('app'=>$nextapp))}";
}, 1000);
</script>
<div class="error_return">
<a href="{:U('admin/menu/getactions',array('app'=>$nextapp))}" class="btn btn-primary">下一个应用</a>
<a href="{:U('admin/menu/index')}" class="btn" style="margin-left: 10px;">返回</a>
</div>
<else />
<div>全部导入成功!</div>
<div class="error_return">
<a href="{:U('menu/index')}" class="btn">返回</a>
</div>
</if>
</div>
</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<div id="error_tips">
<h2>
<if condition="empty($errormenus)">
菜单导入成功!
<else />
菜单导入失败!
</if>
</h2>
<div class="error_cont">
<ul>
<if condition="empty($errormenus)">
菜单导入成功!
<else />
<foreach name="errormenus" item="vo">
<li>{$vo}导入失败!</li>
</foreach>
</if>
</ul>
<div class="error_return">
<a href="{:U('menu/index')}" class="btn">返回</a>
</div>
</div>
</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<if condition="empty($errormenus)">
<script>
var close_timeout = setTimeout(function() {
location.href = "{:U('menu/index')}";
}, 2000);
</script>
</if>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:U('menu/index')}">{:L('ADMIN_MENU_INDEX')}</a></li>
<li><a href="{:U('menu/add')}">{:L('ADMIN_MENU_ADD')}</a></li>
<li><a href="{:U('menu/lists')}">{:L('ADMIN_MENU_LISTS')}</a></li>
</ul>
<form class="js-ajax-form" action="{:U('Menu/listorders')}" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit">{:L('SORT')}</button>
</div>
<table class="table table-hover table-bordered table-list" id="menus-table">
<thead>
<tr>
<th width="80">{:L('SORT')}</th>
<th width="50">ID</th>
<th>{:L('APP')}</th>
<th>{:L('NAME')}</th>
<th width="80">{:L('STATUS')}</th>
<th width="180">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
{$categorys}
</tbody>
<tfoot>
<tr>
<th width="80">{:L('SORT')}</th>
<th width="50">ID</th>
<th>{:L('APP')}</th>
<th>{:L('NAME')}</th>
<th width="80">{:L('STATUS')}</th>
<th width="180">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit">{:L('SORT')}</button>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
$(document).ready(function() {
Wind.css('treeTable');
Wind.use('treeTable', function() {
$("#menus-table").treeTable({
indent : 20
});
});
});
setInterval(function() {
var refersh_time = getCookie('refersh_time_admin_menu_index');
if (refersh_time == 1) {
reloadPage(window);
}
}, 1000);
setCookie('refersh_time_admin_menu_index', 0);
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('menu/index')}">后台菜单</a></li>
<li><a href="{:U('menu/add')}">添加菜单</a></li>
<li class="active"><a href="{:U('menu/lists')}">所有菜单</a></li>
</ul>
<form class="form-horizontal js-ajax-form" action="{:U('Menu/listorders')}" method="post">
<div class="table-actions">
<a class="btn btn-primary btn-small js-ajax-dialog-btn" href="{:U('menu/restore_menu')}" data-msg="您确定恢复已备份菜单吗?它将覆盖您已经更新的菜单!">恢复菜单</a>
<a class="btn btn-primary btn-small js-ajax-dialog-btn" href="{:U('menu/backup_menu')}" data-msg="您确定备份菜单吗?">备份菜单</a>
<a class="btn btn-primary btn-small js-ajax-dialog-btn" href="{:U('menu/export_menu_lang')}" data-msg="您确定生成菜单多语言包吗?请确保应用目录下Lang目录可写!">生成菜单多语言包</a>
<a class="btn btn-warning btn-small" href="{:U('menu/getactions')}">导入新菜单</a>
</div>
<div class="alert alert-warning" style="margin: 0 0 5px 0;">
请在开发人员指导下进行以上操作!
</div>
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th width="50">ID</th>
<th>菜单英文名称</th>
<th width="40">状态</th>
<th width="80">管理操作</th>
</tr>
</thead>
<foreach name="menus" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.name}:{$vo.app}/{$vo.model}/{$vo.action}</td>
<td>
<if condition="$vo['status'] eq 1">
显示
<else />
隐藏
</if>
</td>
<td>
<a href="{:U('menu/edit',array('id'=>$vo['id']))}">修改</a> |
<a class="js-ajax-delete" href="{:U('menu/delete',array('id'=>$vo['id']))}">删除</a>
</td>
</tr>
</foreach>
<tfoot>
<tr>
<th width="50">ID</th>
<th>菜单英文名称</th>
<th width="40">状态</th>
<th width="80">管理操作</th>
</tr>
</tfoot>
</table>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('nav/index')}">{:L('ADMIN_NAV_INDEX')}</a></li>
<li class="active"><a href="{:U('nav/add')}">{:L('ADMIN_NAV_ADD')}</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('nav/add_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('NAVIGATION_CATEGORY')}</label>
<div class="controls">
<select name="cid" id="navcid_select">
<foreach name="navcats" item="vo">
<php>$navcid_selected=$navcid==$vo['navcid']?"selected":"";</php>
<option value="{$vo.navcid}" {$navcid_selected}>{$vo.name}</option>
</foreach>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('PARENT')}</label>
<div class="controls">
<select name="parentid">
<option value="0">/</option>
{$nav_trees}
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('LABEL')}</label>
<div class="controls">
<input type="text" name="label" value=""><span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('HREF')}</label>
<div class="controls">
<input type="radio" name="nav" id="outlink_radio">
<input type="text" name="href" id="outlink_input" value="http://">
<input type="radio" name="nav" id="selecturl_radio">
<select name="href" id="selecthref">
<option value="{:base64_encode('home')}">{:L('HOME')}</option>
<foreach name="navs" item="vo">
<optgroup label="{$vo.name}">
{$vo.html}
</optgroup>
</foreach>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('TARGET')}</label>
<div class="controls">
<select name="target">
<option value="">{:L('TARGET_DEFAULT')}</option>
<option value="_blank">{:L('TARGET_BLANK')}</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('ICON')}</label>
<div class="controls">
<input type="text" name="icon" value="">
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('STATUS')}</label>
<div class="controls">
<select name="status">
<option value="1">{:L('DISPLAY')}</option>
<option value="0">{:L('HIDDEN')}</option>
</select>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
$(function() {
$("#navcid_select").change(function() {
if(location.search.indexOf("?")>=0){
location.href = location.href + "&cid=" + $(this).val();
}else{
location.href = location.href + "?cid=" + $(this).val();
}
});
$("#selecthref,#selecturl_radio").click(function() {
$('#outlink_input').removeAttr('name');
$(this).attr('name','href');
$('#selecturl_radio').attr({
'checked' : 'checked'
});
});
$("#outlink_input,#outlink_radio").click(function() {
$('#selecthref').removeAttr('name');
$('#outlink_input').attr('name','external_href');
$('#outlink_radio').attr({
'checked' : 'checked'
});
});
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('nav/index')}">{:L('ADMIN_NAV_INDEX')}</a></li>
<li><a href="{:U('nav/add')}">{:L('ADMIN_NAV_ADD')}</a></li>
<li class="active"><a>编辑菜单</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('nav/edit_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('NAVIGATION_CATEGORY')}</label>
<div class="controls">
<select name="cid" id="navcid_select">
<foreach name="navcats" item="vo">
<php>$navcid_selected=$navcid==$vo['navcid']?"selected":"";</php>
<option value="{$vo.navcid}" {$navcid_selected}>{$vo.name}</option>
</foreach>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('PARENT')}</label>
<div class="controls">
<select name="parentid">
<option value="0">/</option>
{$nav_trees}
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('LABEL')}</label>
<div class="controls">
<input type="text" name="label" value="{$label}"><span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('HREF')}</label>
<div class="controls">
<input type="radio" name="nav" id="outlink_radio">
<input type="text" name="href" id="outlink_input" value="http://">
<input type="radio" name="nav" id="selecturl_radio">
<select name="href" id="selecthref">
<option value="{:base64_encode('home')}">{:L('HOME')}</option>
<foreach name="navs" item="vo">
<optgroup label="{$vo.name}">
{$vo.html}
</optgroup>
</foreach>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('TARGET')}</label>
<div class="controls">
<select name="target">
<option value="">{:L('TARGET_DEFAULT')}</option>
<option value="_blank">{:L('TARGET_BLANK')}</option>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('ICON')}</label>
<div class="controls">
<input type="text" name="icon" value="{$icon}">
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('STATUS')}</label>
<div class="controls">
<select name="status">
<option value="1">{:L('DISPLAY')}</option>
<php>$status_selected=empty($status)?"selected":"";</php>
<option value="0" {$status_selected}>{:L('HIDDEN')}</option>
</select>
</div>
</div>
</fieldset>
<div class="form-actions">
<input type="hidden" name="id" value="{$id}">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
$(function() {
$("#navcid_select").change(function() {
if(location.search.indexOf("?")>=0){
location.href = location.href + "&cid=" + $(this).val();
}else{
location.href = location.href + "?cid=" + $(this).val();
}
});
$("#selecthref,#selecturl_radio").click(function() {
checkChange(2);
});
$("#outlink_input,#outlink_radio").click(function() {
checkChange(1);
});
var opt = $("#selecthref option[value='" + '{$href}' + "']");
if (opt.length > 0) {
opt.attr('selected', 'selected');
checkChange(2);
} else {
checkChange(1);
$('#outlink_input').val('{$hrefold}');
}
function checkChange(i) {
if (i == 1) {
//自动输入url
$('#outlink_input').attr('name', 'external_href');
$('#selecthref').removeAttr('name');
$('#outlink_radio').attr({
'checked' : 'checked'
});
} else {
//选择链接url
$('#selecthref').attr('name', 'href');
$('#outlink_input').removeAttr('name');
$('#selecturl_radio').attr({
'checked' : 'checked'
});
}
}
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:U('nav/index')}">{:L('ADMIN_NAV_INDEX')}</a></li>
<li><a href="{:U('nav/add',array('cid'=>$navcid))}">{:L('ADMIN_NAV_ADD')}</a></li>
</ul>
<form class="well form-search" id="mainform" action="{:U('nav/index')}" method="post">
<select id="navcid_select" name="cid">
<foreach name="navcats" item="vo"> <php>$navcid_selected=$navcid==$vo['navcid']?"selected":"";</php>
<option value="{$vo.navcid}"{$navcid_selected}>{$vo.name}</option>
</foreach>
</select>
</form>
<form class="js-ajax-form" action="{:U('nav/listorders')}" method="post">
<div class="table-actions">
<button type="submit" class="btn btn-primary btn-small js-ajax-submit">{:L('SORT')}</button>
</div>
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th width="50">{:L('SORT')}</th>
<th width="50">ID</th>
<th>{:L('NAVIGATION_NAME')}</th>
<th width="80">{:L('STATUS')}</th>
<th width="180">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
{$categorys}
</tbody>
<tfoot>
<tr>
<th width="50">{:L('SORT')}</th>
<th width="50">ID</th>
<th>{:L('NAVIGATION_NAME')}</th>
<th width="80">{:L('STATUS')}</th>
<th width="180">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button type="submit" class="btn btn-primary btn-small js-ajax-submit">{:L('SORT')}</button>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
$(function() {
$("#navcid_select").change(function() {
$("#mainform").submit();
});
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('navcat/index')}">{:L('ADMIN_NAVCAT_INDEX')}</a></li>
<li class="active"><a href="{:U('navcat/add')}">{:L('ADMIN_NAVCAT_ADD')}</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('navcat/add_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('CATEGORY_NAME')}</label>
<div class="controls">
<input type="text" name="name">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('DESCRIPTION')}</label>
<div class="controls">
<textarea name="remark" rows="5" cols="57"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('MAIN_NAVCAT')}</label>
<div class="controls">
<input type="checkbox" name="active" value="1" checked>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('navcat/index')}">{:L('ADMIN_NAVCAT_INDEX')}</a></li>
<li><a href="{:U('navcat/add')}">{:L('ADMIN_NAVCAT_ADD')}</a></li>
<li class="active"><a>编辑分类</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('navcat/edit_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('CATEGORY_NAME')}</label>
<div class="controls">
<input type="hidden" name="navcid" value="{$navcid}">
<input type="text" name="name" value="{$name}">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('DESCRIPTION')}</label>
<div class="controls">
<textarea name="remark" rows="5" cols="57">{$remark}</textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('MAIN_NAVCAT')}</label>
<div class="controls">
<php>$mainmenu_checked=$active?"checked":"";</php>
<input type="checkbox" name="active" value="1" {$mainmenu_checked}>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:U('navcat/index')}">{:L('ADMIN_NAVCAT_INDEX')}</a></li>
<li><a href="{:U('navcat/add')}">{:L('ADMIN_NAVCAT_ADD')}</a></li>
</ul>
<form class="form-horizontal js-ajax-form" method="post">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th width="100">ID</th>
<th>{:L('NAME')}</th>
<th>{:L('DESCRIPTION')}</th>
<th width="120">{:L('MAIN_NAVCAT')}</th>
<th width="120">{:L('ACTIONS')}</th>
</tr>
</thead>
<foreach name="navcats" item="vo">
<tr>
<td>{$vo.navcid}</td>
<td>{$vo.name}</td>
<td>{$vo.remark}</td>
<td><php>$mainmenu=$vo['active']?L('YES'):L('NO');</php> {$mainmenu}</td>
<td>
<a href="{:U('navcat/edit',array('id'=>$vo['navcid']))}">{:L('EDIT')}</a>|
<a href="{:U('navcat/delete',array('id'=>$vo['navcid']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
</tr>
</foreach>
</table>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:U('plugin/index')}">{:L('ADMIN_PLUGIN_INDEX')}</a></li>
<li><a href="http://www.thinkcmf.com/appstore/plugin.html" target="_blank">插件市场</a></li>
<li><a href="http://www.thinkcmf.com/topic/index/index/cat/9.html" target="_blank">{:L('PLUGIN_DISCUSSION')}</a></li>
<li><a href="http://www.thinkcmf.com/docs/cmfx/plugin.html" target="_blank">{:L('PLUGIN_DOCUMENT')}</a></li>
</ul>
<form method="post" class="js-ajax-form">
<php>
$status=array("1"=>L('ENABLED'),"0"=>L('DISABLED'),"3"=>L('UNINSTALLED'));
</php>
<table class="table table-hover table-bordered">
<thead>
<tr>
<th>{:L('NAME')}</th>
<th>{:L('TEXT_DOMAIN')}</th>
<th>{:L('HOOKS')}</th>
<th>{:L('DESCRIPTION')}</th>
<th>{:L('AUTHOR')}</th>
<th width="45">{:L('STATUS')}</th>
<th width="150">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<foreach name="plugins" item="vo">
<tr>
<td>{$vo.title}</td>
<td>{$vo.name}</td>
<td>{$vo.hooks}</td>
<td>{$vo.description}</td>
<td>{$vo.author}</td>
<td>{$status[$vo['status']]}</td>
<td>
<if condition="$vo['status']==3">
<a href="{:U('plugin/install',array('name'=>$vo['name']))}" class="js-ajax-dialog-btn" data-msg="确定安装该插件吗?">安装</a>
<else />
<php>$config=json_decode($vo['config'],true);</php>
<if condition="!empty($config)">
<a href="{:U('plugin/setting',array('id'=>$vo['id']))}">{:L('SETTING')}</a>|
<else/>
<a href="javascript:;" style="color: #ccc;">{:L('SETTING')}</a>|
</if>
<if condition="!empty($vo['has_admin'])">
<a href="javascript:parent.openapp('{:sp_plugin_url($vo['name'].'://AdminIndex/index')}','plugin_{$vo.name}','{$vo.title}')">管理</a>|
<else/>
<a href="javascript:;" style="color: #ccc;">管理</a>|
</if>
<a href="{:U('plugin/update',array('name'=>$vo['name']))}" class="js-ajax-dialog-btn" data-msg="确定更新该插件吗?">更新</a>|
<if condition="$vo['status']==0">
<a href="{:U('plugin/toggle',array('id'=>$vo['id'],'enable'=>1))}" class="js-ajax-dialog-btn" data-msg="确定启用该插件吗?">启用</a>|
<else/>
<a href="{:U('plugin/toggle',array('id'=>$vo['id'],'disable'=>1))}" class="js-ajax-dialog-btn" data-msg="确定禁用该插件吗?">禁用</a>|
</if>
<a href="{:U('plugin/uninstall',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定卸载该插件吗?">卸载</a>
</if>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('plugin/index')}">{:L('ADMIN_PLUGIN_INDEX')}</a></li>
<li class="active"><a>{:L('ADMIN_PLUGIN_SETTING')}</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('plugin/setting_post')}">
<empty name="custom_config">
<foreach name="data['config']" item="form">
<div class="control-group">
<label class="control-label" for="{$key}">
{$form.title|default=''}
</label>
<switch name="form.type">
<case value="text">
<div class="controls">
<input type="text" name="config[{$key}]" class="text input-large" value="{$form.value}" id="{$key}">
<present name="form.tip">
<span class="help-block">{$form.tip}</span>
</present>
</div>
</case>
<case value="password">
<div class="controls">
<input type="password" name="config[{$key}]" class="text input-large" value="{$form.value}" id="{$key}">
<present name="form.tip">
<span class="help-block">{$form.tip}</span>
</present>
</div>
</case>
<case value="hidden">
<input type="hidden" name="config[{$key}]" value="{$form.value}">
</case>
<case value="radio">
<div class="controls">
<foreach name="form.options" item="opt" key="opt_k">
<label class="radio inline">
<php>$radio_checked=$opt_k==$form['value']?"checked":"";</php>
<input type="radio" name="config[{$key}]" value="{$opt_k}" {$radio_checked}>{$opt}
</label>
</foreach>
<present name="form.tip">
<span class="help-block">{$form.tip}</span>
</present>
</div>
</case>
<case value="checkbox">
<div class="controls">
<foreach name="form.options" item="opt" key="opt_k">
<label class="checkbox inline">
<php>
is_null($form["value"]) && $form["value"] = array();
</php>
<input type="checkbox" name="config[{$key}][]" value="{$opt_k}" <in name="opt_k" value="$form.value"> checked</in>>{$opt}
</label>
</foreach>
<present name="form.tip">
<span class="help-block">{$form.tip}</span>
</present>
</div>
</case>
<case value="select">
<div class="controls">
<select name="config[{$key}]" id="{$key}">
<foreach name="form.options" item="opt" key="opt_k">
<option value="{$opt_k}" <eq name="form.value" value="$opt_k"> selected</eq>>{$opt}</option>
</foreach>
</select>
<present name="form.tip">
<span class="help-block">{$form.tip}</span>
</present>
</div>
</case>
<case value="textarea">
<div class="controls">
<textarea name="config[{$key}]" id="{$key}">{$form.value}</textarea>
<present name="form.tip">
<span class="help-block">{$form.tip}</span>
</present>
</div>
</case>
</switch>
</div>
</foreach>
<else />
<present name="custom_config">
{$custom_config}
</present>
</empty>
<input type="hidden" name="id" value="{:I('id')}" readonly>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
<a class="btn" href="javascript:history.back(-1);">返回</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header"/>
<style>.expander{margin-left: -20px;}</style>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('rbac/index')}">{:L('ADMIN_RBAC_INDEX')}</a></li>
<li><a href="{:U('rbac/roleadd')}">{:L('ADMIN_RBAC_ROLEADD')}</a></li>
<li class="active"><a href="javascript:;">{:L('ADMIN_RBAC_AUTHORIZE')}</a></li>
</ul>
<form class="js-ajax-form" action="{:U('rbac/authorize_post')}" method="post">
<div class="table_full">
<table class="table table-bordered" id="authrule-tree">
<tbody>
{$categorys}
</tbody>
</table>
</div>
<div class="form-actions">
<input type="hidden" name="roleid" value="{$roleid}" />
<button class="btn btn-primary js-ajax-submit" type="submit">{:L('SAVE')}</button>
<a class="btn" href="{:U('rbac/index')}">{:L('BACK')}</a>
</div>
</form>
</div>
<script type="text/javascript">
var ajaxForm_list = $('form.js-ajax-form');
if (ajaxForm_list.length) {
Wind.use('ajaxForm', 'artDialog', function () {
if ($.browser && $.browser.msie) {
//ie8及以下,表单中只有一个可见的input:text时,会整个页面会跳转提交
ajaxForm_list.on('submit', function (e) {
//表单中只有一个可见的input:text时,enter提交无效
e.preventDefault();
});
}
$('button.js-ajax-submit').bind('click', function (e) {
e.preventDefault();
/*var btn = $(this).find('button.js-ajax-submit'),
form = $(this);*/
var btn = $(this),
form = btn.parents('form.js-ajax-form');
//批量操作 判断选项
if (btn.data('subcheck')) {
btn.parent().find('span').remove();
if (form.find('input.js-check:checked').length) {
var msg = btn.data('msg');
if (msg) {
art.dialog({
id: 'warning',
icon: 'warning',
content: btn.data('msg'),
cancelVal: "{:L('CLOSE')}",
cancel: function () {
btn.data('subcheck', false);
btn.click();
}
});
} else {
btn.data('subcheck', false);
btn.click();
}
} else {
$('<span class="tips_error">请至少选择一项</span>').appendTo(btn.parent()).fadeIn('fast');
}
return false;
}
//ie处理placeholder提交问题
if ($.browser && $.browser.msie) {
form.find('[placeholder]').each(function () {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
});
}
form.ajaxSubmit({
url: btn.data('action') ? btn.data('action') : form.attr('action'),
//按钮上是否自定义提交地址(多按钮情况)
dataType: 'json',
beforeSubmit: function (arr, $form, options) {
var text = btn.text();
//按钮文案、状态修改
btn.text(text + '中...').attr('disabled', true).addClass('disabled');
},
success: function (data, statusText, xhr, $form) {
var text = btn.text();
//按钮文案、状态修改
btn.removeClass('disabled').text(text.replace('中...', '')).parent().find('span').remove();
if (data.state === 'success') {
$('<span class="tips_success">' + data.info + '</span>').appendTo(btn.parent()).fadeIn('slow').delay(1000).fadeOut(function () {
if (data.referer) {
//返回带跳转地址
if (window.parent.art) {
//iframe弹出页
window.parent.location.href = data.referer;
} else {
window.location.href = data.referer;
}
} else {
if (window.parent.art) {
reloadPage(window.parent);
} else {
//刷新当前页
reloadPage(window);
}
}
});
} else if (data.state === 'fail') {
$('<span class="tips_error">' + data.info + '</span>').appendTo(btn.parent()).fadeIn('fast');
btn.removeProp('disabled').removeClass('disabled');
}
}
});
});
});
}
$(document).ready(function () {
Wind.css('treeTable');
Wind.use('treeTable', function () {
$("#authrule-tree").treeTable({
indent: 20
});
});
});
function checknode(obj) {
var chk = $("input[type='checkbox']");
var count = chk.length;
var num = chk.index(obj);
var level_top = level_bottom = chk.eq(num).attr('level');
for (var i = num; i >= 0; i--) {
var le = chk.eq(i).attr('level');
if (le <level_top) {
chk.eq(i).prop("checked", true);
var level_top = level_top - 1;
}
}
for (var j = num + 1; j < count; j++) {
var le = chk.eq(j).attr('level');
if (chk.eq(num).prop("checked")) {
if (le > level_bottom){
chk.eq(j).prop("checked", true);
}
else if (le == level_bottom){
break;
}
} else {
if (le >level_bottom){
chk.eq(j).prop("checked", false);
}else if(le == level_bottom){
break;
}
}
}
}
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:U('rbac/index')}">{:L('ADMIN_RBAC_INDEX')}</a></li>
<li><a href="{:U('rbac/roleadd')}">{:L('ADMIN_RBAC_ROLEADD')}</a></li>
</ul>
<form action="{:U('Rbac/listorders')}" method="post">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th width="30">ID</th>
<th align="left">{:L('ROLE_NAME')}</th>
<th align="left">{:L('ROLE_DESCRIPTION')}</th>
<th width="40" align="left">{:L('STATUS')}</th>
<th width="120">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<foreach name="roles" item="vo">
<tr>
<td>{$vo.id}</td>
<td>{$vo.name}</td>
<td>{$vo.remark}</td>
<td>
<if condition="$vo['status'] eq 1">
<font color="red"></font>
<else />
<font color="red"></font>
</if>
</td>
<td>
<if condition="$vo['id'] eq 1">
<font color="#cccccc">{:L('ROLE_SETTING')}</font>|<!-- <a href="javascript:open_iframe_dialog('{:U('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a> | -->
<font color="#cccccc">{:L('EDIT')}</font> | <font color="#cccccc">{:L('DELETE')}</font>
<else />
<a href="{:U('Rbac/authorize',array('id'=>$vo['id']))}">{:L('ROLE_SETTING')}</a>|
<!-- <a href="javascript:open_iframe_dialog('{:U('rbac/member',array('id'=>$vo['id']))}','成员管理');">成员管理</a>| -->
<a href="{:U('Rbac/roleedit',array('id'=>$vo['id']))}">{:L('EDIT')}</a>|
<a class="js-ajax-delete" href="{:U('Rbac/roledelete',array('id'=>$vo['id']))}">{:L('DELETE')}</a>
</if>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body style="min-width: 600px;">
<div class="wrap">
<form method="post" class="js-ajax-form">
<table class="table table-hover">
<thead>
<tr>
<th align="center">ID</th>
<th>用户名</th>
<th>昵称</th>
<th>E-mail</th>
<th>角色名称</th>
<th align='center'>操作</th>
</tr>
</thead>
<tbody>
<foreach name="lists" item="vo">
<tr>
<td align="center">{$vo.id}</td>
<td>{$vo.user_login}</td>
<td>{$vo.user_nicename}</td>
<td>{$vo.user_email}</td>
<!-- <td>{:date('Y-m-d H:i:s', $vo['create_time'])}</td> -->
<td>{$vo.name}</td>
<td align="center">
<a href="{:U('user/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">删除</a>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('rbac/index')}">{:L('ADMIN_RBAC_INDEX')}</a></li>
<li class="active"><a href="{:U('rbac/roleadd')}">{:L('ADMIN_RBAC_ROLEADD')}</a></li>
</ul>
<form class="form-horizontal js-ajax-form" action="{:U('Rbac/roleadd_post')}" method="post">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('ROLE_NAME')}</label>
<div class="controls">
<input type="text" name="name" value="" id="rolename"/>
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('ROLE_DESCRIPTION')}</label>
<div class="controls">
<textarea name="remark" rows="2" cols="20" id="remark" class="inputtext" style="height: 100px; width: 500px;"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('STATUS')}</label>
<div class="controls">
<label class="radio inline" for="active_true"><input type="radio" name="status" value="1" checked id="active_true" />{:L('ENABLED')}</label>
<label class="radio inline" for="active_false"><input type="radio" name="status" value="0" id="active_false">{:L('DISABLED')}</label>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('ADD')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('rbac/index')}">{:L('ADMIN_RBAC_INDEX')}</a></li>
<li><a href="{:U('rbac/roleadd')}">{:L('ADMIN_RBAC_ROLEADD')}</a></li>
<li class="active"><a>编辑角色</a></li>
</ul>
<form class="form-horizontal js-ajax-form" action="{:U('Rbac/roleedit_post')}" method="post">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('ROLE_NAME')}</label>
<div class="controls">
<input type="text" name="name" value="{$data.name}">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('ROLE_DESCRIPTION')}</label>
<div class="controls">
<textarea name="remark" rows="2" cols="20" style="height: 100px; width: 500px;">{$data.remark}</textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('STATUS')}</label>
<div class="controls">
<php>$active_true_checked=($data['status']==1)?"checked":"";</php>
<label class="radio inline" for="active_true">
<input type="radio" name="status" value="1" {$active_true_checked} id="active_true"/>{:L('ENABLED')}
</label>
<php>$active_false_checked=($data['status']==0)?"checked":"";</php>
<label class="radio inline" for="active_false">
<input type="radio" name="status" value="0" id="active_false"{$active_false_checked}>{:L('DISABLED')}
</label>
</div>
</div>
</fieldset>
<div class="form-actions">
<input type="hidden" name="id" value="{$data.id}"/>
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('setting/site')}">网站信息</a></li>
<li><a href="{:U('route/index')}">URL美化</a></li>
<li class="active"><a href="{:U('route/add')}">添加URL规则</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('route/add_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">原始网址:</label>
<div class="controls">
<input type="text" name="full_url" value=""><span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">显示网址:</label>
<div class="controls">
<input type="text" name="url" value=""><span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">是否启用:</label>
<div class="controls">
<select name="status">
<option value="1">启用</option>
<option value="0">禁用</option>
</select>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">添加</button>
<a class="btn" href="javascript:history.back(-1);">返回</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('setting/site')}">网站信息</a></li>
<li><a href="{:U('route/index')}">URL美化</a></li>
<li><a href="{:U('route/add')}">添加URL规则</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('route/edit_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">原始网址:</label>
<div class="controls">
<input type="text" name="full_url" value="{$full_url}"><span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">显示网址:</label>
<div class="controls">
<input type="text" name="url" value="{$url}"><span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">是否启用:</label>
<div class="controls">
<select name="status">
<option value="1">启用</option>
<php>$status_selected=$status?"":"selected";</php>
<option value="0" {$status_selected}>禁用</option>
</select>
</div>
</div>
</fieldset>
<div class="form-actions">
<input type="hidden" name="id" value="{$id}">
<button type="submit" class="btn btn-primary js-ajax-submit">保存</button>
<a class="btn" href="javascript:history.back(-1);">返回</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('setting/site')}">网站信息</a></li>
<li class="active"><a href="{:U('route/index')}">URL美化</a></li>
<li><a href="{:U('route/add')}">添加URL规则</a></li>
</ul>
<form class="js-ajax-form" action="{:U('route/listorders')}" method="post">
<div class="table-actions">
<button type="submit" class="btn btn-primary btn-small js-ajax-submit">排序</button>
</div>
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th width="50">排序</th>
<th width="50">ID</th>
<th>原始网址</th>
<th>显示网址</th>
<th>状态</th>
<th width="120">操作</th>
</tr>
</thead>
<tbody>
<php>$statuses=array('0'=>"已禁用","1"=>"已启用");</php>
<foreach name="routes" item="vo">
<tr>
<td><input name='listorders[{$vo.id}]'
class="input input-order mr5" type='text' size='3'
value='{$vo.listorder}'></td>
<td>{$vo.id}</td>
<td>{$vo.full_url}</td>
<td>{$vo.url}</td>
<td>{$statuses[$vo['status']]}</td>
<td>
<a href="{:U('route/edit',array('id'=>$vo['id']))}">修改</a>|
<a href="{:U('route/open',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定启用吗?">启用</a>|
<a href="{:U('route/ban',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="确定禁用吗?">禁用</a>|
<a href="{:U('route/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">删除</a>
</td>
</tr>
</foreach>
</tbody>
<tfoot>
<tr>
<th width="50">排序</th>
<th width="50">ID</th>
<th>原始网址</th>
<th>显示网址</th>
<th>状态</th>
<th width="120">操作</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button type="submit" class="btn btn-primary btn-small js-ajax-submit">排序</button>
</div>
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
<style>
li {
list-style: none;
}
</style>
</head>
<body>
<div class="wrap">
<div id="error_tips">
<h2>{:L('CACHE_CLEARED')}</h2>
<div class="error_cont">
<ul>
<li>{:L('CACHE_CLEARED')}</li>
</ul>
<div class="error_return">
<a href="javascript:close_app();" class="btn">{:L('CLOSE')}</a>
</div>
</div>
</div>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
var close_timeout = setTimeout(function() {
parent.close_current_app();
}, 3000);
function close_app() {
clearTimeout(close_timeout);
parent.close_current_app();
}
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('User/userinfo')}">{:L('ADMIN_USER_USERINFO')}</a></li>
<li class="active"><a href="{:U('setting/password')}">{:L('ADMIN_SETTING_PASSWORD')}</a></li>
</ul>
<form class="form-horizontal js-ajax-form" method="post" action="{:U('setting/password_post')}">
<fieldset>
<div class="control-group">
<label class="control-label" for="input-old-password">{:L('OLD_PASSWORD')}</label>
<div class="controls">
<input type="password" class="input-xlarge" id="input-old-password" name="old_password">
</div>
</div>
<div class="control-group">
<label class="control-label" for="input-password">{:L('NEW_PASSWORD')}</label>
<div class="controls">
<input type="password" class="input-xlarge" id="input-password" name="password">
</div>
</div>
<div class="control-group">
<label class="control-label" for="input-repassword">{:L('CONFIRM_PASSWORD')}</label>
<div class="controls">
<input type="password" class="input-xlarge" id="input-repassword" name="repassword">
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
</div>
</fieldset>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="#A" data-toggle="tab">{:L('WEB_SITE_INFOS')}</a></li>
<li><a href="#B" data-toggle="tab">{:L('SEO_SETTING')}</a></li>
<li><a href="#C" data-toggle="tab">{:L('URL_SETTING')}</a></li>
<li><a href="{:U('route/index')}">{:L('URL_OPTIMIZATION')}</a></li>
<!-- <li><a href="#D" data-toggle="tab">{:L('UCENTER_SETTING')}</a></li> -->
<li><a href="#E" data-toggle="tab">{:L('COMMENT_SETTING')}</a></li>
<li><a href="#F" data-toggle="tab">{:L("USERNAME_FILTER")}</a></li>
<li><a href="#G" data-toggle="tab">CDN设置</a></li>
</ul>
<form class="form-horizontal js-ajax-forms" action="{:U('setting/site_post')}" method="post">
<fieldset>
<div class="tabbable">
<div class="tab-content">
<div class="tab-pane active" id="A">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('WEBSITE_NAME')}</label>
<div class="controls">
<input type="text" name="options[site_name]" value="{$site_name}"><span class="form-required">*</span>
<php>if($option_id):</php>
<input type="hidden" name="option_id" value="{$option_id}">
<php>endif;</php>
</div>
</div>
<div class="control-group">
<label class="control-label">后台地址加密码:</label>
<div class="controls">
<input type="text" name="options[site_admin_url_password]" value="{$site_admin_url_password}" id="js-site-admin-url-password"><span class="form-required">*</span>
<span class="help-block" style="color: red;">设置加密码后必须通过以下地址访问后台,请劳记此地址,为了安全,您也可以定期更换此加密码!</span>
<php>$site_admin_url_password =C("SP_SITE_ADMIN_URL_PASSWORD");</php>
<if condition="!empty($site_admin_url_password)">
<span class="help-block">后台地址:<span id="js-site-admin-url">{:sp_get_host()}__ROOT__?g=admin&upw={:C('SP_SITE_ADMIN_URL_PASSWORD')}</span></span>
</if>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('WEBSITE_THEME')}</label>
<div class="controls">
<select name="options[site_tpl]">
<foreach name="templates" item="vo">
<php>$tpl_selected=$site_tpl==$vo?"selected":"";</php>
<option value="{$vo}" {$tpl_selected}>{$vo}</option>
</foreach>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('ENABLE_MOBILE_THEME')}:</label>
<div class="controls">
<php>$mobile_tpl_enabled_checked=empty($mobile_tpl_enabled)?'':'checked';</php>
<label class="checkbox inline"><input type="checkbox" name="options[mobile_tpl_enabled]" value="1" {$mobile_tpl_enabled_checked}></label>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('WEBSITE_ADMIN_THEME')}</label>
<div class="controls">
<php>$site_adminstyle=empty($site_adminstyle)?'flat':$site_adminstyle;</php>
<select name="options[site_adminstyle]">
<foreach name="adminstyles" item="vo">
<php>$adminstyle_selected=$site_adminstyle==$vo?"selected":"";</php>
<option value="{$vo}" {$adminstyle_selected}>{$vo}</option>
</foreach>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('HTML_CACHE')}:</label>
<div class="controls">
<php>$html_cache_on_checked=empty($html_cache_on)?'':'checked';</php>
<label class="checkbox inline"><input type="checkbox" name="options[html_cache_on]" value="1" {$html_cache_on_checked}></label>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('WEBSITE_ICP')}</label>
<div class="controls">
<input type="text" name="options[site_icp]" value="{$site_icp}">
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('WEBMASTER_EMAIL')}</label>
<div class="controls">
<input type="text" name="options[site_admin_email]" value="{$site_admin_email}">
</div>
</div>
<div class="control-group">
<label class="control-label">{:L("WEBSITE_STATISTICAL_CODE")}</label>
<div class="controls">
<textarea name="options[site_tongji]" rows="5" cols="57">{$site_tongji}</textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('WEBSITE_COPYRIGHT_INFOMATION')}</label>
<div class="controls">
<textarea name="options[site_copyright]" rows="5" cols="57">{$site_copyright}</textarea>
</div>
</div>
</fieldset>
</div>
<div class="tab-pane" id="B">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('WEBSITE_SEO_TITLE')}</label>
<div class="controls">
<input type="text" name="options[site_seo_title]" value="{$site_seo_title}">
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('WEBSITE_SEO_KEYWORDS')}</label>
<div class="controls">
<input type="text" name="options[site_seo_keywords]" value="{$site_seo_keywords}">
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('WEBSITE_SEO_DESCRIPTION')}</label>
<div class="controls">
<textarea name="options[site_seo_description]" rows="5" cols="57">{$site_seo_description}</textarea>
</div>
</div>
</fieldset>
</div>
<div class="tab-pane" id="C">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('URL_MODE')}</label>
<div class="controls">
<php>$urlmodes=array( "0"=>L('URL_NORMAL_MODE'), "1"=>L('URL_PATHINFO_MODE'), "2"=>L('URL_REWRITE_MODE'));</php>
<select name="options[urlmode]">
<foreach name="urlmodes" item="vo">
<php>$urlmode_selected=$key==$urlmode?"selected":"";</php>
<option value="{$key}" {$urlmode_selected}>{$vo}</option>
</foreach>
</select>
<span class="form-required">* {:L('URL_MODE_HELP_TEXT')}</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('URL_REWRITE_SUFFIX')}</label>
<div class="controls">
<input type="text" name="options[html_suffix]" value="{$html_suffix}">
<span class="form-required">{:L('URL_REWRITE_SUFFIX_HELP_TEXT')}</span>
</div>
</div>
</fieldset>
</div>
<div class="tab-pane" id="E">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('COMMENT_CHECK')}</label>
<div class="controls">
<php>$comment_need_checked=empty($comment_need_check)?"":"checked";</php>
<input type="checkbox" class="js-check" name="options[comment_need_check]" value="1" {$comment_need_checked}>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('COMMENT_TIME_INTERVAL')}</label>
<div class="controls">
<input type="number" name="options[comment_time_interval]" value="{$comment_time_interval|default=60}" style="width:40px;">{:L('SECONDS')}
</div>
</div>
</fieldset>
</div>
<div class="tab-pane" id="F">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('SPECAIL_USERNAME')}</label>
<div class="controls">
<textarea name="cmf_settings[banned_usernames]" rows="5" cols="57">{$cmf_settings.banned_usernames}</textarea>
</div>
</div>
</fieldset>
</div>
<div class="tab-pane" id="G">
<fieldset>
<div class="control-group">
<label class="control-label">静态资源cdn地址</label>
<div class="controls">
<input type="text" name="cdn_settings[cdn_static_root]" value="{$cdn_settings.cdn_static_root}">
<span class="help-block">
不能以/结尾;设置这个地址后,请将ThinkCMF下的静态资源文件放在其下面;<br>
ThinkCMF下的静态资源文件大致包含以下(如果你自定义后,请自行增加):<br>
admin/themes/simplebootx/Public/assets<br>
public<br>
themes/simplebootx/Public/assets<br>
例如未设置cdn前:jquery的访问地址是/public/js/jquery.js, 设置cdn是后它的访问地址就是:静态资源cdn地址+/public/js/jquery.js
</span>
</div>
</div>
</fieldset>
</div>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L("SAVE")}</button>
</div>
</fieldset>
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script>
/////---------------------
$(function(){
$("#urlmode-select").change(function(){
if($(this).val()==1){
alert("更改后,若发现前台链接不能正常访问,可能是您的服务器不支持PATHINFO,请先修改data/conf/config.php文件的URL_MODEL为0保证网站正常运行,在配置服务器PATHINFO功能后再更新为PATHINFO模式!");
}
if($(this).val()==2){
alert("更改后,若发现前台链接不能正常访问,可能是您的服务器不支持REWRITE,请先修改data/conf/config.php文件的URL_MODEL为0保证网站正常运行,在开启服务器REWRITE功能后再更新为REWRITE模式!");
}
});
$("#js-site-admin-url-password").change(function(){
$(this).data("changed",true);
});
});
Wind.use('validate', 'ajaxForm', 'artDialog', function() {
//javascript
var form = $('form.js-ajax-forms');
//ie处理placeholder提交问题
if ($.browser && $.browser.msie) {
form.find('[placeholder]').each(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
});
}
//表单验证开始
form.validate({
//是否在获取焦点时验证
onfocusout : false,
//是否在敲击键盘时验证
onkeyup : false,
//当鼠标掉级时验证
onclick : false,
//验证错误
showErrors : function(errorMap, errorArr) {
//errorMap {'name':'错误信息'}
//errorArr [{'message':'错误信息',element:({})}]
try {
$(errorArr[0].element).focus();
art.dialog({
id : 'error',
icon : 'error',
lock : true,
fixed : true,
background : "#CCCCCC",
opacity : 0,
content : errorArr[0].message,
cancelVal : "{:L('OK')}",
cancel : function() {
$(errorArr[0].element).focus();
}
});
} catch (err) {
}
},
//验证规则
rules : {
'options[site_name]' : {
required : 1
},
'options[site_host]' : {
required : 1
},
'options[site_root]' : {
required : 1
}
},
//验证未通过提示消息
messages : {
'options[site_name]' : {
required : "{:L('WEBSITE_SITE_NAME_REQUIRED_MESSAGE')}"
},
'options[site_host]' : {
required : "{:L('WEBSITE_SITE_HOST_REQUIRED_MESSAGE')}"
}
},
//给未通过验证的元素加效果,闪烁等
highlight : false,
//是否在获取焦点时验证
onfocusout : false,
//验证通过,提交表单
submitHandler : function(forms) {
$(forms).ajaxSubmit({
url : form.attr('action'), //按钮上是否自定义提交地址(多按钮情况)
dataType : 'json',
beforeSubmit : function(arr, $form, options) {
},
success : function(data, statusText, xhr, $form) {
if (data.status) {
setCookie("refersh_time", 1);
var admin_url_changed=$("#js-site-admin-url-password").data("changed");
var message =admin_url_changed?data.info+'<br><span style="color:red;">后台地址已更新(请劳记!)</span>':data.info;
//添加成功
Wind.use("artDialog", function() {
art.dialog({
id : "succeed",
icon : "succeed",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : message,
button : [ {
name : "{:L('OK')}",
callback : function() {
reloadPage(window);
return true;
},
focus : true
}, {
name : "{:L('CLOSE')}",
callback : function() {
reloadPage(window);
return true;
}
} ]
});
});
} else {
alert(data.info);
}
}
});
}
});
});
////-------------------------
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a>上传设置</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('setting/upload_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">图片文件</label>
<div class="controls">
<input type="text" name="image[upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$image.upload_max_filesize|default=10240}">
<input type="text" name="image[extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$image.extensions|default='jpg,jpeg,png,gif,bmp'}">
<span class="form-required">*</span>
<span class="help-block">允许上传大小默认为10240KB,1M=1024KB,允许上传格式默认为jpg,jpeg,png,gif,bmp</span>
</div>
</div>
<div class="control-group">
<label class="control-label">视频文件</label>
<div class="controls">
<input type="text" name="video[upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$video.upload_max_filesize|default=10240}">
<input type="text" name="video[extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$video.extensions|default='mp4,avi,wmv,rm,rmvb,mkv'}">
<span class="form-required">*</span>
<span class="help-block">允许上传大小默认为102400KB,1M=1024KB,允许上传格式默认为mp4,avi,wmv,rm,rmvb,mkv</span>
</div>
</div>
<div class="control-group">
<label class="control-label">音频文件</label>
<div class="controls">
<input type="text" name="audio[upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$audio.upload_max_filesize|default=10240}">
<input type="text" name="audio[extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$audio.extensions|default='mp3,wma,wav'}">
<span class="form-required">*</span>
<span class="help-block">允许上传大小默认为10240KB,1M=1024KB,允许上传格式默认为mp3,wma,wav</span>
</div>
</div>
<div class="control-group">
<label class="control-label">附件</label>
<div class="controls">
<input type="text" name="file[upload_max_filesize]" title="允许上传大小KB,1M=1024KB" placeholder="允许上传大小KB,1M=1024KB" value="{$file.upload_max_filesize|default=10240}">
<input type="text" name="file[extensions]" title="扩展名,以英文逗号分隔" placeholder="扩展名,以英文逗号分隔" value="{$file.extensions|default='txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar'}">
<span class="form-required">*</span>
<span class="help-block">允许上传大小默认为10240KB,1M=1024KB,允许上传格式默认为除以上文档类型以外的其它常用文件,如:txt,pdf,doc,docx,xls,xlsx,ppt,pptx,zip,rar</span>
</div>
</div>
</fieldset>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('slide/index')}">{:L('ADMIN_SLIDE_INDEX')}</a></li>
<li class="active"><a href="{:U('slide/add')}">{:L('ADMIN_SLIDE_ADD')}</a></li>
</ul>
<form action="{:U('slide/add_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
<div class="row-fluid">
<div class="span9">
<table class="table table-bordered">
<tr>
<th width="80">分类</th>
<td>
<select name="slide_cid">
<option value="0">默认分类</option>
<foreach name="categorys" item="vo">
<option value="{$vo.cid}">{$vo.cat_name}</option>
</foreach>
</select>
</td>
</tr>
<tr>
<th>{:L('TITLE')}</th>
<td>
<input type="text" style="width: 400px;" name="slide_name" value="" placeholder="请输入幻灯片名称"/>
<span class="form-required">*</span>
</td>
</tr>
<tr>
<th>{:L('LINK')}</th>
<td><input type="text" name="slide_url" value="" style="width: 400px"></td>
</tr>
<tr>
<th>{:L('DESCRIPTION')}</th>
<td><input type="text" name="slide_des" value="" style="width: 400px"></td>
</tr>
<tr>
<th>幻灯片内容</th>
<td><textarea name="slide_content" style="width: 98%; height: 200px;"></textarea></td>
</tr>
</table>
</div>
<div class="span3">
<table class="table table-bordered">
<tr>
<th>缩略图</th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="slide_pic" id="thumb" value="">
<a href="javascript:upload_one_image('图片上传','#thumb');">
<img src="__TMPL__Public/assets/images/default-thumbnail.png" id="thumb-preview" width="135" style="cursor: hand" />
</a>
<input type="button" class="btn btn-small" onclick="$('#thumb-preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb').val('');return false;" value="取消图片">
</div>
</td>
</tr>
</table>
</div>
</div>
<div class="form-actions">
<button class="btn btn-primary js-ajax-submit" type="submit">{:L("ADD")}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
$(function() {
$(".js-ajax-close-btn").on('click', function(e) {
e.preventDefault();
Wind.use("artDialog", function() {
art.dialog({
id : "question",
icon : "question",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : "您确定需要关闭当前页面嘛?",
ok : function() {
setCookie("refersh_time", 1);
window.close();
return true;
}
});
});
});
/////---------------------
Wind.use('validate', 'ajaxForm', 'artDialog', function() {
//javascript
var form = $('form.js-ajax-forms');
//ie处理placeholder提交问题
if ($.browser && $.browser.msie) {
form.find('[placeholder]').each(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
});
}
var formloading = false;
//表单验证开始
form.validate({
//是否在获取焦点时验证
onfocusout : false,
//是否在敲击键盘时验证
onkeyup : false,
//当鼠标掉级时验证
onclick : false,
//验证错误
showErrors : function(errorMap, errorArr) {
//errorMap {'name':'错误信息'}
//errorArr [{'message':'错误信息',element:({})}]
try {
$(errorArr[0].element).focus();
art.dialog({
id : 'error',
icon : 'error',
lock : true,
fixed : true,
background : "#CCCCCC",
opacity : 0,
content : errorArr[0].message,
cancelVal : '确定',
cancel : function() {
$(errorArr[0].element).focus();
}
});
} catch (err) {
}
},
//验证规则
rules : {
'slide_name' : {
required : 1
}
},
//验证未通过提示消息
messages : {
'slide_name' : {
required : '请输入名称'
}
},
//给未通过验证的元素加效果,闪烁等
highlight : false,
//是否在获取焦点时验证
onfocusout : false,
//验证通过,提交表单
submitHandler : function(forms) {
if (formloading)
return;
$(forms).ajaxSubmit({
url : form.attr('action'), //按钮上是否自定义提交地址(多按钮情况)
dataType : 'json',
beforeSubmit : function(arr, $form, options) {
formloading = true;
},
success : function(data, statusText, xhr, $form) {
formloading = false;
if (data.status) {
setCookie("refersh_time", 1);
//添加成功
Wind.use("artDialog", function() {
art.dialog({
id : "succeed",
icon : "succeed",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : data.info,
button : [ {
name : '继续添加?',
callback : function() {
reloadPage(window);
return true;
},
focus : true
}, {
name : '返回列表',
callback : function() {
location.href = "{:U('slide/index')}";
return true;
}
} ]
});
});
} else {
artdialog_alert(data.info);
}
}
});
}
});
});
////-------------------------
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header"/>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('slide/index')}">{:L('ADMIN_SLIDE_INDEX')}</a></li>
<li><a href="{:U('slide/add')}">{:L('ADMIN_SLIDE_ADD')}</a></li>
<li class="active"><a>编辑幻灯片</a></li>
</ul>
<form action="{:U('slide/edit_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
<div class="row-fluid">
<div class="span9">
<table class="table table-bordered">
<tr>
<th width="80">分类</th>
<td>
<select name="slide_cid">
<option value="0">默认分类</option>
<foreach name="categorys" item="vo">
<php>$cid_selected=$slide_cid==$vo['cid']?"selected":"";</php>
<option value="{$vo.cid}"{$cid_selected}>{$vo.cat_name}</option>
</foreach>
</select>
</td>
</tr>
<tr>
<th width="80">幻灯片名称</th>
<td>
<input type="text" style="width: 400px;" name="slide_name" value="{$slide_name}" placeholder="请输入幻灯片名称"/>
<span class="form-required">*</span>
<input type="hidden" name="slide_id" value="{$slide_id}"/>
</td>
</tr>
<tr>
<th width="80">链接地址:</th>
<td><input type="text" name="slide_url" value="{$slide_url}" style="width: 400px"></td>
</tr>
<tr>
<th width="80">描述</th>
<td><input type="text" name="slide_des" value="{$slide_des}" style="width: 400px"></td>
</tr>
<tr>
<th width="80">幻灯片内容</th>
<td><textarea name="slide_content" id="description" style="width: 98%; height: 200px;">{$slide_content}</textarea></td>
</tr>
</table>
</div>
<div class="span3">
<table class="table table-bordered">
<tr>
<td><b>缩略图</b></td>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="slide_pic" id="thumb" value="{$slide_pic}">
<a href="javascript:upload_one_image('图片上传','#thumb');">
<if condition="empty($slide_pic)">
<img src="__TMPL__Public/assets/images/default-thumbnail.png" id="thumb-preview" width="135" style="cursor: hand"/>
<else />
<img src="{:sp_get_image_preview_url($slide_pic)}" id="thumb-preview" width="135" style="cursor: hand; height: 113px;"/>
</if>
</a>
<input type="button" class="btn btn-small" onclick="$('#thumb-preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb').val('');return false;" value="取消图片">
</div>
</td>
</tr>
</table>
</div>
</div>
<div class="form-actions">
<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
<a class="btn" href="javascript:history.back(-1);">返回</a>
</div>
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
$(function() {
$(".js-ajax-close-btn").on('click', function(e) {
e.preventDefault();
Wind.use("artDialog", function() {
art.dialog({
id : "question",
icon : "question",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : "您确定需要关闭当前页面嘛?",
ok : function() {
setCookie("refersh_time", 1);
window.close();
return true;
}
});
});
});
/////---------------------
Wind.use('validate', 'ajaxForm', 'artDialog', function() {
//javascript
var form = $('form.js-ajax-forms');
//ie处理placeholder提交问题
if ($.browser && $.browser.msie) {
form.find('[placeholder]').each(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
});
}
//表单验证开始
form.validate({
//是否在获取焦点时验证
onfocusout : false,
//是否在敲击键盘时验证
onkeyup : false,
//当鼠标掉级时验证
onclick : false,
//验证错误
showErrors : function(errorMap, errorArr) {
//errorMap {'name':'错误信息'}
//errorArr [{'message':'错误信息',element:({})}]
try {
$(errorArr[0].element).focus();
art.dialog({
id : 'error',
icon : 'error',
lock : true,
fixed : true,
background : "#CCCCCC",
opacity : 0,
content : errorArr[0].message,
cancelVal : '确定',
cancel : function() {
$(errorArr[0].element).focus();
}
});
} catch (err) {
}
},
//验证规则
rules : {
'slide_name' : {
required : 1
}
},
//验证未通过提示消息
messages : {
'slide_name' : {
required : '请输入名称'
}
},
//给未通过验证的元素加效果,闪烁等
highlight : false,
//是否在获取焦点时验证
onfocusout : false,
//验证通过,提交表单
submitHandler : function(forms) {
$(forms).ajaxSubmit({
url : form.attr('action'), //按钮上是否自定义提交地址(多按钮情况)
dataType : 'json',
beforeSubmit : function(arr, $form, options) {
},
success : function(data, statusText, xhr, $form) {
if (data.status) {
setCookie("refersh_time", 1);
//添加成功
Wind.use("artDialog", function() {
art.dialog({
id : "succeed",
icon : "succeed",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : data.info,
button : [ {
name : '继续编辑?',
callback : function() {
reloadPage(window);
return true;
},
focus : true
}, {
name : '返回列表',
callback : function() {
location.href = "{:U('slide/index')}";
return true;
}
} ]
});
});
} else {
artdialog_alert(data.info);
}
}
});
}
});
});
////-------------------------
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:U('slide/index')}">{:L('ADMIN_SLIDE_INDEX')}</a></li>
<li><a href="{:U('slide/add')}">{:L('ADMIN_SLIDE_ADD')}</a></li>
</ul>
<form class="well form-search" method="post" id="cid-form">
<select name="cid" style="width: 100px;" id="selected-cid">
<option value=''>{:L('ALL')}</option>
<foreach name="categorys" item="vo">
<php>$cid_select=$vo['cid']==$slide_cid?"selected":"";</php>
<option value="{$vo.cid}" {$cid_select}>{$vo.cat_name}</option>
</foreach>
</select>
</form>
<form class="js-ajax-form" method="post">
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('slide/listorders')}">{:L('SORT')}</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('slide/toggle',array('display'=>1))}" data-subcheck="true">{:L('DISPLAY')}</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('slide/toggle',array('hide'=>1))}" data-subcheck="true">{:L('HIDDEN')}</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('slide/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<php> $status=array("1"=>L('DISPLAY'),"0"=>L('HIDDEN')); </php>
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<th width="50">{:L('SORT')}</th>
<th width="50">ID</th>
<th width="200">{:L('TITLE')}</th>
<th width="200">{:L('DESCRIPTION')}</th>
<th width="100">{:L('LINK')}</th>
<th width="50">{:L('IMAGE')}</th>
<th width="50">{:L('STATUS')}</th>
<th width="100">{:L('ACTIONS')}</th>
</tr>
</thead>
<foreach name="slides" item="vo">
<tr>
<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.slide_id}"></td>
<td><input name='listorders[{$vo.slide_id}]' class="input input-order mr5" type='text' size='3' value='{$vo.listorder}'></td>
<td>{$vo.slide_id}</td>
<td>{$vo.slide_name}</td>
<td>{$slide_des = mb_substr($vo['slide_des'], 0, 48,'utf-8')}</td>
<td>{$vo.slide_url}</td>
<td>
<if condition="!empty($vo['slide_pic'])">
<a href="{:sp_get_image_preview_url($vo['slide_pic'])}" target="_blank">{:L('VIEW')}</a>
</if>
</td>
<td>{$status[$vo['slide_status']]}</td>
<td>
<a href="{:U('slide/edit',array('id'=>$vo['slide_id']))}">{:L('EDIT')}</a>
<a href="{:U('slide/delete',array('id'=>$vo['slide_id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
<if condition="empty($vo['slide_status']) eq 1">
<a href="{:U('slide/cancelban',array('id'=>$vo['slide_id']))}" class="js-ajax-dialog-btn" data-msg="确定显示此幻灯片吗?">{:L('DISPLAY')}</a>
<else />
<a href="{:U('slide/ban',array('id'=>$vo['slide_id']))}" class="js-ajax-dialog-btn" data-msg="确定隐藏此幻灯片吗?">{:L('HIDE')}</a>
</if>
</td>
</tr>
</foreach>
<tfoot>
<tr>
<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<th width="50">{:L('SORT')}</th>
<th width="50">ID</th>
<th width="200">{:L('TITLE')}</th>
<th width="200">{:L('DESCRIPTION')}</th>
<th width="100">{:L('LINK')}</th>
<th width="50">{:L('IMAGE')}</th>
<th width="50">{:L('STATUS')}</th>
<th width="100">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('slide/listorders')}">{:L('SORT')}</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('slide/toggle',array('display'=>1))}" data-subcheck="true">{:L('DISPLAY')}</button>
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('slide/toggle',array('hide'=>1))}" data-subcheck="true">{:L('HIDDEN')}</button>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('slide/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
setCookie('refersh_time', 0);
function refersh_window() {
var refersh_time = getCookie('refersh_time');
if (refersh_time == 1) {
window.location.reload();
}
}
setInterval(function() {
refersh_window()
}, 3000);
$(function() {
$("#selected-cid").change(function() {
$("#cid-form").submit();
});
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('slidecat/index')}">{:L('ADMIN_SLIDECAT_INDEX')}</a></li>
<li class="active"><a href="{:U('slidecat/add')}">{:L('ADMIN_SLIDECAT_ADD')}</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('slidecat/add_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('NAME')}</label>
<div class="controls">
<input type="text" name="cat_name">
<span class="form-required">*</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('CATEGORY_KEY')}</label>
<div class="controls">
<input type="text" name="cat_idname">
<span class="form-required">*</span>
<span style="margin-left: 15px;">{:L('CATEGORY_KEY_HELP_TEXT')}</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('DESCRIPTION')}</label>
<div class="controls">
<textarea name="cat_remark" rows="5" cols="57">{$remark}</textarea>
</div>
</div>
</fieldset>
<div class="form-actions">
<button class="btn btn-primary js-ajax-submit" type="submit">{:L('ADD')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('slidecat/index')}">{:L('ADMIN_SLIDECAT_INDEX')}</a></li>
<li><a href="{:U('slidecat/add')}">{:L('ADMIN_SLIDECAT_ADD')}</a></li>
<li class="active"><a>编辑分类</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('slidecat/edit_post')}">
<fieldset>
<div class="control-group">
<label class="control-label">{:L('NAME')}</label>
<div class="controls">
<input type="text" name="cat_name" value="{$cat_name}">
<span class="form-required">*</span>
<input type="hidden" name="cid" value="{$cid}">
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('CATEGORY_KEY')}</label>
<div class="controls">
<input type="text" name="cat_idname" value="{$cat_idname}">
<span class="form-required">*</span>
<span style="margin-left: 15px;">{:L('CATEGORY_KEY_HELP_TEXT')}</span>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('DESCRIPTION')}</label>
<div class="controls">
<textarea name="cat_remark" rows="5" cols="57">{$cat_remark}</textarea>
</div>
</div>
</fieldset>
<div class="form-actions">
<button class="btn btn-primary js-ajax-submit" type="submit">{:L('SAVE')}</button>
<a class="btn" href="javascript:history.back(-1);">{:L('BACK')}</a>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:U('slidecat/index')}">{:L('ADMIN_SLIDECAT_INDEX')}</a></li>
<li><a href="{:U('slidecat/add')}">{:L('ADMIN_SLIDECAT_ADD')}</a></li>
</ul>
<form method="post" class="js-ajax-form" action="{:U('term/listorders')}">
<table class="table table-hover table-bordered">
<thead>
<tr>
<th width="50">ID</th>
<th>{:L('NAME')}</th>
<th>{:L('CATEGORY_KEY')}</th>
<th>{:L('DESCRIPTION')}</th>
<th width="120">{:L('ACTIONS')}</th>
</tr>
</thead>
<tbody>
<tr>
<td>0</td>
<td>{:L('DEFAULT_CATEGORY')}</td>
<td></td>
<td>{:L('DEFAULT_CATEGORY')}</td>
<td>{:L('NOT_ALLOWED_EDIT')}</td>
</tr>
<foreach name="slidecats" item="vo">
<tr>
<td>{$vo.cid}</td>
<td>{$vo.cat_name}</td>
<td>{$vo.cat_idname}</td>
<td>{$vo.cat_remark}</td>
<td>
<a href="{:U('slidecat/edit',array('id'=>$vo['cid']))}">{:L('EDIT')}</a>|
<a href="{:U('slidecat/delete',array('id'=>$vo['cid']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
</tr>
</foreach>
</tbody>
</table>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="{:U('storage/index')}">{:L('ADMIN_STORAGE_INDEX')}</a></li>
</ul>
<form method="post" class="form-horizontal js-ajax-form" action="{:U('storage/setting_post')}">
<php>$support_storages=array("Local"=>L('DEFAULT'),"Qiniu"=>L('QINIU'));</php>
<select name="type">
<foreach name="support_storages" item="vo">
<php>$type_selected=$type==$key?"selected":"";</php>
<option value="{$key}"{$type_selected}>{$vo}</option>
</foreach>
</select>
<div style="margin-top: 10px;">
<ul class="nav nav-tabs">
<li class="active"><a href="#qiniu-setting" data-toggle="tab">{:L('QINIU')}</a></li>
<li><a href="#qiniu-picture-protect" data-toggle="tab">原图保护设置</a></li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="qiniu-setting">
<div class="control-group">
<label class="control-label">AccessKey</label>
<div class="controls">
<input type="text" name="Qiniu[accessKey]" value="{$Qiniu.accessKey}">
</div>
</div>
<div class="control-group">
<label class="control-label">SecretKey</label>
<div class="controls">
<input type="text" name="Qiniu[secretKey]" value="{$Qiniu.secretKey}">
</div>
</div>
<div class="control-group">
<label class="control-label">上传域名</label>
<div class="controls">
<input type="text" name="Qiniu[upHost]" value="{$Qiniu.upHost}">
<span class="help-block">
七牛不同存储区域上传域名不一样,根据您空间的存储区域,设置不同的域名;<br>
华东:http://up.qiniu.com,华北:http://up-z1.qiniu.com;<br>
默认为华东;
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">域名协议</label>
<div class="controls">
<select name="Qiniu[setting][protocol]">
<option value="http">http</option>
<eq name="Qiniu.setting.protocol" value="https">
<option value="https" selected="selected">https</option>
<else />
<option value="https">https</option>
</eq>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('DOMAIN')}</label>
<div class="controls">
<input type="text" name="Qiniu[domain]" value="{$Qiniu.domain}">
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('BUCKET')}</label>
<div class="controls">
<input type="text" name="Qiniu[bucket]" value="{$Qiniu.bucket}">
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('GET_ACCESS_KEY')}</label>
<div class="controls">
<a href="https://portal.qiniu.com/signup?code=3lfihpz361o42" target="_blank">{:L('GET_IT_NOW')}</a>
</div>
</div>
<div class="control-group">
<label class="control-label">{:L('QINIU_PROMOTION_CODE')}</label>
<div class="controls">
<a href="http://www.thinkcmf.com/topic/topic/index/id/103.html" target="_blank">507670e8</a>
<a href="https://portal.qiniu.com/signin" target="_blank">立即充值</a>
</div>
</div>
<div class="control-group">
<label class="control-label">七牛帮助文档</label>
<div class="controls">
<a href="http://www.thinkcmf.com/qiniu/help.html" target="_blank">立即访问</a>
</div>
</div>
</div>
<div class="tab-pane" id="qiniu-picture-protect">
<div class="control-group">
<label class="control-label">开启原图保护</label>
<div class="controls">
<select name="Qiniu[setting][enable_picture_protect]">
<option value="0">关闭</option>
<empty name="Qiniu.setting.enable_picture_protect">
<option value="1">开启</option>
<else />
<option value="1" selected="selected">开启</option>
</empty>
</select>
</div>
</div>
<div class="control-group">
<label class="control-label">样式分隔符</label>
<div class="controls">
<input type="text" name="Qiniu[setting][style_separator]" value="{$Qiniu.setting.style_separator|default='!'}">
</div>
</div>
<div class="control-group">
<label class="control-label">样式-水印</label>
<div class="controls">
<input type="text" name="Qiniu[setting][styles][watermark]" value="{$Qiniu.setting.styles.watermark|default='watermark'}">
<span class="help-block">
请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">样式-头像</label>
<div class="controls">
<input type="text" name="Qiniu[setting][styles][avatar]" value="{$Qiniu.setting.styles.watermark|default='avatar'}">
<span class="help-block">
请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置
处理接口:<br>
imageView2/1/w/100/h/100/interlace/0/q/100
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">样式-缩略图120x120</label>
<div class="controls">
<input type="text" name="Qiniu[setting][styles][thumbnail120x120]" value="{$Qiniu.setting.styles.thumbnail120x120|default='thumbnail120x120'}">
<span class="help-block">
请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置<br>
处理接口:<br>
imageView2/1/w/120/h/120/interlace/0/q/100
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">样式-缩略图300x300</label>
<div class="controls">
<input type="text" name="Qiniu[setting][styles][thumbnail300x300]" value="{$Qiniu.setting.styles.thumbnail300x300|default='thumbnail300x300'}">
<span class="help-block">
请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置<br>
处理接口:<br>
imageView2/1/w/300/h/300/interlace/0/q/100
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">样式-缩略图640x640</label>
<div class="controls">
<input type="text" name="Qiniu[setting][styles][thumbnail640x640]" value="{$Qiniu.setting.styles.thumbnail640x640|default='thumbnail640x640'}">
<span class="help-block">
请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置<br>
处理接口:<br>
imageView2/1/w/640/h/640/interlace/0/q/100
</span>
</div>
</div>
<div class="control-group">
<label class="control-label">样式-缩略图1080x1080</label>
<div class="controls">
<input type="text" name="Qiniu[setting][styles][thumbnail1080x1080]" value="{$Qiniu.setting.styles.thumbnail1080x1080|default='thumbnail1080x1080'}">
<span class="help-block">
请到七牛存储空间->图片样式:添加此样式名称,并进行相应设置<br>
处理接口:<br>
imageView2/1/w/1080/h/1080/interlace/0/q/100
</span>
</div>
</div>
</div>
</div>
</div>
<div class="form-actions">
<button type="submit" class="btn btn-primary js-ajax-submit">{:L('SAVE')}</button>
</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
</body>
</html>
... ...
<admintpl file="header" />
<style type="text/css">
.pic-list li {
margin-bottom: 5px;
}
</style>
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li><a href="{:U('Successor/index')}">传承人列表</a></li>
<li class="active"><a href="{:U('Successor/add')}" target="_self">添加传承人</a></li>
</ul>
<form action="{:U('Successor/add_post')}" method="post" class="form-horizontal js-ajax-forms" enctype="multipart/form-data">
<div class="row-fluid">
<div class="span9">
<table class="table table-bordered">
<tr>
<th width="80">分类</th>
<td>
<select style="max-height: 100px;" name="sort_id">{$taxonomys}</select>
</td>
</tr>
<tr>
<th width="80">传承人名称</th>
<td>
<input type="text" style="width:400px;" name="post[name]" id="name" required placeholder="请输入传承人名称"/>
<span class="form-required">*</span>
</td>
</tr>
<tr>
<th width="80">性别</th>
<td>
<select style="max-height: 100px;" name="sex">
<option value="1"></option>
<option value="2"></option>
</select>
</td>
</tr>
<tr>
<th width="80">出生日期</th>
<td>
<input type="text" name="post[birth]" class="js-datetime" autocomplete="off">
<span class="form-required">*</span>
</td>
</tr>
<tr>
<th width="80">级别</th>
<td>
<select style="max-height: 100px;" name="post[level]">
<volist name="level" id="vo">
<option value="{$vo}">{$vo}</option>
</volist>
</select>
</td>
</tr>
<tr>
<th width="80">区域</th>
<td>
<select style="max-height: 100px;" name="post[region]">
<volist name="region" id="vo">
<option value="{$vo.name}">{$vo.name}</option>
</volist>
</select>
</td>
</tr>
<tr>
<th width="80">民族</th>
<td>
<select style="max-height: 100px;" name="post[nation]">
<volist name="nation" id="vo">
<option value="{$vo.name}">{$vo.name}</option>
</volist>
</select>
</td>
</tr>
<tr>
<th>详情内容</th>
<td>
<script type="text/plain" id="content" name="post[content]"></script>
</td>
</tr>
</table>
</div>
<div class="span3">
<table class="table table-bordered">
<tr>
<th><b>缩略图</b></th>
</tr>
<tr>
<td>
<div style="text-align: center;">
<input type="hidden" name="post[thumb]" id="thumb">
<a href="javascript:upload_one_image('图片上传','#thumb');">
<img src="__TMPL__Public/assets/images/default-thumbnail.png" id="thumb-preview" width="135" style="cursor: hand" />
</a>
<input type="button" class="btn btn-small" onclick="$('#thumb-preview').attr('src','__TMPL__Public/assets/images/default-thumbnail.png');$('#thumb').val('');return false;" value="取消图片">
</div>
</td>
</tr>
</table>
</div>
</div>
<div class="form-actions">
<button class="btn btn-primary js-ajax-submit" type="submit">提交</button>
<a class="btn" href="{:U('Successor/index')}">返回</a>
</div>
</form>
</div>
<script type="text/javascript" src="__PUBLIC__/js/common.js"></script>
<script type="text/javascript">
//编辑器路径定义
var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__PUBLIC__/js/ueditor/ueditor.all.min.js"></script>
<script type="text/javascript">
$(function() {
$(".js-ajax-close-btn").on('click', function(e) {
e.preventDefault();
Wind.use("artDialog", function() {
art.dialog({
id : "question",
icon : "question",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : "您确定需要关闭当前页面嘛?",
ok : function() {
setCookie("refersh_time", 1);
window.close();
return true;
}
});
});
});
/////---------------------
Wind.use('validate', 'ajaxForm', 'artDialog', function() {
//javascript
//编辑器
editorcontent = new baidu.editor.ui.Editor();
editorcontent.render('content');
try {
editorcontent.sync();
} catch (err) {
}
//增加编辑器验证规则
jQuery.validator.addMethod('editorcontent', function() {
try {
editorcontent.sync();
} catch (err) {
}
return editorcontent.hasContents();
});
var form = $('form.js-ajax-forms');
//ie处理placeholder提交问题
if ($.browser && $.browser.msie) {
form.find('[placeholder]').each(function() {
var input = $(this);
if (input.val() == input.attr('placeholder')) {
input.val('');
}
});
}
var formloading = false;
//表单验证开始
form.validate({
//是否在获取焦点时验证
onfocusout : false,
//是否在敲击键盘时验证
onkeyup : false,
//当鼠标掉级时验证
onclick : false,
//验证错误
showErrors : function(errorMap, errorArr) {
//errorMap {'name':'错误信息'}
//errorArr [{'message':'错误信息',element:({})}]
try {
$(errorArr[0].element).focus();
art.dialog({
id : 'error',
icon : 'error',
lock : true,
fixed : true,
background : "#CCCCCC",
opacity : 0,
content : errorArr[0].message,
cancelVal : '确定',
cancel : function() {
$(errorArr[0].element).focus();
}
});
} catch (err) {
}
},
//验证规则
rules : {
'post[name]' : {
required : 1
}
},
//验证未通过提示消息
messages : {
'post[name]' : {
required : '请输入传承人名称'
}
},
//给未通过验证的元素加效果,闪烁等
highlight : false,
//是否在获取焦点时验证
onfocusout : false,
//验证通过,提交表单
submitHandler : function(forms) {
if (formloading)
return;
$(forms).ajaxSubmit({
url : form.attr('action'), //按钮上是否自定义提交地址(多按钮情况)
dataType : 'json',
beforeSubmit : function(arr, $form, options) {
formloading = true;
},
success : function(data, statusText, xhr, $form) {
formloading = false;
if (data.status) {
setCookie("refersh_time", 1);
//添加成功
Wind.use("artDialog", function() {
art.dialog({
id : "succeed",
icon : "succeed",
fixed : true,
lock : true,
background : "#CCCCCC",
opacity : 0,
content : data.info,
button : [ {
name : '继续添加?',
callback : function() {
reloadPage(window);
return true;
},
focus : true
}, {
name : '返回列表页',
callback : function() {
location = "{:U('Successor/index')}";
return true;
}
} ]
});
});
} else {
artdialog_alert(data.info);
}
}
});
}
});
});
////-------------------------
});
</script>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
... ...
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
</body>
</html>
\ No newline at end of file
... ...
<admintpl file="header" />
</head>
<body>
<div class="wrap js-check-wrap">
<ul class="nav nav-tabs">
<li class="active"><a href="javascript:;">传承人列表</a></li>
<li><a href="{:U('Successor/add')}" target="_self">添加传承人</a></li>
</ul>
<form class="well form-search" method="post" action="{:U('Successor/index')}">
分类:
<select name="term" style="width: 120px;">
<option value='0'>全部</option>{$taxonomys}
</select> &nbsp;&nbsp;
时间:
<input type="text" name="start_time" class="js-datetime" value="{$formget.start_time|default=''}" style="width: 120px;" autocomplete="off">-
<input type="text" class="js-datetime" name="end_time" value="{$formget.end_time|default=''}" style="width: 120px;" autocomplete="off"> &nbsp; &nbsp;
关键字:
<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword|default=''}" placeholder="请输入关键字...">
<input type="submit" class="btn btn-primary" value="搜索" />
<a class="btn btn-danger" href="{:U('Successor/index')}">清空</a>
</form>
<form class="js-ajax-form" action="" method="post">
<div class="table-actions">
<notempty name="term">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/listorders')}">排序</button>
</notempty>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<table class="table table-hover table-bordered table-list">
<thead>
<tr>
<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<notempty name="term">
<th width="50">排序</th>
</notempty>
<th width="50">ID</th>
<th>传承人名称</th>
<th>性别</th>
<th>出生日期</th>
<th width="100">级别</th>
<th width="100">区域</th>
<th width="100">民族</th>
<th width="100">添加时间</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</thead>
<foreach name="posts" item="vo">
<tr>
<td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]" value="{$vo.id}" title="ID:{$vo.id}"></td>
<notempty name="term">
<td><input name="listorders[{$vo.id}]" class="input input-order" type="text" size="5" value="{$vo.listorder}"></td>
</notempty>
<td><b>{$vo.id}</b></td>
<td>{$vo.name}</td>
<td><eq name="vo.sex" value="1"></eq><eq name="vo.sex" value="2"></eq></td>
<td>{$vo.birth}</td>
<td>{$vo.level}</td>
<td>{$vo.region}</td>
<td>{$vo.nation}</td>
<td>{:date('Y-m-d H:i',$vo['ctime'])}</td>
<td>
<a href="{:U('Successor/edit',array('id'=>$vo['id']))}">{:L('EDIT')}</a> |
<a href="{:U('Successor/product',array('id'=>$vo['id']))}">作品列表</a> |
<a href="{:U('Successor/delete',array('id'=>$vo['id']))}" class="js-ajax-delete">{:L('DELETE')}</a>
</td>
</tr>
</foreach>
<tfoot>
<tr>
<th width="15"><label><input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x"></label></th>
<notempty name="term">
<th width="50">排序</th>
</notempty>
<th width="50">ID</th>
<th>传承人名称</th>
<th>性别</th>
<th>出生日期</th>
<th width="100">级别</th>
<th width="100">区域</th>
<th width="100">民族</th>
<th width="100">添加时间</th>
<th width="70">{:L('ACTIONS')}</th>
</tr>
</tfoot>
</table>
<div class="table-actions">
<notempty name="term">
<button class="btn btn-primary btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/listorders')}">{:L('SORT')}</button>
</notempty>
<button class="btn btn-danger btn-small js-ajax-submit" type="submit" data-action="{:U('Successor/delete')}" data-subcheck="true" data-msg="你确定删除吗?">{:L('DELETE')}</button>
</div>
<div class="pagination">{$page}</div>
</form>
</div>
<script src="__PUBLIC__/js/common.js"></script>
<script>
function refersh_window() {
var refersh_time = getCookie('refersh_time');
if (refersh_time == 1) {
window.location = "{:U('Successor/index',$formget)}";
}
}
setInterval(function() {
refersh_window();
}, 2000);
$(function() {
setCookie("refersh_time", 0);
});
</script>
</body>
</html>
\ No newline at end of file
... ...