<!--#include file="../../fy.Function.asp"-->
<!doctype html>
<html>
<head>
<meta charset="gb2312">
<title>留言板设置</title>
<link rel="stylesheet" type="text/css" href="../../css/base.css">
<link rel="stylesheet" type="text/css" href="../../css/content.css">
<script type='text/javascript' src='../../js/main.js'></script>
<script type="text/javascript" src="../../../fy_inc/js/jquery.js"></script>
<script type='text/javascript' src='../../../fy_inc/js/lhg/lhgdialog.min.js'></script>
</head>
<body>
<div class="content"> 
	<div class="breadnav">当前位置：<a href="#">后台首页</a> >> &gt;&gt; 插件中心 &gt;&gt;<a href="?">留言本管理</a></div>
    <div class="opers">
    	<span class="btn">查看选项：</span> 
		<a href="class.index.asp" class="btn">留言栏目</a> 
		<a href="index.asp" class="btn ">留言系统</a>
		<a href="sys.asp" class="btn btn_primary">留言设置</a>
		<a href="Listm.asp" class="btn">留言自定义字段</a>

    </div>
<%
	If Not fycms.fycms_QXYZ(0,"lyxt_fy","") Then   Call fycms.Alert("对不起，你没有操作权限！","") 


Dim Rs,A,fycms_Book,I,BookSetting
Set Rs=server.CreateObject("adodb.recordset") 
Rs.OPen "Select PlusConfig from Plus_fy  where PlusID='lyxt_fy'",Conn,1,3

	If request("A") ="save" Then 
		For I=0 To 7
			BookSetting=BookSetting& Replace(request.Form("fycms_Book" & I &""),"^@$@^","") & "^@$@^"
		Next

		Rs("PlusConfig")=BookSetting
		Rs.Update:Application.Contents.RemoveAll
		Rs.Close:Set Rs = Nothing	
		Call fycms.ActErr("修改成功","Sys_fy/Book/Sys.asp","")
 	Else
	fycms_Book=Split(Rs("PlusConfig"),"^@$@^")
%>
<form name="form1" method="post" action="?A=save">
    <div class="divtable"> 
        <dl>
            <dt>留言本状态：</dt>
            <dd>
                <input <% IF  fycms_Book(0)   = "0" Then echo "Checked" %>  type="radio"  id="radio" name="fycms_Book0" value="0">
	      <label for="radio"><font color="green">正常 &nbsp;</font></label>
          <input  <% IF  fycms_Book(0)  = "1" Then echo "Checked" %>  id="radio2" type="radio" name="fycms_Book0" value="1">
	    <label for="radio2"><font color="red">关闭 &nbsp;</font></label>    
            </dd>
         </dl>
        
        <dl>
            <dt>留言脏话过滤：</dt>
            <dd>
               <input <% IF fycms_Book(1)  = "0" Then echo "Checked" %>  type="radio"  id="radio3" name="fycms_Book1" value="0">
	      <label for="radio3"><font color="green">启用 &nbsp;</font></label>
          <input  <% IF  fycms_Book(1)  = "1" Then echo "Checked" %>  id="radio4" type="radio" name="fycms_Book1" value="1">
	    <label for="radio4"><font color="red">禁用 &nbsp;</font></label>
             </dd>
         </dl>
 
        <dl>
            <dt>留言审核功能：</dt>
            <dd>
               <input <% IF fycms_Book(2)  = "0" Then echo "Checked" %>  type="radio"  id="radio5" name="fycms_Book2" value="0">
	      <label for="radio5"><font color="green">启用 &nbsp;</font></label>
          <input  <% IF fycms_Book(2) = "1" Then echo "Checked" %>  id="radio6" type="radio" name="fycms_Book2" value="1">
	    <label for="radio6"><font color="red">禁用 &nbsp;</font></label>
	    如禁用留言审核功能，则新留言将直接发表
             </dd>
         </dl>
 
        <dl>
            <dt>留言验证码：</dt>
            <dd>
               <input <% IF fycms_Book(3)  = "0" Then echo "Checked" %>  type="radio"  id="radio7" name="fycms_Book3" value="0">
	      <label for="radio7"><font color="green">启用 &nbsp;</font></label>
          <input  <% IF fycms_Book(3) = "1" Then echo "Checked" %>  id="radio8" type="radio" name="fycms_Book3" value="1">
	    <label for="radio8"><font color="red">禁用 &nbsp;</font></label>
             </dd>
         </dl>
 
        <dl>
            <dt>分页页数：</dt>
            <dd>
               <input name="fycms_Book4" type="text"  class="ainput" value="<%= fycms_Book(4) %>" size="20">
	    大于0小于100
             </dd>
         </dl>
 
        <dl>
            <dt>留言字数控制：</dt>
            <dd>
               <input name="fycms_Book5" type="text"  class="ainput"   value="<%= fycms_Book(5) %>" size="20">
	    0为不限制
             </dd>
         </dl>
 
        <dl>
            <dt>留言本模板：</dt>
            <dd>
               <input name="fycms_Book7" id="fycms_Book7" type="text"  class="ainput"   value="<%= fycms_Book(7) %>" size="40">
			<input id="PicUrls3" class="btn btn_primary" onClick="javascript:stemp('<%=fycms.actsys&fycms.adminurl%>/include/TempLate/Select.asp?ShowPath=<%=fycms.ThisTheme%>&iname=fycms_Book7');" name="button" type="button"   value="选择模板">
             </dd>
         </dl>
 
        <dl>
            <dt>脏话过滤：</dt>
            <dd>
               <textarea name="fycms_Book6" cols="50" rows="3"><%=fycms_Book(6)%></textarea>
            <br>
          用户发表的评论带有此类文字将被替换,用英文逗号  , 符号分隔
             </dd>
         </dl>
 
 
 
            <dl>
            <dt class="vhid">提交：</dt>
            <dd>
                <a class="btn btn_primary" href="javascript:void(0);" onclick="CheckForm()">提交</a>
				<input name="Submit2" type="reset" class="btn" value="  重置  ">
            </dd>
         </dl>
        
    </div>
    </form>
<%	End If 
CloseConn %>


</div>

<script language="javascript">

function CheckForm()
{ var form=document.form1;
	
	 if (form.fycms_Book4.value=='')
		{ alert("请输入分页页数!");   
		  form.fycms_Book4.focus();    
		   return false;
		} 
	    form.submit();
        return true;
	}</script> 
</body>
</html>
