📄 productedit.asp
字号:
<!--#include file="conn.asp"-->
<!--#include file="error.asp"-->
<%
'johnson code
user=session("user")
pwd=session("pwd")
chkuser user,pwd
idd=request("idd")
idno=request("idno")
pid=request("pid")
'response.Write(pid)
if idno<>0 then
sql="select * from product where id="&idno
sqlstr2="select * from kind where class="&idd 'select prodcts items
'sqlstr2="select * from menu where class=2" 'select prodcts items
set rs=conn.execute(sql)
set rs2=conn.execute(sqlstr2)
else
showerr "没有相应的数据!","productlist.asp?idd="&idd
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">
<p align="center"><a href="product.asp?idd=<%=idd%>"><font color="0099FF">添加产品信息</font></a><font color="0099FF"> | </font><a href="productlist.asp?idd=<%=idd%>"><font color="#0099FF">管理产品信息</font></a></p>
<form name="form1" method="post" action="addproduct.asp?pd=1&idno=<%=idno%>"">
<table width="488" height="1%" border="1" align="center" bgcolor="#CCCCCC">
<tr>
<td height="28">产品名称:
<input name="title" type="text" value="<%=rs("title")%>" size="55"></td>
</tr>
<tr>
<td height="121">
<table width="478" height="80%" border="0">
<tr>
<td width="144" rowspan="3"><img src="photo/<%=rs("picname")%>" ></td>
<td colspan="2"><div align="center">
<input name="idno" type="hidden" id="idno" value="1">
<a href="productimage.asp?img=1&idno=<%=idno%>&idd=<%=idd%>&pid=<%=pid%>">[修改图片]</a>
<a href="productimage.asp?img=2&idno=<%=idno%>&idd=<%=idd%>&pid=<%=pid%>">[删除图片]</a></div></td>
</tr>
<tr>
<td width="54" >特价商品</td>
<td width="266">
<% if rs("state")=1 then%>
<input name="state" type="checkbox" value=1 checked>
<%else%>
<input name="state" type="checkbox" value=1>
<%end if%>
(如果是请打钩)</td>
</tr>
<tr>
<td height="54" >商品类型</td>
<td>
<%
tmpi=int(rs("class"))
%>
<select name="Pclass" id="select2">
<% while not rs2.eof%>
<option value=<%=rs2("id")%>
<%
tmpii=int(rs2("id"))
if tmpi=tmpii then
response.Write(" selected")
end if
%>
><%=trim(rs2("title"))%> </option>
<%
tmpii=tmpii+1
rs2.movenext
wend
%>
</select> <input name="pid" type="hidden" value=<%=pid%>>
<input name="idd" type="hidden" value=<%=pid%>></td>
</tr>
</table></td>
</tr>
<tr>
<td >商品价格:
<input name="price" type="text" size="15" maxlength="8" value=<%=rs("zde0")%>>
元
<input type="hidden" name="nr" value=<%=rs("content")%>></td>
</tr>
<tr>
<td > </td>
</tr>
</table>
<br>
<input type="image" name="tj" src="images/qd.GIF" onMouseOver="this.src='images/qd1.gif'"
onmouseout="this.src='images/qd.gif'">
<img src="images/qx.GIF" onClick="form1.reset()" onMouseOver="this.src='images/qx1.gif'"
onmouseout="this.src='images/qx.gif'">
<input name="icount" type="hidden" value="<%=intcount%>">
</form>
<%
rs.close
set rs=nothing
rs2.close
set rs2=nothing
set conn=nothing
%>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -