<!--#include file="conn.asp"-->
<%
strUserID=Trim(Session("UserID"))
strID=GetVariable("id")
if GetVariable("action")="save" then
		'保存到数据库
		if GetFormVariable("chkTitle")="" then strTemp="none" else strTemp=GetFormVariable("chkTitle")
		call SetKey("Title",strTemp,strUserID,"job_" & strID)
		
		if GetFormVariable("chkAddress")="" then strTemp="none" else strTemp=GetFormVariable("chkAddress")
		call SetKey("Address",strTemp,strUserID,"job_" & strID)
		
		if GetFormVariable("chkCount")="" then strTemp="none" else strTemp=GetFormVariable("chkCount")
		call SetKey("Count",strTemp,strUserID,"job_" & strID)
		
		if GetFormVariable("chkExpires")="" then strTemp="none" else strTemp=GetFormVariable("chkExpires")
		call SetKey("Expires",strTemp,strUserID,"job_" & strID)
		
		if GetFormVariable("chkPay")="" then strTemp="none" else strTemp=GetFormVariable("chkPay")
		call SetKey("Pay",strTemp,strUserID,"job_" & strID)
		
		if GetFormVariable("chkDetail")="" then strTemp="none" else strTemp=GetFormVariable("chkDetail")
		call SetKey("Detail",strTemp,strUserID,"job_" & 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.chkTitle,"<%=GetKey("Title",strUserID,"job_" & strID)%>");
	CheckValue1(sentyform.chkAddress,"<%=GetKey("Address",strUserID,"job_" & strID)%>");
	CheckValue1(sentyform.chkCount,"<%=GetKey("Count",strUserID,"job_" & strID)%>");
	CheckValue1(sentyform.chkExpires,"<%=GetKey("Expires",strUserID,"job_" & strID)%>");
	CheckValue1(sentyform.chkPay,"<%=GetKey("Pay",strUserID,"job_" & strID)%>");
	CheckValue1(sentyform.chkDetail,"<%=GetKey("Detail",strUserID,"job_" & 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="2">
                                            <tr> 
                                              <td height="25" colspan="2"><strong>招聘选项：</strong></td>
                                            </tr>
                                            <tr> 
                                              <td width="8%">&nbsp;</td>
                                              <td width="92%"><strong> 
                                                <input name="chkTitle" type="checkbox" id="chkTitle" value="Yes" checked>
                                                招聘标题</strong></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><strong> 
                                                <input name="chkAddress" type="checkbox" id="chkAddress" value="Yes" checked>
                                                工作地点</strong></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><strong> 
                                                <input name="chkExpires" type="checkbox" id="chkExpires" value="Yes" checked>
                                                招聘期限</strong></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><strong> 
                                                <input name="chkCount" type="checkbox" id="chkCount" value="Yes" checked>
                                                人　数</strong></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><strong> 
                                                <input name="chkPay" type="checkbox" id="chkPay" value="Yes" checked>
                                                职位工资</strong></td>
                                            </tr>
                                            <tr> 
                                              <td>&nbsp;</td>
                                              <td><strong> 
                                                <input name="chkDetail" type="checkbox" id="chkDetail" value="Yes" checked>
                                                详细描述</strong></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>
