<!--#include file="conn.asp"-->
<%
strUserID=Trim(Session("UserID"))
strID=GetVariable("id")
if GetVariable("action")="save" then
		'保存到数据库
		if GetFormVariable("chkPrice")="" then strTemp="none" else strTemp=GetFormVariable("chkPrice")
		call SetKey("Price",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("chkSize")="" then strTemp="none" else strTemp=GetFormVariable("chkSize")
		call SetKey("Size",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("chkSymbol")="" then strTemp="none" else strTemp=GetFormVariable("chkSymbol")
		call SetKey("Symbol",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("chkWeight")="" then strTemp="none" else strTemp=GetFormVariable("chkWeight")
		call SetKey("Weight",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("chkFace")="" then strTemp="none" else strTemp=GetFormVariable("chkFace")
		call SetKey("Face",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("chkPlace")="" then strTemp="none" else strTemp=GetFormVariable("chkPlace")
		call SetKey("Place",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("chkProducer")="" then strTemp="none" else strTemp=GetFormVariable("chkProducer")
		call SetKey("Producer",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("chkDetail")="" then strTemp="none" else strTemp=GetFormVariable("chkDetail")
		call SetKey("Detail",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("showClass")="" then strTemp="none" else strTemp=GetFormVariable("showClass")
		call SetKey("showClass",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("showPrice")="" then strTemp="none" else strTemp=GetFormVariable("showPrice")
		call SetKey("showPrice",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("showSize")="" then strTemp="none" else strTemp=GetFormVariable("showSize")
		call SetKey("showSize",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("showSymbol")="" then strTemp="none" else strTemp=GetFormVariable("showSymbol")
		call SetKey("showSymbol",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("showFace")="" then strTemp="none" else strTemp=GetFormVariable("showFace")
		call SetKey("showFace",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("showShop")="" then strTemp="none" else strTemp=GetFormVariable("showShop")
		call SetKey("showShop",strTemp,strUserID,"product_" & strID)
		
		if GetFormVariable("showDetail")="" then strTemp="none" else strTemp=GetFormVariable("showDetail")
		call SetKey("showDetail",strTemp,strUserID,"product_" & strID)
		
end if

strSQL="Select mn_name From menu Where id=" & GetQueryString("id")
rs.open strSQL,conn,1,1
strMenuName=trim(rs("mn_name"))
rs.close

%>

<%
strSQL="Select * From v_menu Where id=" & trim(GetVariable("id"))
set rsMenu=server.CreateObject("ADODB.RecordSet")
rsMenu.open strSQL,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>电子商务自助建站--您理想的助手</title>
<link href="common/styleMain.css" rel="stylesheet" type="text/css">
<script language="JavaScript" src="common/JS_CheckForm.js"></script>
<script language="JavaScript">
//检查数据有效性
function checkform(theform){
}

function init(){
	
	//初始化复选框
	CheckValue1(sentyform.chkPrice,"<%=GetKey("Price",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.chkSymbol,"<%=GetKey("Symbol",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.chkSize,"<%=GetKey("Size",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.chkWeight,"<%=GetKey("Weight",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.chkFace,"<%=GetKey("Face",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.chkPlace,"<%=GetKey("Place",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.chkProducer,"<%=GetKey("Producer",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.chkDetail,"<%=GetKey("Detail",strUserID,"product_" & strID)%>");
	
	CheckValue1(sentyform.showClass,"<%=GetKey("showClass",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.showPrice,"<%=GetKey("showPrice",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.showSymbol,"<%=GetKey("showSymbol",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.showSize,"<%=GetKey("showSize",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.showFace,"<%=GetKey("showFace",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.showShop,"<%=GetKey("showShop",strUserID,"product_" & strID)%>");
	CheckValue1(sentyform.showDetail,"<%=GetKey("showDetail",strUserID,"product_" & strID)%>");
	
	setShow(sentyform.showClass);
	setShow(sentyform.showPrice);
	setShow(sentyform.showSymbol);
	setShow(sentyform.showSize);
	setShow(sentyform.showFace);
	setShow(sentyform.showShop);
	setShow(sentyform.showDetail);
	
}

</script>
</head>
<body leftmargin="0" topmargin="0" onLoad="init()">
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td align="center"><table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0">
        <tr> 
          <td height="0" align="center">
		  <!--#include file="common/top.asp"-->
          </td>
        </tr>
        <tr> 
          <td height="100%" align="center" valign="top">
<TABLE class=table002 cellSpacing=0 cellPadding=0 border=0>
              <TBODY>
                <TR> 
                  <!--左边开始-->
                  <TD vAlign=top align=right width="20%">
					  <!--#include file="common/left.asp"-->
				  </TD>
                  <!--左边结束-->
                  <TD width="2%" background="images/rowline.gif">&nbsp;</TD>
                  <!--右边开始-->
                  <TD vAlign=top align=middle width="78%">
				  
				  <form name="sentyform" method="post" action="?action=save&id=<%=GetQueryString("id")%>" onSubmit="return checkform(this)">
                      <TABLE width="100%" height="100%" border=0 cellPadding=6 cellSpacing=0>
                        <TBODY>
                          <TR> 
                            <TD vAlign=top align=left bgColor=#ffffff><B>栏目高级属性设置</B><BR> 
                              <HR SIZE=1> 
                              <table width="100%" border="0" cellpadding="1" cellspacing="0" bgcolor="#bad2f0">
                                <tr> 
                                  <td bgcolor="#5f8ac5"><font color="#FFFFFF">□ 
                                    栏目高级属性设置</font></td>
                                </tr>
                                <tr>
                                  <td height="40" bgcolor="#FFFFFF">＞<font color="#FF0000"><%=strMenuName%></font></td>
                                </tr>
                                <tr> 
                                  <td height="250" align="center" bgcolor="#FFFFFF"> 
                                    <table width="90%" border="0" cellspacing="0" cellpadding="5">
                                      <tr> 
                                        <td align="center"><fieldset>
                                          <legend><strong>栏目高级设置：<font color="#FF0000"><%=trim(rsMenu("mn_name"))%></font></strong></legend>
                                          <table width="442" height="437" border="0" cellpadding="3" cellspacing="0">
                                            <tr> 
                                              <td height="25" colspan="3"><strong>1、产品资料选项：</strong></td>
                                            </tr>
                                            <tr> 
                                              <td width="4" height="24">&nbsp;</td>
                                              <td width="163"><strong> 
                                                <input name="chkName" type="checkbox" disabled id="chkName2" value="Yes" checked>
                                                产品名称</strong></td>
                                              <td width="166"><strong> 
                                                <input name="chkPrice" type="checkbox" value="Yes" checked>
                                                出售价格 </strong></td>
                                            </tr>
                                            <tr> 
                                              <td height="24">&nbsp;</td>
                                              <td><strong> 
                                                <input name="chkSymbol" type="checkbox" value="Yes" checked>
                                                规格型号</strong></td>
                                              <td><strong> 
                                                <input name="chkSize" type="checkbox" value="Yes" checked>
                                                尺　寸 </strong></td>
                                            </tr>
                                            <tr> 
                                              <td height="24">&nbsp;</td>
                                              <td><strong> 
                                                <input name="chkWeight" type="checkbox" value="Yes">
                                                重　量</strong></td>
                                              <td><strong> 
                                                <input name="chkFace" type="checkbox" value="Yes">
                                                外　观 </strong></td>
                                            </tr>
                                            <tr> 
                                              <td height="24">&nbsp;</td>
                                              <td><strong> 
                                                <input name="chkPlace" type="checkbox" value="Yes">
                                                生产地</strong></td>
                                              <td><strong> 
                                                <input name="chkProducer" type="checkbox" value="Yes" checked>
                                                生产商 </strong></td>
                                            </tr>
                                            <tr> 
                                              <td height="24">&nbsp;</td>
                                              <td><strong> 
                                                <input name="chkDetail" type="checkbox" value="Yes" checked>
                                                详细介绍</strong></td>
                                              <td><strong> </strong></td>
                                            </tr>
                                            <tr> 
                                              <td height="25" colspan="3"><hr width="95%" size="1" noshade></td>
                                            </tr>
                                            <tr> 
                                              <td height="25" colspan="3"><strong>2、产品展示选项：</strong></td>
                                            </tr>
                                            <tr> 
                                              <td height="24">&nbsp;</td>
                                              <td><strong> 
                                                <input name="showPrice" type="checkbox" onClick="setShow(this);" value="Yes" checked>
                                                显示价格</strong></td>
                                              <td><strong> 
                                                <input name="showClass" type="checkbox" onClick="setShow(this);" value="Yes" checked>
                                                显示分类 </strong></td>
                                            </tr>
                                            <tr> 
                                              <td height="24">&nbsp;</td>
                                              <td><strong> 
                                                <input name="showSymbol" type="checkbox" onClick="setShow(this);" value="Yes" checked>
                                                显示型号</strong></td>
                                              <td><strong> 
                                                <input name="showSize" type="checkbox" onClick="setShow(this);" value="Yes" checked>
                                                显示尺寸 </strong></td>
                                            </tr>
                                            <tr> 
                                              <td height="24">&nbsp;</td>
                                              <td><strong> 
                                                <input name="showFace" type="checkbox" onClick="setShow(this);" value="Yes">
                                                显示外观</strong></td>
                                              <td><strong> </strong></td>
                                            </tr>
                                            <tr> 
                                              <td height="24">&nbsp;</td>
                                              <td><strong> 
                                                <input name="showShop" type="checkbox" onClick="setShow(this);" value="Yes" checked>
                                                显示购物车 </strong></td>
                                              <td><strong> 
                                                <input name="showDetail" type="checkbox" onClick="setShow(this);" value="Yes" checked>
                                                显示详情链接</strong></td>
                                            </tr>
                                            <tr> 
                                              <td height="24">&nbsp;</td>
                                              <td><strong> </strong></td>
                                              <td><strong> </strong></td>
                                            </tr>
                                            <tr align="center"> 
                                              <td height="24" colspan="3"> <script language="JavaScript">
												function setShow(objShow){
													
													var objTr=document.all["tr"+objShow.name];
													if (objShow.checked){
														objTr.style.display='';
													}
													else{
														objTr.style.display='none';
													}
												}
											  </script> <table width="65%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
                                                  <tr> 
                                                    <td bgcolor="#000000"><TABLE width="305" height="136" 
border=0 cellPadding=2 cellSpacing=0 bgcolor="#FFFFFF">
                                                        <TBODY>
                                                          <TR> 
                                                            <TD width=102 height=102 align="center"><A 
                              href="javascript:;"><IMG 
                              height=90 
                              src="images/shop_cn_1042.jpg" 
                              width=100 border=0></A></TD>
                                                            <TD width="192" height=10 vAlign=top> 
                                                              <TABLE cellSpacing=1 cellPadding=0 width="98%" 
                              align=center border=0>
                                                                <TBODY>
                                                                  <TR> 
                                                                    <TD><B><FONT 
                                style="FONT-SIZE: 12px; COLOR: #000000">恋你情怀</FONT> 
                                                                      </B></TD>
                                                                  </TR>
                                                                  <TR> 
                                                                    <TD height=21> 
                                                                      <table width="90%" border="0" cellspacing="1" cellpadding="0">
                                                                        <tr id="trshowClass"> 
                                                                          <td width="33%" align="right"><img src="IMAGES/arrows.gif" width="11" height="13" align="absmiddle">类别：</td>
                                                                          <td width="67%"> 
                                                                            节日鲜花</td>
                                                                        </tr>
                                                                        <tr id="trshowSymbol"> 
                                                                          <td align="right"><img src="IMAGES/arrows.gif" width="11" height="13">型号：</td>
                                                                          <td>HQ00259</td>
                                                                        </tr>
                                                                        <tr id="trshowFace"> 
                                                                          <td align="right"><img src="IMAGES/arrows.gif" width="11" height="13">外观：</td>
                                                                          <td>金色长纸盒</td>
                                                                        </tr>
                                                                        <tr id="trshowSize"> 
                                                                          <td align="right"><img src="IMAGES/arrows.gif" width="11" height="13">尺寸：</td>
                                                                          <td>100＊40＊20</td>
                                                                        </tr>
                                                                      </table></TD>
                                                                  </TR>
                                                                </TBODY>
                                                              </TABLE></TD>
                                                          </TR>
                                                          <TR> 
                                                            <TD width=102 height=30 align="center"><div id="trshowPrice"><font color="#FF0000">价格：￥78</font></div></TD>
                                                            <TD vAlign=middle height=30> 
                                                              <TABLE cellSpacing=1 cellPadding=0 width=145 border=0>
                                                                <TBODY>
                                                                  <TR align="center"> 
                                                                    <TD width=70 height=22 id="trshowShop"> 
                                                                      <IMG src="IMAGES/buy_cn.gif" width="60" height="20" border=0> 
                                                                    </TD>
                                                                    <TD width=70 height=22 id="trshowDetail"><IMG src="IMAGES/detail_cn.gif" width="60" height="20" border=0></TD>
                                                                  </TR>
                                                                </TBODY>
                                                              </TABLE></TD>
                                                          </TR>
                                                        </TBODY>
                                                      </TABLE></td>
                                                  </tr>
                                                </table></td>
                                            </tr>
                                            <tr align="center"> 
                                              <td height="24" colspan="3"><strong>预览效果图</strong></td>
                                            </tr>
                                            <tr align="center"> 
                                              <td height="50" colspan="3"> <input type="submit" name="Submit" value=" 确 定 "> 
                                                <input type="reset" name="Submit2" value=" 取 消 "> 
                                                <input type="button" name="Submit22" value=" 帮 助 "> 
                                                <input type="button" name="Submit3" value=" 返 回 " onClick="window.location='Admin_SetMenu.asp'"> 
                                              </td>
                                            </tr>
                                          </table>
                                          </fieldset></td>
                                      </tr>
                                    </table></td>
                                </tr>
                              </table></TD>
                          </TR>
                        </TBODY>
                      </TABLE>
                    </form></TD>
                </TR>
              </TBODY>
            </TABLE></td>
        </tr>
        <tr> 
          <td height="0" align="center">
		  <!--#include file="common/bottom.asp"-->
		  </td>
        </tr>
      </table></td>
  </tr>
</table>
</body>
</html>
