📄 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 fawenforimg FROM usertertggbng WHERE usersdsfg56='" + Replace(Recordset1__varu, "'", "''") + "'"
Recordset1.CursorType = 0
Recordset1.CursorLocation = 2
Recordset1.LockType = 1
Recordset1.Open()
Recordset1_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>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>签 名 图 片 管 理</title>
<style type="text/css">
<!--
.style1 {
color: #FFFFFF;
font-weight: bold;
font-size: 13px;
}
-->
</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}
body {
margin-left: 0px;
margin-top: 3px;
margin-right: 0px;
margin-bottom: 0px;
}
-->
</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">签 名 图 片 管 理</span></div></td>
</tr>
</table>
<table width="760" height="222" border="0" cellpadding="0" cellspacing="1" bgcolor="#5EAE19">
<tr>
<td height="201" bgcolor="#FFFFFF"><table width="100%" height="200" 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 borderColor=#111111 cellSpacing=0 cellPadding=2 width=520
align=center border=0>
<TBODY>
<TR bgColor=#ecffff>
<TD width="21%" align=middle bgColor=#CCCCCC class=style2>选择图片</TD>
<TD class=p3 width="41%" bgColor=#ffffff> </TD>
<TD align=middle bgColor=#ffffff><div align="center"><span class="style2">预览图 </span></div></TD>
<TD align=middle bgColor=#ffffff> </TD>
</TR>
<TBODY>
<TR bgColor=DFE4FF>
<TD 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=30 name=image>
<input type="hidden" name="filepath" class="tx" style="width:350" value="../../dataandfiles/files/dianziqianming/" 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="../bbs/oabbsimg/noimg.gif" width=100 border=1
name=preview></span></TD><%dim upimgadmin
upimgadmin=Recordset1.Fields.Item("fawenforimg").Value%>
<TD width="19%" rowSpan=2 align=middle><%if upimgadmin<>"" then%><a href="<%=upimgadmin%>" target="_blank"><img src="<%=upimgadmin%>" width="200" height="120" border="0"></a><%else%>暂未上传签名...<%end if%></TD>
</TR>
<TR bgColor=DFE4FF>
<TD colSpan=2 class=p3><FONT
color=#ff3300>建议图片长宽:150*80 <br>
图片最大限制:5000KB</FONT></TD>
</TR>
<TR bgColor=#FFFFFF>
<TD 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" value= " 取 消 " onClick="history.go(-1)">
</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>
</form></td>
</tr>
<tr>
<td height="163"> </td>
</tr>
</table></td>
</tr>
</table>
<br>
</div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -