<!--#include file="../../here99login/0.asp"-->
<!--#include file="../../conn/zkconn.asp"-->
<%if request("add")="yes" then
conn.execute("Insert into zhuanti_c(gid,cpid)values("&request("gid")&","&request("cpid")&")")
Response.redirect "tianjia2.asp?gid="&request("gid")&""
end if
if request("del")="yes" then
conn.execute("Delete zhuanti_c where id="&request("id")&"")
Response.redirect "tianjia2.asp?gid="&request("gid")&""
end if
set rs = conn.execute("select * from zhuanti_c where gid='"&request("gid")&"' order by id desc")%><html>
<head>
<title>专题录入第2步</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="../../css/css.css" rel="stylesheet" type="text/css">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="500" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="20" valign="middle">第2步：录入/修改专题产品</td>
    <td align="right" valign="middle">&nbsp;<a href="index.asp">&gt;&gt;返回专题页</a> 
    </td>
  </tr>
  <tr> 
    <form action="tianjia2.asp?add=yes&gid=<%=request("gid")%>" method="POST" name="myform" id="myform">
      <td height="30" colspan="2" align="center" valign="middle">产品ID： 
        <input name=cpid type="text" class="wenbenkuang" id="cpid" size="15"> 
        <input name="submit" type="submit" class="go-wenbenkuang" value="增加"> 
      </td>
    </form>
  </tr>
</table>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC">
  <tr valign="middle" bgcolor="#f1f1f1"> 
    <td height="20" align="center">产品ID</td>
    <td width="50" height="20" align="center">删除</td>
  </tr><%do while not rs.eof%>
  <tr valign="middle" bgcolor="#FFFFFF"> 
    <td height="20"> 
      <font color=#ff6600>[<%=rs("cpid")%>]</font><%set rs1 = conn.execute("select mc from chanpin where id="&rs("cpid")&"")
	if not rs1.eof then
	Response.Write(""&rs1("mc")&"")
	else
	Response.Write("<font color=#ff0000>无此产品，请删除！！！！</font>")
	end if
	rs1.close%>
    </td>
    <td width="50" height="20" align="center"><a href="?del=yes&id=<%=rs("id")%>&gid=<%=request("gid")%>">删除</a></td>
  </tr><%rs.movenext
loop
rs.close
set rs=nothing%>
</table>
</body>
</html>