<?php /*a:1:{s:65:"/www/wwwroot/666.u7u.top/application/ohbbs/view/config/index.html";i:1554371036;}*/ ?>

<!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,minimum-scale=1,maximum-scale=1,user-scalable=no" />
	<link rel="stylesheet" href="/public/static/layui/css/layui.css" media="all">
	<link rel="stylesheet" href="/public/static/css/admin.css" media="all">
</head>
<body>
	<form class="layui-form column-content-detail">
		<div class="layui-tab-item layui-show">
			<?php if($data['weblogo']): ?>
			<div class="layui-form-item">
				<div class="layui-input-block" style="background-color: #000;width: 300px;">
					<img src="<?php echo htmlentities($data['weblogo']); ?>">
				</div>
			</div>
			<?php endif; ?>
			<div class="layui-form-item form-group">
				<label class="layui-form-label control-label">LOGO：</label>
				<div class="layui-input-block">
					<div class="row" style="margin:0">
						<input type="hidden" value="<?php echo htmlentities($data['weblogo']); ?>" name="weblogo" id="fileid_thumb">
						<div class="col-md-2 btn btn-sm blue uploader layui-left layui-btn layui-btn-sm" style="margin-right:15px" id="img" style="width: 50px;">
							<i class="fa fa-cloud-upload layui-icon"></i> 上传
						</div>
					</div>
					<span class="help-block layui-form-mid layui-word-aux">图片尺寸为 125*30</span>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">网站标题：</label>
				<div class="layui-input-block">
					<input type="text" name="webtitle" autocomplete="off" class="layui-input" value="<?php echo htmlentities($data['webtitle']); ?>">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">副标题：</label>
				<div class="layui-input-block">
					<input type="text" name="webftitle" autocomplete="off" class="layui-input" value="<?php echo htmlentities($data['webftitle']); ?>">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">关键词：</label>
				<div class="layui-input-block">
					<input type="text" name="webkey" autocomplete="off" class="layui-input" value="<?php echo htmlentities($data['webkey']); ?>">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">网站描述：</label>
				<div class="layui-input-block">
					<textarea name="webdesc" class="layui-textarea"><?php echo htmlentities($data['webdesc']); ?></textarea>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">会员返佣：</label>
				<div class="layui-input-inline">
					<input type="text" name="procedures" autocomplete="off" class="layui-input" value="<?php echo htmlentities($data['procedures']); ?>">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">图片水印：</label>
				<div class="layui-input-inline">
					<input type="text" name="sy" autocomplete="off" class="layui-input" value="<?php echo htmlentities($data['sy']); ?>">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">网站版权：</label>
				<div class="layui-input-block">
					<textarea name="copyright" class="layui-textarea"><?php echo htmlentities($data['copyright']); ?></textarea>
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label">版权提醒：</label>
				<div class="layui-input-block">
					<textarea name="copyrightw" class="layui-textarea"><?php echo htmlentities($data['copyrightw']); ?></textarea>
				</div>
			</div>
		</div>
		<div class="layui-form-item" style="padding-left: 10px;">
			<div class="layui-input-block">
				<input type="hidden" name="id" value="1">
				<button class="layui-btn layui-btn-normal" lay-submit lay-filter="addform">立即提交</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
<script src="/public/static/layui/layui.js"></script>
<script src="/public/static/js/common.js" type="text/javascript" charset="utf-8"></script>
<script>
layui.use('form', function(){
  	var form = layui.form;
  	var $ = layui.jquery;
	form.on('submit(addform)', function(data){
		$.post("<?php echo url(''); ?>",data.field,function(data){
		  if(data.code == 1){
		    layer.msg(data.msg, {time: 2000}, function(){
		      location.href = data.url;
		    });
		  }else{
		    layer.msg(data.msg, {time: 2000});
		  }
		});
		return false;
	});
});
</script>
<script>
layui.use(['upload','jquery'], function(){
	var $ = layui.jquery;
	var upload = layui.upload;
  	var uploadInst = upload.render({
    elem: '#img'
    ,url: "<?php echo url('uplogo'); ?>"
    ,exts: 'jpg|png|gif|jpeg'
	,dataType: 'json'
	,acceptMime: 'image/jpg,image/png'
    ,done:function(res){
        if (res.code == 0){
        	layer.msg(res.msg, {time: 2000});
        }else{
        	layer.msg(res.msg, {time: 2000});
        }
        $('#fileid_thumb').val(res.filepath);
    }
  });
});
</script>
</body>
</html>