📄 myface.asp
字号:
<!--#include file="../config/sys.asp"-->
<%a=check_session()
flog=Trim(Request.QueryString("flog"))
if flog="edit" then
myface=Trim(Request.Form("music"))
sqlp = "select myface from user_info where u_id='"&session("user_name")&"'"
set rsp=server.createobject("adodb.recordset")
rsp.open sqlp,conn,1,1
if not rsp.eof then
bb=rsp("myface")
end if
rsp.close
a=delfile("../"&bb)
if myface>"" then
sqlpp="update user_info set myface='"&myface&"' where u_id='"&session("user_name")&"' "
else
face="images/nophoto.jpg"
sqlpp="update user_info set face='"&face&"' where u_id='"&session("user_name")&"' "
sqlpp="update user_info set myface='' where u_id='"&session("user_name")&"' "
end if
conn.execute(sqlpp)
msg="修改成功!"
end if
%>
<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" />
</head>
<body>
<TABLE style="TABLE-LAYOUT: fixed" height=100% cellSpacing=0 cellPadding=0 width="99%" border=0>
<TBODY>
<TR height=3 width="100%">
<TD> <TABLE style="TABLE-LAYOUT: fixed" height=3 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=1>
<TD width=1></TD>
<TD width=1></TD>
<TD width=1></TD>
<TD bgColor=#DCDCDC></TD>
<TD width=1></TD>
<TD width=1></TD>
<TD width=1></TD>
</TR>
<TR height=1>
<TD></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD bgColor=#f7f8f9></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD></TD>
</TR>
<TR height=1>
<TD></TD>
<TD bgColor=#DCDCDC></TD>
<TD bgColor=#f7f8f9 colSpan=3></TD>
<TD bgColor=#DCDCDC></TD>
<TD></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR>
<TD> <TABLE style="TABLE-LAYOUT: fixed" height="100%" cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD width=1 bgColor=#DCDCDC></TD>
<TD id=oINNER bgColor=#FFFFFF>
<table border="0" width="100%" id="table1" cellspacing="0" cellpadding="0" height="100%">
<form method="POST" action="?flog=edit" id="form" name="form">
<% sql="Select * From USER_INFO where u_id='"&session("user_name")&"' and u_pwd='"&session("user_password")&"'"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<tr>
<td height="24" style="border-left-width: 1px; border-right-width: 1px; border-top-width: 1px; border-bottom-style: dotted; border-bottom-width: 1px" colspan="3">
<font color="#999999"><b> 我的头像</b></font></td>
</tr> <tr>
<td valign="top">
<table border="0" width="100%" id="table2">
<tr>
<td width="99%" align="right" colspan="2">
<p align="center"><font color="#FF0000"><%=msg%></font></td>
</tr>
<tr>
<td width="40%" align="right" height="24">
</td>
<td align="left" width="59%" height="24">
</td>
</tr>
<tr>
<td width="40%" align="right" height="88"> </td>
<td align="left" width="59%" height="88">
<img src="../<%if rs("myface")<>"" then response.write(rs("myface")) else response.write(rs("face"))%>" width="72" id=idface ></td>
</tr>
<tr>
<td width="40%" align="right" height="15"></td>
<td align="left" width="59%" height="24">
</td>
</tr>
<tr>
<td height="24">
<p align="right">
上传头像:</td>
<td height="24">
<iframe name="ad" frameborder=0 width=100% height=24 scrolling=no src=face.htm marginheight="20"></iframe>
<input name="music" type="text" size="45" value="" class="InputText" style="font-family: 宋体; font-size: 9pt" title="视频路径,也可以直接填写您的网上照片的地址。">
<br>支持格式:gif/jpg/bmp</td>
</tr>
<tr>
<td colspan="2" height="24">
<p align="center">
<input type="submit" value="修改" name="B1" class="button1"><p align="center">
<font color="#FF0000">
注意:如果你不希望使用头像,那么你直接点击‘修改’即可</font></td>
</tr>
</table>
</td>
</tr>
</form><%rs.close%>
</table>
</TD>
<TD width=1 bgColor=#DCDCDC></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
<TR height=3 width="100%">
<TD> <TABLE style="TABLE-LAYOUT: fixed" height=3 cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=1>
<TD width=1></TD>
<TD width=1 bgColor=#DCDCDC></TD>
<TD width=1 bgColor=#f7f8f9></TD>
<TD bgColor=#f7f8f9></TD>
<TD width=1 bgColor=#f7f8f9></TD>
<TD width=1 bgColor=#DCDCDC></TD>
<TD width=1></TD>
</TR>
<TR height=1>
<TD></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD bgColor=#f7f8f9></TD>
<TD bgColor=#DCDCDC colSpan=2></TD>
<TD></TD>
</TR>
<TR height=1>
<TD colSpan=3></TD>
<TD bgColor=#DCDCDC></TD>
<TD colSpan=3></TD>
</TR>
</TBODY>
</TABLE></TD>
</TR>
</TBODY>
</TABLE>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -