|
Server : Apache System : Linux iZ6xhqomji47p1Z 5.10.134-15.al8.x86_64 #1 SMP Thu Jul 20 00:44:04 CST 2023 x86_64 User : www ( 1000) PHP Version : 8.1.30 Disable Function : passthru,exec,system,putenv,chroot,chgrp,chown,shell_exec,popen,proc_open,pcntl_exec,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,imap_open,apache_setenv Directory : /www/wwwroot/fsjlkj.cn/application/admin/template/article/ |
<!DOCTYPE html>
<html>
<head>
<title>移动文档</title>
<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
<link rel="stylesheet" type="text/css" href="__PUBLIC__/plugins/bootstrap/css/bootstrap.min.css">
{load href="__STATIC__/common/js/jquery.min.js" /}
{load href="__PUBLIC__/plugins/layer-v3.1.0/layer.js" /}
<style type="text/css">
.container-fluid {
padding: 10px 10px;
overflow: hidden;
}
.control-group {
padding: 5px 0px;
}
.input{
width: 200px;
}
.select {
height: 28px;
font-size: 12px;
}
.btn{
font: bold 14px/20px "microsoft yahei", arial;
background-color: #4fc0e8;
color: #FFF;
text-shadow: 0 -1px 0 rgba(0,0,0,0.10);
border-color: #3aa8cf;
}
.btn:hover {
color: #FFF;
background-color: #3aa8cf;
}
</style>
</head>
<body>
<div class="container-fluid">
<div class="row-fluid">
<div class="span12">
<form class="form-horizontal" id="post_form" method="POST" action="{$form_action|default=''}" onsubmit="check_submit();">
<div class="control-group">
<div class="controls"><label class="control-label" for="inputEmail">目标栏目:</label>
<select id="typeid" name="typeid" class="select">
{$arctype_html}
</select>
<input type="hidden" name="aids" id="aids" value="" class="input">
</div>
</div>
<div class="control-group">
<div class="controls">
<p class="notic">移动到的目标栏目必须和当前模型类型一致,否则程序会自动忽略不符合的文档。</p>
</div>
</div>
<div class="control-group">
<div class="controls">
<label class="checkbox"><input type="button" class="btn" value="确认提交" onclick="check_submit();" /></label>
</div>
</div>
</form>
</div>
</div>
</div>
<script type="text/javascript">
var parentObj = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
$('#aids').val(parent.get_aids());
function check_submit()
{
var current_channel = $('#typeid').find('option:selected').attr('data-current_channel');
current_channel = parseInt(current_channel);
var js_allow_channel_arr = {$js_allow_channel_arr};
if ($.inArray(current_channel, js_allow_channel_arr) == -1) {
layer.msg('目标栏目不属于同一模型', {icon: 5});
return false;
}
layer_loading('正在处理');
$.ajax({
url: $('#post_form').attr('action'),
type: 'POST',
dataType: 'JSON',
data: $('#post_form').serialize(),
success: function(res){
layer.closeAll();
if (res.status == 1) {
parent.layer.msg(res.msg, {shade: 0.3, time: 1000}, function(){
parent.window.location.reload();
parent.layer.close(parentObj);
});
} else {
layer.alert(res.msg, {icon:5});
}
return false;
},
error: function(e){
layer.closeAll();
layer.alert('操作失败', {icon:5});
return false;
}
});
}
/**
* 封装的加载层
*/
function layer_loading(msg){
var loading = layer.msg(
msg+'... 请勿刷新页面',
{
icon: 1,
time: 3600000, //1小时后后自动关闭
shade: [0.2] //0.1透明度的白色背景
});
//loading层
var index = layer.load(3, {
shade: [0.1,'#fff'] //0.1透明度的白色背景
});
return loading;
}
</script>
</body>
</html>