<div class="layuimini-main ">
	<!-- <div class="layui-tab layui-tab-card"> -->
	<!-- <ul class="layui-tab-title">
			<li class="layui-this">网站设置</li>
			<li>公司信息</li>
			<li>首页设置</li>
			<li>url管理</li>
		</ul> -->
	<div class="layui-tab-content layui-form">
		<div class="layui-tab-item layui-show">
			<div class="layui-form-item">
				<label class="layui-form-label required">网站名称</label>
				<div class="layui-input-block">
					<input type="text" name="WEBNAME" lay-verify="required" l placeholder="请输入网站名称" value="<?= WEBNAME ?>" class="layui-input">
				</div>
			</div>
			<div class="layui-form-item">
				<label class="layui-form-label required">网站域名</label>
				<div class="layui-input-block">
					<input type="text" name="URL" lay-verify="required" lay-reqtext="" placeholder="" value="<?= URL ?>" class="layui-input">

				</div>
			</div>

			<?
			$title = "后台LOGO";
			$field = "pc_logo";
			$name = "pc_logo";
			$fvalue = $webset['pc_logo'];
			include(ADMINROOT . '/template/tpl/inputimg.tpl.php');
			?>

			<div class="layui-form-item">
				<label class="layui-form-label required">反馈描述</label>
				<div class="layui-input-block">
					<textarea placeholder="反馈需求页面的行头描述" name="remarks_desc" class="layui-textarea" lay-verify="required" placeholder=""><?= $webset['remarks_desc'] ?></textarea>
					<tip style="color: #b1b1b1">反馈需求页面的行头描述</tip>
				</div>
			</div>

			<?php
			$title = "企业介绍";
			$field = "about";
			$fvalue = $webset['about'];
			include(ADMINROOT . '/template/tpl/kindeditor.tpl.php');
			?>


			<!-- <div class="layui-form-item">
            <label class="layui-form-label required">模式</label>
            <div class="layui-input-block">
                <?= html_radio1(array(1 => "用户模式", 2 => "审核模式"), $webset['check'] ? $webset['check'] : 1, "check") ?>
              <tip>用户模式指的是用户没登录的情况下一开始需要授权登录,审核模式不用</tip>  
            </div>
        </div> -->
			<!-- <div class="layui-form-item">
					<label class="layui-form-label">小程序appid</label>
					<div class="layui-input-block">
						<input type="text" name="appid" lay-verify="required" l placeholder="" value="<?= $webset['appid'] ?>" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">小程序appsecret</label>
					<div class="layui-input-block">
						<input type="text" name="appsecret" lay-verify="required" l placeholder="" value="<?= $webset['appsecret'] ?>" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">公众号appid</label>
					<div class="layui-input-block">
						<input type="text" name="gzh_appid" lay-verify="required" l placeholder="" value="<?= $webset['gzh_appid'] ?>" class="layui-input">
					</div>
				</div>
				<div class="layui-form-item">
					<label class="layui-form-label">公众号appsecret</label>
					<div class="layui-input-block">
						<input type="text" name="gzh_appsecret" lay-verify="required" l placeholder="" value="<?= $webset['gzh_appsecret'] ?>" class="layui-input">
					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">公众号token</label>
					<div class="layui-input-block">
						<input type="text" name="gzh_token" lay-verify="required" l placeholder="" value="<?= $webset['gzh_token'] ?>" class="layui-input">
					</div>
				</div>


				<div class="layui-form-item">
					<label class="layui-form-label">公众号encodingaeskey</label>
					<div class="layui-input-block">
						<input type="text" name="gzh_encodingaeskey" lay-verify="required" l placeholder="" value="<?= $webset['gzh_encodingaeskey'] ?>" class="layui-input">
					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label">客服URL</label>
					<div class="layui-input-block">
						<input type="text" name="kfurl" lay-verify="required" l placeholder="" value="<?= $webset['kfurl'] ?>" class="layui-input">
					</div>
				</div>


				<div class="layui-form-item">
					<label class="layui-form-label">关注自动回复</label>
					<div class="layui-input-block">
						<textarea placeholder="请输入内容" name="gzreply" class="layui-textarea"><?= $webset['gzreply'] ?></textarea>

					</div>
				</div> -->



			<!-- <div class="layui-form-item">
					<label class="layui-form-label">新学员验证</label>
					<div class="layui-input-block">
						<?= html_radio1(array(1 => "不需要验证", 2 => "需要验证"), $webset['new_check_auth'] ? $webset['new_check_auth'] : 1, "new_check_auth") ?>
					</div>
				</div> -->





			<!--   <div class="layui-form-item">
            <label class="layui-form-label">订阅消息</label>
            <div class="layui-input-block">
                <input type="text" name="xcx_msgs" lay-verify="required" l placeholder="" value="<?= $webset['xcx_msgs'] ?>" class="layui-input">
            </div>
        </div> -->



			<?
			// $title = "二维码logo";
			// $field = "ewmlogo";
			// $name = "ewmlogo";
			// $fvalue = $webset['ewmlogo'];
			// include(ADMINROOT . '/template/tpl/inputimg.tpl.php'); //
			?>


			<?
			// $title = "公众号二维码";
			// $field = "gzh_img";
			// $name = "gzh_img";
			// $fvalue = $webset['gzh_img'];
			// include(ADMINROOT . '/template/tpl/inputimg.tpl.php');
			?>
			<!-- <div class="layui-form-item layui-form-text">
				<label class="layui-form-label">底部版权</label>
				<div class="layui-input-block">
					<textarea placeholder="请输入内容" name="banquan" class="layui-textarea"><?= $webset['banquan'] ?></textarea>
				</div>
			</div> -->





			<?
			// $title="logo";
			// $field="logo";
			// $name="logo";
			// $fvalue=$webset['logo'];
			// include(ADMINROOT.'/template/tpl/img.tpl.php'); //
			?>
			<!--    <div class="layui-form-item">
            <label class="layui-form-label required">搜索关键词</label>
            <div class="layui-input-block">
                <input type="text" name="keys" lay-verify="required" lay-reqtext="" placeholder="" value="<?= $webset['keys'] ?>" class="layui-input">
                 <tip>中间用,号隔开</tip>
            </div>
        </div> -->




		</div>

		<!-- <div class="layui-tab-item">

				<div class="layui-form-item">
					<label class="layui-form-label required">公司名称</label>
					<div class="layui-input-block">
						<input type="text" name="company" lay-verify="" lay-reqtext="" placeholder="" value="<?= $webset['company'] ?>" class="layui-input">

					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label required">公司地址</label>
					<div class="layui-input-block">
						<input type="text" name="address" lay-verify="" lay-reqtext="" placeholder="" value="<?= $webset['address'] ?>" class="layui-input">

					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label required">客服微信</label>
					<div class="layui-input-block">
						<input type="text" name="wx" lay-verify="" lay-reqtext="" placeholder="" value="<?= $webset['wx'] ?>" class="layui-input">

					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label required">联系人</label>
					<div class="layui-input-block">
						<input type="text" name="lxr" lay-verify="" lay-reqtext="" placeholder="" value="<?= $webset['lxr'] ?>" class="layui-input">

					</div>
				</div>


				<div class="layui-form-item">
					<label class="layui-form-label required">电话</label>
					<div class="layui-input-block">
						<input type="text" name="mobile" lay-verify="required" lay-reqtext="" placeholder="" value="<?= $webset['mobile'] ?>" class="layui-input">

					</div>
				</div>



			</div>

			<div class="layui-tab-item">

				<?
				// $title = "学历教育背景图";
				// $field = "xl_img";
				// $name = "xl_img";
				// $fvalue = $webset['xl_img'];
				// include(ADMINROOT . '/template/tpl/inputimg.tpl.php'); //
				?>

				<div class="layui-form-item">
					<label class="layui-form-label required">学历教育标题</label>
					<div class="layui-input-block">
						<input type="text" name="xl_title" lay-reqtext="" placeholder="" value="<?= $webset['xl_title'] ?>" class="layui-input">

					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label required">学历教育描述</label>
					<div class="layui-input-block">
						<input type="text" name="xl_desc" lay-reqtext="" placeholder="" value="<?= $webset['xl_desc'] ?>" class="layui-input">

					</div>
				</div>




				<?
				// $title = "职业证书背景图";
				// $field = "zhi_img";
				// $name = "zhi_img";
				// $fvalue = $webset['zhi_img'];
				// include(ADMINROOT . '/template/tpl/inputimg.tpl.php'); //
				?>

				<div class="layui-form-item">
					<label class="layui-form-label required">职业证书标题</label>
					<div class="layui-input-block">
						<input type="text" name="zhi_title" lay-reqtext="" placeholder="" value="<?= $webset['zhi_title'] ?>" class="layui-input">

					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label required">职业证书描述</label>
					<div class="layui-input-block">
						<input type="text" name="zhi_desc" lay-reqtext="" placeholder="" value="<?= $webset['zhi_desc'] ?>" class="layui-input">

					</div>
				</div>



				<?
				// $title = "就业背景图";
				// $field = "jy_img";
				// $name = "jy_img";
				// $fvalue = $webset['jy_img'];
				// include(ADMINROOT . '/template/tpl/inputimg.tpl.php'); 
				?>

				<div class="layui-form-item">
					<label class="layui-form-label required">就业标题</label>
					<div class="layui-input-block">
						<input type="text" name="jy_title" lay-reqtext="" placeholder="" value="<?= $webset['jy_title'] ?>" class="layui-input">

					</div>
				</div>

				<div class="layui-form-item">
					<label class="layui-form-label required">就业描述</label>
					<div class="layui-input-block">
						<input type="text" name="jy_desc" lay-reqtext="" placeholder="" value="<?= $webset['jy_desc'] ?>" class="layui-input">

					</div>
				</div>







			</div>
			<div class="layui-tab-item">

				<div class="layui-form-item layui-form-text">
					<label class="layui-form-label">授权url</label>
					<div class="layui-input-block">
						<textarea placeholder="请输入内容" name="auth_urls" class="layui-textarea"><?= $webset['auth_urls'] ?></textarea>
					</div>
				</div>



				<div class="layui-form-item layui-form-text">
					<label class="layui-form-label">返回首页按钮</label>
					<div class="layui-input-block">
						<?= html_radio1(array(1 => "显示", 2 => "不显示"), $webset['authindex'] ? $webset['authindex'] : 1, "authindex") ?>
					</div>
				</div>
			</div> -->
		<div class="layui-form-item">
			<div class="layui-input-block">

				<button class="layui-btn layui-btn-normal" lay-submit lay-filter="saveBtn" name="sub">确认保存</button>
			</div>
		</div>
	</div>
</div>
<!-- </div> -->
<script>
	layui.use(['form', 'laydate', 'table', 'miniAdmin'], function() {
		var form = layui.form,
			layer = layui.layer,
			table = layui.table,
			laydate = layui.laydate,
			miniAdmin = layui.miniAdmin,
			$ = layui.jquery;

		/**
		 * 初始化表单，要加上，不然刷新部分组件可能会不加载
		 */
		form.render();

		laydate.render({
			elem: '#sdate'
		});
		form.on('submit(saveBtn)', function(data) {
			layer.load(2);
			data.field.sub = 1

			$.post("index.php?mod=webset&act=set", data.field, function(res) {
				layer.closeAll('loading');
				if (res.code == 0)
					miniAdmin.success("修改成功");
				else
					miniAdmin.error("修改失败");
			}, "json");

		})


	});
</script>