📄 editpt.asp
字号:
</script>
<body>
<table class="tableBorder" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
<tr>
<td align="center" background="../shopxp_images/admin_bg_1.gif"><b><font color="#ffffff">修改商品</font></b></td>
</tr>
<tr>
<form name="myform" method="post" action="sshopxpaddpt.asp?action=edit&id=<%=shopxpptid%>">
<td>
<table width="100%" border="0" align="center" cellpadding="5" cellspacing="1" bgcolor="#FFFFFF">
<tr >
<td width="21%" align="right">选择分类:</td>
<td width="79%">大类:
<%dim rs1
set rs1=server.CreateObject("adodb.recordset")
rs1.open "select * from shopxp_product where shopxpptid="&shopxpptid,conn,1,1
rs.open "select * from shopxp_btype order by shopxpbe_idorder",conn,1,1
if rs.eof and rs.bof then
response.write "请先添加栏目。"
response.end
else
%>
<select name="shopxpbe_id" size="1" id="shopxpbe_id" onChange="changelocation(document.myform.shopxpbe_id.options[document.myform.shopxpbe_id.selectedIndex].value)">
<%
do while not rs.eof
%>
<option value="<%=rs("shopxpbe_id")%>" <%if rs1("shopxpbe_id")=rs("shopxpbe_id") then%>selected<%end if%>><%=trim(rs("shopxpbe_name"))%></option>
<%
rs.movenext
loop
end if
rs.close
%>
</select>
小类:
<select name="shopxpse_id" size="1" id="shopxpse_id" onChange="changelocation3(document.myform.shopxpse_id.options[document.myform.shopxpse_id.selectedIndex].value)">
<%rs.open "select * from shopxp_stype where shopxpbe_id="&rs1("shopxpbe_id") ,conn,1,1
if not(rs.eof and rs.bof) then
%>
<%
dim selclass3
selclass3=rs("shopxpse_id")
do while not rs.eof
response.write "<option value="&rs("shopxpse_id")
if rs1("shopxpse_id")=rs("shopxpse_id") then response.write " selected "
response.write ">"&trim(rs("shopxpse_name"))&"</option>"
rs.movenext
loop
end if
rs.close
set rs = nothing
%> </select>
三级分类:
<select name="xclassid">
<%
rs2.open "select * from shopxp_ztype where shopxpse_id="&rs1("shopxpse_id"),conn,1,1
if not(rs2.eof and rs2.bof) then
do while not rs2.eof%>
<option value="<%=rs2("id")%>"<%if rs1("xclassid")=rs2("id") then %> selected <%end if %> ><%=rs2("xclass")%></option>
<% rs2.movenext
loop
end if
rs2.close
set rs2= nothing
%>
</select>
</td>
</tr>
<tr >
<td align="right">
<%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from shopxp_ziduan where ziduanorder=1 ",conn,1,1
%>
<input type="text" name="mch" size="12" value="<%=rs_s("ziduanname")%>">
<%
rs_s.close
set rs_s=nothing
%></td>
<td>
<input name="shopxpptname" type="text" id="shopxpptname" size="30" value="<%=trim(rs1("shopxpptname"))%>">
</td>
</tr>
<tr >
<td align="right">标题<title></td>
<td>
<input name="title" type="text" id="title" size="30" value="<%=trim(rs1("title"))%>">
</td>
</tr>
<tr >
<td align="right">Meta值-描述<description></td>
<td>
<input name="description" type="text" id="description" size="30" value="<%=trim(rs1("description"))%>">
</td>
</tr>
<tr >
<td align="right">Meta值-关键词<keywords></td>
<td>
<input name="keywords" type="text" id="keywords" size="30" value="<%=trim(rs1("keywords"))%>">
</td>
</tr>
<tr >
<td align="right"><%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from shopxp_ziduan where ziduanorder=11 ",conn,1,1
%>
<input type="text" name="prosize" size="12" value="<%=rs_s("ziduanname")%>">
<%
rs_s.close
set rs_s=nothing
%></td>
<td>
<input name="size" type="text" id="size" size="30" value="<%=trim(rs1("size"))%>">
</td>
</tr>
<tr >
<td align="right"><%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from shopxp_ziduan where ziduanorder=12 ",conn,1,1
%>
<input type="text" name="procolor" size="12" value="<%=rs_s("ziduanname")%>">
<%
rs_s.close
set rs_s=nothing
%></td>
<td>
<input name="color" type="text" id="color" size="30" value="<%=trim(rs1("color"))%>">
</td>
</tr>
<tr >
<td align="right"><%
set rs_s=server.createobject("adodb.recordset")
rs_s.open "select * from shopxp_ziduan where ziduanorder=2 ",conn,1,1
%>
<input type="text" name="pp" size="12" value="<%=rs_s("ziduanname")%>">
<%
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -