<!--#include file="conn.asp"-->
<%
'还没做
ShowMsg "很抱歉，新闻栏目暂时没有高级选项！"
strUserID=Trim(Session("UserID"))
strID=GetVariable("id")
if GetVariable("action")="save" then
		'保存到数据库
		
		if GetFormVariable("chkDW")="" then strTemp="none" else strTemp=GetFormVariable("chkDW")
		call SetKey("g_dw",strTemp,strUserID,"guestbook_" & strID)
		
		if GetFormVariable("chkTel")="" then strTemp="none" else strTemp=GetFormVariable("chkTel")
		call SetKey("g_tel",strTemp,strUserID,"guestbook_" & strID)
		
		if GetFormVariable("chkEmail")="" then strTemp="none" else strTemp=GetFormVariable("chkEmail")
		call SetKey("g_email",strTemp,strUserID,"guestbook_" & strID)
		
		if GetFormVariable("chkAddress")="" then strTemp="none" else strTemp=GetFormVariable("chkAddress")
		call SetKey("g_adrr",strTemp,strUserID,"guestbook_" & strID)
		
		if GetFormVariable("chkOICQ")="" then strTemp="none" else strTemp=GetFormVariable("chkOICQ")
		call SetKey("g_oicq",strTemp,strUserID,"guestbook_" & strID)
		
		if GetFormVariable("chkIP")="" then strTemp="none" else strTemp=GetFormVariable("chkIP")
		call SetKey("g_ip",strTemp,strUserID,"guestbook_" & strID)
		
		if GetFormVariable("radioSeeGuest")="" then strTemp="none" else strTemp=GetFormVariable("radioSeeGuest")
		call SetKey("seeguest",strTemp,strUserID,"guestbook_" & 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.chkDW,"<%=GetKey("g_dw",strUserID,"guestbook_" & strID)%>");
	CheckValue1(sentyform.chkTel,"<%=GetKey("g_tel",strUserID,"guestbook_" & strID)%>");
	CheckValue1(sentyform.chkEmail,"<%=GetKey("g_email",strUserID,"guestbook_" & strID)%>");
	CheckValue1(sentyform.chkAddress,"<%=GetKey("g_adrr",strUserID,"guestbook_" & strID)%>");
	CheckValue1(sentyform.chkOICQ,"<%=GetKey("g_oicq",strUserID,"guestbook_" & strID)%>");
	CheckValue1(sentyform.chkIP,"<%=GetKey("g_ip",strUserID,"guestbook_" & strID)%>");
	
	//初始化单选框
	RadioValue(sentyform.radioSeeGuest,"<%=GetKey("seeguest",strUserID,"guestbook_" & strID)%>");

}

</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="70%" 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="90%" border="0" cellspacing="0" cellpadding="0">
                                            <tr> 
                                              <td height="25" colspan="2"><strong>1、留言选项：</strong></td>
                                            </tr>
                                            <tr> 
                                              <td width="6%">&nbsp;</td>
                                              <td width="94%"><input name="chkName" type="checkbox" disabled id="chkName" value="Yes" checked> 
                                                <strong>姓　名</strong></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><input name="chkMsg" type="checkbox" disabled id="chkMsg" value="Yes" checked> 
                                                <strong>留言内容</strong> </td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><input name="chkDW" type="checkbox" id="chkDW" value="Yes" checked> 
                                                <strong>单　位</strong></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><input name="chkTel" type="checkbox" id="chkTel" value="Yes" checked> 
                                                <strong>联系电话</strong> </td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><input name="chkAddress" type="checkbox" id="chkAddress" value="Yes"> 
                                                <strong>地　址</strong></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><input name="chkEmail" type="checkbox" id="chkEmail" value="Yes" checked> 
                                                <strong>电子邮件</strong></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><input name="chkOICQ" type="checkbox" id="chkOICQ" value="Yes"> 
                                                <strong>OICQ</strong></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><input name="chkIP" type="checkbox" id="chkIP" value="Yes" checked> 
                                                <strong>IP地址</strong></td>
                                            </tr>
                                            <tr> 
                                              <td height="25" colspan="2"><strong>2、客户留言时能不看到所有留言：</strong></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><input name="radioSeeGuest" type="radio" value="Yes" checked>
                                                可以看　 <input type="radio" name="radioSeeGuest" value="none">
                                                不能看 </td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td>&nbsp;</td>
                                            </tr>
                                            <tr align="center"> 
                                              <td height="50" colspan="2"> <input type="submit" name="Submit" value=" 确 定 "> 
                                                <input type="reset" name="Submit2" 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>
