📄 upimg.asp
字号:
<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=131 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="../bbs/oabbsimg/noimg.gif" width=100 border=1
name=preview></span></TD><%if Recordset1.Fields.Item("照片路径").Value<>"../bbs/oabbsimg/noimg.gif" then%>
<TD width="19%" rowSpan=2 align=middle><a href="del/delimg/imgredirect.asp?d=<%=(Recordset1.Fields.Item("id").Value)%>" target="_blank"><img src="<%=(Recordset1.Fields.Item("照片路径").Value)%>" width="100" height="120" border="0"></a></TD>
<%end if%>
</TR>
<TR bgColor=DFE4FF>
<TD height=32 colSpan=2 class=p3><div align="center"><FONT
color=#ff3300> 请勿使用中文文件名进行图片上传</FONT></div></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 colspan="2" align=middle> <div align="center"><%=(Recordset1.Fields.Item("部门").Value)%>:<a href="detailfdsa.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>"><%=(Recordset1.Fields.Item("姓名").Value)%></a></div></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">
<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="提交" type=submit 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> </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 Recordset1("照片路径")="../bbs/oabbsimg/noimg.gif" then %>
<div align="right" class="style2">暂无图片<span class="style1"><img src="../bbs/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="599" border="0" cellpadding="0" cellspacing="0">
<%
While ((Repeat1__numRows <> 0) AND (NOT Recordset2.EOF))
%>
<tr>
<td width="118"><a href="del/delimg/imgmdb.asp?d=<%=(Recordset2.Fields.Item("ID").Value)%>" target="_blank"><img src="<%=(Recordset2.Fields.Item("文件路径").Value)%>" width="100" height="120" border="0"></a>
<br>
</td>
<td width="12"> </td>
<td width="45" valign="bottom"><a href="appliyimg.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>&u=<%=(Recordset2.Fields.Item("文件路径").Value)%>">应用</a></td>
<td width="35" valign="bottom"><a href="del/delimg/delfiels.asp?id=<%=recordset2("id")%>&u=<%=(Recordset2.Fields.Item("文件路径").Value)%>&d=<%=(Recordset1.Fields.Item("id").Value)%>" onClick="return confirm('您确定要删除吗?该过程将不可恢复。')">删除</a></td>
<td width="37" valign="bottom"><a href="del/delimg/downfileforimg.asp?id=<%=(Recordset2.Fields.Item("ID").Value)%>&n=<%=(Recordset2.Fields.Item("文件名").Value)%>">下载</a></td>
<td width="352" valign="bottom"><a href="fzhuanfaforimg.asp?id=<%=(Recordset2.Fields.Item("ID").Value)%>">转发</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>
<table width="600" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="130"><a href="detailfdsa.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>">查看<%=(Recordset1.Fields.Item("姓名").Value)%>的个人档案</a> </td>
<td width="116"><a href="upsessionidforfile.asp?id=<%=(Recordset1.Fields.Item("id").Value)%>">进行简历与附件管理 </a> </td>
<td width="354"><a href="listuserl.asp">返回用户档案列表</a></td>
</tr>
</table>
<br>
</div>
</body>
</html>
<%
Recordset1.Close()
Set Recordset1 = Nothing
%>
<%
Recordset2.Close()
Set Recordset2 = Nothing
%>
<%
levels.Close()
Set levels = Nothing
%>
<%else%>
<%
levels.Close()
Set levels = Nothing
%>
<%
response.write"<script>alert('"&Session("names")&"很抱歉,您没有管理人事照片的权限。');location='"&request.ServerVariables("HTTP_REFERER")&"'</script>"
%>
<%response.end()
end if%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -