<!--{include file="<!--{$oetplpath}-->block_head.tpl"}-->

<!--{if $a == "run"}-->
<div class="layui-fluid oe_fluid">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">网站设置</a><span lay-separator="">/</span>
      <a><cite>站点设置</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//top end -->
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveset" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">站点信息</div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form w_1000">
        <tr>
          <th width="15%"><font color="red">*</font> 网站名称：</td>
          <td width="85%">
            <input type="text" name="sitename" id="sitename" value="<!--{$config.sitename}-->" class="layui-input input-300" />
          </td>
        </tr>
        <tr>
          <th><font color="red">*</font> 网站URL：</td>
          <td>
            <input type="text" name="siteurl" id="siteurl" value="<!--{$config.siteurl}-->" class="layui-input input-300" />
            <span class="text_tip_inline">（以http开头，以/结尾）</span>
          </td>
        </tr>
        <tr>
          <th>联系电话：</td>
          <td>
            <input type="text" name="sitetel" id="sitetel" value="<!--{$config.sitetel}-->" class="layui-input input-300" />
          </td>
        </tr>
        <tr>
          <th>联系QQ：</td>
          <td>
            <input type="text" name="siteqq" id="siteqq" value="<!--{$config.siteqq}-->" class="layui-input input-300" />
          </td>
        </tr>
        <tr>
          <th>客服邮箱：</td>
          <td>
            <input type="text" name="siteemail" id="siteemail" value="<!--{$config.siteemail}-->" class="layui-input input-300" />
          </td>
        </tr>
        <tr>
          <th>联系地址：</td>
          <td>
            <input type="text" name="siteaddress" id="siteaddress" value="<!--{$config.siteaddress}-->" class="layui-input input-300" />
          </td>
        </tr>
        <tr>
          <th>会员余额名称：</th>
          <td>
            <input type="text" name="moneyname" id="moneyname" value="<!--{$config.moneyname}-->" class="layui-input input-300" /> 
            <span class="text_tip_inline">（不填写，默认为金币）</span>
          </td>
        </tr>
      </table>
    </div>
  </div> 
    
    
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">网站LOGO/二维码</div>
    <div class="layui-card-body">
     <table class="oe_tbl_form layui-form w_1000">  
      <tr>
        <th width="15%">网站LOGO：</th>
        <td width="85%">
          <table>
            <tr>
              <td colspan="2">
                <div class="layui-btn">
                  <i class="layui-icon layui-icon-upload"></i>
                  点击上传
                  <input type="file" name="uplogo" id="uplogo" f="but_upload_image" data-forbidcom="1" data-forbidwater="1" />
                </div>
                <div class="upload_loading" id="uplogo_loading" style="display:none;"></div>
                <input type="hidden" id="uplogo_thumb" name="uplogo_thumb" value="" />
                <input type="hidden" id="uplogo_url" name="logo" value="<!--{$config.logo}-->" />
            
                <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                  <img src="<!--{$urlpath}--><!--{if !empty($config.logo)}--><!--{$config.logo}--><!--{else}-->tpl/static/images/nopic.jpg<!--{/if}-->" id="uplogo_preview" f="viewimg" />
                </div>
                <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="uplogo" data-input="uplogo">移除</a>
              </td>
            </tr>
            <tr>
              <td>LOGO大小：</td>
              <td>
                <div class="tblform_tips normal">宽：</div>
                <div class="tbl_input">
                  <input type="text" name="logowidth" id="logowidth" class="layui-input input-100" value="<!--{$config.logowidth}-->" /> px
                </div>
                <div class="tblform_tips normal">高：</div>
                <div class="tbl_input">
                  <input type="text" name="logoheight" id="logoheight" class="layui-input input-100" value="<!--{$config.logoheight}-->" /> px
                </div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
      
      <tr>
        <th>微信公众号二维码：</th>
        <td>
          <table>
            <tr>
              <td colspan="2">
                <div class="layui-btn">
                  <i class="layui-icon layui-icon-upload"></i>
                  点击上传
                  <input type="file" name="upweixinqr" id="upweixinqr" f="but_upload_image" data-forbidcom="1" data-forbidwater="1" />
                </div>
                <div class="upload_loading" id="upweixinqr_loading" style="display:none;"></div>
                <input type="hidden" id="upweixinqr_thumb" name="upweixinqr_thumb" value="" />
                <input type="hidden" id="upweixinqr_url" name="weixinqr" value="<!--{$config.weixinqr}-->" />
            
                <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                  <img src="<!--{$urlpath}--><!--{if !empty($config.weixinqr)}--><!--{$config.weixinqr}--><!--{else}-->tpl/static/images/nopic.jpg<!--{/if}-->" id="upweixinqr_preview" f="viewimg" />
                </div>
                <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="upweixinqr" data-input="upweixinqr">移除</a>
              </td>
            </tr>
            <tr>
              <td>二维码图片大小：</td>
              <td>
                <div class="tblform_tips normal">宽：</div>
                <div class="tbl_input">
                  <input type="text" name="weixinqrwidth" id="weixinqrwidth" class="layui-input input-100" value="<!--{$config.weixinqrwidth}-->" /> px
                </div>
                <div class="tblform_tips normal">高：</div>
                <div class="tbl_input">
                  <input type="text" name="weixinqrheight" id="weixinqrheight" class="layui-input input-100" value="<!--{$config.weixinqrheight}-->" /> px
                </div>
                <div class="tblform_tips normal text_tip_inline"> 文字提示：</div>
                <div class="tbl_input"><input type="text" name="weixinqrtips" id="weixinqrtips" class="layui-input input-250" value="<!--{$config.weixinqrtips}-->" /></div>
              </td>
            </tr>
            <tr>
              <td>微信公众号名：</td>
              <td>
                <input type="text" name="weixin_pubname" id="weixin_pubname" class="layui-input input-200" value="<!--{$config.weixin_pubname}-->" />
              </td>
            </tr>
          </table>
        </td>
      </tr>
      
      <tr>
        <th>手机版二维码：</th>
        <td>
          <table>
            <tr>
              <td colspan="2">
                <div class="layui-btn">
                  <i class="layui-icon layui-icon-upload"></i>
                  点击上传
                  <input type="file" name="upmobileqr" id="upmobileqr" f="but_upload_image" data-forbidcom="1" data-forbidwater="1" />
                </div>
                <div class="upload_loading" id="upmobileqr_loading" style="display:none;"></div>
                <input type="hidden" id="upmobileqr_thumb" name="upmobileqr_thumb" value="" />
                <input type="hidden" id="upmobileqr_url" name="mobileqr" value="<!--{$config.mobileqr}-->" />
            
                <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                  <img src="<!--{$urlpath}--><!--{if !empty($config.mobileqr)}--><!--{$config.mobileqr}--><!--{else}-->tpl/static/images/nopic.jpg<!--{/if}-->" id="upmobileqr_preview" f="viewimg" />
                </div>
                <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="upmobileqr" data-input="upmobileqr">移除</a>
              </td>
            </tr>
            <tr>
              <td>二维码大小：</td>
              <td>
                <div class="tblform_tips normal">宽：</div>
                <div class="tbl_input">
                  <input type="text" name="mobileqrwidth" id="mobileqrwidth" class="layui-input input-100" value="<!--{$config.mobileqrwidth}-->" /> px
                </div>
                <div class="tblform_tips normal">高：</div>
                <div class="tbl_input">
                  <input type="text" name="mobileqrheight" id="mobileqrheight" class="layui-input input-100" value="<!--{$config.mobileqrheight}-->" /> px
                </div>
                <div class="tblform_tips normal text_tip_inline"> 文字提示：</div>
                <div class="tbl_input"><input type="text" name="mobileqrtips" id="mobileqrtips" class="layui-input input-250" value="<!--{$config.mobileqrtips}-->" /></div>
              </td>
            </tr>
          </table>
        </td>
      </tr>
     </table>
    </div>
  </div>
  </form>
  
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>

<script type="text/javascript">
$(function(){

    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(editform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {
            
                if ($("#sitename").val().length  == 0) {
                    layer.msg("请填写网站名称");
                    return false;
                }
                if ($("#siteurl").val().length  == 0) {
                    layer.msg("请填写网站名称");
                    return false;
                }
                
                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == "upload"}-->
<div class="layui-fluid oe_fluid">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">网站设置</a><span lay-separator="">/</span>
      <a><cite>上传配置</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//top end -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveupload" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      上传图片设置
      <em class="text_tip_inline">（本功能需要PHP环境支持GD库才生效，缩略图按原图比例缩小，宽高不会超过本设定，但都不能小于60px）</em>
    </div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">PHP环境信息：</th>
          <td width="85%"><span class="text_tip_inlin" style="color:green;">PHP环境允许最大上传：<!--{$php_upload_maxsize}-->；GD库：<!--{$gd_version}--></span></td>
        </tr>
        <tr>
          <th>最大上传：</th>
          <td>
          
            图片/附件：
            <input type="text" name="uploadmaxsize" id="uploadmaxsize" class="layui-input input-100" value="<!--{$config.uploadmaxsize}-->" /> M
            <span class="text_tip_inline" style="color:red;">（上传大小不能超过PHP环境允许的最大值<!--{$php_upload_maxsize}--></span>
          </td>
          
        </tr>
        <tr>
          <th>默认最大尺寸： </th>
          <td>
            宽：<input type="text" name="maxthumbwidth" id="maxthumbwidth" class="layui-input input-100" value="<!--{$config.maxthumbwidth}-->" /> 
            &nbsp;
            高：<input type="text" name="maxthumbheight" id="maxthumbheight" class="layui-input input-100" value="<!--{$config.maxthumbheight}-->" />  <span class="text_tip_inline">像素（px）</span>
            <br />
            <span class="text_tip_inline">
            如果用户上传一些尺寸很大的数码图片，则程序会按照本设置进行缩小该图片并显示，<br />
            比如可以设置为 宽：1024px，高：768px，但都不能小于300px。
            </span>
          </td>
        </tr>
        <tr>
          <th>默认缩略图：</th>
          <td>
            宽：<input type="text" name="thumbwidth" id="thumbwidth" class="layui-input input-100" value="<!--{$config.thumbwidth}-->" />
            &nbsp;
            高：<input type="text" name="thumbheight" id="thumbheight" class="layui-input input-100" value="<!--{$config.thumbheight}-->" /> 
            <span class="text_tip_inline">
              像素（px）
            </span>
          </td>
        </tr>
        <tr>
          <th>会员头像大小：</th>
          <td>
            宽：<input type="text" name="avatarwidth" id="avatarwidth" class="layui-input input-100" value="<!--{$config.avatarwidth}-->" />
            &nbsp;
            高：<input type="text" name="avatarheight" id="avatarheight" class="layui-input input-100" value="<!--{$config.avatarheight}-->" /> 
            <span class="text_tip_inline">
              像素（px）
              建议尺寸：230*283
            </span>
          </td>
        </tr> 
        <tr>
          <th>文章图片大小：</th>
          <td>
            宽：<input type="text" name="articlewidth" id="articlewidth" class="layui-input input-100" value="<!--{$config.articlewidth}-->" />
            &nbsp;
            高：<input type="text" name="articleheight" id="articleheight" class="layui-input input-100" value="<!--{$config.articleheight}-->" /> <span class="text_tip_inline">像素（px）</span>
          </td>
        </tr> 
        <tr>
          <th>相册图片大小：</th>
          <td>
            宽：<input type="text" name="photothumbwidth" id="photothumbwidth" class="layui-input input-100" value="<!--{$config.photothumbwidth}-->" />
            &nbsp;
            高：<input type="text" name="photothumbheight" id="photothumbheight" class="layui-input input-100" value="<!--{$config.photothumbheight}-->" /> <span class="text_tip_inline">像素（px）</span>
          </td>
        </tr>
        <tr>
          <th>活动图片大小：</th>
          <td>
            宽：<input type="text" name="partythumbwidth" id="partythumbwidth" class="layui-input input-100" value="<!--{$config.partythumbwidth}-->" />
            &nbsp;
            高：<input type="text" name="partythumbheight" id="partythumbheight" class="layui-input input-100" value="<!--{$config.partythumbheight}-->" /> <span class="text_tip_inline">像素（px）</span>
          </td>
        </tr>
        

        <tr>
          <th>动态图片大小：</th>
          <td>
            宽：<input type="text" name="dynamicthumbwidth" id="dynamicthumbwidth" class="layui-input input-100" value="<!--{$config.dynamicthumbwidth}-->" />
            &nbsp;
            高：<input type="text" name="dynamicthumbheight" id="dynamicthumbheight" class="layui-input input-100" value="<!--{$config.dynamicthumbheight}-->" /> <span class="text_tip_inline">像素（px）</span>
          </td>
        </tr>
        <tr>
          <th>案例图片大小：</th>
          <td>
            宽：<input type="text" name="storythumbwidth" id="storythumbwidth" class="layui-input input-100" value="<!--{$config.storythumbwidth}-->" />
            &nbsp;
            高：<input type="text" name="storythumbheight" id="storythumbheight" class="layui-input input-100" value="<!--{$config.storythumbheight}-->" /> <span class="text_tip_inline">像素（px）</span>
          </td>
        </tr>
        
        <tr>
          <th>防骗图片大小：</th>
          <td>
            宽：<input type="text" name="safetythumbwidth" id="safetythumbwidth" class="layui-input input-100" value="<!--{$config.safetythumbwidth}-->" />
            &nbsp;
            高：<input type="text" name="safetythumbheight" id="safetythumbheight" class="layui-input input-100" value="<!--{$config.safetythumbheight}-->" /> <span class="text_tip_inline">像素（px）</span>
          </td>
        </tr> 
        <tr>
          <th>日记图片大小：</th>
          <td>
            宽：<input type="text" name="diarywidth" id="diarywidth" class="layui-input input-100" value="<!--{$config.diarywidth}-->" />
            &nbsp;
            高：<input type="text" name="diaryheight" id="diaryheight" class="layui-input input-100" value="<!--{$config.diaryheight}-->" /> <span class="text_tip_inline">像素（px）</span>
          </td>
        </tr>

      </table>
    </div>
  </div> 
    
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      图片水印设置 <em class="text_tip_inline">（本功能需要PHP环境支持GD库才生效）</em>
    </div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">是否启用：</th>
          <td width="85%">
            <input type="radio" name="watermarkflag" value="1" title="开启"<!--{if $config.watermarkflag=='1'}--> checked<!--{/if}--> />
            <input type="radio" name="watermarkflag" value="0" title="关闭"<!--{if $config.watermarkflag=='0'}--> checked<!--{/if}--> />
          </td>
        </tr>
        <tr>
          <th>水印图片：</th>
          <td>
            <div class="layui-btn">
              <i class="layui-icon layui-icon-upload"></i>
              点击上传
              <input type="file" name="upwater" id="upwater" f="but_upload_image" data-forbidcom="1" data-forbidwater="1" />
            </div>
            <div class="upload_loading" id="upmobileqr_loading" style="display:none;"></div>
            <input type="hidden" id="upwater_thumb" name="upwater_thumb" value="" />
            <input type="hidden" id="upwater_url" name="watermarkfile" value="<!--{$config.watermarkfile}-->" />
        
            <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
            <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
              <img src="<!--{$urlpath}--><!--{if !empty($config.watermarkfile)}--><!--{$config.watermarkfile}--><!--{else}-->tpl/static/images/nopic.jpg<!--{/if}-->" id="upwater_preview" f="viewimg" />
            </div>
            <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="upwater" data-input="upwater">移除</a>
            <br />
            <span class="text_tip_inline">(默认为tpl/static/images/watermark.png，只支持jpg/gif/png格式，推荐用透明的png图片。上传的水印的图片不要太大，以免影响水印效果)</span>
          </td>
        </tr>
        <tr>
          <th>水印位置： </th>
          <td>
            <input type="radio" name="watermarkpos" title="顶端居左" value="1"<!--{if $config.watermarkpos=='1'}--> checked<!--{/if}--> /> 
            <input type="radio" name="watermarkpos" title="顶端居右" value="2"<!--{if $config.watermarkpos=='2'}--> checked<!--{/if}--> /> 
            <input type="radio" name="watermarkpos" title="底端居左" value="3"<!--{if $config.watermarkpos=='3'}--> checked<!--{/if}--> /> 
            <input type="radio" name="watermarkpos" title="底端居右" value="4"<!--{if $config.watermarkpos=='4'}--> checked<!--{/if}--> />  
            <input type="radio" name="watermarkpos" title="随机" value="0"<!--{if $config.watermarkpos=='0'}--> checked<!--{/if}--> />
          </td>
        </tr>
      </table>
    </div>
  </div>
  </form>
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<!--{/if}-->

<!--{if $a == "page"}-->
<div class="layui-fluid oe_fluid">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">网站设置</a><span lay-separator="">/</span>
      <a><cite>分页设置</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//top end -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="savepage" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      分页设置 
      <span class="text_tip_inline">（分别设置电脑版(PC)和手机版(H5)列表分页/每页显示数量）</span>
    </div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="20%">后台管理列表分页：</th>
          <td width="80%">
            <input type="text" name="admin_pagesize" id="admin_pagesize" class="layui-input input-80" value="<!--{$config.admin_pagesize}-->" /> 条
          </td>
        </tr>
        <tr>
          <th>会员中心：</th>
          <td>
            PC(电脑版)：<input type="text" name="usercp_pagesize" id="usercp_pagesize" class="layui-input input-80" value="<!--{$config.usercp_pagesize}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_cp_pagesize" id="wap_cp_pagesize" class="layui-input input-80" value="<!--{$config.wap_cp_pagesize}-->" /> 条
          </td>
        </tr>
        
        <tr>
          <th>文章列表：</th>
          <td>
            PC(电脑版)：<input type="text" name="article_pagesize" id="article_pagesize" class="layui-input input-80" value="<!--{$config.article_pagesize}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_article_pagesize" id="wap_article_pagesize" class="layui-input input-80" value="<!--{$config.wap_article_pagesize}-->" /> 条
          </td>
        </tr>
        
        <tr>
          <th>会员列表(头像模式)：</th>
          <td>
            PC(电脑版)：<input type="text" name="user_pagesize" id="user_pagesize" class="layui-input input-80" value="<!--{$config.user_pagesize}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_user_pagesize" id="wap_user_pagesize" class="layui-input input-80" value="<!--{$config.wap_user_pagesize}-->" /> 条
          </td>
        </tr>
        <tr>
          <th>会员列表(独白模式)：</th>
          <td>
            PC(电脑版)：<input type="text" name="user_pagesize_2" id="user_pagesize_2" class="layui-input input-80" value="<!--{$config.user_pagesize_2}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_user_pagesize_2" id="wap_user_pagesize_2" class="layui-input input-80" value="<!--{$config.wap_user_pagesize_2}-->" /> 条
          </td>
        </tr>
        <tr>
          <th>活动列表：</th>
          <td>
            PC(电脑版)：<input type="text" name="party_pagesize" id="party_pagesize" class="layui-input input-80" value="<!--{$config.party_pagesize}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_party_pagesize" id="wap_party_pagesize" class="layui-input input-80" value="<!--{$config.wap_party_pagesize}-->" /> 条
          </td>
        </tr>

        <tr>
          <th>动态列表：</th>
          <td>
            PC(电脑版)：<input type="text" name="dynamic_pagesize" id="dynamic_pagesize" class="layui-input input-80" value="<!--{$config.dynamic_pagesize}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_dynamic_pagesize" id="wap_dynamic_pagesize" class="layui-input input-80" value="<!--{$config.wap_dynamic_pagesize}-->" /> 条
          </td>
        </tr>
        <tr>
          <th>防骗文章列表：</th>
          <td>
            PC(电脑版)：<input type="text" name="safety_pagesize" id="safety_pagesize" class="layui-input input-80" value="<!--{$config.safety_pagesize}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_safety_pagesize" id="wap_safety_pagesize" class="layui-input input-80" value="<!--{$config.wap_safety_pagesize}-->" /> 条
          </td>
        </tr>
        <tr>
          <th>黑名单列表：</th>
          <td>
            PC(电脑版)：<input type="text" name="blackuser_pagesize" id="blackuser_pagesize" class="layui-input input-80" value="<!--{$config.blackuser_pagesize}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_blackuser_pagesize" id="wap_blackuser_pagesize" class="layui-input input-80" value="<!--{$config.wap_blackuser_pagesize}-->" /> 条
          </td>
        </tr>
        <tr>
          <th>日记列表：</th>
          <td>
            PC(电脑版)：<input type="text" name="diary_pagesize" id="diary_pagesize" class="layui-input input-80" value="<!--{$config.diary_pagesize}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_diary_pagesize" id="wap_diary_pagesize" class="layui-input input-80" value="<!--{$config.wap_diary_pagesize}-->" /> 条
          </td>
        </tr>
        <tr>
          <th>案列列表：</th>
          <td>
            PC(电脑版)：<input type="text" name="story_pagesize" id="story_pagesize" class="layui-input input-80" value="<!--{$config.story_pagesize}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_story_pagesize" id="wap_story_pagesize" class="layui-input input-80" value="<!--{$config.wap_story_pagesize}-->" /> 条
          </td>
        </tr>

        <tr>
          <th>其他评论列表：</th>
          <td>
            PC(电脑版)：<input type="text" name="comment_pagesize" id="comment_pagesize" class="layui-input input-80" value="<!--{$config.comment_pagesize}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_comment_pagesize" id="wap_comment_pagesize" class="layui-input input-80" value="<!--{$config.wap_comment_pagesize}-->" /> 条
          </td>
        </tr>
        <tr>
          <th>客服列表：</th>
          <td>
            PC(电脑版)：<input type="text" name="kefu_pagesize" id="kefu_pagesize" class="layui-input input-80" value="<!--{$config.kefu_pagesize}-->" /> 条
            &#12288;
            H5(手机版)：<input type="text" name="wap_kefu_pagesize" id="wap_kefu_pagesize" class="layui-input input-80" value="<!--{$config.wap_kefu_pagesize}-->" /> 条
          </td>
        </tr>

      </table>
    </div>
  </div> 
  </form>
  
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>

<!--{/if}-->

<!--{if $a == "footer"}-->
<div class="layui-fluid oe_fluid">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">网站设置</a><span lay-separator="">/</span>
      <a><cite>页面底部</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//top end -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="savefooter" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      底部设置
    </div>
    <div class="layui-card-body">
      <input type="hidden" name="sitefooter" id="sitefooter" value="" />
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">底部内容：</th>
          <td width="85%">
            <textarea name="content" id="content" class="layui-textarea" style="width:98%;height:320px;display:none;"><!--{$config.sitefooter}--></textarea>
          </td>
        </tr>
      </table>
    </div>
  </div> 
  </form>
  <!--{include file="<!--{$oetplpath}-->widget_editor.tpl"}-->
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<script type="text/javascript">
$(function(){
    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(editform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {

                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                $("#sitefooter").val(OEeditor.html());
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == "qqkf"}-->
<div class="layui-fluid oe_fluid">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">网站设置</a><span lay-separator="">/</span>
      <a><cite>QQ客服设置</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//top end -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveqqkf" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      QQ客服设置
    </div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">QQ客服：</th>
          <td width="85%">
          <input type="radio" name="qqkf_flag" title="开启" value="1"<!--{if $config.qqkf_flag == '1'}-->  checked<!--{/if}--> />
          <input type="radio" name="qqkf_flag" title="关闭" value="0"<!--{if $config.qqkf_flag == '0'}-->  checked<!--{/if}--> />
          </td>
        </tr>
        <tr>
          <th>QQ客服上边距：</th>
          <td>
            <input type="text" name="qqkf_topmargin" id="qqkf_topmargin" class="layui-input input-100" value="<!--{$config.qqkf_topmargin}-->" /> px
          </td>
        </tr>
        <tr>
          <th>QQ客服左右边距：</th>
          <td>
            <input type="radio" name="qqkf_absolute" title="飘在左边" value="1"<!--{if $config.qqkf_absolute == '1'}--> checked<!--{/if}--> />
            <input type="radio" name="qqkf_absolute" title="飘在右边" value="2"<!--{if $config.qqkf_absolute == '2'}--> checked<!--{/if}--> />
          </td>
        </tr>
        <tr>
          <th>默认展示方式：</th>
          <td>
            <input type="radio" name="qqkf_sidetype" title="展开" value="1"<!--{if $config.qqkf_sidetype == '1'}--> checked<!--{/if}--> />
            <input type="radio" name="qqkf_sidetype" title="收起" value="0"<!--{if $config.qqkf_sidetype == '0'}--> checked<!--{/if}--> />
          </td>
        </tr>
        <tr>
          <th>QQ客服风格：</th>
          <td>
            <div class="layui-input-inline input-100">
            <select name="qqkf_skin" id="qqkf_skin">
              <option value="">=请选择=</option>
              <option value="blue"<!--{if $config.qqkf_skin == 'blue'}--> selected<!--{/if}-->>蓝色</option>
              <option value="green"<!--{if $config.qqkf_skin == 'green'}--> selected<!--{/if}-->>绿色</option>
            </select>
            </div>
          </td>
        </tr>
        <tr>
          <th>QQ号码：</th>
          <td>
            <textarea name="qqkf_qqs" id="qqkf_qqs" class="layui-textarea" style="width:50%;height:60px;"><!--{$config.qqkf_qqs}--></textarea>
            <span class="text_tip_inline">多个QQ号码，请用英文逗号隔开</span>
          </td>
        </tr>
        <tr>
          <th>客服热线：</th>
          <td>
            <textarea name="qqkf_tel" id="qqkf_tel" class="layui-textarea" style="width:50%;height:60px;"><!--{$config.qqkf_tel}--></textarea>
          </td>
        </tr>
        
      </table>
    </div>
  </div> 
  </form>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<!--{/if}-->

<!--{if $a == "wap"}-->
<div class="layui-fluid oe_fluid" style="padding-top: 65px;">

  <div class="oe_navbar clearfix">
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wap" class="item current">手机版(H5)设置</a>
    <!--//0.08.03 -->
    <!--
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapabout" class="item">关于我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapcontact" class="item">联系我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wappayment" class="item">付款方式(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapclause" class="item">用户条款(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=waphelp" class="item">新手指引(H5)</a>
    -->
  </div>
  <!--//menu nav End -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="savewap" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      手机版设置 
      <span class="text_tip_inline">(设置手机版(H5)相关参数)</span>
    </div>
    <div class="layui-card-body"> 
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">手机版显示名称：</th>
          <td width="85%">
            <input type="text" name="wap_name" id="wap_name" class="layui-input input-200" value="<!--{$config.wap_name}-->" /> 
            <span class="text_tip_inline">(不填写默认为网站名称)</span>
          </td>
        </tr>
    
        <!--//0.05.12-->
        <tr>
          <th>会员列表数据：</th>
          <td style="line-height:40px;">
            <input type="radio" name="wap_userlist_type" title="随机分页" value="0"<!--{if $config.wap_userlist_type == '0'}--> checked<!--{/if}--> /> 
            <span class="text_tip_inline">(启用随机分页，将影响排序)</span>
            <br />
            <input type="radio" name="wap_userlist_type" title="按顺序分页" value="1"<!--{if $config.wap_userlist_type == '1'}--> checked<!--{/if}--> />
          </td>
        </tr>
        
        <tr>
          <th>会员列表默认排序：</th>
          <td style="line-height:40px;">
            <div class="input-inline input-200">
            <select name="wap_user_orderby" id="wap_user_orderby">
              <option value="">默认最新注册</option>
              <option value="5"<!--{if $config.wap_user_orderby == '5'}--> selected<!--{/if}-->>最近登录</option>
              <option value="3"<!--{if $config.wap_user_orderby == '3'}--> selected<!--{/if}-->>诚信星级</option>
              <option value="6"<!--{if $config.wap_user_orderby == '6'}--> selected<!--{/if}-->>实名认证</option>
            </select>
            </div>
          </td>
        </tr>
        <!--//0.04.08-->
        <tr>
          <th>会员列表展示模式：</th>
          <td style="line-height:40px;">
            <input type="radio" name="wap_userlist_show" title="列表模式" value="1"<!--{if $config.wap_userlist_show == '1'}--> checked<!--{/if}--> />
            <input type="radio" name="wap_userlist_show" title="头像模式" value="2"<!--{if $config.wap_userlist_show == '2'}--> checked<!--{/if}--> />
            <input type="radio" name="wap_userlist_show" title="瀑布流模式" value="3"<!--{if $config.wap_userlist_show == '3'}--> checked<!--{/if}--> />
          </td>
        </tr>
        
        <tr>
          <th>保存会员搜索条件：</th>
          <td>
            <input type="radio" name="wap_user_savesearch" title="保存" value="1"<!--{if $config.wap_user_savesearch == '1'}--> checked<!--{/if}--> /> 
            <input type="radio" name="wap_user_savesearch" title="不保存" value="0"<!--{if $config.wap_user_savesearch == '0'}--> checked<!--{/if}--> /> 
          </td>
        </tr>
        
        <tr style="display:none;">
          <th>默认按照择偶条件筛选：</th>
          <td style="line-height:40px;">
            <input type="radio" name="wap_userlist_getcond" title="开启" value="1"<!--{if $config.wap_userlist_getcond == '1'}--> checked<!--{/if}--> /> 
            <input type="radio" name="wap_userlist_getcond" title="关闭" value="0"<!--{if $config.wap_userlist_getcond == '0'}--> checked<!--{/if}--> /> 
            <br />
            <span class="text_tip_inline">(开启后，搜索会员默认按照登录会员择偶要求的年龄段展示)</span>
          </td>
        </tr>
        
        <!--//0.08.03 -->
        <tr style="display:none;">
          <td colspan="4"><span class="text_tip_inline">首页banner图(幻灯片)设置</span></td>
        </tr>
        <tr style="display:none;">
          <th>Banner图1：</th>
          <td>
            <table>
              <tr>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="img1" id="img1" f="but_upload_image" data-forbidcom="1" data-forbidwater="1" />
                  </div>
                  <div class="upload_loading" id="img1_loading" style="display:none;"></div>
                  <input type="hidden" id="img1_thumb" name="img1_thumb" value="" />
                  <input type="hidden" id="img1_url" name="wap_index_banner1" value="<!--{$config.wap_index_banner1}-->" />
              
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}--><!--{if !empty($config.wap_index_banner1)}--><!--{$config.wap_index_banner1}--><!--{else}-->tpl/static/images/nopic.jpg<!--{/if}-->" id="img1_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img1" data-input="img1">移除</a>
                </td>
              </tr>
              <tr>
                <td><span class="text_tip_inline">(设置首页banner1图片，上传jpg或者png格式的图片)</span></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr style="display:none;">
          <th>Banner图2：</th>
          <td>
            <table>
              <tr>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="img2" id="img2" f="but_upload_image" data-forbidcom="1" data-forbidwater="1" />
                  </div>
                  <div class="upload_loading" id="img2_loading" style="display:none;"></div>
                  <input type="hidden" id="img2_thumb" name="img2_thumb" value="" />
                  <input type="hidden" id="img2_url" name="wap_index_banner2" value="<!--{$config.wap_index_banner2}-->" />
              
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}--><!--{if !empty($config.wap_index_banner2)}--><!--{$config.wap_index_banner2}--><!--{else}-->tpl/static/images/nopic.jpg<!--{/if}-->" id="img2_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img2" data-input="img2">移除</a>
                </td>
              </tr>
              <tr>
                <td><span class="text_tip_inline">(设置首页banner2图片，上传jpg或者png格式的图片)</span></td>
              </tr>
            </table>
          </td>
        </tr>
        <tr style="display:none;">
          <th>Banner图3：</th>
          <td>
            <table>
              <tr>
                <td>
                  <div class="layui-btn">
                    <i class="layui-icon layui-icon-upload"></i>
                    点击上传
                    <input type="file" name="img3" id="img3" f="but_upload_image" data-forbidcom="1" data-forbidwater="1" />
                  </div>
                  <div class="upload_loading" id="img3_loading" style="display:none;"></div>
                  <input type="hidden" id="img3_thumb" name="img3_thumb" value="" />
                  <input type="hidden" id="img3_url" name="wap_index_banner3" value="<!--{$config.wap_index_banner3}-->" />
              
                  <div class="tblform_tips normal">&nbsp;&nbsp;&nbsp;预览：</div>
                  <div class="upload_pic upload_pic_md" style="width:30px;height:30px;">
                    <img src="<!--{$urlpath}--><!--{if !empty($config.wap_index_banner3)}--><!--{$config.wap_index_banner3}--><!--{else}-->tpl/static/images/nopic.jpg<!--{/if}-->" id="img3_preview" f="viewimg" />
                  </div>
                  <a href="javascript:;" class="oe_deluploadimg" f="removeimg" data-preview="img3" data-input="img3">移除</a>
                </td>
              </tr>
              <tr>
                <td><span class="text_tip_inline">(设置首页banner3图片，上传jpg或者png格式的图片)</span></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </div>
  </div>
  
  
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      分享参数设置
      <span class="text_tip_inline">(微信端打开手机版页面，分享页面内容到朋友圈、好友等参数设置)</span>
    </div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">分享首页：</th>
          <td width="85%">
            <table class="oe_tbl_form layui-form">
              <tr>
                <td width="10%">标题：</td>
                <td width="90%">
                  <input type="text" name="wap_index_sharetitle" id="wap_index_sharetitle" class="layui-input input-400" value="<!--{$config.wap_index_sharetitle}-->" />
                  <br /><span class="text_tip_inline">(不填写，默认为网站名称)</span>
                </td>
              </tr>
              <tr>
                <td>描述：</td>
                <td>
                  <textarea name="wap_index_sharedes" id="wap_index_sharedes" class="layui-textarea" style="width:400px;height:80px;"><!--{$config.wap_index_sharedes}--></textarea>
                  <span class="text_tip_inline">(不填写，默认显示网站SEO描述)</span>
                </td>
              </tr>
              <tr>
                <td>图片：</td>
                <td>
                  <span class="text_tip_inline">默认为网站LOGO</span>
                </td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </div>
  </div>
  </form>
  
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<!--{/if}-->

<!--{if $a == "wapabout"}-->
<div class="layui-fluid oe_fluid" style="padding-top: 65px;">
  <div class="oe_navbar clearfix">
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wap" class="item">手机版(H5)设置</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapabout" class="item current">关于我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapcontact" class="item">联系我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wappayment" class="item">付款方式(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapclause" class="item">用户条款(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=waphelp" class="item">新手指引(H5)</a>
  </div>
  <!--//menu nav End -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="savewapabout" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">关于我们：</th>
          <td width="85%">
            <textarea name="content" id="content" class="layui-textarea" style="width:98%;height:400px;display:none;"><!--{$content}--></textarea>
          </td>
        </tr>
      </table>
    </div>
  </div> 
  </form>
  <!--{include file="<!--{$oetplpath}-->widget_editor.tpl"}-->
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<script type="text/javascript">
$(function(){
    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(editform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {

                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                $("#content").text(OEeditor.html());
                
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == "wapcontact"}-->
<div class="layui-fluid oe_fluid" style="padding-top: 65px;">
  <div class="oe_navbar clearfix">
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wap" class="item">手机版(H5)设置</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapabout" class="item">关于我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapcontact" class="item current">联系我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wappayment" class="item">付款方式(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapclause" class="item">用户条款(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=waphelp" class="item">新手指引(H5)</a>
  </div>
  <!--//menu nav End -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="savewapcontact" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-body">     
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">联系我们：</th>
          <td width="85%">
            <textarea name="content" id="content" class="layui-textarea" style="width:98%;height:400px;display:none;"><!--{$content}--></textarea>
          </td>
        </tr>
      </table>
    </div>
  </div> 
  </form>
  <!--{include file="<!--{$oetplpath}-->widget_editor.tpl"}-->
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<script type="text/javascript">
$(function(){
    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(editform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {

                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                $("#content").text(OEeditor.html());
                
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == "wappayment"}-->
<div class="layui-fluid oe_fluid" style="padding-top: 65px;">
  <div class="oe_navbar clearfix">
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wap" class="item">手机版(H5)设置</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapabout" class="item">关于我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapcontact" class="item">联系我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wappayment" class="item current">付款方式(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapclause" class="item">用户条款(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=waphelp" class="item">新手指引(H5)</a>
  </div>
  <!--//menu nav End -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="savewappayment" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-body">
      
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">付款方式：</th>
          <td width="85%">
            <textarea name="content" id="content" class="layui-textarea" style="width:98%;height:400px;display:none;"><!--{$content}--></textarea>
          </td>
        </tr>
      </table>
    </div>
  </div> 
  </form>
  <!--{include file="<!--{$oetplpath}-->widget_editor.tpl"}-->
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<script type="text/javascript">
$(function(){
    
    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(editform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {

                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                $("#content").text(OEeditor.html());
                
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == "wapclause"}-->
<div class="layui-fluid oe_fluid" style="padding-top: 65px;">
  <div class="oe_navbar clearfix">
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wap" class="item">手机版(H5)设置</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapabout" class="item">关于我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapcontact" class="item">联系我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wappayment" class="item">付款方式(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapclause" class="item current">用户条款(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=waphelp" class="item">新手指引(H5)</a>
  </div>
  <!--//menu nav End -->

  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="savewapclause" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-body">
     
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">用户条款：</th>
          <td width="85%">
            <textarea name="content" id="content" class="layui-textarea" style="width:98%;height:400px;display:none;"><!--{$content}--></textarea>
          </td>
        </tr>
      </table>
    </div>
  </div> 
  </form>
  <!--{include file="<!--{$oetplpath}-->widget_editor.tpl"}-->
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<script type="text/javascript">
$(function(){
    
    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(editform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {

                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                $("#content").text(OEeditor.html());
                
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == "waphelp"}-->
<div class="layui-fluid oe_fluid" style="padding-top: 65px;">
  <div class="oe_navbar clearfix">
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wap" class="item">手机版(H5)设置</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapabout" class="item">关于我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapcontact" class="item">联系我们(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wappayment" class="item">付款方式(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=wapclause" class="item">用户条款(H5)</a>
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=waphelp" class="item current">新手指引(H5)</a>
  </div>
  <!--//menu nav End -->
  
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="savewaphelp" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-body">      
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">新手上路：</th>
          <td width="85%">
            <textarea name="content" id="content" class="layui-textarea" style="width:98%;height:400px;display:none;"><!--{$content}--></textarea>
          </td>
        </tr>
      </table>
    </div>
  </div> 
  </form>
  <!--{include file="<!--{$oetplpath}-->widget_editor.tpl"}-->
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<script type="text/javascript">
$(function(){
    
    layui.use('form', function(){
        $form = layui.form;
        //保存...
        $form.on('submit(editform)', function(data){
            $obj_id = data.elem.getAttribute("id");
            if (!$("#"+$obj_id).hasClass("forbid_submit")) {

                $("#"+$obj_id).addClass("forbid_submit");
                if ($("#"+$obj_id).find("span").length > 0) {
                    $("#"+$obj_id).find("span").show();
                }
                $("#content").text(OEeditor.html());
                
                $("#myform").submit();
            }
        });   
    });
    
});
</script>
<!--{/if}-->

<!--{if $a == "qq"}-->
<div class="layui-fluid oe_fluid">

  <div class="oe_navbar clearfix">
    <a href="<!--{$oefile}-->&c=<!--{$c}-->&a=qq" class="item current">QQ登录</a>
  </div>
  <!--//menu nav End -->
  <blockquote class="layui-elem-quote">
    <strong>温馨提示：</strong>
     QQ登录申请地址：<a href="http://connect.qq.com/" target="_blank">http://connect.qq.com/</a> <br />
	   只有开通了QQ网页登录权限才可以正常使用
  </blockquote>
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveqq" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">QQ登录：</th>
          <td width="85%">
            <input type="radio" name="flag" title="开启" value="1"<!--{if $config.qqlogin.flag == '1'}-->  checked<!--{/if}--> />
            <input type="radio" name="flag" title="关闭" value="0"<!--{if $config.qqlogin.flag == '0'}-->  checked<!--{/if}--> />
            <br />
            <span class="text_tip_inline">（开启支持QQ第三方快捷登录）</span>
          </td>
        </tr>
        <tr>
          <th>APP ID：</th>
          <td>
            <input type="text" name="appid" id="appid" class="layui-input input-300" value="<!--{$config.qqlogin.appid}-->" /> 
            <br />
            <span class="text_tip_inline"> （商户/开放平台网站应用 APP ID）</span>
          </td>
        </tr>
        <tr>
          <th>APP KEY：</th>
          <td>
            <input type="text" name="appkey" id="appkey" class="layui-input input-300" value="<!--{$config.qqlogin.appkey}-->" /> 
            <br />
           <span class="text_tip_inline">（开放平台网站应用密钥）</span>
          </td>
        </tr>
      </table>
    </div>
  </div> 
  </form>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<!--{/if}-->

<!--{if $a == "mail"}-->
<div class="layui-fluid oe_fluid">
  
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">接口设置</a><span lay-separator="">/</span>
      <a><cite>邮件接口</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//Top End -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="savemail" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      邮件接口 
      <span class="text_tip_inline">（邮箱配置正确才可以正常发邮件）</span>
    </div>

    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">邮件开关：</th>
          <td width="85%">
            <input type="radio" name="flag" title="开启" value="1"<!--{if $mailargs.flag === true}-->  checked<!--{/if}--> />
            <input type="radio" name="flag" title="关闭" value="0"<!--{if $mailargs.flag === false}-->  checked<!--{/if}--> />
            <br />
            <span class="text_tip_inline">(关闭后，系统无法发送邮件)</span>
          </td>
        </tr>
        <tr>
          <th>SMTP服务器：</th>
          <td>
            <input type="text" name="smtp" id="smtp" class="layui-input input-300" value="<!--{$mailargs.smtp}-->" />
            <br />
            <span class="text_tip_inline">
            (设置邮件smtp服务器，具体查看邮件提供商，一般以smtp.开头)<br />
            如果是阿里云服务器，请使用阿里云邮箱，否则无法正常发送邮件。
            </span>
          </td>
        </tr>
        <tr>
          <th>SMTP端口：</th>
          <td>
            <input type="text" name="port" id="port" class="layui-input input-300" value="<!--{$mailargs.port}-->" />
            <br />
            <span class="text_tip_inline">
            (设置smtp服务器端口，具体查看邮件提供商相关参数)
            </span>
          </td>
        </tr>
        <tr>
          <th>发信人名称：</th>
          <td><input type="text" name="sender" id="sender" class="layui-input input-300" value="<!--{$mailargs.sender}-->" /></td>
        </tr>
        <tr>
          <th>发信邮箱：</th>
          <td><input type="text" name="email" id="email" class="layui-input input-300" value="<!--{$mailargs.email}-->" /></td>
        </tr>
        <tr>
          <th>邮箱密码：</th>
          <td><input type="password" name="password" id="password" class="layui-input input-300" value="<!--{$mailargs.password}-->" /></td>
        </tr>
        <tr>
          <th>发送方式：</th>
          <td style="line-height:40px;">
            <input type="radio" name="type" title="Mail方式（需要SendMail组件支持）" value="1"<!--{if $mailargs.type == '1'}--> checked<!--{/if}--> /> <br />
            <input type="radio" name="type" title="SMTP方式（设置了SMTP身份验证）" value="2"<!--{if $mailargs.type == '2'}--> checked<!--{/if}--> />
          </td>
        </tr>
        <tr>
          <th>测试环境：</th>
          <td>
            保存成功后&#12288;
            <input type="button" name="btn_sermap" id="btn_sermap" f="but_test" class="layui-btn oe_btn_32" value="点击这里测试邮件配置是否正常" />&#12288;
            <span id="tips_box"></span>
          </td>
        </tr>
      </table>
    </div>
  </div> 
  </form>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>

<script type="text/javascript">
$(function(){
    
    //发送检测邮件...
    $(document).on("click", "[f='but_test']", function(){
        $("#tips_box").html("loading...");
        $.ajax({
            type: "POST",
            url: "<!--{$oefile}-->&c=<!--{$c}-->",
            cache: false,
            data: {a:"testmail", r:get_rndnum(8)},
            dataType: "json",
            success: function(data) {
                $json = eval(data);
                $response = $json.response;
                $result = $json.result;
                if ($response == '1') {
                    $("#tips_box").html("<font color='green'>发送成功</font>");
                }
                else {
                    if ($result.length == 0) {
                        $result = "发送失败，请检查环境是否支持";
                    }
                    $("#tips_box").html("<font color='red'>"+$result+"</font>");
                }
            },
            error: function() {
                layer.msg("检测失败，请检查网络...");
                $("#tips_box").html("");
            }
        });
    });

});
</script>
<!--{/if}-->

<!--{if $a == "sms"}-->
<div class="layui-fluid oe_fluid">

  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">接口设置</a><span lay-separator="">/</span>
      <a><cite>短信接口</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//Top End -->

  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="savesms" />

  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      手机短信接口
      <span class="text_tip_inline">（短信接口配置正确才可以正常发手机短信）</span>
    </div>
    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">短信开关：</th>
          <td width="85%">
            <input type="radio" name="flag" title="开启" value="1"<!--{if $smsargs.flag === true}--> checked<!--{/if}--> />
            <input type="radio" name="flag" title="关闭" value="0"<!--{if $smsargs.flag === false}--> checked<!--{/if}--> />
          </td>
        </tr>
        <tr>
          <th>短信签名：</th>
          <td><input type="text" name="sender" id="sender" class="layui-input input-200" value="<!--{$smsargs.sender}-->" /></td>
        </tr>
        <tr>
          <th>测试手机号码：</th>
          <td><input type="text" name="testmobile" id="testmobile" class="layui-input input-200" value="<!--{$smsargs.testmobile}-->" /></td>
        </tr>

        <tr>
          <th>测试发送：</th>
          <td>
            <span class="text_tip_inline">配置保存成功，可以测试短信是否正常发送。</span>
            <input type="button" name="btn_test" id="btn_test" class="layui-btn oe_btn_32" value="点击这里测试短信配置是否正常" />
            &#12288;
            <span id="send_tips"></span>
          </td>
        </tr>
      </table>
    </div>
    <script type="text/javascript">
    $(function(){
        //测试短信...
        $("#btn_test").bind("click", function(){
            $("#send_tips").html("发送中...");
            $.ajax({
                type: "POST",
                url: "<!--{$oefile}-->&c=<!--{$c}-->",
                cache: false,
                data: {a:"testsms", r:get_rndnum(8)},
                dataType: "json",
                success: function($data) {
                    $json = eval($data);
                    $response = $json.response;
                    $result = $json.result;
                    if ($response == '1') {
                        $("#send_tips").html("<font color='green'>发送成功</font>");
                    }
                    else {
                        if ($result.length > 0) {
                            $("#send_tips").html("<font color='red'>"+$result+"</font>");
                        }
                        else {
                            $("#send_tips").html("<font color='red'>发送失败，请检查设置是否正常</font>");
                        }
                    }
                },
                error: function() {
                    layer.msg("系统繁忙，请稍后再试！");
                }
            });
        });

    });
    </script>
  </div>
  </form>
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<!--{/if}-->

<!--{if $a == "weixin"}-->
<div class="layui-fluid oe_fluid">
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">微信设置</a><span lay-separator="">/</span>
      <a><cite>公众号配置</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//Top End -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveweixin" />

  <div class="layui-card oe_table_edit">
    <div class="layui-card-body">
      <div class="layui-tab">
        <ul class="layui-tab-title">
          <li class="layui-this">公众号</li>
          <li>微信支付</li>
          <li>自动回复</li>
        </ul>
        <div class="layui-tab-content">
          <div class="layui-tab-item layui-show">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">微信公众号：</th>
                <td width="85%">
                  <input type="radio" name="weixin_close" title="开启" value="0"<!--{if intval($config.weixin_close) == '0'}--> checked<!--{/if}--> />
                  <input type="radio" name="weixin_close" title="关闭" value="1"<!--{if intval($config.weixin_close) == '1'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(申请微信服务号，开启公众号，才能正常使用微信功能)</span>
                </td>
              </tr>
              <tr>
                <th>微信Token(令牌)：</th>
                <td>
                  <input type="text" name="weixin_token" id="weixin_token" class="layui-input input-300" value="<!--{$config.weixin_token}-->" />
                </td>
              </tr>
              <tr>
                <th>AppId(开发者ID)：</th>
                <td>
                  <input type="text" name="weixin_appid" id="weixin_appid" class="layui-input input-300" value="<!--{$config.weixin_appid}-->" />
                </td>
              </tr>
              <tr>
                <th>AppSecret(密钥)：</th>
                <td>
                  <input type="text" name="weixin_key" id="weixin_key" class="layui-input input-300" value="<!--{$config.weixin_appkey}-->" />
                </td>
              </tr>
              
              <tr>
                <th>关注公众号提示：</th>
                <td>
                  <input type="checkbox" name="weixin_listen_tips" value="1" lay-skin="switch" lay-text="开启|关闭"<!--{if $config.weixin_listen_tips == '1'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(会员还没关注公众号，弹窗提醒，需要先在站点设置上传微信公众号二维码)</span>
                </td>
              </tr>

              
              <!--//0.06.29 -->
              <tr>
                <th>苹果手机(IOS)支付：</th>
                <td>
                  <input type="radio" name="wx_iospay_flag" title="开启" value="1"<!--{if $config.wx_iospay_flag=='1'}--> checked<!--{/if}--> />
                  <!--
                  <input type="radio" name="wx_iospay_flag" title="普通关闭" value="2"<!--{if $config.wx_iospay_flag=='2'}--> checked<!--{/if}--> />
                  -->
                  <input type="radio" name="wx_iospay_flag" title="完全关闭" value="3"<!--{if $config.wx_iospay_flag=='3'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">
                  
                  微信公众号IOS支付规范<br />
                  <a target="_blank" href="https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&announce_id=11590748689LGlxz">
                  https://mp.weixin.qq.com/cgi-bin/announce?action=getannouncement&announce_id=11590748689LGlxz
                  </a>
                  <br />
                  <font color="red">
                    在微信公众号下使用微信支付，网站涉及到支付服务的(如信件解锁、购买VIP、在线充值等)，建议关闭支付功能。
                    关闭后，页面将提示：由于微信公众号相关规范，iOS暂无法使用该功能
                  </font>
                  </span>
                </td>
              </tr>
              <tr>
                <th>IOS关闭支付提示：</th>
                <td>
                  <input type="text" name="wx_iospay_tips" id="wx_iospay_tips" class="layui-input input-300" value="<!--{$config.wx_iospay_tips}-->" /> 
                  <br />
                  <span class="text_tip_inline">
                  (不填写默认为：由于微信公众号相关规范，iOS暂无法使用该功能)
                  </span>
                </td>
              </tr>
            </table>
            
            <blockquote class="layui-elem-quote" style="margin-top:20px;line-height:30px;">
              <strong>温馨提示：</strong>
              使用微信公众帐号，需要开启“开发模式”。<br />
              具体操作方式：登录微信公众平台 http://mp.weixin.qq.com/<br />
              第一步：点击：功能->高级功能->开发模式，进入开发模式页面，点击页面右上脚“开启”按钮。<br />
              第二步：成为开发者，URL设置为：http://您的网址/weixin.php，Token：设置您的Token，设置完后验证URL。<br />
              URL验证成功后，就可以和网站数据进行对接了。
              <br />
              <span class="text_tip_inline" style="color:red;">完整对接公众号，还需登录微信公众号平台，设置以下配置：</span><br />
              1、微信公众号平台-》开发-》基本配置
                 添加 服务器IP白名单 <br />
              2、微信公众号平台-》设置-》公众号设置-》功能设置
                 添加 业务域名，添加 JS接口安全域名，添加 网页授权域名
            </blockquote>
            
          </div>
          <!--//content1 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">微信支付开关：</th>
                <td width="85%">
                  <input type="radio" name="weixin_payflag" title="开启" value="1"<!--{if $config.weixin_payflag == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="weixin_payflag" title="关闭" value="0"<!--{if $config.weixin_payflag == '0'}--> checked<!--{/if}--> /> 
                  <br />
                  <span class="text_tip_inline">(开启支持微信端打开微信支付)</span>
                </td>
              </tr>
              <tr>
                <th>微信支付商户号：</th>
                <td>
                  <input type="text" name="weixin_mchid" id="weixin_mchid" class="layui-input input-300" value="<!--{$config.weixin_mchid}-->" /> 
                  <br />
                  <span class="text_tip_inline">(填写申请微信支付时微信分配的商户ID号)</span>
                </td>
              </tr>
              <tr>
                <th>微信支付API KEY：</th>
                <td>
                  <input type="text" name="weixin_paykey" id="weixin_paykey" class="layui-input input-300" value="<!--{$config.weixin_paykey}-->" />
                  <br />
                  <span class="text_tip_inline">(填写申请微信支付微信默认分配的支付密钥)</span>
                </td>
              </tr>
              <tr>
                <th>微信支付费率：</th>
                <td>
                  <input type="text" name="weixin_payrate" id="weixin_payrate" class="layui-input input-100" value="<!--{$config.weixin_payrate}-->" />
                  % 
                  <br />
                  <span class="text_tip_inline">（不填写表示无费率，不影响正常付款和金额，仅做记录用）</span>
                </td>
              </tr>
            </table>
            <blockquote class="layui-elem-quote" style="margin-top:20px;line-height:30px;">
              <strong>温馨提示：</strong><br />
              微信支付API KEY在：微信支付商户平台-》账户设置-》API安全-》API密钥 里设置32位字符的KEY。<br />
              设置授权目录：微信公众平台-》微信支付-》开发配置-》支付测试 添加授权目录为 您当前的网址。
            </blockquote>
            
            <table class="oe_tbl_form layui-form" style="margin-top:30px;">
              <tr>
                <th width="15%">微信H5支付：</th>
                <td>
                  <input type="radio" name="weixin_h5pay" title="开启" value="1"<!--{if $config.weixin_h5pay == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="weixin_h5pay" title="关闭" value="0"<!--{if $config.weixin_h5pay == '0'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(开启支持手机浏览器微信支付功能)</span>
                </td>
              </tr>
            </table>
            <blockquote class="layui-elem-quote" style="margin-top:20px;line-height:30px;">
              <strong>温馨提示：</strong><br />
              微信H5支付，仅用在手机浏览器支付。<br />
              申请入口：登录微信商户平台-->产品中心-->我的产品-->支付产品-->H5支付  <br />
            </blockquote>
            
          </div>
          <!--//content2 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              
              <tr>
                <td colspan="2" style="padding-top:20px;">
                  该模块可用网站标签-> 网站名称：{sitename} 网站网址：{siteurl} 微信用户openid：{openid}
                  <br />
                  关注公众号回复
                  <span class="text_tip_inline">(微信用户扫码关注微信号，触发公众号回复用户消息)</span>
                </td>
              </tr>
              <tr>
                <th width="15%">关注回复：</th>
                <td width="85%">
                  <textarea name="weixin_tipswelcome" id="weixin_tipswelcome" class="layui-textarea" style="width:70%;height:120px;overflow:auto;"><!--{$config.weixin_tipswelcome}--></textarea>
                </td>
              </tr>
            </table>
          </div>
          <!--//content3 -->
      
        </div>
      </div>
      <!--//tab End -->
      
    </div>
    
  </div> 
  </form>
  
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<script type="text/javascript">
$(function(){
    layui.use(['layer', 'element'], function(){ 
    
    });
});
</script>
<!--{/if}-->

<!--{if $a == "global"}-->
<div class="layui-fluid oe_fluid">
  
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">网站设置</a><span lay-separator="">/</span>
      <a><cite>全局设置</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//Top End -->
  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveglobal" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-body">
    
      <div class="layui-tab">
        <ul class="layui-tab-title">
          <li class="layui-this">基础设置</li>
          <li>活动设置</li>
          <li>伪静态设置</li>
        </ul>
        
        <div class="layui-tab-content">
          
          <div class="layui-tab-item layui-show">
            <div class="layui-card-header">会员设置</div>
            <table class="oe_tbl_form layui-form"> 
              <tr>
                <th width="20%">年龄范围：</th>
                <td width="80%">
                  <input type="text" name="startage" id="startage" class="layui-input input-100" value="<!--{$config.startage}-->" /> - 
                  <input type="text" name="endage" id="endage" class="layui-input input-100" value="<!--{$config.endage}-->" /> 岁
                </td>
              </tr>
              <tr>
                <th>身高范围：</th>
                <td>
                  <input type="text" name="startheight" id="startheight" class="layui-input input-100" value="<!--{$config.startheight}-->" /> - 
                  <input type="text" name="endheight" id="endheight" class="layui-input input-100" value="<!--{$config.endheight}-->" /> CM
                </td>
              </tr>
              <tr>
                <th>体重范围：</th>
                <td>
                  <input type="text" name="startweight" id="startweight" class="layui-input input-100" value="<!--{$config.startweight}-->" /> - 
                  <input type="text" name="endweight" id="endweight" class="layui-input input-100" value="<!--{$config.endweight}-->" /> KG
                </td>
              </tr>
              <tr>
                <th>手机验证码：</th>
                <td>
                  <input type="radio" name="regmobilecode" title="开启" value="1"<!--{if $config.regmobilecode=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="regmobilecode" title="关闭" value="0"<!--{if $config.regmobilecode=='0'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">
                  (开启之后，支持手机注册、验证码登录、取回密码等，<a href="<!--{$oefile}-->&c=setting&a=sms" style="color:blue;">需开启手机短信功能</a>)
                  </span>
                </td>
              </tr>
              <tr>
                <th>禁止注册的用户名：</th>
                <td>
                <textarea name="forbidusername" id="forbidusername" class="layui-textarea" style="width:60%;height:80px;"><!--{$config.forbidusername}--></textarea>
                <span class="text_tip_inline">(多个名称请用英文逗号隔开)</span>
                </td>
              </tr>
      
              <tr>
                <th>
                  会员注册项：
                  <span class="text_tip_inline">(选择会员注册填写项目)</span>
                </th>
                <td>
                  <input type="checkbox" name="reghometown" id="reghometown" lay-skin="primary" title="户籍地" value="1"<!--{if $config.reghometown == '1'}--> checked<!--{/if}--> />&#12288;
                  
                  <input type="checkbox" name="regemail" id="regemail" lay-skin="primary" title="邮箱" value="1"<!--{if $config.regemail == '1'}--> checked<!--{/if}--> />&#12288;
          
                  <input type="checkbox" name="regsort" id="regsort" lay-skin="primary" title="交友类型" value="1"<!--{if $config.regsort == '1'}--> checked<!--{/if}--> />&#12288;

                  <input type="checkbox" name="regmarry" id="regmarry" lay-skin="primary" title="婚况" value="1"<!--{if $config.regmarry == '1'}--> checked<!--{/if}--> />&#12288;

                  <input type="checkbox" name="regheight" id="regheight" lay-skin="primary" title="身高" value="1"<!--{if $config.regheight == '1'}--> checked<!--{/if}--> />

                  <input type="checkbox" name="regweight" id="regweight" lay-skin="primary" title="体重" value="1"<!--{if $config.regweight == '1'}--> checked<!--{/if}--> />&#12288;

                  <input type="checkbox" name="regeducation" id="regeducation" lay-skin="primary" title="学历" value="1"<!--{if $config.regeducation == '1'}--> checked<!--{/if}--> />&#12288;

                  <input type="checkbox" name="regsalary" id="regsalary" lay-skin="primary" title="年收入" value="1"<!--{if $config.regsalary == '1'}--> checked<!--{/if}--> />&#12288;<br />

                  <input type="checkbox" name="regjob" id="regjob" lay-skin="primary" title="职业" value="1"<!--{if $config.regjob == '1'}--> checked<!--{/if}--> />&#12288;

                  <input type="checkbox" name="reghouse" id="reghouse" lay-skin="primary" title="购房情况" value="1"<!--{if $config.reghouse == '1'}--> checked<!--{/if}--> />&#12288;

                  <input type="checkbox" name="regcar" id="regcar" lay-skin="primary" title="购车情况" value="1"<!--{if $config.regcar == '1'}--> checked<!--{/if}--> />&#12288;

                  <input type="checkbox" name="regschool" id="regschool" lay-skin="primary" title="毕业院校" value="1"<!--{if $config.regschool == '1'}--> checked<!--{/if}--> />&#12288;
                  
                  <input type="checkbox" name="regtruename" id="regtruename" lay-skin="primary" title="姓名" value="1"<!--{if $config.regtruename == '1'}--> checked<!--{/if}--> />
                  
                  <input type="checkbox" name="regweixin" id="regweixin" lay-skin="primary" title="微信" value="1"<!--{if $config.regweixin == '1'}--> checked<!--{/if}--> />
                  
                  <input type="checkbox" name="regqq" id="regqq" lay-skin="primary" title="QQ" value="1"<!--{if $config.regqq == '1'}--> checked<!--{/if}--> />
                  
                  <br />
                  <input type="checkbox" name="regshowhide" id="regshowhide" lay-skin="primary" title="显示勾选隐藏手机号设置" value="1"<!--{if $config.regshowhide == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>注册密码复杂度：</th>
                <td>
                  <input type="checkbox" name="password_number" id="password_number" lay-skin="primary" title="数字" value="1"<!--{if $config.password_number == '1'}--> checked<!--{/if}--> />
                  <input type="checkbox" name="password_small" id="password_small" lay-skin="primary" title="小写字母" value="1"<!--{if $config.password_small == '1'}--> checked<!--{/if}--> />
                  <input type="checkbox" name="password_big" id="password_big" lay-skin="primary" title="大写字母" value="1"<!--{if $config.password_big == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              
              <tr>
                <th>支持非中国大陆手机注册：</th>
                <td>
                  <input type="radio" name="regmobile_global" lay-skin="primary" title="开启" value="1"<!--{if $config.regmobile_global == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="regmobile_global" lay-skin="primary" title="关闭" value="0"<!--{if $config.regmobile_global == '0'}--> checked<!--{/if}--> />
                  
                  
                  <span class="text_tip_inline" style="color:red;">开启之后，不对手机号码格式进行校验，长度为7-11位，适用中国大陆和非大陆手机号注册<br />但不支持发送验证码，请关闭验证码功能，否则无法正常发送和接收短信</span>
                </td>
              </tr>

              <tr>
                <th>会员搜索列表默认显示设置：</th>
                <td>
                  <table class="oe_tbl_form layui-form"> 
                    <tr>
                      <th width="15%">只显示有头像：</th>
                      <td>
                        <input type="radio" name="user_search_avatar" title="开启" value="1"<!--{if $config.user_search_avatar=='1'}--> checked<!--{/if}--> />
                        <input type="radio" name="user_search_avatar" title="关闭" value="0"<!--{if $config.user_search_avatar=='0'}--> checked<!--{/if}--> />
                      </td>
                    </tr>
                    
                    <tr>
                      <th>已登录会员：</th>
                      <td style="line-height:40px;">
                        按照择偶要求年龄段筛选：
                        <input type="radio" name="user_search_cond" title="开启" value="1"<!--{if $config.user_search_cond=='1'}--> checked<!--{/if}--> />
                        <input type="radio" name="user_search_cond" title="关闭" value="0"<!--{if $config.user_search_cond=='0'}--> checked<!--{/if}--> /> 
                        <span class="text_tip_inline">(开启之后，默认按照登录会员择偶年龄段显示)</span>
                        <br />
                        <!--//0.07.01 -->
                        关闭择偶年龄要求后，默认按照登录会员年龄：<br />
                        男 展示比自己小&nbsp;<input type="text" class="layui-input input-80" name="man_fdage1" value="<!--{$config.man_fdage1}-->" />&nbsp;岁，大&nbsp;<input type="text" class="layui-input input-80" name="man_fdage2" value="<!--{$config.man_fdage2}-->" />&nbsp;岁的异性 <span class="text_tip_inline">(不设置或者0，使用默认上下10岁)</span><br />
                        女 展示比自己小&nbsp;<input type="text" class="layui-input input-80" name="female_fdage1" value="<!--{$config.female_fdage1}-->" />&nbsp;岁，大&nbsp;<input type="text" class="layui-input input-80" name="female_fdage2" value="<!--{$config.female_fdage2}-->" />&nbsp;岁的异性
                        <span class="text_tip_inline">(不设置或者0，使用默认上下10岁)</span>
                      </td>
                    </tr>
                    
                  </table>

                </td>
              </tr>
      
              <tr>
                <th>认证权限限制：</th>
                <td>
                  <table class="oe_tbl_form layui-form"> 
                    <tr>
                      <td width="20%">头像权限限制：</td>
                      <td width="80%">
                        <input type="radio" name="limit_needheadimg" id="limit_needheadimg" title="开启" value="1"<!--{if $config.limit_needheadimg=='1'}--> checked<!--{/if}--> />
                        <input type="radio" name="limit_needheadimg" id="limit_needheadimg" title="关闭" value="0"<!--{if $config.limit_needheadimg=='0'}--> checked<!--{/if}--> /> 
                        <br />
                        <span class="text_tip_inline">（开启之后，没有上传头像或未通过审核，无法发信、加好友等操作）</span>
                      </td>
                    </tr>
                    <tr>
                      <td>手机认证权限限制：</td>
                      <td>
                        <input type="radio" name="limit_needmobilerz" id="limit_needmobilerz" title="开启" value="1"<!--{if $config.limit_needmobilerz=='1'}--> checked<!--{/if}--> />
                        <input type="radio" name="limit_needmobilerz" id="limit_needmobilerz" title="关闭" value="0"<!--{if $config.limit_needmobilerz=='0'}--> checked<!--{/if}--> /> 
                        <br />
                        <span class="text_tip_inline">（开启之后，没有认证手机号，无法发信、加好友等操作）</span>
                      </td>
                    </tr>
                    <tr>
                      <td>实名认证权限限制：</td>
                      <td>
                        <input type="radio" name="limit_needidrz" id="limit_needidrz" title="开启" value="1"<!--{if $config.limit_needidrz=='1'}--> checked<!--{/if}--> />
                        <input type="radio" name="limit_needidrz" id="limit_needidrz" title="关闭" value="0"<!--{if $config.limit_needidrz=='0'}--> checked<!--{/if}--> />
                        <br />
                        <span class="text_tip_inline">（开启之后，没有实名认证，无法发信、加好友等操作）</span>
                      </td>
                    </tr>
                    <tr>
                      <td>婚况认证权限限制：</td>
                      <td>
                        <input type="radio" name="limit_needmarryrz" id="limit_needmarryrz" title="开启" value="1"<!--{if $config.limit_needmarryrz=='1'}--> checked<!--{/if}--> />
                        <input type="radio" name="limit_needmarryrz" id="limit_needmarryrz" title="关闭" value="0"<!--{if $config.limit_needmarryrz=='0'}--> checked<!--{/if}--> />
                        <br />
                        <span class="text_tip_inline">（开启之后，没有认证婚况，无法发信、加好友等操作）</span>
                      </td>
                    </tr>
                    
                  </table>
                </td>
              </tr>
              <tr>
                <th>显示会员主页联系方式：</th>
                <td>
                  <input type="radio" name="user_viewcontact" id="user_viewcontact" lay-skin="primary" title="开启" value="1"<!--{if $config.user_viewcontact == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="user_viewcontact" id="user_viewcontact" lay-skin="primary" title="关闭" value="0"<!--{if $config.user_viewcontact == '0'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">
                  (关闭之后，个人主页将无法显示查看联系方式按钮。是否允许查看，也取决于会员是否将联系方式公开)
                  </span>
                  
                  <br />
                  可查看项目：
                  <input type="checkbox" name="viewcontact_mobile" id="viewcontact_mobile" lay-skin="primary" title="手机号" value="1"<!--{if $config.viewcontact_mobile == '1'}--> checked<!--{/if}--> />
                  <input type="checkbox" name="viewcontact_email" id="viewcontact_email" lay-skin="primary" title="邮箱" value="1"<!--{if $config.viewcontact_email == '1'}--> checked<!--{/if}--> />
                  <input type="checkbox" name="viewcontact_qq" id="viewcontact_qq" lay-skin="primary" title="QQ" value="1"<!--{if $config.viewcontact_qq == '1'}--> checked<!--{/if}--> />
                  <input type="checkbox" name="viewcontact_weixin" id="viewcontact_weixin" lay-skin="primary" title="微信" value="1"<!--{if $config.viewcontact_weixin == '1'}--> checked<!--{/if}--> />
                  
                  <br /><br />
                  查看限制：
                  <input type="radio" name="viewcontact_limit" lay-skin="primary" title="双方等级不受限制" value="0"<!--{if $config.viewcontact_limit == '0'}--> checked<!--{/if}--> />
                  <input type="radio" name="viewcontact_limit" lay-skin="primary" title="双方均为VIP会员" value="1"<!--{if $config.viewcontact_limit == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="viewcontact_limit" lay-skin="primary" title="双方均为VIP会员+已实名认证" value="2"<!--{if $config.viewcontact_limit == '2'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(注：请结合VIP等级特权和业务需求设置)</span>
                </td>
              </tr>

              <tr>
                <th>显示会员注册、登录时间：</th>
                <td>
                  <input type="radio" name="user_viewtime" id="user_viewtime" lay-skin="primary" title="开启" value="1"<!--{if $config.user_viewtime == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="user_viewtime" id="user_viewtime" lay-skin="primary" title="关闭" value="0"<!--{if $config.user_viewtime == '0'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">
                  (关闭之后，个人主页将无法显示注册、登录时间)
                  </span>
                </td>
              </tr>

              <tr>
                <th>会员操作日志：</th>
                <td>
                  <input type="radio" name="userlog" id="userlog" lay-skin="primary" title="开启" value="1"<!--{if $config.userlog=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="userlog" id="userlog" lay-skin="primary" title="关闭" value="0"<!--{if $config.userlog=='0'}--> checked<!--{/if}--> />
                </td>
              </tr>
              
              <!--//9.12.18 -->
              <tr>
                <th>查看会员资料：</th>
                <td style="line-height:25px;">
                  需登录(手机端)：
                  <input type="radio" name="needlogin" id="needlogin" lay-skin="primary" title="开启" value="1"<!--{if $config.needlogin=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="needlogin" id="needlogin" lay-skin="primary" title="关闭" value="0"<!--{if $config.needlogin=='0'}--> checked<!--{/if}--> />
                  <br />
                  需登录(PC端)：&nbsp;&nbsp;
                  <input type="radio" name="needlogin2" id="needlogin2" lay-skin="primary" title="开启" value="1"<!--{if $config.needlogin2=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="needlogin2" id="needlogin2" lay-skin="primary" title="关闭" value="0"<!--{if $config.needlogin2=='0'}--> checked<!--{/if}--> />
                  <br />
                  需实名认证：&#12288;&nbsp;&nbsp;
                  <input type="radio" name="needrz" lay-skin="primary" title="开启" value="1"<!--{if $config.needrz=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="needrz" lay-skin="primary" title="关闭" value="0"<!--{if $config.needrz=='0'}--> checked<!--{/if}--> />
                  
                </td>
              </tr>
              
              <tr>
                <th>实名认证需上传手持身份证：</th>
                <td>
                  <input type="radio" name="needpaper3" id="needpaper3" lay-skin="primary" title="开启" value="1"<!--{if $config.needpaper3=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="needpaper3" id="needpaper3" lay-skin="primary" title="关闭" value="0"<!--{if $config.needpaper3=='0'}--> checked<!--{/if}--> />
                </td>
              </tr>
              
              <tr>
                <th>会员在线/离线开关：</th>
                <td>
                  <input type="radio" name="online_flag" lay-skin="primary" title="显示" value="1"<!--{if $config.online_flag=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="online_flag" lay-skin="primary" title="关闭" value="0"<!--{if $config.online_flag=='0'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(开启后，会员列表和个人主页显示在线或离线标识)</span>
                </td>
              </tr>
              <tr>
                <th>会员在线状态设定：</th>
                <td>
                  登录 <input type="text" name="online_minute" id="online_minute" class="layui-input input-80" value="<!--{intval($config.online_minute)}-->" /> 分钟内
                </td>
              </tr>
              
              <!--//9.10.22 -->
              <tr>
                <th>会员强制上传头像：</th>
                <td>
                  <input type="radio" name="headimg_isneed" lay-skin="primary" title="开启" value="1"<!--{if $config.headimg_isneed=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="headimg_isneed" lay-skin="primary" title="关闭" value="0"<!--{if $config.headimg_isneed=='0'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(开启后，会员需要上传头像才可以正常浏览网站)</span>
                </td>
              </tr>
            </table>
            
            <div class="layui-card-header">信件设置</div>
            <table class="oe_tbl_form layui-form"> 
              <tr>
                <th width="15%">信件解锁费用：</th>
                <td width="85%">
                  <input type="text" name="free_msgchat_fee" id="free_msgchat_fee" class="layui-input input-100" value="<!--{doubleval($config.free_msgchat_fee)}-->" /> <!--{$config.moneyname}-->
                  <br />
                  <span class="text_tip_inline">(设置会员通信解锁费用，0表示通信免费)</span>
                </td>
              </tr>
              <tr>
                <th>双方好友通信免费：</th>
                <td>
                  <input type="radio" name="friendship_msgchat_free" id="friendship_msgchat_free" title="开启" value="1"<!--{if $config.friendship_msgchat_free == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="friendship_msgchat_free" id="friendship_msgchat_free" title="关闭" value="0"<!--{if $config.friendship_msgchat_free == '0'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(开启后，双方如果是好友关系，通信免费)</span>
                </td>
              </tr>
              
              <tr>
                <th>实时消息：</th>
                <td>
                  <input type="radio" name="msgchat_keep" title="开启" value="1"<!--{if $config.msgchat_keep=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="msgchat_keep" title="关闭" value="0"<!--{if $config.msgchat_keep=='0'}--> checked<!--{/if}--> /> 
                  &nbsp;&nbsp;
                  更新频率：
                  <input type="text" name="msgchat_timer" id="msgchat_timer" class="layui-input input-100" value="<!--{intval($config.msgchat_timer)}-->" />&nbsp;秒
                  <br />
                  <span class="text_tip_inline">
                  (开启实时消息，需要耗费服务器一定的资源，请根据服务器配置开启和关闭)
                  </span>
                </td>
              </tr>
              
            </table>
            
            <div style="display:none;" class="layui-card-header">消息提醒</div>
            <table class="oe_tbl_form layui-form" style="display:none;">
              <tr>
                <th width="15%">PC底部消息提醒：</th>
                <td width="85%">
                  <table class="oe_table_wrap">
                    <tr>
                      <td width="15%">消息状态：</td>
                      <td width="85%">
                        <input type="radio" name="infowin_flag" id="infowin_flag" title="开启" value="1"<!--{if $config.infowin_flag == '1'}--> checked<!--{/if}--> />
                        <input type="radio" name="infowin_flag" id="infowin_flag" title="关闭" value="0"<!--{if $config.infowin_flag == '0'}--> checked<!--{/if}--> />
                      </td>
                    </tr>
                    <tr>
                      <td>首次载入时间：</td>
                      <td>
                        <input type="text" name="infowin_loadtime" id="infowin_loadtime" class="layui-input input-80" value="<!--{$config.infowin_loadtime}-->" />&nbsp;&nbsp;秒
                      </td>
                    </tr>
                    <tr>
                      <td>自动关闭时间：</td>
                      <td>
                        <input type="text" name="infowin_closetime" id="infowin_closetime" class="layui-input input-80" value="<!--{$config.infowin_closetime}-->" />&nbsp;&nbsp;秒
                      </td>
                    </tr>
                    <tr>
                      <td>循环间隔时间：</td>
                      <td>
                        <input type="text" name="infowin_looptime" id="infowin_looptime" class="layui-input input-80" value="<!--{$config.infowin_looptime}-->" />&nbsp;&nbsp;秒
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            
            <div class="layui-card-header">审核设置</div>
            <table class="oe_tbl_form layui-form"> 
              <tr>
                <th width="15%">会员资料审核：</th>
                <td width="35%">
                  <input type="radio" name="approved_user" id="approved_user" title="开启" value="1"<!--{if $config.approved_user=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="approved_user" id="approved_user" title="关闭" value="0"<!--{if $config.approved_user=='0'}--> checked<!--{/if}--> />
                  </td>
                  <th width="15%">会员头像审核：</th>
                  <td width="35%">
                  <input type="radio" name="approved_headimg" id="approved_headimg" title="开启" value="1"<!--{if $config.approved_headimg=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="approved_headimg" id="approved_headimg" title="关闭" value="0"<!--{if $config.approved_headimg=='0'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>会员独白审核：</th>
                <td>
                  <input type="radio" name="approved_dubai" id="approved_dubai" title="开启" value="1"<!--{if $config.approved_dubai=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="approved_dubai" id="approved_dubai" title="关闭" value="0"<!--{if $config.approved_dubai=='0'}--> checked<!--{/if}--> />
                </td>
                <th>会员相册审核：</th>
                <td>
                  <input type="radio" name="approved_photo" id="approved_photo" title="开启" value="1"<!--{if $config.approved_photo=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="approved_photo" id="approved_photo" title="关闭" value="0"<!--{if $config.approved_photo=='0'}--> checked<!--{/if}--> />
                </td>
              </tr>
              
              <tr>
                <th>发布动态审核：</th>
                <td>
                  <input type="radio" name="approved_dynamic" id="approved_dynamic" title="开启" value="1"<!--{if $config.approved_dynamic=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="approved_dynamic" id="approved_dynamic" title="关闭" value="0"<!--{if $config.approved_dynamic=='0'}--> checked<!--{/if}--> />
                </td>
              </tr>
              
              <tr>
                <th>日记审核：</th>
                <td>
                  <input type="radio" name="approved_diary" id="approved_diary" title="开启" value="1"<!--{if $config.approved_diary=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="approved_diary" id="approved_diary" title="关闭" value="0"<!--{if $config.approved_diary=='0'}--> checked<!--{/if}--> />
                </td>
                <th>日记评论审核：</th>
                <td>
                  <input type="radio" name="approved_diarycomment" id="approved_diarycomment" title="开启" value="1"<!--{if $config.approved_diarycomment=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="approved_diarycomment" id="approved_diarycomment" title="关闭" value="0"<!--{if $config.approved_diarycomment=='0'}--> checked<!--{/if}--> />
                </td>
              </tr>
              
              <tr>
                <th>其他评论审核：</th>
                <td colspan="3">
                  <input type="radio" name="approved_comment" id="approved_comment" title="开启" value="1"<!--{if $config.approved_comment=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="approved_comment" id="approved_comment" title="关闭" value="0"<!--{if $config.approved_comment=='0'}--> checked<!--{/if}--> />
                  
                  <span class="text_tip_inline">(动态评论、成功故事评论等)</span>
                </td>
              </tr>

            </table>
            
            <div class="layui-card-header">安全/防刷设置</div>
            <table class="oe_tbl_form layui-form"> 
              <tr>
                <th width="15%">短信防刷设置：</th>
                <td>
                  <table class="oe_tbl_form layui-form"> 
                    <tr>
                      <td width="25%">同一IP发送次数：</td>
                      <td>
                        <input type="text" name="sms_ip_nums" class="layui-input input-100" value="<!--{$config.sms_ip_nums}-->" />&nbsp;<span class="text_tip_inline"> 次 (不填写或者0，默认限制5次)</span>
                      </td>
                    </tr>
                    <tr>
                      <td>同一手机号/用户发送次数：</td>
                      <td>
                        <input type="text" name="sms_user_nums" class="layui-input input-100" value="<!--{$config.sms_user_nums}-->" />&nbsp;<span class="text_tip_inline"> 次 (不填写或者0，默认限制5次)</span>
                      </td>
                    </tr>
                    <tr>
                      <td>校验来源域名：</td>
                      <td>
                        <input type="radio" name="sms_check_host" title="开启" value="1"<!--{if $config.sms_check_host=='1'}--> checked<!--{/if}--> />
                        <input type="radio" name="sms_check_host" title="关闭" value="0"<!--{if $config.sms_check_host=='0'}--> checked<!--{/if}--> />
                      </td>
                    </tr>
                    <!--//9.09.06-->
                    <tr>
                      <td>PC图片校验码：</td>
                      <td>
                        <input type="radio" name="sms_check_imgcode" title="开启" value="1"<!--{if $config.sms_check_imgcode=='1'}--> checked<!--{/if}--> />
                        <input type="radio" name="sms_check_imgcode" title="关闭" value="0"<!--{if $config.sms_check_imgcode=='0'}--> checked<!--{/if}--> />
                      </td>
                    </tr>
                    <tr>
                      <td>WAP图片校验码：</td>
                      <td>
                        <input type="radio" name="sms_check_imgcode2" title="开启" value="1"<!--{if $config.sms_check_imgcode2=='1'}--> checked<!--{/if}--> />
                        <input type="radio" name="sms_check_imgcode2" title="关闭" value="0"<!--{if $config.sms_check_imgcode2=='0'}--> checked<!--{/if}--> />
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
              <tr>
                <th>禁止出现的字符：</th>
                <td>
                  <textarea name="forbidchars" id="forbidchars" class="layui-textarea" style="width:60%;height:80px;"><!--{$config.forbidchars}--></textarea>
                  <span class="text_tip_inline">(多个字符请用英文逗号隔开，禁止的字符将被*号代替)</span>
                </td>
              </tr>
              <tr>
                <th>禁止连续数字：</th>
                <td>
                  <input type="radio" name="forbidnumber" id="forbidnumber" title="开启" value="1"<!--{if $config.forbidnumber=='1'}--> checked<!--{/if}--> />
                  <input type="radio" name="forbidnumber" id="forbidnumber" title="关闭" value="0"<!--{if $config.forbidnumber=='0'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>禁止IP访问：</th>
                <td>
                <textarea name="forbid_ips" id="forbid_ips" class="layui-textarea"  style="width:60%;height:80px;"><!--{$config.forbid_ips}--></textarea>
                <span class="text_tip_inline">(多个IP请用英文逗号隔开)</span>
                </td>
              </tr>
              <tr>
                <th>会员每天发表日记：</th>
                <td>
                  <input type="text" name="day_diary" id="day_diary" class="layui-input input-80" value="<!--{intval($config.day_diary)}-->" />&nbsp; <span class="text_tip_inline">篇 <font color="red">（0表示不限，可防止机器人灌水）</font></span>
                </td>
              </tr>
              <tr>
                <th>会员每天发表动态：</th>
                <td>
                  <input type="text" name="day_dynamic" id="day_dynamic" class="layui-input input-80" value="<!--{intval($config.day_dynamic)}-->" />&nbsp; <span class="text_tip_inline">篇 <font color="red">（0表示不限，可防止机器人灌水）</font></span>
                </td>
              </tr>
    
            </table>

            <div class="layui-card-header">会员动态设置</div>
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">会员动态展示：</th>
                <td width="85%">
                  <input type="radio" name="tips_dynamic_flag" id="tips_dynamic_flag" title="开启" value="1"<!--{if $config.tips_dynamic_flag == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="tips_dynamic_flag" id="tips_dynamic_flag" title="关闭" value="0"<!--{if $config.tips_dynamic_flag != '1'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(设置前台顶部会员动态展示开关)</span>
                </td>
              </tr>
              <tr>
                <th width="15%">展示内容：</th>
                <td width="85%">
                  <input type="checkbox" name="tips_dynamic_visit" id="tips_dynamic_visit" title="会员浏览记录" value="1"<!--{if $config.tips_dynamic_visit == '1'}--> checked<!--{/if}--> />
                  <input type="checkbox" name="tips_dynamic_register" id="tips_dynamic_register" title="会员注册记录" value="1"<!--{if $config.tips_dynamic_register == '1'}--> checked<!--{/if}--> />
                  <input type="checkbox" name="tips_dynamic_payorder" id="tips_dynamic_payorder" title="会员支付记录" value="1"<!--{if $config.tips_dynamic_payorder == '1'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(勾选需要展示的项目，开启后可将随机抽取数据展示)</span>
                </td>
              </tr>
            </table>
            
            
            <div class="layui-card-header">其他设置</div>
            <table class="oe_tbl_form layui-form">
              <tr style="display:none;">
                <th width="15%">PC微信二维码提示：</th>
                <td width="85%">
                  <input type="radio" name="weixinqr_flag" id="weixinqr_flag" title="开启" value="1"<!--{if $config.weixinqr_flag == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="weixinqr_flag" id="weixinqr_flag" title="关闭" value="0"<!--{if $config.weixinqr_flag != '1'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(开启/关闭PC前台关注微信公众号弹窗)</span>
                </td>
              </tr>
              <tr>
                <th width="15%">百度地图：</th>
                <td width="85%">
                  <input type="radio" name="baidumap_flag" id="baidumap_flag" title="开启" value="1"<!--{if $config.baidumap_flag == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="baidumap_flag" id="baidumap_flag" title="关闭" value="0"<!--{if $config.baidumap_flag == '0'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(设置您当前网址的百度地图密钥，才能使用百度地图功能，详情请看：<a href="http://lbsyun.baidu.com/" target="_blank">http://lbsyun.baidu.com/</a>)</span>
                </td>
              </tr>
              <tr>
                <th>百度地图密钥：</th>
                <td>
                  <input type="text" name="baidumap_key" id="baidumap_key" class="layui-input input-300" value="<!--{$config.baidumap_key}-->" />
                  <br />
                  <span class="text_tip_inline">(设置您当前网址的百度地图密钥，才能使用百度地图功能，详情请看：<a href="http://lbsyun.baidu.com/" target="_blank">http://lbsyun.baidu.com/</a>)</span>
                </td>
              </tr>
    
            </table>
            
            
          </div>
          <!--//content1 -->
          
          <div class="layui-tab-item">
            <div class="layui-card-header">设置活动报名</div>
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="20%">活动报名权限：</th>
                <td width="80%">
                  <table class="oe_tbl_form layui-form">
                    <tr>
                      <td width="20%">实名认证权限限制：</td>
                      <td width="80%">
                        <input type="radio" name="partybm_limit_needidrz" id="partybm_limit_needidrz" title="开启" value="1"<!--{if $config.partybm_limit_needidrz=='1'}--> checked<!--{/if}--> />
                        <input type="radio" name="partybm_limit_needidrz" id="partybm_limit_needidrz" title="关闭" value="0"<!--{if $config.partybm_limit_needidrz=='0'}--> checked<!--{/if}--> />
                        <br />
                        <span class="text_tip_inline">（开启之后，没有实名认证，无法报名参加活动等操作）</span>
                      </td>
                    </tr>
                    <tr>
                      <td>VIP权限限制：</td>
                      <td>
                        <input type="radio" name="partybm_limit_vip" id="partybm_limit_vip" title="开启" value="1"<!--{if $config.partybm_limit_vip == '1'}--> checked<!--{/if}--> />
                        <input type="radio" name="partybm_limit_vip" id="partybm_limit_vip" title="关闭" value="0"<!--{if $config.partybm_limit_vip == '0'}--> checked<!--{/if}--> />
                        <br />
                        <span class="text_tip_inline">（开启之后，没有成为VIP会员，无法报名参加活动等操作）</span>
                      </td>
                    </tr>
                  </table>
                </td>
              </tr>
            </table>
            
            <div class="layui-card-header">设置报名活动表单字段</div>
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="20%">手机验证码：</th>
                <td width="80%">
                  <input type="checkbox" name="party_is_mobilecode" id="party_is_mobilecode" title="开启" value="1"<!--{if $config.party_is_mobilecode == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>身份证号字段：</th>
                <td>
                  <input type="checkbox" name="party_is_idcard" id="party_is_idcard" title="开启" value="1"<!--{if $config.party_is_idcard == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              
              <tr>
                <th>微信字段：</th>
                <td>
                  <input type="checkbox" name="party_is_weixin" id="party_is_weixin" title="开启" value="1" <!--{if $config.party_is_weixin == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>地区字段：</th>
                <td>
                  <input type="checkbox" name="party_is_dist" id="party_is_dist" title="开启" value="1"<!--{if $config.party_is_dist == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>年龄字段：</th>
                <td>
                  <input type="checkbox" name="party_is_age" id="party_is_age" title="开启" value="1"<!--{if $config.party_is_age == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              
              <tr>
                <th>婚况字段：</th>
                <td>
                  <input type="checkbox" name="party_is_marry" id="party_is_marry" title="开启" value="1"<!--{if $config.party_is_marry == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>交友类型字段：</th>
                <td>
                  <input type="checkbox" name="party_is_sort" id="party_is_sort" title="开启" value="1"<!--{if $config.party_is_sort == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>身高字段：</th>
                <td>
                  <input type="checkbox" name="party_is_height" id="party_is_height" title="开启" value="1"<!--{if $config.party_is_height == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>体重字段：</th>
                <td>
                  <input type="checkbox" name="party_is_weight" id="party_is_weight" title="开启" value="1"<!--{if $config.party_is_weight == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>学历字段：</th>
                <td>
                  <input type="checkbox" name="party_is_education" id="party_is_education" title="开启" value="1"<!--{if $config.party_is_education == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>职业字段：</th>
                <td>
                  <input type="checkbox" name="party_is_job" id="party_is_job" title="开启" value="1"<!--{if $config.party_is_job == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>

              <tr>
                <th>收入字段：</th>
                <td>
                  <input type="checkbox" name="party_is_salary" id="party_is_salary" title="开启" value="1"<!--{if $config.party_is_salary == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>住房情况字段：</th>
                <td>
                  <input type="checkbox" name="party_is_house" id="party_is_house" title="开启" value="1"<!--{if $config.party_is_house == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>购车情况字段：</th>
                <td>
                  <input type="checkbox" name="party_is_car" id="party_is_car" title="开启" value="1"<!--{if $config.party_is_car == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>信息来源字段：</th>
                <td>
                  <input type="checkbox" name="party_is_sources" id="party_is_sources" title="开启" value="1"<!--{if $config.party_is_sources == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
              <tr>
                <th>参加活动目的字段：</th>
                <td>
                  <input type="checkbox" name="party_is_target" id="party_is_target" title="开启" value="1"<!--{if $config.party_is_target == '1'}--> checked<!--{/if}--> />
                </td>
              </tr>
            </table>
          </div>
          <!--//content2 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">页面方式：</th>
                <td width="85%">
                  <input type="radio" name="urlsuffix" title="PHP动态页" value="php"<!--{if $config.urlsuffix == 'php'}--> checked<!--{/if}--> />
                  <input type="radio" name="urlsuffix" title="HTML伪静态" value="rewrite"<!--{if $config.urlsuffix == 'rewrite'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(开启htlm伪静态，需要生成以下规则文件)</span>
                </td>
              </tr>
              <tr>
                <th>伪静态规则：</th>
                <td>
                  <div class="layui-input-inline input-300">
                    <select name="rewriterule" id="rewriterule">
                      <option value="">=请选择=</option>
                      <option value="apache"<!--{if $config.rewriterule == 'apache'}--> selected<!--{/if}-->>Apache规则</option>
                      <option value="iis6"<!--{if $config.rewriterule == 'iis6'}--> selected<!--{/if}-->>IIS6 Rewrite3.1规则</option>
                      <option value="iis7"<!--{if $config.rewriterule == 'iis7'}--> selected<!--{/if}-->>IIS7及以上规则</option>
                      <option value="nginx"<!--{if $config.rewriterule == 'nginx'}--> selected<!--{/if}-->>Nginx规则</option>
                    </select>
                  </div>
                  <br />
                  <span class="text_tip_inline">
                    您当前使用的WEB引擎：<font color="green"><!--{$sysdata.webengine}--></font>
                    <br />
                    请选择web引擎对应的伪静态规则
                  </span>
                </td>
              </tr>
              <tr>
                <td></td>
                <td>
                  <span class="text_tip_inline">
                  如果使用HTML伪静态必须满足以下条件：<br />
                  1、网站根目录必须有0777权限，能写入、修改、删除.htaccess或者Web.config规则配置文件；<br />
                  2、选择Apache引擎，Apache必须安装了Rewrite模块，并且Apache配置文件AllowOverride设置为all；<br />
                  3、选择IIS6引擎，IIS6必须已经安装Rewrite3.1扩展组件，如果Rewrite版本低于3.1，无法使用伪静态；<br />
                  4、选择IIS7引擎，根目录会生成Web.config规则配置文件；<br />
                  5、选择Nginx引擎，Nginx必须支持Rewrite模块。
                  </span>
                </td>
              </tr>
            </table>
          </div>
          <!--//content4 -->
          
          <div class="layui-tab-item">
            <table class="oe_tbl_form layui-form">
              <tr>
                <th width="15%">Memcache缓存：</th>
                <td width="85%">
                  <input type="radio" name="memcache_flag" title="开启" value="1"<!--{if $config.memcache_flag == '1'}--> checked<!--{/if}--> />
                  <input type="radio" name="memcache_flag" title="关闭" value="0"<!--{if $config.memcache_flag == '0'}--> checked<!--{/if}--> />
                  <br />
                  <span class="text_tip_inline">(开启Memcache缓存机制，需要php环境支持Memcache)</span>
                </td>
              </tr>
              <tr>
                <th>Memcache服务器：</th>
                <td>
                  <input type="text" name="memcache_host" id="memcache_host" class="layui-input input-200" value="<!--{$config.memcache_host}-->" />
                </td>
              </tr>
              <tr>
                <th>Memcache端口号：</th>
                <td>
                  <input type="text" name="memcache_port" id="memcache_port" class="layui-input input-100" value="<!--{$config.memcache_port}-->" />
                </td>
              </tr>
              <tr>
                <th>页面缓存有效时间：</th>
                <td>
                  <input type="text" name="memcache_pagetime" id="memcache_pagetime" class="layui-input input-100" value="<!--{$config.memcache_pagetime}-->" /> <span class="text_tip_inline">秒</span>
                </td>
              </tr>
              <tr>
                <th>数据缓存有效时间：</th>
                <td>
                  <input type="text" name="memcache_sqltime" id="memcache_sqltime" class="layui-input input-100" value="<!--{$config.memcache_sqltime}-->" /> <span class="text_tip_inline">秒</span>
                </td>
              </tr>
            </table>
          </div>
          <!--//content5 -->
        
        </div>
        
      </div>
      <!--//tab End -->
      
    </div>
  </div> 
  </form>
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<script type="text/javascript">
$(function(){
    layui.use(['layer', 'element'], function(){ 
    
    });
});
</script>
<!--{/if}-->

<!--{if $a == "rpzy"}-->
<div class="layui-fluid oe_fluid">
  
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">网站设置</a><span lay-separator="">/</span>
      <a><cite>RP诚信设置</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//Top End -->
  <blockquote class="layui-elem-quote">
    <strong>温馨提示：</strong><br />
     登录 http://open.oephp.com 申请开发者帐号，然后创建应用，将应用的AppID和AppKey配置到接口输入框。<br />
     RP开放平台申请地址：<a href="http://open.oephp.com/" target="_blank">http://open.oephp.com/</a> 
  </blockquote>

  
  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="saverpzy" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-body">
    
      <div class="layui-card-header">
        配置RP开放平台接口
        <span class="text_tip_inline">(设置正确的接口参数才能正常使用)</span>
      </div>
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">APP ID：</th>
          <td width="85%">
            <input type="text" name="appid" id="appid" class="layui-input input-250" value="<!--{$config.rpzy.appid}-->" />
            <br />
            <span class="text_tip_inline">(RP开放平台网站应用 APP ID，请妥善保存，请勿泄漏)</span>
          </td>
        </tr>
        <tr>
          <th>APP KEY：</th>
          <td>
            <input type="text" name="appkey" id="appkey" class="layui-input input-250" value="<!--{$config.rpzy.appkey}-->" />
            <br />
            <span class="text_tip_inline">(RP开放平台网站应用 APP KEY，请妥善保存，请勿泄漏)</span>
          </td>
        </tr>

        <tr>
          <th>通信状态：</th>
          <td>
            <span id="status_tips">--</span>
          </td>
        </tr>
        <tr>
          <th>可用余额：</th>
          <td>
            <input type="button" name="btn_sermap" id="but_check_balance" f="but_check_balance" class="layui-btn oe_btn_32" value="点击查询" />&#12288;
            <span id="balance_tips">--</span>
            &#12288;&#12288;
            <!--{if !empty($config.rpzy.appid)}-->
            <a style="color:blue;" href="http://open.oephp.com/index.php?c=recharge&appid=<!--{$config.rpzy.appid}-->" target="_blank">点击去充值&gt;&gt;</a>
            <!--{/if}-->
          </td>
        </tr>
      </table>
      
      <div class="layui-card-header">
        PR诚信查询设置
        <span class="text_tip_inline">(开启之后可查询会员资料是否被举报过，需配置好接口)</span>
      </div>
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">RP诚信查询开关：</th>
          <td width="85%">
            <input type="radio" name="rpzy_flag" title="开启" value="1"<!--{if $config.rpzy_flag == '1'}-->  checked<!--{/if}--> />
            <input type="radio" name="rpzy_flag" title="关闭" value="0"<!--{if $config.rpzy_flag == '0'}-->  checked<!--{/if}--> />
          </td>
        </tr>
      </table>
      
      <!--//0.02.05 -->
      <div class="layui-card-header">
        自助实名认证
        <span class="text_tip_inline">(用户输入姓名、身份证+手机号码三要素完成自助实名认证，需配置好接口)</span>
      </div>
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">会员实名认证：</th>
          <td width="85%">
            <input type="radio" name="selfrz_flag" title="开启" value="1"<!--{if $config.selfrz_flag == '1'}-->  checked<!--{/if}--> />
            <input type="radio" name="selfrz_flag" title="关闭" value="0"<!--{if $config.selfrz_flag == '0'}-->  checked<!--{/if}--> />
            <span class="text_tip_inline" style="color:red;">
            (开启该功能，请确保RP开放平台帐户有足够的余额，接口每查询一次收费2元)
            </span>
          </td>
        </tr>
        <!--//0.04.13 -->
        <tr>
          <th>会员实名费用：</th>
          <td>

            <input type="text" name="selfrz_fee" id="selfrz_fee" class="layui-input input-100" value="<!--{$config.selfrz_fee}-->" />&nbsp;元 
            &#12288;
            认证成功后返还 <input type="text" name="selfrz_backmoney" id="selfrz_backmoney" class="layui-input input-100" value="<!--{$config.selfrz_backmoney}-->" />&nbsp;<!--{$config.moneyname}-->
            <br />
            <span class="text_tip_inline">(设置会员自助实名认证费用，0表示免费)</span>
          </td>
        </tr>
        <!--//0.02.05 -->
        <tr>
          <th>运营商紧急设置：</th>
          <td>
             <br />
             <font color="red">(当移动、联动、电信运营商无法正常使用时，可设置为走人工认证机制(会员上传身份证，后台审核认证)，不影响正常使用)</font><br />
             <input type="checkbox" name="oldrz_yidong" lay-skin="primary" title="开启移动手机段号人工认证" value="1"<!--{if $config.oldrz_yidong == '1'}--> checked<!--{/if}--> />
             <input type="checkbox" name="oldrz_liantong" lay-skin="primary" title="开启联通手机段号人工认证" value="1"<!--{if $config.oldrz_liantong == '1'}--> checked<!--{/if}--> />
             <input type="checkbox" name="oldrz_dianxin" lay-skin="primary" title="开启电信手机段号人工认证" value="1"<!--{if $config.oldrz_dianxin == '1'}--> checked<!--{/if}--> />
          </td>
        </tr>
      </table>
      
    </div>
    
  </div> 
  </form>
  
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>

<script type="text/javascript">
$(function(){
    //查询余额
    $(document).on("click", "[f='but_check_balance']", function(){
        _rpzyBalance();
    });
    _rpzyStatus();
});
//通信状态
function _rpzyStatus() {
    $.ajax({
        type: "GET",
        url: _ROOT_PATH+"index.php",
        cache: false,
        data: {
          c:"rpzy", a:"status", r:get_rndnum(8)
        },
        dataType: "json",
        success: function($data) {
            $json = eval($data);
            $response = $json.response;
            $result = $json.result;
            if ($response == "1") {
                $("#status_tips").html("<font color='green'>通信成功</font>");
            }
            else {
                if ($result.length == 0) {
                    $result = "通信失败";
                }
                $("#status_tips").html("<font color='red'>"+$result+"</font>");
            }
        },
        error: function() {
        
        }
    });
}
//余额查询
function _rpzyBalance() {
    $.ajax({
        type: "GET",
        url: _ROOT_PATH+"index.php",
        cache: false,
        data: {
              c:"rpzy", a:"balance", r:get_rndnum(8)
        },
        dataType: "json",
        success: function($data) {
            $json = eval($data);
            $response = $json.response;
            $result = $json.result;
            if ($response == "1") {
                $("#balance_tips").html("<font color='green'>¥"+$result+"</font>");
            }
            else {
                if ($result.length == 0) {
                    $result = "查询失败";
                }
                $("#balance_tips").html("<font color='red'>"+$result+"</font>");
            }
        },
        error: function() {
        
        }
    });
}
</script>
<!--{/if}-->

<!--{if $a == "oemarry"}-->
<div class="layui-fluid oe_fluid">
  
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">接口设置</a><span lay-separator="">/</span>
      <a><cite>OEmarry整合接口</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//Top End -->

  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveoemarry" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      OEmarry整合&#12288;
      <span class="text_tip_inline">(开启与OEmarry婚嫁系统会员整合功能)</span>
    </div>

    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">整合状态：</th>
          <td width="85%">
          <input type="radio" name="oe_integration" title="开启" value="1"<!--{if $config.oeinterface.flag == '1'}-->  checked<!--{/if}--> />
          <input type="radio" name="oe_integration" title="关闭" value="0"<!--{if $config.oeinterface.flag == '0'}-->  checked<!--{/if}--> />
          </td>
        </tr>
        <tr>
          <th>整合密钥：</th>
          <td>
            <input type="text" name="oe_interface_key" id="oe_interface_key" class="layui-input input-300" value="<!--{$config.oeinterface.apikey}-->" />
            <br />
            <span class="text_tip_inline">(密钥需与OEmarry网站设置的一致)</span>
          </td>
        </tr>
        <tr>
          <th>OEmarry网址：</th>
          <td>
            <input type="text" name="oe_interface_url" id="oe_interface_url" class="layui-input input-300" value="<!--{$config.oeinterface.apiurl}-->" />
            <br />
            <span class="text_tip_inline">(填写OEmarry网址，以/结束)</span>
          </td>
        </tr>

        <tr>
          <th>OEmarry名称：</th>
          <td>
            <input type="text" name="oe_interface_name" id="oe_interface_name" class="layui-input input-300" value="<!--{$config.oeinterface.apiname}-->" />
          </td>
        </tr>
        <tr>
          <th>通信状态：</th>
          <td>
            <input type="button" name="testoe" id="testoe" f="testoe" class="layui-btn oe_btn_32" value="点击测试通信状态" />&#12288;
            <span id="test_tips">--</span>
          </td>
        </tr>
      </table>
    </div>
  </div> 
  </form>
  
  <div class="oe_tbl_form_btn">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>

<script type="text/javascript">
$(function(){
    //测试接口状态...
    $(document).on("click", "[f='testoe']", function(){
        $("#test_tips").html("loading...");
        $.ajax({
            type: "POST",
            url: _ROOT_PATH+"index.php?c=interface",
            cache: false,
            data: {a:"sendtest", r:get_rndnum(8)},
            dataType: "json",
            success: function($data) {
                $json = eval($data);
                $response = $json.response;
                $result = $json.result;
                if ($response == '1') {
                    $("#test_tips").html("<font color='green'>通信正常</font>");
                }
                else {
                  if ($result.length > 0) {
                      $("#test_tips").html("<font color='red'>"+$result+"</font>");
                  }
                  else {
                      $("#test_tips").html("<font color='red'>通信失败，请检查是否开启整合和密钥是否一致</font>");
                  }
                }
            },
            error: function() {
            }
        });

    });

});
</script>
<!--{/if}-->

<!--{if $a == "qiniu"}-->
<div class="layui-fluid oe_fluid">
  
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">接口设置</a><span lay-separator="">/</span>
      <a><cite>七牛云接口</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//Top End -->
  <blockquote class="layui-elem-quote">
    <strong>温馨提示：</strong>
     七牛云申请地址：<a href="http://www.qiniu.com/" target="_blank">http://www.qiniu.com/</a> <br />
	   只有开通了七牛云存储权限才可以正常使用。使用微信语音独白功能，需要开启七牛云服务，否则无法正常转换语音编码。
  </blockquote>

  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveqiniu" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      七牛云存储接口&#12288;
      <span class="text_tip_inline">(使用七牛云存储图片、附件等)</span>
      
      <input type="button" name="but_send_syncound" id="but_send_syncound" f="but_send_syncound" class="layui-btn oe_btn_32" value="点击同步/上传附件到七牛云" />&#12288;
      <span id="syn_loading" style="display:none;position:absolute;top:15px;"><img src="<!--{$urlpath}-->tpl/admin/images/loading.gif" /></span>
      &#12288;
      <em id="syn_result">（还有 <font color="red"><!--{countdata type="system" mod="attach" where="v.synyun='0'"}--></font> 个附件/图片未上传）</em>
      
    </div>

    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">七牛云存储：</th>
          <td width="85%">
          <input type="radio" name="qiniu_flag" title="开启" value="1"<!--{if $config.qiniu_flag == '1'}-->  checked<!--{/if}--> />
          <input type="radio" name="qiniu_flag" title="关闭" value="0"<!--{if $config.qiniu_flag == '0'}-->  checked<!--{/if}--> />
          </td>
        </tr>
        <tr>
          <th>图片云存储：</th>
          <td>
            <input type="radio" name="qiniu_useimage" title="开启" value="1"<!--{if $config.qiniu_useimage == '1'}-->  checked<!--{/if}--> />
            <input type="radio" name="qiniu_useimage" title="关闭" value="2"<!--{if $config.qiniu_useimage == '2'}-->  checked<!--{/if}--> />
            <br />
            <span class="text_tip_inline">(开启之后，网站上传的图片将使用七牛云存储)</span>
          </td>
        </tr>
        <tr>
          <th>App Key (AK)：</th>
          <td>
            <input type="text" name="appkey" id="appkey" class="layui-input input-300" value="<!--{$qiniuargs.appkey}-->" />
            <br />
            <span class="text_tip_inline">七牛云管理界面->个人面板->密钥管理</span>
          </td>
        </tr>
        <tr>
          <th>Secret Key (SK)：</th>
          <td>
            <input type="text" name="secretkey" id="secretkey" class="layui-input input-300" value="<!--{$qiniuargs.secretkey}-->" />
            <br />
            <span class="text_tip_inline">七牛云管理界面->个人面板->密钥管理</span>
          </td>
        </tr>
        <tr>
          <th>存储区域：</th>
          <td>
            <div class="layui-inline input-300">
              <select name="qiniu_apiarea" id="qiniu_apiarea">
              <option value="">请选择</option>
              <option value="1"<!--{if $config.qiniu_apiarea == '1'}--> selected<!--{/if}-->>华东地区</option>
              <option value="2"<!--{if $config.qiniu_apiarea == '2'}--> selected<!--{/if}-->>华北地区</option>
              <option value="3"<!--{if $config.qiniu_apiarea == '3'}--> selected<!--{/if}-->>华南地区</option>
              <option value="4"<!--{if $config.qiniu_apiarea == '4'}--> selected<!--{/if}-->>北美地区</option>
              </select>
            </div>
            <br />
            <span class="text_tip_inline">(创建云存储时所选择的存储区域，必须一致，否则无法正常使用)</span>
          </td>
        </tr>
        <tr>
          <th>云存储域名网址：</th>
          <td>
            <input type="text" name="qiniu_domain" id="qiniu_domain" class="layui-input input-300" value="<!--{$config.qiniu_domain}-->" />
            <br />
            <span class="text_tip_inline">(填写云存储域名网址，以http://开头，以/结束)</span>
          </td>
        </tr>
        <tr>
          <th>云对象存储名称：</th>
          <td>
            <input type="text" name="qiniu_bucket" id="qiniu_bucket" class="layui-input input-200" value="<!--{$config.qiniu_bucket}-->" />
            <br />
            <span class="text_tip_inline">(七牛云管理界面->对象存储->创建的存储空间名称)</span>
          </td>
        </tr>
        <tr>
          <th>云多媒体队列名称：</th>
          <td>
            <input type="text" name="qiniu_media" id="qiniu_media" class="layui-input input-200" value="<!--{$config.qiniu_media}-->" />
            <br />
            <span class="text_tip_inline">(七牛云管理界面->多媒体处理->创建的多媒体队列名称)</span>
            <br />
            <span class="text_tip_inline">设置云多媒体队列，用于保存微信语音独白和语音转码。</span>
          </td>
        </tr>
        <tr>
          <td colspan="2">
            <b>原有附件图片同步说明：</b><br />

            开启后必须把网站目录“data”附件图片同步到七牛云资源服务器/云储存空间，以防开启云存储后找不到原有资源。<br />

            七牛官网：https://portal.qiniu.com/create；注册登录后 添加对象储存-》添加完成后需同步网站目录“data”文件到储存空间。<br />
            上传网站data附件图片，需要使用七牛云附件同步工具 qrsbox(图形界面同步上传工具)。
            <a href="http://7xvilo.com1.z0.glb.clouddn.com/qrsbox_2016_11_24.zip" target="_blank">点击下载qrsbox工具</a>
            <br /><br />
            <b>qrsbox使用说明：</b><br />
            1、打开qrsbox工具，填写对应的AK和SK，选择从网站服务器下载到本地的data目录，填入储存空间名，Key前缀不填；<br />

            2、开始同步，等待同步完成，就可开启七牛云储存功能了。
            <br /><br />
            <b>温馨提示：</b><br />
            qrsbox 的 Windows版本适用于华东，华北，华南，北美机房。<br />
            qrsbox 的 Mac 和 Linux 版本仅适用于华东空间，其他地区的空间可以使用qshell。<br />
            qrsbox文档地址：http://developer.qiniu.com/code/v6/tool/qrsbox.html<br />
          </td>
        </tr>
      </table>
    </div>
  </div> 
  </form>
  
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>

<script type="text/javascript">
$(function(){


});
</script>
<!--{/if}-->

<!--{if $a == "autoai"}-->
<div class="layui-fluid oe_fluid">
  
  <div class="oe_breadcrumb_box clearfix">
    <div class="layui-breadcrumb fl" lay-filter="breadcrumb" style="visibility: visible;">
      <a href="javascript:;">系统配置</a><span lay-separator="">/</span>
      <a href="javascript:;">网站设置</a><span lay-separator="">/</span>
      <a><cite>机器人设置</cite></a>
    </div>
    <div class="oe_tool_bar ft">
      <button class="layui-btn layui-btn-sm layui-btn-radius" id="but_submit_post2" lay-submit lay-filter="editform2">
        编辑保存
        <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
      </button>
    </div>
  </div>
  <!--//Top End -->

  <form class="layui-form" id="myform" action="<!--{$oefile}-->&c=<!--{$c}-->" method="post">
  <input type="hidden" name="a" id="a" value="saveautoai" />
  <div class="layui-card oe_table_edit">
    <div class="layui-card-header">
      机器人设置
      <span class="text_tip_inline">(当前版本：<!--{$robot.version}-->)</span>
    </div>

    <div class="layui-card-body">
      <table class="oe_tbl_form layui-form">
        <tr>
          <th width="15%">无刷新请求：</th>
          <td width="85%">
            <input type="radio" name="robot_loopstatus" title="开启" value="1"<!--{if $config.robot_loopstatus == '1'}--> checked<!--{/if}--> />
            <input type="radio" name="robot_loopstatus" title="关闭" value="0"<!--{if $config.robot_loopstatus == '0'}--> checked<!--{/if}--> />
            &#12288;
            请求频率：<input type="text" name="robot_looptimer" id="robot_looptimer" class="layui-input input-100" value="<!--{$config.robot_looptimer}-->" /> 秒<br />
            <span class="text_tip_inline">温馨提示：开启该功能，会耗费服务器页面资源，请根据实际情况设定。</span>
          </td>
        </tr>
        <tr>
          <th>请求地区范围：</th>
          <td>
            <input type="radio" name="robotarea" title="不限地区" value="0"<!--{if $config.robotarea == '0'}--> checked<!--{/if}--> />
            <input type="radio" name="robotarea" title="同省(一级地区)" value="1"<!--{if $config.robotarea == '1'}--> checked<!--{/if}--> />
            <input type="radio" name="robotarea" title="同城(二级地区)" value="2"<!--{if $config.robotarea == '2'}--> checked<!--{/if}--> /> <br />
            <span class="text_tip_inline">选择后，机器人只给同地区的人发私信、访问操作</span>
          </td>
        </tr>
        <tr>
          <th>智能访问设置：</th>
          <td>
            机器人自动发信、打招呼前增加访问记录：
            <input type="radio" name="robot_sendbeforeview" title="开启" value="1"<!--{if $config.robot_sendbeforeview == "1"}--> checked<!--{/if}--> />
            <input type="radio" name="robot_sendbeforeview" title="关闭" value="0"<!--{if $config.robot_sendbeforeview == "0"}--> checked<!--{/if}--> />
            <br />
            设置提前访问时间范围： 
            <input type="text" name="robot_sendbeforeview_mintime" id="robot_sendbeforeview_mintime" class="layui-input input-100" value="<!--{$config.robot_sendbeforeview_mintime}-->" />
            -
            <input type="text" name="robot_sendbeforeview_maxtime" id="robot_sendbeforeview_maxtime" class="layui-input input-100" value="<!--{$config.robot_sendbeforeview_maxtime}-->" />
            分钟
          </td>
        </tr>
        
        <tr>
          <td colspan="2">
            <span class="text_tip_inline">机器人自动发私信设置 (参数都设置为0时表示不执行)</span>
          </td>
        </tr>
        <tr>
          <th>自动发私信： </th>
          <td>
            <input type="radio" name="robotmsgflag" title="开启" value="1"<!--{if $config.robotmsgflag=='1'}--> checked<!--{/if}--> />
            <input type="radio" name="robotmsgflag" title="关闭" value="0"<!--{if $config.robotmsgflag=='0'}--> checked<!--{/if}--> />
            &nbsp;&nbsp;&nbsp;
            <a href="<!--{$oefile}-->&c=greet">自定义私信内容&gt;&gt;</a>
          </td>
        </tr>
        <tr>
          <th>会员接收时间设置：</th>
          <td style="line-height:40px;">
            新会员注册时间：<input type="text" name="robotmsgregtime" id="robotmsgregtime" class="layui-input input-100" value="<!--{$config.robotmsgregtime}-->" /> 分钟之后 <br />
            老会员登录时间：<input type="text" name="robotmsglogintime" id="robotmsglogintime" class="layui-input input-100" value="<!--{$config.robotmsglogintime}-->" /> 分钟之后
          </td>
        </tr>
        <tr>
          <th>系统自动推送设置：</th>
          <td style="line-height:40px;">
            每次随机推送机器人：<input type="text" name="robotmsgnums" id="robotmsgnums" class="layui-input input-100" value="<!--{$config.robotmsgnums}-->" />个<br />
            登录 <input type="text" name="robotmsg_fre" id="robotmsg_fre" class="layui-input input-100" value="<!--{$config.robotmsg_fre}-->" /> 分钟<br />
            之前 频率：
            <input type="text" name="robotmsgstartval_a" id="robotmsgstartval_a" class="layui-input input-100" value="<!--{$config.robotmsgstartval_a}-->" />
            -
            <input type="text" name="robotmsgendval_a" id="robotmsgendval_a" class="layui-input input-100" value="<!--{$config.robotmsgendval_a}-->" />
            分钟自动推送一次<br />
            之后 频率：
            <input type="text" name="robotmsgstartval_b" id="robotmsgstartval_b" class="layui-input input-100" value="<!--{$config.robotmsgstartval_b}-->" />
            -
            <input type="text" name="robotmsgendval_b" id="robotmsgendval_b" class="layui-input input-100" value="<!--{$config.robotmsgendval_b}-->" />
            分钟自动推送一次<br />
          </td>
        </tr>
        <tr style="display:none;">
          <th>邮件提醒：</th>
          <td>
            <input type="radio" name="robotmsgemailtip" title="开启" value="1"<!--{if $config.robotmsgemailtip=='1'}--> checked<!--{/if}--> />
            <input type="radio" name="robotmsgemailtip" title="关闭" value="0"<!--{if $config.robotmsgemailtip=='0'}--> checked<!--{/if}--> />
            &nbsp;&nbsp;&nbsp;
            需要邮件系统支持，<a href="<!--{$oefile}-->&c=setting&a=mail" style="color:blue;">配置邮件参数</a>，<a href="<!--{$oefile}-->&c=mailtpl" style="color:blue;">邮件模板设置</a> 
          </td>
        </tr>
        
        <tr>
          <td colspan="2">
            <span class="text_tip_inline">机器人自动访问设置 (参数都设置为0时表示不执行)</span>
          </td>
        </tr>
        <tr>
          <th>自动访问： </th>
          <td>
            <input type="radio" name="robotviewflag" title="开启" value="1"<!--{if $config.robotviewflag=='1'}--> checked<!--{/if}--> />
            <input type="radio" name="robotviewflag" title="关闭" value="0"<!--{if $config.robotviewflag=='0'}--> checked<!--{/if}--> />
          </td>
        </tr>
        <tr>
          <th>会员接收区间设置：</th>
          <td style="line-height:40px;">
            新会员注册时间：<input type="text" name="robotviewregtime" id="robotviewregtime" class="layui-input input-100" value="<!--{$config.robotviewregtime}-->" /> 分钟之后<br />
            老会员登录时间：<input type="text" name="robotviewlogintime" id="robotviewlogintime" class="layui-input input-100" value="<!--{$config.robotviewlogintime}-->" /> 分钟之后
          </td>
        </tr>
        <tr>
          <th>系统自动推送设置：</th>
          <td style="line-height:40px;">
            每次随机推送机器人：<input type="text" name="robotviewnums" id="robotviewnums" class="layui-input input-100" value="<!--{$config.robotviewnums}-->" />个 <br />

            登录 <input type="text" name="robotview_fre" id="robotview_fre" class="layui-input input-100" value="<!--{$config.robotview_fre}-->" /> 分钟<br />
            之前 频率：
            <input type="text" name="robotviewstartval_a" id="robotviewstartval_a" class="layui-input input-100" value="<!--{$config.robotviewstartval_a}-->" />
            -
            <input type="text" name="robotviewendval_a" id="robotviewendval_a" class="layui-input input-100" value="<!--{$config.robotviewendval_a}-->" />
            分钟自动推送一次<br />
            之后 频率：
            <input type="text" name="robotviewstartval_b" id="robotviewstartval_b" class="layui-input input-100" value="<!--{$config.robotviewstartval_b}-->" />
            -
            <input type="text" name="robotviewendval_b" id="robotviewendval_b" class="layui-input input-100" value="<!--{$config.robotviewendval_b}-->" />
            分钟自动推送一次<br />
          </td>
        </tr>
       
      </table>
    </div>
  </div> 
  </form>
  
  <div class="oe_kong"></div>
  <div class="oe_tbl_form_btn current">
    <button class="layui-btn" id="but_submit_post" lay-submit lay-filter="editform2">
      编辑保存
      <span class="oe_btn_loading layui-anim layui-icon layui-anim-rotate layui-anim-loop" style="display:none;">&#xe63d;</span>
    </button>
  </div>
</div>
<!--{/if}-->

</body>
</html>