other.asp

来自「购物系统时尚版.强大的后台文章编辑器的功能」· ASP 代码 · 共 189 行

ASP
189
字号
<!--#include file="chk.asp"-->
<!--#include file="db_conn.asp"-->
<!--#include file="../my_lib/my_lib.asp" -->
<!--#include file="../my_lib/my_request.asp"-->
<%
flag=my_request("flag",0)
if flag="save" then
call save()
end if
sql="select web_name,web_url,logo,ad1,ad2,ad3,ad4,ad5 from system_setup where id=1"
set rs=conn.execute (sql)
web_name=rs("web_name")
web_url=rs("web_url")
big_pic=rs("logo")
adx1=rs("ad1")
adx2=rs("ad2")
adx3=rs("ad3")
adx4=rs("ad4")
adx5=rs("ad5")
rs.close
set rs=nothing

adxx1=split(adx1,"‖")
ad1=adxx1(0)
url1=adxx1(1)

adxx2=split(adx2,"‖")
ad2=adxx2(0)
url2=adxx2(1)

adxx3=split(adx3,"‖")
ad3=adxx3(0)
url3=adxx3(1)

adxx4=split(adx4,"‖")
ad4=adxx4(0)
url4=adxx4(1)

adxx5=split(adx5,"‖")
ad5=adxx5(0)
url5=adxx5(1)

%>
<html>

<head>
<meta http-equiv="Content-Language" content="zh-cn">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="style.css" rel=stylesheet type=text/css>
<title>其他参数设置</title>
<script src="edit.js" type="text/javascript"></script>
</head>

<body>
<!--#include file="TopManu.asp"-->
<form action="other.asp" method="post">
<div align="center">
<table border="0" width="100%" id="table1" cellspacing="0" style="border-collapse: collapse" cellpadding="0">
	<tr>
		<td background="image/admintoptdbg.gif">
		<p align="left">
		<img border="0" src="image/title_arrow.bmp" width="17" height="27" align="absmiddle"><font color="#808080"><b>网站参数设置</b></font></td>
	</tr>
</table>
	<table border="0" width="100%" id="table1" style="border-right:1px solid #C0C0C0; border-bottom:1px solid #C0C0C0; padding-left: 4px; padding-right: 4px; padding-top: 1px; padding-bottom: 1px; border-collapse:collapse; border-left-style:solid; border-left-width:1px; border-top-style:solid; border-top-width:1px" cellpadding="4">

		<tr>
			<td height="20" width="196" align="right">网站名称:</td>
			<td height="20" width="557">
			<input type="text" name="web_name" size="60" value="<%=web_name%>" maxlength="20"></td>
		</tr>
		<tr>
			<td height="20" width="196" align="right" bgcolor="#F0F0F0">网站地址:</td>
			<td height="20" width="557" bgcolor="#F0F0F0">
			<input type="text" name="web_url" size="60" value="<%=web_url%>" maxlength="20"><input type="hidden" name="flag" value="save"></td>
		</tr>
		<tr>
			<td height="20" width="196" align="right">网站LOGO(图片格式):</td>
			<td height="20" width="557">
			<input type="text" name="big_pic" size="25" readonly value="<%=big_pic%>"><font color="#330000" size="2"><a href="javascript:openWin('upload1.asp?action=1','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=200')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>(最佳尺寸:144×45)</font></td>
		</tr>
		<tr>
			<td height="20" width="196" align="right" rowspan="2" bgcolor="#F0F0F0">首页横幅广告一:</td>
			<td height="10" width="557" bgcolor="#F0F0F0">
			图片地址:<input type="text" name="ad1" size="25" readonly value="<%=ad1%>"><font color="#330000" size="2"><a href="javascript:openWin('upload1.asp?action=3','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=200')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>(最佳尺寸:440×96)</font></td>
		</tr>
		<tr>
			<td height="20" width="557" bgcolor="#F0F0F0">
			URL地址: 
			<input type="text" name="url1" size="33" value="<%=url1%>">(必须以“http://”开头)</td>
		</tr>
		<tr>
			<td height="20" width="196" align="right" rowspan="2">首页横幅广告二:</td>
			<td height="10" width="557">
			图片地址:<input type="text" name="ad2" size="25" readonly value="<%=ad2%>"><font color="#330000" size="2"><a href="javascript:openWin('upload1.asp?action=4','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=200')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>(最佳尺寸:440×96)</font></td>
		</tr>
		<tr>
			<td height="20" width="557">
			URL地址: <input type="text" name="url2" size="33" value="<%=url2%>">(必须以“http://”开头)</td>
		</tr>
		<tr>
			<td height="20" width="196" align="right" rowspan="2" bgcolor="#F0F0F0">首页底部广告一:</td>
			<td height="10" width="557" bgcolor="#F0F0F0">
			图片地址:<input type="text" name="ad3" size="25" readonly value="<%=ad3%>"><font color="#330000" size="2"><a href="javascript:openWin('upload1.asp?action=5','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=200')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>(最佳尺寸:144×45)</font></td>
		</tr>
		<tr>
			<td height="20" width="557" bgcolor="#F0F0F0">
			URL地址: <input type="text" name="url3" size="33" value="<%=url3%>">(必须以“http://”开头)</td>
		</tr>
		<tr>
			<td height="20" width="196" align="right" rowspan="2">首页底部广告二:</td>
			<td height="10" width="557">
			图片地址:<input type="text" name="ad4" size="25" readonly value="<%=ad4%>"><font color="#330000" size="2"><a href="javascript:openWin('upload1.asp?action=6','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=200')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>(最佳尺寸:144×45)</font></td>
		</tr>
		<tr>
			<td height="20" width="557">
			URL地址: <input type="text" name="url4" size="33" value="<%=url4%>">(必须以“http://”开头)</td>
		</tr>
		<tr>
			<td height="20" width="196" align="right" rowspan="2" bgcolor="#F0F0F0">首页底部广告三:</td>
			<td height="10" width="557" bgcolor="#F0F0F0">
			图片地址:<input type="text" name="ad5" size="25" readonly value="<%=ad5%>"><font color="#330000" size="2"><a href="javascript:openWin('upload1.asp?action=7','upload','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width=400,height=200')"><img src="image/upload.gif" alt="上传图片" width="60" height="18" border="0" align="middle" style="cursor: hand;" onMouseOver="window.status='使用系统自带的上传程序上传图片';return true;" onMouseOut="window.status='';return true;"></a>(最佳尺寸:144×45)</font></td>
		</tr>
		<tr>
			<td height="20" width="557" bgcolor="#F0F0F0">
			URL地址: <input type="text" name="url5" size="33" value="<%=url5%>">(必须以“http://”开头)</td>
		</tr>
		<tr>
			<td height="20" width="753" align="right" colspan="2">
			<p align="center"><input type="submit" value="提 交" name="B1"></td>
		</tr>
	</table>
</div>
</form>
<table border="0" width="760" id="table3" cellspacing="0" cellpadding="0" align=center>
	<tr>
		<td align=right><input TYPE="button" VALUE="刷新本页" ONCLICK="location.reload()"> </td>
	</tr>
</table>

</body>

</html>
<%
sub save()
web_name=my_request("web_name",0)
web_url=my_request("web_url",0)
logo=my_request("big_pic",0)




adz1=my_request("ad1",0)
adz2=my_request("ad2",0)
adz3=my_request("ad3",0)
adz4=my_request("ad4",0)
adz5=my_request("ad5",0)

urlz1=my_request("url1",0)
urlz2=my_request("url2",0)
urlz3=my_request("url3",0)
urlz4=my_request("url4",0)
urlz5=my_request("url5",0)

ad1=adz1&"‖"&urlz1
ad2=adz2&"‖"&urlz2
ad3=adz3&"‖"&urlz3
ad4=adz4&"‖"&urlz4
ad5=adz5&"‖"&urlz5

sql="select web_name,web_url,logo,ad1,ad2,ad3,ad4,ad5 from system_setup where id=1"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3
rs("web_name")=web_name
rs("web_url")=web_url
rs("logo")=logo
rs("ad1")=ad1
rs("ad2")=ad2
rs("ad3")=ad3
rs("ad4")=ad4
rs("ad5")=ad5
rs.update
rs.close
set rs=nothing
response.redirect "other.asp"
end sub
conn.close
set conn=nothing
%>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?