?? setsite.asp
字號:
?<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<%
'┌┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┐
'┊ ┊
'┊ 互連在線企業(yè)網(wǎng)站管理系統(tǒng)(NWEB) ┊
'┊ ┊
' 版權(quán)所有 csys.com.cn
'
' 程序制作 互連在線工作室
' Q Q:61128110
'
' 相關(guān)網(wǎng)址 [產(chǎn)品介紹]http://www.csys.com.cn
' [支持論壇]http://www.csys.com.cn/bbs
'
' 演示網(wǎng)址 http://www.csys.com.cn
'┊ ┊
'└┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┘
%>
<% Option Explicit %>
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8" />
<META NAME="copyright" CONTENT="Copyright 2004-2008 - csys.com.cn-STUDIO" />
<META NAME="Author" CONTENT="互連在線網(wǎng)絡(luò)技術(shù)工作室,www.csys.com.cn" />
<META NAME="Keywords" CONTENT="" />
<META NAME="Description" CONTENT="" />
<TITLE>網(wǎng)站信息設(shè)置</TITLE>
<link rel="stylesheet" href="Images/CssAdmin.css">
<script language="javascript" src="../Script/Admin.js"></script>
</HEAD>
<!--#include file="../Include/Const.asp" -->
<!--#include file="../Include/ConnSiteData.asp" -->
<!--#include file="CheckAdmin.asp"-->
<%
if Instr(session("AdminPurview"),"|112,")=0 then
response.write ("<font color='red')>你不具有該管理模塊的操作權(quán)限,請返回!</font>")
response.end
end if
'========判斷是否具有管理權(quán)限
%>
<body>
<%
dim ID,SiteTitle,SiteUrl,ComName,Address,ZipCode,Telephone,Fax,Email,Keywords,Descriptions,IcpNumber,SystemSN
dim MesViewFlag
select case request.QueryString("Action")
case "Save"
SaveSiteInfo
case else
ViewSiteInfo
end select
%>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#6298E1">
<tr>
<td height="24" nowrap><font color="#FFFFFF"><img src="Images/Explain.gif" width="18" height="18" border="0" align="absmiddle"> <strong>系統(tǒng)管理:添加,修改站點(diǎn)的相關(guān)信息</strong></font></td>
</tr>
<tr>
<td height="24" align="center" nowrap bgcolor="#EBF2F9">
<a href="PassUpdate.asp" target="mainFrame" onClick='changeAdminFlag("修改密碼")'>修改密碼</a> <font color="#0000FF"> | </font> <a href="SetSite.asp" target="mainFrame" onClick='changeAdminFlag("網(wǎng)站信息設(shè)置")'>網(wǎng)站信息設(shè)置</a><font color="#0000FF"> | </font><a href="NavigationList.asp" target="mainFrame" onClick='changeAdminFlag("欄目導(dǎo)航設(shè)置")'>欄目導(dǎo)航設(shè)置</a><font color="#0000FF"> | </font><a href="SetConst.asp" target="mainFrame" onClick='changeAdminFlag("常量設(shè)置")'>常量設(shè)置</a><font color="#0000FF"> | </font><a href="DataManage.asp" target="mainFrame" onClick='changeAdminFlag("數(shù)據(jù)庫操作")'>數(shù)據(jù)庫操作</a>
<font color="#0000FF"> | </font><a href="ADsEdit.asp?Result=Add" target="mainFrame" onClick='changeAdminFlag("彈窗廣告列表")'>彈窗廣告</a><font color="#0000FF"> | </font><a href="SpaceStat.asp" target="mainFrame" onClick='changeAdminFlag("空間統(tǒng)計")'>空間統(tǒng)計</a><font color="#0000FF"> | </font><a href="../Count/InfoList.asp" target="mainFrame" onClick='changeAdminFlag("訪問統(tǒng)計")'>訪問統(tǒng)計</a><font color="#0000FF"> | </font><a href="FriendSiteList.asp" target="mainFrame" onClick='changeAdminFlag("友情鏈接")'>友情鏈接</a><font color="#0000FF"> | </font><a href="HackSql.asp" target="mainFrame" onClick='changeAdminFlag("阻止SQL注入記錄")'>阻止SQL注入記錄</a> </td>
</tr>
</table>
<br>
<table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#6298E1">
<form name="editForm" method="post" action="SetSite.asp?Action=Save" >
<tr>
<td height="24" nowrap bgcolor="#EBF2F9"><table width="100%" border="0" cellpadding="0" cellspacing="0" id=editProduct idth="100%">
<tr>
<td width="160" height="20" align="right"> </td>
<td> </td>
</tr>
<tr>
<td height="20" align="right">網(wǎng)站標(biāo)題:</td>
<td><input name="SiteTitle" type="text" class="textfield" id="SiteTitle" style="WIDTH: 400;" value="<%=SiteTitle%>" > *</td>
</tr>
<tr>
<td height="20" align="right">網(wǎng) 址:</td>
<td><input name="SiteUrl" type="text" class="textfield" id="SiteUrl" style="WIDTH: 400;" value="<%=SiteUrl%>"> *</td>
</tr>
<tr>
<td height="20" align="right">公司名稱:</td>
<td><input name="ComName" type="text" class="textfield" id="ComName" style="WIDTH: 400;" value="<%=ComName%>" > *</td>
</tr>
<tr>
<td height="20" align="right">地 址:</td>
<td><input name="Address" type="text" class="textfield" id="Address" style="WIDTH: 400;" value="<%=Address%>" > *</td>
</tr>
<tr>
<td height="20" align="right">郵 編:</td>
<td><input name="ZipCode" type="text" class="textfield" id="ZipCode" style="WIDTH: 200;" value="<%=ZipCode%>" maxlength="20"> *</td>
</tr>
<tr>
<td height="20" align="right">電 話:</td>
<td><input name="Telephone" type="text" class="textfield" id="Telephone" style="WIDTH: 200;" value="<%=Telephone%>"> *</td>
</tr>
<tr>
<td height="20" align="right">傳 真:</td>
<td><input name="Fax" type="text" class="textfield" id="Fax" style="WIDTH: 200;" value="<%=Fax%>" > *</td>
</tr>
<tr>
<td height="20" align="right">電子郵箱:</td>
<td><input name="Email" type="text" class="textfield" id="Email" style="WIDTH: 200;" value="<%=Email%>"> * </td>
</tr>
<tr>
<td height="20" align="right" valign="top">關(guān) 鍵 字:</td>
<td><textarea name="Keywords" rows="6" class="textfield" id="Keywords" style="WIDTH: 400;"><%=Keywords%></textarea> 關(guān)鍵字設(shè)置有利于網(wǎng)站的搜索</td>
</tr>
<tr>
<td height="20" align="right" valign="top">網(wǎng)站描述:</td>
<td><textarea name="Descriptions" rows="6" class="textfield" id="Descriptions" style="WIDTH: 400;"><%=Descriptions%></textarea> 網(wǎng)站描述設(shè)置有利于網(wǎng)站的搜索</td>
</tr>
<tr>
<td height="20" align="right">ICP 備案:</td>
<td><input name="IcpNumber" type="text" class="textfield" id="IcpNumber" style="WIDTH: 200;" value="<%=IcpNumber%>"></td>
</tr>
<tr>
<td height="20" align="right">授 權(quán) 號:</td>
<td><input name="SystemSN" type="text" class="textfield" id="SystemSN" style="WIDTH: 200;" value="<%=SystemSN%>" readonly></td>
</tr>
<tr>
<td height="20" align="right"><a name="Message"></a>留 言 簿:</td>
<td><input name="MesViewFlag" type="checkbox" id="MesViewFlag" value="1" style="HEIGHT: 13px;WIDTH: 13px;" <%if MesViewFlag then response.write ("checked")%>> 自動通過審核</td>
</tr>
<tr>
<td height="30" align="right"> </td>
<td valign="bottom"><input name="submitSaveEdit" type="submit" class="button" id="submitSaveEdit" value="保存" style="WIDTH: 60;" ></td>
</tr>
<tr>
<td height="20" align="right"> </td>
<td valign="bottom"> </td>
</tr>
</table></td>
</tr>
</form>
</table>
</body>
</html>
<%
function SaveSiteInfo()
if len(trim(request.Form("SiteTitle")))<3 then
response.write ("<script language=javascript> alert('網(wǎng)站標(biāo)題必填且不能少于3個字符!');history.back(-1);</script>")
response.end
end if
if len(trim(request.Form("SiteUrl")))<10 then
response.write ("<script language=javascript> alert('網(wǎng)站網(wǎng)址不能為空,且不少于10個字符!');history.back(-1);</script>")
response.end
end if
if left(trim(request.Form("SiteUrl")),7)<>"http://" then
response.write ("<script language=javascript> alert('網(wǎng)站網(wǎng)址請加上""http://""!');history.back(-1);</script>")
response.end
end if
if len(trim(request.Form("ComName")))<3 then
response.write ("<script language=javascript> alert('公司名稱必填且不能少于3個字符!');history.back(-1);</script>")
response.end
end if
if len(trim(request.Form("Address")))<3 then
response.write ("<script language=javascript> alert('公司地址必填且不能少于3個字符!');history.back(-1);</script>")
response.end
end if
if len(trim(request.Form("ZipCode")))<6 then
response.write ("<script language=javascript> alert('郵政編碼必填且不能少于6個字符!');history.back(-1);</script>")
response.end
end if
if len(trim(request.Form("Telephone")))<11 then
response.write ("<script language=javascript> alert('電話號碼必填且不能少于11個字符!');history.back(-1);</script>")
response.end
end if
if len(trim(request.Form("Fax")))<11 then
response.write ("<script language=javascript> alert('傳真號碼必填且不能少于11個字符!');history.back(-1);</script>")
response.end
end if
if len(trim(request.Form("Email")))<6 then
response.write ("<script language=javascript> alert('電子郵箱必填具不能少于6個字符!');history.back(-1);</script>")
response.end
end if
dim rs,sql
set rs = server.createobject("adodb.recordset")
sql="select top 1 * from Csys_Site"
rs.open sql,conn,1,3
rs("SiteTitle")=trim(Request.Form("SiteTitle"))
rs("SiteUrl")=trim(Request.Form("SiteUrl"))
rs("ComName")=trim(Request.Form("ComName"))
rs("Address")=trim(Request.Form("Address"))
rs("ZipCode")=trim(Request.Form("ZipCode"))
rs("Telephone")=trim(Request.Form("Telephone"))
rs("Fax")=trim(Request.Form("Fax"))
rs("Email")=trim(Request.Form("Email"))
rs("Keywords")=trim(Request.Form("Keywords"))
rs("Descriptions")=trim(Request.Form("Descriptions"))
rs("IcpNumber")=trim(Request.Form("IcpNumber"))
if Request.Form("MesViewFlag")=1 then
rs("MesViewFlag")=Request.Form("MesViewFlag")
Conn.execute "ALTER TABLE Csys_Message ALTER COLUMN ViewFlag bit default 1"
else
rs("MesViewFlag")=0
Conn.execute "ALTER TABLE Csys_Message ALTER COLUMN ViewFlag bit default 0"
end if
rs.update
rs.close
set rs=nothing
response.write "<script language=javascript> alert('成功編輯網(wǎng)站信息!');changeAdminFlag('網(wǎng)站信息設(shè)置');location.replace('SetSite.asp');</script>"
end function
function ViewSiteInfo()
dim rs,sql
set rs = server.createobject("adodb.recordset")
sql="select top 1 * from Csys_Site"
rs.open sql,conn,1,1
if rs.bof and rs.eof then
response.write "讀取數(shù)據(jù)庫記錄出錯!"
response.end
else
SiteTitle=rs("SiteTitle")
SiteUrl=rs("SiteUrl")
ComName=rs("ComName")
Address=rs("Address")
ZipCode=rs("ZipCode")
Telephone=rs("Telephone")
Fax=rs("Fax")
Email=rs("Email")
Keywords=rs("Keywords")
Descriptions=rs("Descriptions")
IcpNumber=rs("IcpNumber")
SystemSN=rs("SystemSN")
MesViewFlag=rs("MesViewFlag")
rs.close
set rs=nothing
end if
end function
%>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -