<!--#include file="conn.asp"-->
<!--#include file="chkadmin.asp"-->
<!--#include file="config.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<link href="../style.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
	    scrollbar-face-color : #96A2AD;
	    scrollbar-shadow-color : #96A2AD;
	    scrollbar-highlight-color : #96A2AD;
	    scrollbar-3dlight-color : #96A2AD;
	    scrollbar-darkshadow-color : #96A2AD;
	    scrollbar-track-color : #CCCCCC;
	    scrollbar-arrow-color : #FFFFFF;
}
</STYLE>
</head>

<body>
<form name="form1" method="post" action="site_set_save.asp">
  <table width="420" border="0" align="center" cellpadding="2" cellspacing="0" bgcolor="#EEEEEE">
    <tr bgcolor="#708090"> 
      <td colspan="2" align="center" class="TdBorderB"><font color="#FFFFFF">站点配置</font></td>
    </tr>
    <tr> 
      <td width="130" align="right" class="TdBorderRB">网站名称</td>
      <td class="TdBorderB"> <input name="SiteName" type="text" class="input" id="SiteName" value="<%=SiteSetting(0)%>"> 
      </td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">网址</td>
      <td class="TdBorderB"><input name="URL" type="text" class="input" id="pwd3" value="<%=SiteSetting(1)%>" size="40"></td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">联系E-mail</td>
      <td class="TdBorderB"><input name="Email" type="text" class="input" id="pwd" value="<%=SiteSetting(19)%>" size="40"></td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">网站状态</td>
      <td class="TdBorderB"><input name="SiteState" type="radio" value="yes"<%if SiteSetting(2)="yes" then response.write " checked" end if%>>
        正常 
        <input type="radio" name="SiteState" value="no"<%if SiteSetting(2)="no" then response.write " checked" end if%>>
        暂时关闭</td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">关闭时显示的页面</td>
      <td class="TdBorderB"><input name="Page" type="text" class="input" id="Page" value="<%=SiteSetting(3)%>" size="30"></td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">网页配色</td>
      <td class="TdBorderB"><select name="Skin" id="Skin" style="font-size:12px">
          <%dim sql,rs
sql="select ID,SkinName from Skin"
set rs=conn.execute(sql)
if rs.eof and rs.bof then
	response.Write("<option value='0'>无配色方案</option>")
else
	do while not rs.eof
		response.Write("<option value='"&rs(0)&"'")
		if rs(0)=cint(SiteSetting(4)) then
		response.Write(" selected")
		end if
		response.Write(">"&rs(1)&"</option>")
		rs.movenext
	loop
end if
set rs=nothing%>
        </select> </td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">软件评论要过滤的字符</td>
      <td class="TdBorderB"><input name="KillChar" type="text" class="input" id="KillChar" value="<%=SiteSetting(5)%>" size="30">
        用“|”隔开</td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">客人发表点评与打分</td>
      <td class="TdBorderB"><input type="radio" name="GuestReview" value="yes"<%if SiteSetting(6)="yes" then response.write " checked" end if%>>
        允许 
        <input type="radio" name="GuestReview" value="no"<%if SiteSetting(6)="no" then response.write " checked" end if%>>
        禁止</td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">会员注册</td>
      <td class="TdBorderB"><input type="radio" name="MemberReg" value="yes"<%if SiteSetting(7)="yes" then response.write " checked" end if%>>
        允许 
        <input type="radio" name="MemberReg" value="no"<%if SiteSetting(7)="no" then response.write " checked" end if%>>
        禁止</td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">会员功能</td>
      <td class="TdBorderB"> <input type="radio" name="MemberOpen" value="yes"<%if SiteSetting(8)="yes" then response.write " checked" end if%>>
        开放 
        <input type="radio" name="MemberOpen" value="no"<%if SiteSetting(8)="no" then response.write " checked" end if%>>
        停用</td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">网页对齐方式</td>
      <td class="TdBorderB"><input type="radio" name="Align" value="center"<%if SiteSetting(9)="center" then response.write " checked" end if%>>
        居中 
        <input name="Align" type="radio" value="left"<%if SiteSetting(9)="" then response.write " checked" end if%>>
        靠左</td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">首页最新软件显示数量</td>
      <td class="TdBorderB"> <input name="NewNumber" type="text" class="input" id="NewNumber" value="<%=SiteSetting(10)%>" size="5"></td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">首页精品推荐软件数量</td>
      <td class="TdBorderB"> <input name="BestNumber" type="text" class="input" id="BestNumber" value="<%=SiteSetting(11)%>" size="5"></td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">每页显示的软件数量</td>
      <td class="TdBorderB"> <input name="ListNumber" type="text" class="input" id="ListNumber" value="<%=SiteSetting(12)%>" size="5"></td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">管理页每页软件数量</td>
      <td class="TdBorderB"> <input name="ManageNumber" type="text" class="input" id="ManageNumber" value="<%=SiteSetting(13)%>" size="5"></td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">注册加几分</td>
      <td class="TdBorderB"> <input name="RegPoint" type="text" class="input" id="RegPoint" value="<%=SiteSetting(14)%>" size="5"></td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">登录一次加几分</td>
      <td class="TdBorderB"> <input name="LoginPoint" type="text" class="input" id="LoginPoint" value="<%=SiteSetting(15)%>" size="5"></td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">发布一个软件加几分</td>
      <td class="TdBorderB"> <input name="PostPoint" type="text" class="input" id="PostPoint" value="<%=SiteSetting(16)%>" size="5"></td>
    </tr>
    <tr>
      <td align="right" class="TdBorderRB">下载一个软件减几分</td>
      <td class="TdBorderB"><input name="DownPoint" type="text" class="input" id="DownPoint" value="<%=SiteSetting(17)%>" size="5"></td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">积分制</td>
      <td class="TdBorderB"> <input type="radio" name="PointOpen" value="yes"<%if SiteSetting(18)="yes" then response.write " checked"%>>
        开放 
        <input type="radio" name="PointOpen" value="no"<%if SiteSetting(18)="no" then response.write " checked"%>>
        停用</td>
    </tr>
    <tr> 
      <td align="right" class="TdBorderRB">顶部广告代码</td>
      <td class="TdBorderB"> <textarea name="AdsCode" cols="38" rows="3" id="AdsCode"><%=AdsCode%></textarea></td>
    </tr>
    <tr align="center"> 
      <td colspan="2"> <%if power(5)="0" then
	response.write "<font color=red>您没有进行站点配置的权限</font>&nbsp;&nbsp;"
else
	response.write "<input name='Submit' type='submit' class='button' value=' 提 交 '>&nbsp;&nbsp;"
end if
response.write "<input name='Submit' type='button' class='button' value=' 返 回 ' onclick='javascript:history.back()'>"%> </td>
    </tr>
  </table>
</form>
</body>
</html>
<%
conn.close
set conn=nothing%>