<?php /*a:3:{s:62:"/www/wwwroot/btn.millet-mirth.com/view/admin/article/move.html";i:1629351174;s:60:"/www/wwwroot/btn.millet-mirth.com/view/admin/common/top.html";i:1625466448;s:63:"/www/wwwroot/btn.millet-mirth.com/view/admin/common/bottom.html";i:1629163316;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title><?php echo config('common.CMS_NAME'); ?></title>
<link rel="stylesheet" href="/static/tqcms/css/common.css">
<link rel="stylesheet" href="/static/tqcms/layui/css/layui.css"><!--layui css-->
<link rel="stylesheet" href="/static/tqcms/css/skin.css">
<script src="/static/tqcms/js/jquery.js"></script>
</head>
<body>

<div class="iframe_content">
	<div class="copy_box">
    	<form action="<?php echo url('move_update'); ?>" class="layui-form" name="TQform" id="TQform" method="post" onsubmit="return TQsubmit();">
        <input name="ids" type="hidden" value="<?php echo htmlentities($ids); ?>" />
    	<ul>
            <li>目标栏目
            	<span class="select_box copy_select_pid" lay-filter="copy_select_pid">
                <select name="pid" lay-filter="pid" lay-search>
                	<?php if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                	<option value="<?php echo htmlentities($v['id']); ?>" <?php if($model_id!=$v['model_id']): ?>disabled<?php endif; ?>><?php echo htmlentities($v['catename']); ?></option>
                    <?php endforeach; endif; else: echo "" ;endif; ?>
                </select>
                </span>
            </li>
            <li class="tips">只能转移到相同模型栏目下</li>
        </ul>
        </form>
    </div>
</div>

<div class="iframe_foot">
<input name="" type="submit" onclick="TQsubmit();" class="layui-btn" />　　
<input name="" type="button" value="关闭" onclick="open_iframe_close();" class="layui-btn layui-btn-danger" />
</div>
<script src="/static/tqcms/layui/layui.js"></script><!--layui js-->
<script src="/static/tqcms/layui/laytq.js"></script><!--layui js-->
<script src="/static/tqcms/js/common.js"></script>
<script src="/static/tqcms/js/md5.js"></script>
<script src="/static/tqcms/js/url.js"></script>
</body>
</html>
<script>
function TQsubmit(){
	//TQform.submit();
	$.post('move_update',$("#TQform").serialize(),function(data){
		console.log(data);
		layer.msg(data['msg'], {icon:1,time:1000});
		$("body",parent.document).find('#open_iframe').val(1);
		setTimeout(function(){
			//刷新article页面
			top.window.frames['a74f0dfd27be485d812ff61ee99a9b1b'].article_reload();
		},1000);
    });
	return false;
}

layui.use('form', function(){
	var form = layui.form;
	form.on('select(pid)', function(data){
		var id=$(data.elem).parent().attr('lay-filter');
		var text=$.trim($('.'+id+' .layui-input').val());
		$('.'+id+' .layui-input').val(text);
		$(data.elem).find("option:selected").text(text);
	});
});
</script>
