www.gusucode.com > 云枫工作室企业网站源代码第五版 1.0 > docc/admin/zhaopinadd.asp

    <%@LANGUAGE="VBSCRIPT"%>
<!--#include file="conn.asp"-->
<!--#include file="check.asp"-->
<!--#include file="include.asp"-->
<%
	Dim MM_TableName           '表名
	Dim MM_DatabaseStr         '数据库各项
	Dim MM_FormStr             '表单各项
	Dim MM_SqlQuery            '最终执行语句
	Dim MM_ReturnPath          '执行成功后返回的路径
	
	MM_TableName = "zhaopin"
	MM_DatabaseStr  = "ftitle|value|fetitle|value|ftext|value|fetext|value|fimage|value|fcount|value|fadmin|value|fyuang|value|fshow|value|fdate|value"
    MM_FormStr = "sqltitle|',none,''|sqletitle|',none,''|sqltext|',none,''|sqletext|',none,''|sqlimage|',none,''|sqlcount|',none,''|sqladmin|',none,''|sqlyuang|',none,''|sqlshow|',none,''|sqldate|',none,''"
	MM_ReturnPath = "news.asp"
	if Request.Form("MM_insert") <> "" then
		MM_SqlQuery = GetAddSql(MM_TableName,MM_DatabaseStr,MM_FormStr)
		conn.Execute(MM_SqlQuery)
		response.redirect(MM_ReturnPath)
	end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>添加新闻</title>
<link href="style.css" rel="stylesheet" type="text/css">
<script language="javascript">
function check()
{
	if(form1.ftitle.value == "")
	{
		alert("中文标题不能为空!")
		form1.ftitle.focus()
		return(false)
	}
	if(form1.fetitle.value == "")
	{
		alert("英文标题不能为空!")
		form1.fetitle.focus()
		return(false)
	}
	if(form1.fyuang.value == "")
	{
		alert("新闻来源不能为空!")
		form1.fyuang.focus()
		return(false)
	}
	if(form1.fdate.value == "")
	{
		alert("请正确填写发布日期!")
		form1.fdate.focus()
		return(false)
	}
}
</script>
</head>

<body topmargin="0" bgcolor="#799AE1">

  
<table width="100%" height="100%" border="0" align="center" bgcolor="#668ED4">
  <tr> 
      
    <td height="103" colspan="2" align="center"> <img src="images/toplogo.gif" height="60"> 
    </td>
    </tr>
	<tr> 
      <td colspan="2">
        <table width="100%" border="0" cellspacing="0" cellpadding="0" background="images/menu_bk.gif">
        <tr> 
          <td height="23" valign="bottom" background="images/menu_bk.gif"><font color="#FFFFFF">招聘发布-&gt;添加招聘信息</font></td>
          <td valign="bottom" background="images/menu_bk.gif"><a href="<%=MM_ReturnPath%>">返回</a></td>
        </tr>
      </table>
	 </td>
	 </tr>
	 <tr> 
      <td colspan="2">
		<form ACTION="#" METHOD="POST" name="form1" onSubmit="javascript:return check()">
        <table width="100%" height="100%" align="center" cellpadding="1" cellspacing="1" bordercolor="#ADADC9" bgcolor="#666699">
          <tr bgcolor="#799AE1"> 
            <td colspan="4">职位名称(中文):</td>
            <td><input name="ftitle" type="text" id="ftitle2" size="50"> <script language="javascript">
				form1.ftitle.focus();
			</script> </td>
          </tr>
          <tr bgcolor="#799AE1"> 
            <td colspan="4">工作地点:</td>
            <td><input name="fetitle" type="text" id="fetitle" size="50"></td>
          </tr> <tr bgcolor="#799AE1"> 
            <td colspan="4">工作待遇:</td>
            <td><input name="fyuang" type="text" id="fsrou2" size="50"></td>
          </tr>
          <tr bgcolor="#799AE1"> 
            <td colspan="4">职位要求(中文):</td>
            <td> <div align="left"> 
                <textarea name="ftext" style="display:none"></textarea>
                <iframe id="eWebEditor1" src="editor/ewebeditor.asp?id=ftext&style=s_popup" frameborder="0" scrolling="no" width="580" height="400"></iframe>
              </div></td>
          </tr>
		   
    
          <tr bgcolor="#799AE1"> 
            <td height="29" colspan="4">招聘人数:</td>
            <td><input name="fimage" type="text" id="fimage" size="40">
            &nbsp;&nbsp;&nbsp;只需填写数字</td>
          </tr>
		  <!--
        -->
          <tr bgcolor="#799AE1"> 
            <td colspan="4">发布日期:</td>
            <td width="83%"><input name="fdate" type="text" id="fdate2" size="20" value="<%=Date()%>"> 
            &nbsp;&nbsp;&nbsp;格式如:2005-01-01</td>
          </tr>
          <tr bgcolor="#799AE1"> 
            <td colspan="4">显示/隐藏:</td>
            <script language="javascript">
				function checkshow()
				{
					if (form1.fshow.value != 0)
					{
						form1.fshow.value = 0;
					}
					else
					{
						form1.fshow.value = 1;
					}
				}
			</script>
            <td><input name="fclick" type="checkbox" id="fshow2" value="checkbox" checked onClick="javascript:checkshow();"></td>
          </tr>
		  <tr bgcolor="#799AE1">
            <td >有效期限:</td>
            <td colspan="4">
			
                <input name="fetext" type="text" value="" size="20">
               
			</td>
          </tr>
          <tr bgcolor="#799AE1"> 
            <td colspan="4"><input type="hidden" name="MM_insert" value="form1"> 
              <input name="fshow" type="hidden" id="fshow" value="1" onClick="javascript:checkshow()"></td>
            <td><input name="fcount" type="hidden" id="fshow3" value="0"> <input name="fadmin" type="hidden" id="fadmin" value="<%=session("lyj_admin")%>"></td>
          </tr>
          <tr bgcolor="#648BDD"> 
            <td colspan="4">&nbsp;</td>
            <td> <input type="submit" name="Submit2" value=" 添 加 "> <input type="reset" name="Submit3" value=" 清 除 "></td>
          </tr>
        </table>
        </form>
		</td>
	 </tr>
	 <tr> 
      <td colspan="2">
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td><div align="left">说明:请输入正确的内容以便顺利地添加记录!</div></td>
          </tr>
        </table>
        
      </td>
    </tr>
  </table>
</body>
</html>