<!--#include file="../conn.asp"-->
<!--#include file="admin_check.asp"-->
<!--#include file="../inc/function.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"/>
<title>管理页面</title>
<link id="maincss" rel="stylesheet" href="images/css/admin_style_<%= AdminSkin %>.css" type="text/css" media="all" />
<script language="javascript">
function CType(n)
{
	for(i=1;i<7;i++)
        {
		eval("h"+i+".className='TableRow3'");
		eval("t"+i+".style.display='none'");
		}
		eval("h"+n+".className='TableRow4'");
		eval("t"+n+".style.display='block'");
		document.config.update.value=n;
}
</script>
</head>
<body leftmargin="0" bottommargin="0" rightmargin="0" topmargin="5" marginheight="0" marginwidth="0" bgcolor="#DDEEFF">
<%
Call chkFlag(18)
opendb
Dim AskD
Set AskD = Server.CreateObject("KwAsk.FunAsk")
	set AskD.myConn =conn
	AskD.myPredb =predb
	AskD.Getsetting
	siteinfo=AskD.siteinfo
	setting=AskD.setting
	regForm=AskD.regForm
IF Trim(Request.QueryString("action"))="save" Then
Dim siteurl,sitepath,adminpath,sqltype,sitename,adminmail,adminqq,sitelogo,sn,sitedes,sitekey
Dim updateN,EmailObject,smtpServer,smtpUser,smtpPass,smtpMail,csspath,copyright,userskin
Dim formX,i
updateN=Trim(Request.Form("update"))
siteurl=Trim(Request.Form("siteurl"))
sitepath=Trim(Request.Form("sitepath"))
adminpath=Trim(Request.Form("adminpath"))
sqltype=Trim(Request.Form("sqltype"))
csspath=Trim(Request.Form("csspath"))
sitename=Trim(Request.Form("sitename"))
adminmail=Trim(Request.Form("adminmail"))
adminqq=Trim(Request.Form("adminqq"))
sitelogo=Trim(Request.Form("sitelogo"))
sqltype=Trim(Request.Form("sqltype"))
sn=Trim(Request.Form("sn"))
copyright=Trim(Request.Form("copyright"))
sitedes=Trim(Request.Form("sitedes"))
sitekey=Trim(Request.Form("sitekey"))
EmailObject=Trim(Request.Form("EmailObject"))
smtpServer=Trim(Request.Form("smtpServer"))
smtpUser=Trim(Request.Form("smtpUser"))
smtpPass=Trim(Request.Form("smtpPass"))
smtpMail=Trim(Request.Form("smtpMail"))
userskin=Trim(Request.Form("userskin"))
For i=1 to 54
   formX=formX&"|"&Trim(Request.Form("form"&i))
Next

    conn.execute("update "&predb&"system set siteurl='"&siteurl&"',sitepath='"&sitepath&"',adminpath='"&adminpath&"',sqltype="&sqltype&",sitename='"&sitename&"',csspath='"&csspath&"',adminmail='"&adminmail&"',adminqq='"&adminqq&"',sitelogo='"&sitelogo&"',copyright='"&copyright&"',sitedes='"&sitedes&"',sitekey='"&sitekey&"',userskin='"&userskin&"',setting='"&formX&"',sn='"&sn&"' where id=1")
   
	AskD.ClsSetting()
    Call ClsIndexClass()
   
   Call SendMsg("恭喜，网站设置成功！")
   Response.Write("<script>setTimeout(""location.href='?'"",2000)</script>")
   Response.End()
End IF

dim rs
set rs=conn.execute("select * from "&predb&"system where id=1")
setting=split(rs("setting"),"|")

%>
<form action="?action=save" method="post" name="config">
<input name="update" type="hidden" value="">
<table class="tableBorder" cellspacing="1" cellpadding="2" width="96%" align="center" border="0">
  <tr>
		<td align="center" class="TableRow4" id="h1" onClick="CType(1)">系统设置</td>
      <td align="center" class="TableRow3" id="h2" onClick="CType(2)">页面设置</td>
      <td align="center" class="TableRow3" id="h3" onClick="CType(3)">积分设置</td>
      <td align="center" class="TableRow3" id="h4" onClick="CType(4)">问题设置</td>
      <td align="center" class="TableRow3" id="h5" onClick="CType(5)">回答设置</td>	   
      <td align="center" class="TableRow3" id="h6" onClick="CType(6)">邮件设置</td>
    </tr>
  <tr>
    <td colspan="7" class="TableRow1">
    <fieldset>
    <legend>快问基本设置</legend>
    <font color="#008800">&nbsp;<img src="Images/c-u.gif" width="7" height="8"> 点击上侧项目设置快问系统各个功能模块。</font>
    </fieldset>
  </td>
  </tr>
</table>

<br>
<table id="t1" class="tableBorder" cellspacing="1" cellpadding="2" width="96%" align="center" border="0">
<tr>
		<th height="25" colspan="2" align="left">系统设置</th>
  </tr>
  <tr>
    <td width="28%" align="right" class="TableRow1">服务器地址：</td>
    <td width="72%" class="TableRow1"><input type="text" name="siteurl" id="siteurl" value="<%= rs("siteurl") %>" readonly onKeyDown="if(event.keyCode==27){this.readOnly=false;}if(this.readOnly==true&&event.keyCode==8){event.keyCode=46}">
      *网站的URL地址，如：http://zhidao.kuaishow.com 若修改请先按"ESC"</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">系统安装位置：</td>
    <td class="TableRow2"><input type="text" name="sitepath" id="sitepath" value="<%= rs("sitepath") %>" readonly onKeyDown="if(event.keyCode==27){this.readOnly=false;}if(this.readOnly==true&&event.keyCode==8){event.keyCode=46}">
      *相对于站点根目录，如:/ask/ 若修改请先按"ESC"</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">后台目录：</td>
    <td class="TableRow1"><input type="text" name="adminpath" id="adminpath" value="<%= rs("adminpath") %>">
      *管理目录地址，如：admin</td>
  </tr>
  
  <tr>
    <td align="right" class="TableRow2">数据库类型：</td>
    <td class="TableRow2"><input type="radio" name="sqltype" value="0" <% If rs("sqltype")=0 Then %>checked<% End If %>>
      ACCESS
        <input type="radio" name="sqltype"  value="1" <% If rs("sqltype")=1 Then %>checked<% End If %>>
        MSSQL</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">系统名称：</td>
    <td class="TableRow1"><input type="text" name="sitename" id="sitename" value="<%= rs("sitename") %>"></td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">Css文件地址：</td>
    <td class="TableRow2">
      <input type="text" name="csspath" id="csspath" value="<%= rs("csspath") %>">
    </td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">页面是否允许使用右键：</td>
    <td class="TableRow1">
      <input type="radio" name="form44"  value="0" <% If setting(44)="0" Then %>checked<% End If %>>
      允许
      <input type="radio" name="form44"  value="1" <% If setting(44)="1" Then %>checked<% End If %>>
禁用</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">页面内容是否允许复制：</td>
    <td class="TableRow2">
      <input type="radio" name="form45"  value="0" <% If setting(45)="0" Then %>checked<% End If %>>
允许
<input type="radio" name="form45"  value="1" <% If setting(45)="1" Then %>checked<% End If %>>
禁用</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">管理员Email：</td>
    <td class="TableRow1"><input type="text" name="adminmail" id="adminmail" value="<%= rs("adminmail") %>"></td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">管理员QQ：</td>
    <td class="TableRow2"><input type="text" name="adminqq" id="adminqq" value="<%= rs("adminqq") %>"></td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">网站LOGO：</td>
    <td class="TableRow1"><input type="text" name="sitelogo" id="sitelogo" value="<%= rs("sitelogo") %>"></td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">授权序列号：</td>
    <td class="TableRow1"><input onClick="this.select()" name="sn" type="text" id="sn" size="58" value="<%= rs("sn") %>"><input type="button" onClick="window.open('http://www.kuaishow.com')" value="获取序列号"/></td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">底部自定义内容：</td>
    <td class="TableRow2"><textarea name="copyright" cols="78" rows="8" id="copyright"><%= rs("copyright") %></textarea></td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">首页 description 标签：</td>
    <td class="TableRow1"><textarea name="sitedes" cols="60" rows="4" id="sitedes"><%= rs("sitedes") %></textarea></td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">首页 Keywords 标签：</td>
    <td class="TableRow2"><textarea name="sitekey" cols="60" rows="4" id="sitekey"><%= rs("sitekey") %></textarea></td>
  </tr>
</table>

<table id="t2" class="tableBorder" cellspacing="1" cellpadding="2" width="96%" align="center" border="0">
<tr>
		<th height="25" colspan="2" align="left">页面设置</th>
  </tr>
  <tr>
    <td width="28%" align="right" class="TableRow1">首页显示问题总数：</td>
    <td width="72%" class="TableRow1"><input type="radio" name="form1"  value="0" <% If setting(1)="0" Then %>checked<% End If %>>
是
  <input type="radio" name="form1"  value="1" <% If setting(1)="1" Then %>checked<% End If %>>
否</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">首页显示回答总数：</td>
    <td class="TableRow2"><input type="radio" name="form2"  value="0" <% If setting(2)="0" Then %>checked<% End If %>>
是
  <input type="radio" name="form2"  value="1" <% If setting(2)="1" Then %>checked<% End If %>>
否</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">首页显示未解决数：</td>
    <td class="TableRow1"><input type="radio" name="form3"  value="0" <% If setting(3)="0" Then %>checked<% End If %>>
是
  <input type="radio" name="form3"  value="1" <% If setting(3)="1" Then %>checked<% End If %>>
否</td>
  </tr>
  
  <tr>
    <td align="right" class="TableRow2">首页显示已解决数：</td>
    <td class="TableRow2"><input type="radio" name="form4"  value="0" <% If setting(4)="0" Then %>checked<% End If %>>
是
  <input type="radio" name="form4"  value="1" <% If setting(4)="1" Then %>checked<% End If %>>
否</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">首页显示用户人数：</td>
    <td class="TableRow1"><input type="radio" name="form5"  value="0" <% If setting(5)="0" Then %>checked<% End If %>>
是
  <input type="radio" name="form5"  value="1" <% If setting(5)="1" Then %>checked<% End If %>>
否</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">首页显示专家人数：</td>
    <td class="TableRow2">
      <input type="radio" name="form46"  value="0" <% If setting(46)="0" Then %>checked<% End If %>>
是
<input type="radio" name="form46"  value="1" <% If setting(46)="1" Then %>checked<% End If %>>
否</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">首页显示积分排行：</td>
    <td class="TableRow1"><input type="radio" name="form6"  value="0" <% If setting(6)="0" Then %>checked<% End If %>>
是
  <input type="radio" name="form6"  value="1" <% If setting(6)="1" Then %>checked<% End If %>>
否</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">&nbsp;</td>
    <td class="TableRow2">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">页面静态选项：</td>
    <td class="TableRow1"><input type="radio" name="form34"  value="0" <% If setting(34)="0" Then %>checked<% End If %>>
动态页面
<input type="radio" name="form34"  value="1" <% If setting(34)="1" Then %>checked<% End If %> <% if len(request.ServerVariables("HTTP_X_REwrite_url"))=0 then %>onClick="alert('您的空间不支持ISAPI_Rewrite组件');document.config.form34[0].checked=true;"<% End If %>>
ISAPI_Rewrite静态<font color="#999999">（需要空间安装并支持ISAPI_Rewrite组件,可到百度或本站下载）</font></td>
  </tr>
 <tbody style="display:none">
  <tr>
    <td width="28%" align="right" class="TableRow2">首页是否生成：</td>
    <td width="72%" class="TableRow2"><input type="radio" name="form35"  value="0" <% If setting(35)="0" Then %>checked<% End If %>>
      是
      <input type="radio" name="form35"  value="1" <% If setting(35)="1" Then %>checked<% End If %>>
      否</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">首页静态文件名：</td>
    <td class="TableRow1"><input name="form36" type="text" id="form36" value="<%= setting(36) %>"></td>
  </tr>
  </tbody>
  <tr>
    <td align="right" class="TableRow2">缓存刷新时间：</td>
    <td class="TableRow2"><input name="form37" type="text" id="form37" value="<%= setting(37) %>" size="5">
      秒</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">&nbsp;</td>
    <td class="TableRow1">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">首页一级分类显示数目：</td>
    <td class="TableRow2"><input name="form7" type="text" id="form7" size="8" value="<%=setting(7)%>">
      &nbsp; 0为全部显示</td>
  </tr>  
  <tr>
    <td align="right" class="TableRow1">首页小类行数：</td>
    <td class="TableRow1">
      <input name="form53" type="text" id="form" size="8" value="<%=setting(53)%>">
   &nbsp; 0为默认只选择一行</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">首页小类每行字符数：</td>
    <td class="TableRow2"><input name="form54" type="text" id="form2" size="8" value="<%=setting(54)%>">
      &nbsp; 0为默认22字符，汉字为2字符。请适当增减</td>
  </tr>
  <tbody style="display:none">
  <tr>
    <td align="right" class="TableRow1">首页推荐显示的条数：</td>
    <td class="TableRow1"><input name="form8" type="text" id="form8" size="8" value="<%=setting(8)%>"></td>
  </tr>
  </tbody>
  <tr>
    <td align="right" class="TableRow1">分类列表页显示的条数：</td>
    <td class="TableRow1"><input name="form9" type="text" id="form9" size="8" value="<%=setting(9)%>"></td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">分类页分页样式：</td>
    <td class="TableRow2"><input name="form10" type="radio"  value="1" checked <% If setting(10)="1" Then %>checked<% End If %>>
      样式一
        <input type="radio" name="form10"  value="2" <% If setting(10)="2" Then %>checked<% End If %>>
        样式二
        <input type="radio" name="form10"  value="3" <% If setting(10)="3" Then %>checked<% End If %>>
样式三</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">用户默认模板：</td>
    <td class="TableRow1">
      <select name="userskin" id="userskin">
<%		
Dim Objxml,nodeLis,node
Set Objxml = CreateObject("Microsoft.XMLDOM") 
	Objxml.async = false
	Objxml.load(Server.MapPath("../user/Images/skin.xml")) 
    Set nodeLis = Objxml.documentElement.childNodes
	For i=1 to nodeLis.length 
	    set node = nodeLis.nextNode() 
%>
<option <% If rs("userskin")=node.selectSingleNode("SkinPath").text Then %>selected="selected"<% End If %> value="<%= node.selectSingleNode("SkinPath").text %>"><%= node.selectSingleNode("SkinName").text %> (<%= node.selectSingleNode("SkinPath").text %>)</option>
<%
		Set node = Nothing 
	Next
	Set nodeLis = Nothing
Set Objxml = Nothing
%>
      </select>    </td>
  </tr>
</table>
<table id="t3" class="tableBorder" cellspacing="1" cellpadding="2" width="96%" align="center" border="0">
<tr>
		<th height="25" colspan="3" align="left">积分设置</th>
  </tr>
  <tr>
    <td width="28%" align="right" class="TableRow1">注册赠送积分：</td>
    <td width="29%" class="TableRow1">+
      <input name="form11" type="text" size="4" value="<%=setting(11)%>"></td>
    <td width="43%" class="TableRow1">注册新用户</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">每日登陆积分：</td>
    <td class="TableRow2">+
      <input name="form12" type="text" size="4" value="<%=setting(12)%>"></td>
    <td class="TableRow2">每天第一次登录时</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">提问：</td>
    <td class="TableRow1">+
      <input name="form13" type="text" size="4" value="<%=setting(13)%>"></td>
    <td class="TableRow1">每日最多可获得20分</td>
  </tr>
  
  <tr>
    <td align="right" class="TableRow2">回答：</td>
    <td class="TableRow2">+
      <input name="form14" type="text" size="4" value="<%=setting(14)%>"></td>
    <td class="TableRow2">每日最多可获得20分</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">采纳最佳答案：</td>
    <td class="TableRow1">+
      <input name="form52" type="text" size="4" value="<%=setting(52)%>"></td>
    <td class="TableRow1">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">回答被采纳：</td>
    <td class="TableRow1">+
      <input name="form15" type="text" size="4" value="<%=setting(15)%>">
      +悬赏分</td>
    <td class="TableRow1">回答被提问者采纳为最佳答案，或者通过投票被选为最佳答案，回答者可获得系统自动赠送的20分＋提问者设置的悬赏分</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">参与投票积分：</td>
    <td class="TableRow2">+
      <input name="form16" type="text" size="4" value="<%=setting(16)%>"></td>
    <td class="TableRow2">过期自动转投票问题选出最佳答案或提问者对过期问题进行处理，包括采纳最佳答案和选择无满意答案，提问者都可以获得系统返还的10分</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">评论积分：</td>
    <td class="TableRow1">+
      <input name="form17" type="text" size="4" value="<%=setting(17)%>"></td>
    <td class="TableRow1">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">问题被推荐获得的积分：</td>
    <td class="TableRow2">+
      <input name="form18" type="text" size="4" value="<%=setting(18)%>"></td>
    <td class="TableRow2">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">&nbsp;</td>
    <td class="TableRow1">&nbsp;</td>
    <td class="TableRow1">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">提问被管理删除扣分：</td>
    <td class="TableRow2">-
      <input name="form19" type="text" size="4" value="<%=setting(19)%>"></td>
    <td class="TableRow2">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">回答被管理删除：</td>
    <td class="TableRow1">-
      <input name="form20" type="text" size="4" value="<%=setting(20)%>"></td>
    <td class="TableRow1">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">评论被管理删除：</td>
    <td class="TableRow2">-
      <input name="form21" type="text" size="4" value="<%=setting(21)%>"></td>
    <td class="TableRow2">&nbsp;</td>
  </tr>

  <tr>
    <td align="right" class="TableRow1">问题过期不处理扣分</td>
    <td class="TableRow1">-
      <input name="form22" type="text" size="4" value="<%=setting(22)%>"></td>
    <td class="TableRow1">&nbsp;</td>
  </tr>  
  <tr>
    <td align="right" class="TableRow2">匿名提问扣分：</td>
    <td class="TableRow2">-
      <input name="form23" type="text" size="4" value="<%=setting(23)%>"></td>
    <td class="TableRow2">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">&nbsp;</td>
    <td class="TableRow1">&nbsp;</td>
    <td class="TableRow1">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">专家积分设定</td>
    <td class="TableRow2">&nbsp;</td>
    <td class="TableRow2">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">专家采纳回答</td>
    <td class="TableRow1">+
      <input name="form47" type="text" size="4" value="<%=setting(47)%>"></td>
    <td class="TableRow1">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">专家删除提问</td>
    <td class="TableRow2">+
      <input name="form48" type="text" size="4" value="<%=setting(48)%>"></td>
    <td class="TableRow2">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">专家删除回答</td>
    <td class="TableRow1">+
      <input name="form49" type="text" size="4" value="<%=setting(49)%>"></td>
    <td class="TableRow1">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">专家删除评论</td>
    <td class="TableRow2">+
      <input name="form50" type="text" size="4" value="<%=setting(50)%>"></td>
    <td class="TableRow2">&nbsp;</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">专家审核问题</td>
    <td class="TableRow1">+
      <input name="form51" type="text" size="4" value="<%=setting(51)%>"></td>
    <td class="TableRow1">通过审核记分一次</td>
  </tr>
</table>
<table id="t4" class="tableBorder" cellspacing="1" cellpadding="2" width="96%" align="center" border="0">
<tr>
		<th height="25" colspan="2" align="left">问题设置</th>
  </tr>
  <tr>
    <td width="28%" align="right" class="TableRow1">是否允许匿名提问：</td>
    <td width="72%" class="TableRow1"><input type="radio" name="form24"  value="1" <% If setting(24)="1" Then %>checked<% End If %>>
是
  <input type="radio" name="form24"  value="0" <% If setting(24)="0" Then %>checked<% End If %>>
否</td>
  </tr>
  <tbody style="display:none">
  <tr>
    <td align="right" class="TableRow2">是否允许问币提问：</td>
    <td class="TableRow2"><input type="radio" name="form25"  value="1" <% If setting(25)="1" Then %>checked<% End If %>>
是
  <input type="radio" name="form25"  value="0" <% If setting(25)="0" Then %>checked<% End If %>>
否</td>
  </tr>
  </tbody>
  <tr>
    <td align="right" class="TableRow1">问题是否需要审核：</td>
    <td class="TableRow1"><input type="radio" name="form26"  value="1" <% If setting(26)="1" Then %>checked<% End If %>>
是
  <input type="radio" name="form26"  value="0" <% If setting(26)="0" Then %>checked<% End If %>>
否</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">问题过期时间设定：</td>
    <td class="TableRow2"><input name="form27" type="text" id="form27" value="<%= setting(27) %>" size="4">
      天</td>
  </tr>
  
  <tr>
    <td align="right" class="TableRow1">附件大小设定：</td>
    <td class="TableRow1"><input name="form28" type="text" id="form28" value="<%= setting(28) %>" size="4">
      KB&nbsp;&nbsp; 1024KB=1M</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">允许的附件类型：</td>
    <td class="TableRow2"><input name="form29" type="text" id="form29" value="<%= setting(29) %>" size="40">
    &nbsp;必须用&quot;/&quot;分割</td>
  </tr>
</table>
<table id="t5" class="tableBorder" cellspacing="1" cellpadding="2" width="96%" align="center" border="0">
<tr>
		<th height="25" colspan="2" align="left">回答设置</th>
  </tr>
  <tr>
    <td width="28%" align="right" class="TableRow1">是否允许匿名回答：</td>
    <td width="72%" class="TableRow1"><input type="radio" name="form30"  value="1" <% If setting(30)="1" Then %>checked<% End If %>>
是
  <input type="radio" name="form30"  value="0" <% If setting(30)="0" Then %>checked<% End If %>>
否</td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">回答是否需要审核：</td>
    <td class="TableRow2"><input type="radio" name="form31"  value="1" <% If setting(31)="1" Then %>checked<% End If %>>
是
  <input type="radio" name="form31"  value="0" <% If setting(31)="0" Then %>checked<% End If %>>
否</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">******：</td>
    <td class="TableRow1">&nbsp;</td>
  </tr>
  
  <tr>
    <td align="right" class="TableRow2">附件大小设定：</td>
    <td class="TableRow2"><input name="form32" type="text" id="form32" value="<%= setting(32) %>" size="4">
KB&nbsp;&nbsp; 1024KB=1M</td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">允许的附件类型：</td>
    <td class="TableRow1"><input name="form33" type="text" id="form33" value="<%= setting(33) %>" size="40">
      &nbsp;必须用&quot;/&quot;分割</td>
  </tr>
</table>
<table id="t6" class="tableBorder" cellspacing="1" cellpadding="2" width="96%" align="center" border="0">
<tr>
		<th height="25" colspan="2" align="left">邮件设置</th>
  </tr>
  <tr>
    <td align="right" class="TableRow1">邮件发送组件：</td>
    <td class="TableRow1">
    <select name="form38" id="EmailSMTP">
	<option value="0">不支持</option>
	<option value="1" <% If setting(38)="1" Then %>selected<% End If %>>JMAIL <%If AskD.IsObjInstalled("JMail.Message") Then Response.Write "√" Else Response.Write "×"%></option>
	<option value="2" <% If setting(38)="2" Then %>selected<% End If %>>CDO <%If AskD.IsObjInstalled("CDO.Message") Then Response.Write "√" Else Response.Write "×"%></option>
	<option value="3" <% If setting(38)="3" Then %>selected<% End If %>>ASPEMAIL <%If AskD.IsObjInstalled("Persits.MailSender") Then Response.Write "√" Else Response.Write "×"%></option>
	</select>
    </td>
  </tr>
  
  <tr>
    <td width="28%" align="right" class="TableRow2">SMTP服务器地址：</td>
    <td width="72%" class="TableRow2"><input name="form39" type="text" id="form39" value="<%= setting(39) %>"></td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">邮件登录名：</td>
    <td class="TableRow1"><input name="form40" type="text" id="form40" value="<%= setting(40) %>"></td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">邮件密码：</td>
    <td class="TableRow2"><input name="form41" type="password" id="form41" value="<%= setting(41) %>"></td>
  </tr>
  <tr>
    <td align="right" class="TableRow1">发件人邮件地址：</td>
    <td class="TableRow1"><input name="form42" type="text" id="form42" value="<%= setting(42) %>"></td>
  </tr>
  <tr>
    <td align="right" class="TableRow2">回答后是否通知提问者：</td>
    <td class="TableRow2"><input type="radio" name="form43"  value="0" <% If setting(43)="0" Then %>checked<% End If %>>
是
  <input type="radio" name="form43"  value="1" <% If setting(43)="1" Then %>checked<% End If %>>
否</td>
  </tr>
</table>
<table class="tableBorder" cellspacing="1" cellpadding="2" width="96%" align="center" border="0">

  <tr>
    <td align="center" class="TableRow1"><input type="submit" name="button" id="button" value="保存设置"></td>
  </tr>
</table>
</form>
<br>
<%
set rs=nothing
set AskD.myConn =Nothing
Set AskD=Nothing
closedb
if updateN <>"" then
%>
<script language="javascript">
	for(i=1;i<9;i++)
        {
		eval("h"+i+".className='TableRow3'");
		eval("t"+i+".style.display='none'");
		}
		eval("h<%= updateN %>.className='TableRow4'");
		eval("t<%= updateN %>.style.display='block'");
		document.config.update.value='<%= updateN %>';
</script>
<%
End If

%>
</body>
</html>
