日期:2014-05-16 浏览次数:20829 次
<%
set rs3=server.CreateObject("adodb.recordset")
rs3.open "Select * From products where id = " & id & "",conn,1,1
if not (rs3.eof and rs3.bof) then
selectId=rs3("smallclassid")&","&rs3("classid") '读取大小分类
%>
<form method="post" name="pro_edit" action="action.asp?act=pro_edit&id=<%=id%>" enctype="multipart/form-data">
<table border="0" cellspacing="0" cellpadding="0" align="center" width="100%" class="tableBorder" id="tbStatistic">
<tr>
<th height="32" colspan="2" align="center"> 基础设置 <img id="statloading" src="aloesky_images/loading.gif" /></th>
</tr>
<tr>
<td width='25%'><p align='right'><b>· 产品名称</b></td>
<td width='75%'><p align='left'><input name="name" style="width:300px;" type="text" value="<%=rs3("name")%>" /></td>
</tr>
<tr>
<td width='25%'><p align='right'><b>· 分类选择</b></td>
<td width='75%'><p align='left'>
<select name="classid" id="bigclass"></select>
<select name="smallclassid" id="minclass"></select>
</td>
</tr>
<tr>
<td width='30%'><p align='right'><b>· 产品规格</b></td>
<td width='70%'><p align='left'><textarea name='remark' cols='90'rows='9'><%=rs3("remark")%></textarea></td>
</tr>
<tr>
<td height="32" colspan="2" align="center"><input type="submit" class="button" value="提交" id="btnPost" /></td>
</tr>
</table>
</form>
<%
else
response.write "非法请求,无此产品信息"
end if
call rs3close()
end if
call connclose()
case "pro_edit" '编辑产品信息
set rs=server.CreateObject("adodb.recordset")
sql="select * from [products] where id&