<!--#include file="../include/Conn.jsp"-->
<!--#include file="../Include/Char.jsp" -->
<!--#include file="../Include/const.jsp" -->
<!--#include file="Admin_IsLogin.jsp" -->
<%
if Request.QueryString("action")="save" then
   set rs=server.createobject("adodb.recordset")
   sql="select F_SiteInfo from T_Config where F_ID=1"
   rs.open sql,conn,1,3
   rs("F_SiteInfo")=checkstr(request("site_title"))&"|"&checkstr(request.form("site_url"))&"|"&checkstr(request.form("site_mail"))&"|"&checkstr(request.form("site_logo"))&"|"&checkstr(request.form("site_banner"))&"|"&checkstr(request.form("copyright"))&"|"&checkstr(request.form("upfile"))&"|"&checkstr(request.form("template"))&"|"&checkstr(request.form("admin_pagesize"))&"|"&request.form("runtime")&"|"&checkstr(request.form("guestbook"))&"|"&checkstr(request.form("pagesize"))&"|"&checkstr(request.form("uploadsize"))&"|"&checkstr(lcase(request.form("file_ext")))&"|"&request.form("editmode")&"|"&request.form("editfso")&"|"
   rs.update
   clearapp()'清除cache内容
   rs.close
   set rs=nothing
   Response.Redirect "admin_Config.jsp"
end if

%>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="Images/Style.css" rel="stylesheet" type="text/css">
</head>
<BODY  leftMargin=0 topMargin=0 marginwidth="0" marginheight="0">
<TABLE width=100% height=96% border=0 align="center" cellPadding=0 
cellSpacing=0 >
  <TBODY>
    <TR> 
      <TD width="100%" valign="top" align="center">
<%
	admin_flag=",0|2|0,"
	if instr(session("flag"),admin_flag)=0 or isnull(session("flag"))=true then
	Response.write "<br><br><br><br><b><font color=red>对不起，您没有管理本页面的权限!</font></B>"
	Response.end
	end if
%>
<br>
<form name="form1" method="post" action="admin_Config.jsp?action=save">
          <table class=tableBorder width="95%" border="0" align="center" cellpadding="5" cellspacing="1">
            <tr> 
              <th height=21 colspan="17" >【网站基本设置】</th>
            </tr>

            <tr> 
              <td class=forumRow height="20" width="22%">网站标题:</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <input type="text" name="site_title" size="35" class=INPUT value="<%=site_info(0)%>"> 
                <label for=HighLight ></label> </td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">网站URL:</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <input type="text" name="site_url" class=INPUT value="<%=site_info(1)%>" size="35"> 
              </td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">站长信箱:</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <input type="text" name="site_mail" size="35" class=INPUT value="<%=site_info(2)%>"> 
              </td>
            </tr>
            <tr> 
              <td class=forumRow width="22%" height="20">网站LOGO</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <input type="text" name="site_logo" size="35" class=INPUT value="<%=site_info(3)%>"> 
              </td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">网站Banner</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <textarea name="site_banner" cols="45" class=INPUT  rows="3"><%=site_info(4)%></textarea> 
              </td>
            </tr>
            <tr> 
              <td class=forumRow width="22%" height="20">版权信息:</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%">
			  <textarea name="copyright" cols="60" class=INPUT  rows="5"><%=site_info(5)%></textarea>
              </td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">上传文件目录:</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <input type="text" name="upfile" size="35" class=INPUT value="<%=site_info(6)%>"> 
              </td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">模板文件目录:</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <input type="text" name="template" size="35" class=INPUT value="<%=site_info(7)%>"> 
              </td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">页面记录数:</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%">后台: 
                <input type="text" name="admin_pagesize" size="2" class=INPUT value="<%=site_info(8)%>">
                前台: 
                <input type="text" name="pagesize" size="2" class=INPUT value="<%=site_info(11)%>"> 
              </td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">页面执行时间:</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <input type="radio" name="runtime" value="1" <%if cint(site_info(9))=1 then response.write "checked" end if%>>
                显示 
                <input type="radio" name="runtime" value="0" <%if cint(site_info(9))=0 then response.write "checked" end if%>>
                不显示 </td>
            </tr>
            <tr> 
              <td class=forumRow height="26" width="22%">过滤字符:</td>
              <td class=forumRowHighlight height="26" colspan="7" width="78%"> 
                <input type="text" name="guestbook" size="50" class=INPUT value="<%=site_info(10)%>">
                使用逗号&quot;,&quot;分隔 </td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">上传文件大小限制:</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <input type="text" name="uploadsize" size="3" class=INPUT value="<%=site_info(12)%>">
                kb </td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">上传文件类型</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <input type="text" name="file_ext" size="35" class=INPUT value="<%=site_info(13)%>"> 
              </td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">默认编辑模式</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <input type="radio" name="editmode" value="1" <%if cint(site_info(14))=1 then response.write "checked" end if%>>
                HTML模式 
                <input type="radio" name="editmode" value="0" <%if cint(site_info(14))=0 then response.write "checked" end if%>>
                UBB模式</td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">文章生成静态网页</td>
              <td class=forumRowHighlight height="20" colspan="7" width="78%"> 
                <input type="radio" name="editfso" value="1" <%if cint(site_info(15))=1 then response.write "checked" end if%>>
                生成页 
                <input type="radio" name="editfso" value="0" <%if cint(site_info(15))=0 then response.write "checked" end if%>>
                不生成</td>
            </tr>
            <tr> 
              <td class=forumRow height="20" width="22%">&nbsp;</td>
              <td class=forumRow height="20" colspan="7" width="78%"> <input type="submit" name="Submit" value="提交" class=button> 
                <input type="reset" name="Submit2" value="重置" class=button> </td>
            </tr>
          </table>
		</form>
		</TD>
    </TR>
  </TBODY>
</TABLE>
</body>
</html>

                  
