<!-- #include file="conn.asp" -->
<!--#include file="check2.asp"-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>商品组合</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
</script>

<script language="JavaScript">
<!--
function Juge()
{
  if (theForm.zuhepkid.value == "")
  {
    alert("请选择商品pkid.");
    document.theForm.zuhepkid.focus();
    return false;
  }
  
  if (theForm.model.value == "")
  {
    alert("请输入套餐编号.");
    document.theForm.model.focus();
    return false;
  }
  if (theForm.zuhename.value == "")
  {
    alert("请输入组合套餐名称.");
    document.theForm.zuhename.focus();
    return false;
  }

  if (theForm.price2.value == "")
  {
    alert("请输入组合后的价格.");
    document.theForm.price2.focus();
    return false;
  }
  
  if (isNaN(theForm.price2.value))
  {
    alert("组合后的价格要为数字.");
    document.theForm.price2.focus();
    return false;
  }
  
}
//-->
</script>
<style>
td { font-size: 9pt; color: #000000;font-family: "宋体"}

.border {
	BORDER-BOTTOM: #000000 1px solid; BORDER-LEFT: #000000 1px solid; BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid
}
input {
      	height=20px;BORDER-RIGHT: #999999 1px solid; BORDER-TOP: #999999 1px solid; FONT-SIZE: 9pt; BORDER-LEFT: #999999 1px solid; BORDER-BOTTOM: #999999 1px solid; FONT-FAMILY: "宋体"; BACKGROUND-COLOR: #ffffff
}
.style1 {
	font-weight: bold;
	color: #FF0000;
}
#tabcss{
	BORDER-COLLAPSE: collapse;
	border-top-width: 1px;
	border-left-width: 1px;
	border-top-style: solid;
	border-left-style: solid;
	border-top-color: #dddddd;
	border-left-color: #dddddd;
}#tabcss td {
	line-height: 24px;
	padding-left: 10px;
	padding-top: 2px;
	padding-bottom: 2px;
	color: #333333;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-right-style: solid;
	border-bottom-style: solid;
	border-right-color: #dddddd;
	border-bottom-color: #dddddd;
}
</style>
<%
id = request.querystring("id")
if id="" then id="0"
sql="select * from e_product where pkid="&id
set rs=server.CreateObject("adodb.recordset")
rs.open sql,conn,1,1
if rs.bof or rs.eof then
else
	zuhepkid=rs("zuhepkid")
	model=rs("model")
	zuhename=rs("zuhename")
	price2=rs("price2")
end if
rs.close

%>
</head>

<body bgcolor="#fcfcfc">
<form name="theForm" method="post" action="productzuheaddadmin.asp" onSubmit="return Juge()">

  <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" id="tabcss">
    <tr> 
      <td height="33" bgcolor="#E1EFFF"><div class="style1">商品套餐组合：</div></td>
    </tr>
    <tr> 
      <td height="33">组合商品pkid: 
        <input name="zuhepkid" type="text" size="39" value="<%=zuhepkid%>" onkeydown="if(event.keyCode==13)event.keyCode=9" onBlur="window.pkid.location.href='productzuheview.asp?zuhepkid='+document.theForm.zuhepkid.value"> <input type="button" name="Button" style="background-color:#ddddd1;width:60px;" value="选商品" onClick="MM_openBrWindow('prozuhelist.asp','','top=80,left=160,width=700,height=575,scrollbars=yes,resizable=yes,status=yes')"> 
        (每个pkid号之间用逗号,隔开，最多组合4个商品。)</td>
    </tr>
    <tr> 
      <td height="33">组合套餐编号: 
        <input type="text" name="model" value="<%=model%>" onkeydown="if(event.keyCode==13)event.keyCode=9"></td>
    </tr>
    <tr> 
      <td height="33">组合套餐名称: 
        <input type="text" name="zuhename" size="50" value="<%=zuhename%>" onkeydown="if(event.keyCode==13)event.keyCode=9"></td>
    </tr>
    <tr> 
      <td height="33">组合套餐价格: 
        <input type="text" name="price2" value="<%=price2%>">
        (理论上应比套餐会员价合计优惠)</td>
    </tr>
    <tr> 
      <td height="37">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
	  <input type="submit" name="Submit" value=" 保 存 " style="background-color:#ddddd1;">
	  <input type="hidden" name="id" value="<%=id%>"></td>
    </tr>
    <tr> 
      <td height="37"><br>预览： &nbsp;<input name="butt9" type="button" value="刷新" onClick="window.pkid.location.href='productzuheview.asp?zuhepkid='+document.theForm.zuhepkid.value">
<iframe id=pkid name=pkid src="productzuheview.asp?zuhepkid=<%=zuhepkid%>" width="100%" height=310 marginheight="2" marginwidth="0" frameSpacing="0" frameborder="0" scrolling=no></iframe>
	  </td>
    </tr>
  </table>
  <p>&nbsp;</p>
</form>
</body>
</html>

