📄 productimage.asp
字号:
<!--#include file="conn.asp"-->
<%
'johnson code <!--#include file="error.asp"-->
user=session("user")
pwd=session("pwd")
chkuser user,pwd
%>
<%
idd=request("idd")
img=request("img")
pid=request("pid")
idno=request("idno")
if img=2 then
sql="update product set picname=null where id="&idno
conn.execute(sql)
set conn=nothing
if err=0 then
showok "修改成功!","productlist.asp?idd="&idd&"&pid="&pid 'product
response.End()
else
' showerr "修改失败!","productlist2.asp?idd="&idd&"&pid="&pid
showerr "修改失败!","javascript:history.goback()"
response.End()
end if
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="css.css">
<title>图片上传</title>
</head>
<body bgcolor="#FEFBF1" background="images/sky2.gif">
<form name="form1" ENCTYPE="multipart/form-data" ACTION="product_upimage.asp?idd=<%=idd%>&pid=<%=pid%>" METHOD="POST" >
<p><br>
</p>
<p> </p>
<table width="347" border="0" align="center" bgcolor="#CCCCCC">
<tr>
<td bgcolor="#B5E6FD"> <div align="center">请选择图片</div></td>
</tr>
<tr>
<td width="341"><div align="center">(最大为100k,建议使用GIF格式类型)
<input name="idno" type="hidden" id="idno" value=<%=idno%> >
</div></td>
</tr>
<tr>
<td><font color="#FF0000">*</font>图片:</td>
</tr>
<tr>
<td><input name="picname" type="FILE" size="38"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<input type="submit" name="Submit" value="提交">
<input type="reset" name="Submit2" value="重置"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>
<%
response.Write "<div align=center>信息已保存成功,可<a href=productlist.asp?idd="&idd&"&pid="&pid&">[返 回]</a></div> "
%> </td>
</tr>
</table>
<p> </p>
<p> <br>
</p>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -