<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>修改团购</title>
<link href="../skins/css/main.css" rel="stylesheet" type="text/css">
</head>
<!--#include file="../../Conn2.asp" -->




<body>


<%if request("action")="save" then  
sql="select * from tuangou where id="&request.QueryString("id")
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,3


rs("proname")=trim(request("proname")) '商品名称

rs("pingpai")=trim(request("pingpai")) 
rs("cpfl")= trim(request("cpfl"))
rs("nianfen")=trim(request("nianfen"))
rs("cpbh")=trim(request("cpbh"))
rs("yanse")=trim(request("yanse"))
rs("gmjl")=trim(request("gmjl"))
rs("ytgsl")=trim(request("ytgsl"))
rs("zssl")=trim(request("zssl"))
rs("fenlei")=trim(request("fenlei"))
rs("scjia")=trim(request("scjia"))
rs("tuanjia")=trim(request("tuanjia"))
rs("wxts")=trim(request("wxts"))
rs("jieshao")=Request.Form("body")
rs("riqi")=now()

'rs("bookmulu")=htmlencode2(trim(request("bookmulu")))  '目录
rs.Update
rs.Close
set rs=nothing
response.Write "<script language=javascript>alert('修改成功！');history.go(-1);</script>"
response.End
 


end if%>

<%set rs=server.CreateObject("adodb.recordset")
rs.open "select * from tuangou where id="&request.QueryString("id"),conn,1,3%>

<form id="pic" name="pic" method="post" action="editproduct.asp?action=save&id=<%=request.QueryString("id")%>"  >

	<table width="100%" border="0" cellspacing="1" cellpadding="5">
		<tr>
			<td height="25" colspan="2" class="td_title">修改团购&nbsp;&nbsp;</td>
		</tr>
		<tr>
			<td width="18%" height="23" class="td_content">产品名称：</td>
			<td width="82%" height="23" class="td_content"><input name="proname" type="text" id="proname" value="<%=rs("proname")%>" size="70" /></td>
		</tr>
		<tr>
			<td height="23" class="td_content">产品品牌：</td>
			<td height="23" class="td_content"><select name="pingpai" id="pingpai" class="keyPropClass">
    <option class="J_empty" value="<%=rs("pingpai")%>" selected><%=rs("pingpai")%></option>
    												
			
	<option  value="苹果" >苹果</option>
	<option  value="LV" >LV</option>    												
    <option value="其他" class="J_other" >其他</option>
																							    								</select></td>
		</tr>
		
					<tr>
			<td height="23" class="td_content">所属分类：</td>
			<td height="23" class="td_content"><select name="fenlei" id="fenlei" class="keyPropClass">
    <option class="J_empty" value="" >请选择</option>
    												
	<option  value="<%=rs("fenlei")%>"  selected="selected"><%=rs("fenlei")%></option>		
	<option  value="热卖推荐" >热卖推荐</option>
	<option  value="特价促销" >特价促销</option>    												
    <option value="限时抢购" class="J_other" >限时抢购</option>
																							    								</select></td>
		</tr>
		
		
		
				<tr>
			<td height="23" class="td_content">产品分类：</td>
			<td height="23" class="td_content"><select name="cpfl" id="cpfl" class="keyPropClass">
    <option class="J_empty" value="<%=rs("cpfl")%>" selected><%=rs("cpfl")%></option>
    												
			
	<option  value="手机" >手机</option>
	<option  value="电脑" >电脑</option>    												
    <option value="包包" class="J_other" >包包</option>
																							    								</select></td>
		</tr>
		
		
				<tr>
			<td height="23" class="td_content">产品编号：</td>
			<td height="23" class="td_content"><label>
			  <input name="cpbh" type="text" id="cpbh" value="<%=rs("cpbh")%>">
			</label></td>
		</tr>
		
				<tr>
			<td height="23" class="td_content">上市年份：</td>
			<td height="23" class="td_content"><select name="nianfen" id="nianfen">
 <option  value="<%=rs("nianfen")%>" selected><%=rs("nianfen")%></option>
<option   value="2011年" >2011年</option>
<option  value="2010年" >2010年</option>
<option  value="2009年" >2009年</option>

</select></td>
		</tr>
		
		
				<tr>
			<td height="23" class="td_content">颜&nbsp;&nbsp;&nbsp;&nbsp;色：</td>
			<td height="23" class="td_content"><label>
			  <input name="yanse" type="text" id="yanse" value="<%=rs("yanse")%>" size="50">
			</label></td>
		</tr>
		
				<tr>
			<td height="23" class="td_content">购买记录：</td>
			<td height="23" class="td_content"><label>
			  <textarea name="gmjl" cols="80" rows="10" id="gmjl"><%=rs("gmjl")%></textarea>
			</label></td>
		</tr>
		
			<tr>
			<td height="23" class="td_content">团购时间：</td>
			<td height="23" class="td_content">从&nbsp;
			  <label>
			  <input type="text" name="textfield">
			  </label>
			  到
			  <label>
			  <input type="text" name="textfield2">
			  </label></td>
		</tr>
		
			<tr>
			<td width="18%" height="23" class="td_content">已团购数量：</td>
			<td width="82%" height="23" class="td_content"><input name="ytgsl" type="text" id="ytgsl" value="<%=rs("ytgsl")%>" size="20" />
			&nbsp;真实数量：<input name="zssl" type="text" id="zssl" size="20" /></td>
		</tr>
		
		
		
					<tr>
			<td width="18%" height="23" class="td_content">团购相册：</td>
			<td width="82%" height="23" class="td_content">&nbsp;</td>
		</tr>
		
				<tr>
			<td width="18%" height="23" class="td_content">团购价格：</td>
			<td width="82%" height="23" class="td_content">&nbsp;市场价：<input name="scjia" type="text" id="scjia" value="<%=rs("scjia")%>" size="20" />
			&nbsp;团购价：<input name="tuanjia" type="text" id="tuanjia" value="<%=rs("tuanjia")%>" size="20" /></td>
		</tr>
		
					<tr>
			<td width="18%" height="23" class="td_content">温馨提示：</td>
			<td width="82%" height="23" class="td_content"><label>
			  <textarea name="wxts" cols="50" rows="6" id="wxts"><%=rs("wxts")%></textarea>
			</label></td>
		</tr>
		
		
					<tr>
			<td width="18%" height="23" class="td_content">本团详情：</td>
			<td width="82%" height="23" class="td_content">
		<input type="hidden" name="body" value='<%=replace(rs("jieshao"),"'","&#39;")%>'/>
<IFRAME ID="eWebEditor1" SRC="../hyeWebEditor/ewebeditor.htm?id=body&style=popup" FRAMEBORDER="0" SCROLLING="no" WIDTH="650" HEIGHT="450"></IFRAME></td>
		</tr>
		
		<tr><td colspan="2" height="45"   bgcolor="#E1F5FD" align="center" ><input type="submit" name="Submit" value="修改团购"   style="font-size:14px; font-weight:bold; width:120px; height:50px;"/></td></tr>
		</table>
		
</form>
		
</body>
</html>
