📄 admin_function.asp
字号:
<!--#include file="conn.asp" -->
<!--#include file="login_menu.asp" -->
<!--#include file="error.asp" -->
<html>
<head>
<title><%=site_name%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="25175com_221.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<!-- ImageReady Slices (25175_sub2.psd) -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/index_02.gif"><table width="898" border="0" cellspacing="0" cellpadding="0">
<tr>
<td>
<!--#include file="topadmin_function.asp" -->
<table width="898" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="202" valign="top"><%call login()%></td>
<td width="696" valign="top"><table width="695" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/index_15.gif" width="695" height="48" alt=""></td>
</tr>
<tr>
<td><table width="695" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="32"><img src="images/index_17.gif" width="32" height="579" alt=""></td>
<td valign="top" bgcolor="#FFFFFF"><table width="619" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td><table width="619" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="340"> </td>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="4%"><div align="right"><img src="images/index_19.gif" width="6" height="20" alt=""></div></td>
<td width="93%" bgcolor="#E4E7DB"> <a href="index.asp">首页</a> > <a href="admin_function.asp">功能页面</a> > 系统设置</td>
<td width="3%"><img src="images/index_21.gif" width="7" height="20" alt=""></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="80" valign="bottom"><table width="97%" border="0" align="right" cellpadding="0" cellspacing="0">
<tr>
<td><div align="center"><img src="images/index_30.gif" width="6" height="70" alt=""></div></td>
<td width="600" background="images/index_31.gif">
<%
dim rank
if admin25175="" then
errmsg="<li>你还没有登陆,请先登陆"
call errormsg()
else
set rs=conn.execute("select rank from manager where mname='"&admin25175&"'")
rank=rs("rank")
set rs=nothing
if rank<=2 then
errmsg="<li>你没有操作权限"
call errormsg()
else
response.write"在这里你可以对站点的一些参数进行设置"
end if
end if
%>
<td>
<td><div align="center"><img src="images/index_34.gif" height="70" alt=""></div></td>
</tr>
</table></td>
</tr>
<tr>
<td><table width="90%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="419" valign="top">
<%
if rank>=3 then
if request("action")="savesite" then
call savesite()
else
call editsite()
end if
sub editsite()
%>
<form name="form1" method="post" action="?action=savesite">
<table width="100%" align="center" cellpadding="2" cellspacing="0" <%=table_com%>>
<tr>
<td width="20%" height="25"><strong>站点名称</strong><br>
(浏览器title)</td>
<td height="25"><input name="sitename" type="text" id="sitename" value="<%=site_name%>" size="50"></td>
</tr>
<tr>
<td width="20%" height="25"><strong>站点LOGO设置</strong><br>
(左上25175图标)</td>
<td height="25"><p>重新设置:<br>
图片地址
<input name="sitelogo_src" type="text" id="sitelogo_src" value="images/index_05.gif" size="40">
<br>
宽
<input name="sitelogo_width" type="text" id="sitelogo_width" value="294" size="5">
高
<input name="sitelogo_height" type="text" id="sitelogo_height" value="59" size="5">
(单位:象素。若不填宽、高则使用图片默认尺寸)<br>
替换文本
<input name="sitelogo_alt" type="text" id="sitelogo_alt" value="更多信息请访问官方网站(www.25175.com)" size="40">
<br>
<font color="#666666">当前设置:</font><br>
<textarea name="sitelogo" cols="45" rows="2" id="sitelogo" disabled="disabled"><%=site_logo%></textarea>
</p>
</td>
</tr>
<tr>
<td width="20%" height="25"><strong>网站主体表格属性</strong><br>
(粗细及颜色)</td>
<td height="25">重新设置:<br>
表格粗细
<input name="tablecom_border" type="text" id="tablecom_border" value="1" size="5">
表格颜色
<input name="tablecom_color" type="text" id="tablecom_color" value="#000000" size="10">
(颜色为16进制)<br>
<font color="#666666">当前设置:</font><br>
<textarea name="tablecom" cols="45" rows="2" id="tablecom" disabled="disabled"><%=table_com%></textarea></td>
</tr> <tr>
<td height="50" colspan="2"><div align="center">
<input type="submit" name="Submit3" value="保 存">
<input type="reset" name="Submit4" value="重 置">
</div></td>
</tr>
</table>
</form>
<%
end sub
sub savesite()
dim sitename,sitelogo,sitelogo_src,sitelogo_width,sitelogo_height,sitelogo_alt,tablecom,tablecom_border,tablecom_color,sql
sitename=request.form("sitename")
sitelogo_src=request.form("sitelogo_src")
sitelogo_width=request.form("sitelogo_width")
sitelogo_height=request.form("sitelogo_height")
sitelogo_alt=request.form("sitelogo_alt")
tablecom_border=request.form("tablecom_border")
tablecom_color=request.form("tablecom_color")
if sitename="" then
founderr="true"
errmsg="<li>请输入网站名称"
end if
if sitelogo_src="" then
founderr="true"
errmsg=errmsg&"<li>请输入网站LOGO图片地址"
end if
if sitelogo_width<>"" and isnumeric(sitelogo_width)=flase then
founderr="true"
errmsg=errmsg&"<li>图片宽必须为数字,若不填则使用图片默认宽度"
elseif sitelogo_width<>"" then
sitelogo_width=" width="&sitelogo_width&" "
end if
if sitelogo_height<>"" and isnumeric(sitelogo_height)=flase then
founderr="true"
errmsg=errmsg&"<li>图片高必须为数字,若不填则使用图片默认高度"
elseif sitelogo_height<>"" then
sitelogo_height=" height="&sitelogo_height&" "
end if
if sitelogo_alt<>"" then sitelogo_alt=" alt="&sitelogo_alt&" "
if isnumeric(tablecom_border)=false then
founderr="true"
errmsg=errmsg&"<li>请输入网站表格粗细"
end if
if tablecom_color="" then
founderr="true"
errmsg=errmsg&"<li>请输入网站表格颜色"
end if
if founderr="true" then
call errormsg()
else
sitelogo="<img src="&sitelogo_src&" "&sitelogo_width&sitelogo_height&sitelogo_alt&">"
tablecom="border="&tablecom_border&" bordercolor="&tablecom_color&" style='BORDER-COLLAPSE: collapse'"
Set rs = Server.CreateObject("ADODB.recordset")
sql="select sitename,sitelogo,tablecom from siteinfo where sid=1"
rs.open sql,conn,1,2
rs("sitename")=sitename
rs("sitelogo")=sitelogo
rs("tablecom")=tablecom
rs.update
rs.close
backurl="?"
rigmsg="<li>设置网站参数成功<li><a href='admin_function.asp'>返回功能页面</a>"
call rightmsg()
end if
end sub
end if
%>
</td>
</tr>
<tr>
<td height="18"><div align="center"></div></td>
</tr>
</table></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td><img src="images/index_78.gif" alt="" width="620" height="24"></td>
</tr>
</table></td>
<td width="43"><img src="images/index_22.gif" width="43" height="579"></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td><!--#include file="bottom.asp" -->
</td>
</tr>
</table></td>
</tr>
</table>
<!-- End ImageReady Slices -->
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -