📄 logo.asp
字号:
<!--#include file="0.asp"-->
<!--#include file="../../conn/conn.asp"-->
<!--#include file="../../conn/nosql.asp" -->
<% name=nosql(session("www.wygk.cn"))
if request("x")<>"" then
Set s= Server.CreateObject("abodb.recordset")
conn.execute("Update user_name set logo = '"&nosql(replace(request("logo"),"'",""))&"',banner = '"&nosql(replace(request("banner"),"'",""))&"' where name='"&name&"'")
Response.Write("<script>alert(""设置成功"");location.href=""logo.asp"";</script>")
end if
Set s= Server.CreateObject("abodb.recordset")
set rs = conn.execute("select logo,banner,css from user_name where name='"&name&"'") %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
<STYLE>
BODY {
SCROLLBAR-FACE-COLOR: #799ae1;
SCROLLBAR-HIGHLIGHT-COLOR: #799ae1;
SCROLLBAR-SHADOW-COLOR: #799ae1;
SCROLLBAR-3DLIGHT-COLOR: #799ae1;
SCROLLBAR-ARROW-COLOR: #fcfcfc;
SCROLLBAR-TRACK-COLOR: #aabfec;
SCROLLBAR-DARKSHADOW-COLOR: #799ae1;
SCROLLBAR-BASE-COLOR: #799ae1;
background-color: #CAD7F7;
}
.STYLE4 {
font-size: 12;
color: #FFFFFF;
}
</STYLE>
</head>
<body><br>
<form action="?x=yes" method="post" name="myform" id="myform">
<table width="99%" border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td height="25" colspan="2" valign="top" background="../../images/admin_bg_11.gif"><font color="#FF3333" size="3"><strong> </strong></font><strong><span class="STYLE4">网站logo & banner</span></strong></td>
</tr>
<tr>
<td width="160" align="right" valign="top" bgcolor="#E8F1FF">网站LOGO</td>
<td width="806" valign="top" bgcolor="#E8F1FF"><input name="logo" type="text" id="logo2" value="<%=rs("logo")%>" size="40" maxlength="50"></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#E8F1FF">网站LOGO上传</td>
<td valign="top" bgcolor="#E8F1FF"><iframe name="ad" frameborder=0 width=100% height=25 scrolling=no src=../shangchuan/logo.asp></iframe></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#E8F1FF">网站BANNER</td>
<td valign="top" bgcolor="#E8F1FF"><input name="banner" type="text" id="banner" value="<%=rs("banner")%>" size="40" maxlength="50"></td>
</tr>
<tr>
<td align="right" valign="top" bgcolor="#E8F1FF">网站BANNER上传</td>
<td valign="top" bgcolor="#E8F1FF"><iframe name="ad" frameborder=0 width=100% height=25 scrolling=no src=../shangchuan/banner.asp></iframe></td>
</tr>
<tr>
<td align="center" valign="top" bgcolor="#E8F1FF"> </td>
<td valign="top" bgcolor="#E8F1FF"> <input name="Submit" type="submit" value="提 交">
<input name="Submit2" type="reset" class="a1" value="重 置">
</td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#E8F1FF"> </td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#E8F1FF">网站LOGO</td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#E8F1FF"><%if rs("logo")<>"" then%><img src="../image/logo/<%=rs("logo")%>" width="120" height="50"><%else%><img src="../image/logo.gif"><%end if%></td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#E8F1FF">网站BANNER</td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#E8F1FF"><%if rs("banner")<>"" then%><img src="../image/banner/<%=rs("banner")%>" width="120" height="50"><%else%><img src="../image/banner.jpg"><%end if%></td>
</tr>
<tr>
<td colspan="2" valign="top" bgcolor="#E8F1FF"><font color="#FF6600">请上传图片注意:</font><br>
根据网站模板的不同,图片尺寸也有所不同。您现在选择的模板要求:<br>
<%select case rs("css")
case 1
Response.Write("<font color=#ff6600>企业logo的图片尺寸为强制性标准:宽120像素 * 高50像素<br>企业banner的图片尺寸为强制性标准:宽590像素 * 高120像素</font><br>")
case 2
Response.Write("<font color=#ff6600>企业logo的图片尺寸为强制性标准:宽120像素 * 高50像素<br>企业banner的图片尺寸为强制性标准:宽760像素 * 高120像素</font><br>")
end select%>
图片格式只支持标准网页图片格式:jpg格式或gif格式<br>
注意图片上传完成后,图片地址将自动写入相应地址表单中,<br>
要按提交才有效哟。^o^</td>
</tr>
</table>
</form>
</body>
</html>
<%rs. close
set rs=nothing
conn.close
set conn=nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -