<?php
if(!defined('IN_CRONLITE'))exit();
?>
<div class="block">
<div class="block-title"><h3 class="panel-title">功能说明</h3></div>
<div class="card">
<div class="card-body">
  <div class="alert alert-info">
    <p><strong>功能说明：</strong></p>
    <ul>
      <li>开启后访问网站时会先显示一个引导页面</li>
      <li>用户点击继续访问按钮后24小时内不再显示</li>
      <li>可用于网站免责声明、防止被墙、防止恶意爬虫等</li>
    </ul>
    <p><strong>配置项：</strong></p>
    <ul>
      <li><b>标题</b>：引导页顶部标题</li>
      <li><b>内容</b>：主要提示内容（支持换行）</li>
      <li><b>按钮</b>：继续访问按钮文字</li>
    </ul>
  </div>
</div>
</div>
</div>

<div class="block">
<div class="block-title"><h3 class="panel-title">防墙引导页设置</h3></div>
<div class="card">
<div class="card-body">
  <form onsubmit="return saveSetting(this)" method="post" class="form-horizontal" role="form">
    <div class="form-group">
	  <label class="col-sm-3 control-label">防墙引导页开关</label>
	  <div class="col-sm-9"><select class="form-control" name="wall_guide_open" default="<?php echo $conf['wall_guide_open']?>"><option value="0">关闭</option><option value="1">开启</option></select></div>
	</div><br/>
	<div class="form-group">
	  <label class="col-sm-3 control-label">引导页标题</label>
	  <div class="col-sm-9"><input type="text" name="wall_guide_title" value="<?php echo $conf['wall_guide_title']; ?>" class="form-control" placeholder="请输入引导页标题"></div>
	</div><br/>
	<div class="form-group">
	  <label class="col-sm-3 control-label">引导页内容</label>
	  <div class="col-sm-9"><textarea class="form-control" name="wall_guide_content" rows="3" placeholder="请输入引导页显示的内容"><?php echo $conf['wall_guide_content']; ?></textarea></div>
	</div><br/>
	<div class="form-group">
	  <label class="col-sm-3 control-label">按钮文字</label>
	  <div class="col-sm-9"><input type="text" name="wall_guide_btn" value="<?php echo $conf['wall_guide_btn']; ?>" class="form-control" placeholder="请输入按钮显示的文字"></div>
	</div><br/>
	<div class="form-group">
	  <div class="col-sm-offset-3 col-sm-9"><input type="submit" name="submit" value="修改" class="btn btn-primary form-control"/><br/>
	 </div>
	</div>
  </form>
</div>
</div>
<div class="panel-footer">
<span class="glyphicon glyphicon-info-sign"></span>
开启后访问前台会先显示引导页,点击继续访问后正常访问页面(每天每个用户只需点击一次)
</div>
</div>
<script>
var items = $("select[default]");
for (i = 0; i < items.length; i++) {
	$(items[i]).val($(items[i]).attr("default")||0);
}
</script> 