<!--#include file="../../Include/Class_Conn.asp" -->
<!--#include file="../../Include/Class_Main.asp" -->
<% 
Dim Localeid,Jobid
Dim Schid,Username,Cmd,Rs,SQL

Localeid  = Replace_Text(Request.QueryString("Localeid"))
Jobid     = Replace_Text(Request.QueryString("Jobid"))
Action = Request.QueryString("action")
If Action = "submit" Then Call Submit() '//调用保存数据的函数


%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../../Css/css_offices.css" type=text/css rel=stylesheet>
<title><%= SchoolName&" -- 在线应聘"%></title>
</head>
<script language="JavaScript" src="../../js/Educate_lessonaction.js"></script>
<body>
<table width="500" border="0" align="center" cellpadding="0" cellspacing="0">
  <form action="?action=submit" name="edit" method="post" onSubmit="return check_edit();">
    <tr> 
      <td><table width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
          <tr> 
            <td bgcolor="#FFFFFF"><table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td height="2"></td>
                </tr>
              </table>
              <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td height="2"></td>
                </tr>
              </table>
              <table width="99%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="eeeeee">
                <tr> 
                  <td height="25" bgcolor="f5f5f5"><b><font color="#000000">&nbsp;在线应聘</font></b></td>
                </tr>
              </table>
              <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td width="18%" height="25" align="right"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 姓 名：</td>
                  <td height="25"><input name="name" type="text" id="name" style="width:120px;" size="30" maxlength="30"> 
                  </td>
                </tr>
                <tr> 
                  <td width="18%" height="25" align="right" bgcolor="f9f9f9"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 联系电话：</td>
                  <td height="25" bgcolor="f9f9f9"><input name="phone" type="text" id="phone" style="width:120px;" size="30" maxlength="30"> 
                    <font color="#50463d">&nbsp; </font></td>
                </tr>
                <tr> 
                  <td height="25" align="right">手机号码：</td>
                  <td height="25"><input name="mt" type="text" id="mt" style="width:120px;" size="30" maxlength="30"></td>
                </tr>
                <tr> 
                  <td height="25" align="right" bgcolor="f9f9f9"><STRONG><FONT 
                  color=#ff6600>*</FONT></STRONG> 电子邮件：</td>
                  <td height="25" bgcolor="f9f9f9"><input name="email" type="text" id="email"  style="width:200px;" size="50"></td>
                </tr>
                <tr> 
                  <td height="25" align="right">邮政编码：</td>
                  <td height="25"><input name="zipcode" type="text" id="zipcode" style="width:120px;" size="6" maxlength="6"></td>
                </tr>
                <tr> 
                  <td height="25" align="right" bgcolor="f9f9f9">通讯地址：</td>
                  <td height="25" bgcolor="f9f9f9"><input name="address" type="text" id="address" style="width:200px;" size="50"></td>
                </tr>
                <tr> 
                  <td height="25" align="right">求职信：</td>
                  <td height="25"><textarea name="content" cols="40" rows="5" id="content"></textarea> 
                  </td>
                </tr>
              </table>
              <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
                <tr> 
                  <td height="2"></td>
                </tr>
              </table></td>
          </tr>
        </table></td>
    </tr>
    <tr> 
      <td height="40" align="center">
	  <input type="hidden" name="localeid" value="<%= localeid %>"> 
        <input type="hidden" name="Jobid" value="<%= Jobid %>"> 
		<input type="submit" name="Submit" value=" 提交信息 "> 
      </td>
    </tr>
  </form>
</table>
</body>
</html>
<% 
Sub Submit() '保存企业基本数据
 'Schid,Lessonid,Realname,Mt,Phone,Email,Address,Zipcode,Content
 Localeid	= Replace_Text(Request.Form("Localeid"))
 Jobid		= Replace_Text(Request.Form("Jobid"))
 Realname	= Replace_Text(Request.Form("name"))
 Mt			= Replace_Text(Request.Form("Mt"))
 Phone		= Replace_Text(Request.Form("Phone"))
 Email		= Replace_Text(Request.Form("Email"))
 Address	= Replace_Text(Request.Form("Address"))
 Zipcode	= Replace_Text(Request.Form("Zipcode"))
 Content	= Replace_Text(Request.Form("Content"))
 
 SQL = "Insert Into [pH_Locale_Action] (Localeid,Jobid,Realname,Mt,Phone,Email,Address,Zipcode,Content,AddDate) Values ("&Localeid&","&Jobid&",'"&Realname&"','"&Mt&"','"&Phone&"','"&Email&"','"&Address&"','"&Zipcode&"','"&Content&"',Getdate())"
 Conn.Execute(SQL)
 
 Response.write "<script>alert('您的应聘信息已经提交到网站！');window.close();</script>"
 Response.End()
End Sub

'//关闭数据库连接
Set Rs = Nothing
CloseDB
 %>
