<?php /*a:3:{s:63:"/www/wwwroot/btn.millet-mirth.com/view/admin/catetype/edit.html";i:1629181376;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="iframe_add">
    	<form action="" class="layui-form" name="TQform" id="TQform" method="post" onsubmit="return TQsubmit();">
        <input name="id" type="hidden" value="<?php echo htmlentities($info['id']); ?>" />
    	<ul>
            <li><label class="layui-form-label">模型名称</label><input type="text" name="name" value="<?php echo htmlentities($info['name']); ?>" autocomplete="off" class="layui-input"></li>
            <li><label class="layui-form-label">扩展表名</label><input type="text" name="table" value="<?php echo htmlentities($info['table']); ?>" readonly autocomplete="off" class="layui-input"></li>
            <li><label class="layui-form-label">列表模板</label><input type="text" name="list" value="<?php echo htmlentities($info['list']); ?>" placeholder="" autocomplete="off" class="layui-input"></li>
            <li><label class="layui-form-label">详情模板</label><input type="text" name="info" value="<?php echo htmlentities($info['info']); ?>" placeholder="" autocomplete="off" class="layui-input"></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(){
	$.post('update',$("#TQform").serialize(),function(data){
		if(data.type==2){
			layer.msg(data['msg'], {icon:2,time:1000});
		}else{
			layer.msg(data['msg'], {icon:1,time:1000});
			$("body",parent.document).find('#open_iframe').val(1);
		}
    });
	return false;
}
</script>
