<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>添加产品</title>
<link type="text/css" rel="stylesheet" href="../Css/style.css" />
<script language="javascript" type="text/javascript" src="../jQuery/lib/jquery.js"></script>
<script language="javascript" type="text/javascript" src="../js/WebSite.js"></script>
<script language="javascript" type="text/javascript" src="../js/ChkForm.js"></script>

</head>
<!--#include file="../inc/conn.asp"-->
<!--#include file="../inc/Function.asp"-->
<!--#include file="../FCKeditor/fckeditor.asp" -->
<!--#include file="../../inc/Config.asp"-->
<body>
<%
Call ChkLogin(session("WebAdminsUserName"))
Call ConnectionDataBase(2)

Dim JobColName(20)
id=0
SortID=1
Act = Request.QueryString("Act")
IF Act = "Edit" Then
	id = Request.QueryString("id")
	Call ChkIsNumber(id,"参数类型错误!")
	Sql = "SELECT TOP 1 * FROM T_Job WHERE ID=" & id
	SetRs Rs,Sql,conn,1,1
	IF Not Rs.EOF Then
		PostName = Rs("PostName")
		Dept = Rs("Dept")
		Edu = Rs("Edu")
		Sex = Rs("Sex")
		IsWork = Rs("IsWork")
		Deal = Rs("Deal")
		SortID = Rs("SortID")
		Address = Rs("Address")
		Content = Rs("Content")
					
	End IF
End IF
%>
<form action="Submit.asp" method="post" name="frm" style="margin:0" onsubmit="return ChkSubmitJob();">
<input type="hidden" name="action" value="AddJob" />
<input type="hidden" name="ID" value="<%=id%>" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">  
  <tr>
    <td width="15%" align="right">部门名称：</td>
    <td width="85%" align="left"><input type="text" name="Dept" id="Dept" class="txt" value="<%=Dept%>" /></td>
  </tr>
  <tr>
    <td width="15%" align="right">岗位名称：</td>
    <td width="85%" align="left"><input type="text" name="PostName" id="PostName" class="txt" value="<%=PostName%>" /></td>
  </tr>
  <tr>
    <td width="15%" align="right">工作地点：</td>
    <td width="85%" align="left"><input type="text" name="Address" id="Address" class="txt" value="<%=Address%>" /></td>
  </tr>
  <tr>
    <td width="15%" align="right">学历要求：</td>
    <td width="85%" align="left">
    <select name="Edu">
    <%For i=0 To UBOUND(EduClass)%>
	<option value="<%=EduClass(i,0)%>" <%IF EduClass(i,0)=Edu Then Response.write "selected"%>><%=EduClass(i,1)%></option>
	<%Next%>
    </select>
    </td>
  </tr>
  <tr>
    <td width="15%" align="right">性别：</td>
    <td width="85%" align="left">
    <select name="Sex">
    	<option value="不限" selected>不限</option>
        <option value="男" <%IF Sex="男" Then Response.Write "Selected"%>>男</option>
        <option value="女" <%IF Sex="女" Then Response.Write "Selected"%>>女</option>
    </select>
    </td>
  </tr>
  <tr>
    <td width="15%" align="right">是否应届：</td>
    <td width="85%" align="left">
     <select name="IsWork">
	  <%For i=0 To UBOUND(WorkClass)%>
	  <option value="<%=WorkClass(i,0)%>" <%IF IsWork=WorkClass(i,0) Then Response.Write("selected")%>><%=WorkClass(i,1)%></option>
	  <%Next%>
	  </select>
    </td>
  </tr>
  <tr>
    <td width="15%" align="right">薪资待遇：</td>
    <td width="85%" align="left"><input type="text" name="Deal" id="Deal" class="txt" value="<%=Deal%>" /></td>
  </tr> 
   <tr>
    <td align="right">排序：</td>
    <td align="left"><input type="text" name="SortID" id="SortID" class="txt" value="<%=SortID%>" onkeyup="value=value.replace(/[^\d]/g,'')" onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''))"></td>
  </tr>
  <tr>
    <td align="right">详细介绍：</td>
    <td align="left">
    	<% 
		Dim oFCKeditor
		Set oFCKeditor = New FCKeditor
		oFCKeditor.BasePath = "../FCKeditor/" '设置编辑器的路径，我站点根目录下的一个目录
		oFCKeditor.ToolbarSet = "Define"
		oFCKeditor.Width = "98%"
		oFCKeditor.Height = "300"
		
		oFCKeditor.Value = Content '这个是给编辑器初始值
		oFCKeditor.Create "Content" '以后编辑器里的内容都是由这个logbody取得，命名由你定		
		%>
    </td>
  </tr>
  <tr>
    <td align="right">&nbsp;</td>
    <td align="left"><input type="submit" class="btn" value="提交" /><input type="reset" class="btn" value="重置"></td>
  </tr>  
</table>
</form>
</body>
</html>
