📄 updatimgpath.asp
字号:
<%Response.Expires = -1
Response.ExpiresAbsolute = Now() - 1
Response.cachecontrol = "no-cache"%>
<%
' *** Restrict Access To Page: Grant or deny access to this page
MM_authorizedUsers=""
MM_authFailedURL="../../index.asp"
MM_grantAccess=false
If Session("userssdfgfhtrh") <> "" Then
If (true Or CStr(Session("MM_UserAuthorization"))="") Or _
(InStr(1,MM_authorizedUsers,Session("MM_UserAuthorization"))>=1) Then
MM_grantAccess = true
End If
End If
If Not MM_grantAccess Then
MM_qsChar = "?"
If (InStr(1,MM_authFailedURL,"?") >= 1) Then MM_qsChar = "&"
MM_referrer = Request.ServerVariables("URL")
if (Len(Request.QueryString()) > 0) Then MM_referrer = MM_referrer & "?" & Request.QueryString()
MM_authFailedURL = MM_authFailedURL & MM_qsChar & "accessdenied=" & Server.URLEncode(MM_referrer)
Response.Redirect(MM_authFailedURL)
End If
%>
<!--#include file="../../Connections/oavbsconn.asp" -->
<%
Dim Recordset1__varu
Recordset1__varu = "1"
If (Session("userssdfgfhtrh") <> "") Then
Recordset1__varu = Session("userssdfgfhtrh")
End If
%>
<%' on error resume next
Dim Recordset1
Dim Recordset1_numRows
Set Recordset1 = Server.CreateObject("ADODB.Recordset")
Recordset1.ActiveConnection = MM_oavbsconn_STRING
Recordset1.Source = "SELECT 相片地址,性别 FROM usertertggbng WHERE usersdsfg56='" + Replace(Recordset1__varu, "'", "''") + "'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_numRows = 0
%>
<%if not Recordset1.eof or not Recordset1.bof then
dim imgp
imgp=Recordset1.Fields.Item("相片地址").Value
end if%>
<%
Dim Recordset2__varu
Recordset2__varu = "1"
If (Session("userssdfgfhtrh") <> "") Then
Recordset2__varu = Session("userssdfgfhtrh")
End If
%>
<%
Dim Recordset2
Dim Recordset2_numRows
Set Recordset2 = Server.CreateObject("ADODB.Recordset")
Recordset2.ActiveConnection = MM_oavbsconn_STRING
Recordset2.Source = "SELECT useriddsfs,imgurl,id FROM bbsimg记录 WHERE useriddsfs='" + Replace(Recordset2__varu, "'", "''") + "' ORDER BY id desc"
Recordset2.CursorType = 0
Recordset2.CursorLocation = 3
Recordset2.LockType = 3
Recordset2.Open()
Recordset2_numRows = 0
%>
<%
Dim Repeat1__numRows
Dim Repeat1__index
Repeat1__numRows = -1
Repeat1__index = 0
Recordset2_numRows = Recordset2_numRows + Repeat1__numRows
%>
<html>
<head>
<script language="JavaScript">
<!--
function dis(){
document.form.submit.value='正在上传'
document.form.submit.disabled=true;
return true;
}
function check() {
if (document.form.image.value=="")
{
window.alert ("请选择图片文件!")
document.form.image.focus()
return false
}
return true
}
//-->
</SCRIPT>
<script language="JavaScript">
<!--
function dis1(){
document.form2.submit1.value='正在提交'
document.form2.submit1.disabled=true;
return true;
}
//-->
</SCRIPT>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
<!--
.style1 {color: #FFFFFF}
-->
</style>
<link href="../../css/link.css" rel="stylesheet" type="text/css">
<link href="../../css/input.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style2 {font-size: 12px}
.style4 {color: #000000}
.style5 {
font-size: 13px;
font-weight: bold;
}
-->
</style>
</head>
<body>
<div align="center">
<table width="760" height="21" border="0" cellpadding="0" cellspacing="0" background="../../img/bw/line.gif">
<tr>
<td><div align="center"><span class="style1 style5"> 头 像 管 理</span></div></td>
</tr>
</table>
<table width="760" border="0" cellpadding="0" cellspacing="1" bgcolor="#5EAE19">
<tr>
<td bgcolor="#FFFFFF"><table width="99%" border="0" cellpadding="6" cellspacing="0">
<tr>
<td width="107" height="56"><div align="right"><span class="style2">本地上传头像:</span></div></td>
<td width="619" rowspan="2" align="left" valign="top"><div align="left"></div> <form action="upimgpost.asp" method="post" enctype="multipart/form-data" name="form" id="form" onSubmit="return dis()">
<table width="531" border="0">
<tr>
<td><div align="left">
<TABLE borderColor=#111111 height=163 cellSpacing=0 cellPadding=2 width=520
align=center border=0>
<TBODY>
<TR bgColor=#ecffff>
<TD width="21%" height=25 align=middle bgColor=#CCCCCC class=style2>选择图片</TD>
<TD class=p3 width="41%" bgColor=#ffffff> </TD>
<TD align=middle bgColor=#ffffff height=25><div align="center"><span class="style2">预览图 </span></div></TD>
<TD align=middle bgColor=#ffffff> </TD>
</TR>
<TBODY>
<TR bgColor=DFE4FF>
<TD height=42 colSpan=2 align=middle vAlign=center class=p3><INPUT
class=p1
onpropertychange="if(event.propertyName=='value') preview.src=image.value.replace(/\\/g,'/')"
type=file size=40 name=image>
<input type="hidden" name="filepath" class="tx" style="width:350" value="img" size="20">
<input type="hidden" name="act" value="upload">
</TD>
<TD width="19%" rowSpan=2 align=middle><span class="p3"><img id=preview height=120
src="oabbsimg/noimg.gif" width=100 border=1
name=preview></span></TD>
<TD width="19%" rowSpan=2 align=middle><a href="<%=imgp%>" target="_blank"><img src="<%=imgp%>" width="100" height="120" border="0"></a></TD>
</TR>
<TR bgColor=DFE4FF>
<TD height=32 colSpan=2 class=p3><FONT
color=#ff3300> </FONT></TD>
</TR>
<TR bgColor=#FFFFFF>
<TD height=6 colSpan=4 class=p3></TD>
</TR>
<TR bgColor=#FFFFFF>
<TD height=32 colSpan=2 class=p3> <span class="style2"><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
<input name="submit" type=submit id="submit" style="FONT-SIZE: 12px; HEIGHT: 27px" onClick='return check();' value= "我要上传">
</font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></span></span></span> <span class="style2"><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
<input name="按钮" type=button style="FONT-SIZE: 12px; HEIGHT: 27px" onClick="javascript:history.go(-1)" value= " 取 消 " >
</font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></span></span></span> </TD>
<TD align=middle> </TD>
<TD align=middle> </TD>
</TR>
<INPUT
type=hidden value=upload name=action>
</TABLE>
</div></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td height="163"> </td>
</tr>
<tr>
<td valign="top"><div align="right"><span class="style2"> 远程图片路径:</span></div></td>
<td><form name="form2" method="post" action="pathpost.asp" onSubmit="return dis1()">
<table width="565" border="0" cellpadding="3" cellspacing="0">
<tr>
<td width="475"><p>
<input name="p" type="text" id="p" size="48">
</p></td>
<td width="78"> </td>
</tr>
<tr>
<td colspan="2"> <span class="style2"><span class="bg"><span class="bg style2"><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
<input name="submit1" type=submit id="submit1" style="FONT-SIZE: 12px; HEIGHT: 27px" value= "提交地址" >
</font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></FONT></STRONG><FONT color=#ffffff><strong><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
<STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff><STRONG><FONT color=#ffffff><strong><font color=#ffffff>
<input name="重置" type=reset style="FONT-SIZE: 12px; HEIGHT: 27px" value= " 重 写 " >
</font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG> </font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT></STRONG>
<input name="按钮" type=button style="FONT-SIZE: 12px; HEIGHT: 27px" onClick="javascript:history.go(-1)" value= " 取 消 " >
</strong></FONT></FONT></STRONG></font></strong></FONT></STRONG></font></strong></FONT></STRONG></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></font></strong></FONT><strong><strong><strong><strong><strong><strong><strong><STRONG><strong><STRONG> <span class="style4">提交空地址,可恢复系统初始头像.</span></STRONG></strong></STRONG></strong></strong></strong></strong></strong></strong></strong></STRONG></span></span></span></td>
</tr>
</table>
</form></td>
</tr>
<tr>
<td valign="top"><%on error resume next
if Recordset2("imgurl")="" then %>
<div align="right" class="style2">暂无图片<span class="style1"><img src="oabbsimg/laugh.gif" width="19" height="19">:</span></div>
<%else%><div align="right" class="style2">图片列表:</div><%end if%></td>
<td><form name="form1" method="post" action="">
<table width="555" border="0" cellpadding="0" cellspacing="0">
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset2.EOF))
%>
<tr>
<td width="336"><input name="imgp" type="text" id="imgp" size="48" value="<%=Recordset2("imgurl")%>" readonly="true"></td>
<td width="17"> </td>
<td width="53"><div align="center"><a href="appliyimg.asp?imgurls=<%=recordset2("imgurl")%>">应用</a></div></td>
<td width="149"><a href="delfiels.asp?fid=<%=recordset2("id")%>&u=<%=recordset2("imgurl")%>" onClick="return confirm('您确定要删除吗?')">删除</a></td>
</tr>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
Recordset2.MoveNext()
Wend
%>
</table>
<br>
</form> </td>
</tr>
</table></td>
</tr>
</table>
<br>
</div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -