⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 web_locale_jobsadd.asp

📁 直接附加数据库! 修改 Include/ Class_Main.asp 为自己信息 后台admin admin 绍兴人才网程序
💻 ASP
字号:
<!--#include file="../Include/Class_Conn.asp" -->
<!--#include file="../Include/Class_Main.asp" -->
<!--#include file="Web_Session.asp" -->

<% 
Dim Action,Comid,PageNo
Dim Locid,Sortid,CompanyName,JobName,Require,Place,Valid,InviteDate
'//检测是否跨站
Call Check_url()
'//检测管理员是否有权限操作该页面
If Instr(1,Session("Web_Power"),"171") <= 0 Then 
  Call CloseDB()
  Response.write "对不起!您没有访问该页面的权限..."
  Response.End()
End If
Action = Replace_text(request("action"))
Param  = Replace_text(request("Param"))


Select Case Action
 Case "edit"
  Call Edit_Submit() '//跳转到编辑函数
End Select
Set Rs = Conn.Execute("Select CompanyName From [pH_Locale_Base] Where Ncid="&Cstr(Param))
CompanyName = Rs(0)
Rs.Close

 %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>

<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="../CSS/css.css" rel="stylesheet" type="text/css">
</head>
<script language="JavaScript" src="../js/jsdate.js"></script>
<body leftmargin="0" topmargin="0">
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr> 
    <td height="5"></td>
  </tr>
  <tr> 
    <td height="25" bgcolor="fb7a03">&nbsp;<font color="#FFFFFF">::<strong>添加猎头企业的职位</strong></font></td>
  </tr>
  <tr>
    <td height="2"></td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="5"></td>
  </tr>
</table>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="1">
  <tr> 
    <td align="left"> <table width="70%" border="0" align="left" cellpadding="0" cellspacing="1" bgcolor="eff0eb">
        <tr> 
          <td bgcolor="#FFFFFF">
		  <table width="100%" border="0" cellspacing="1" cellpadding="4">
              <form action="?action=edit" method="post" name="edit">
                <tr bgcolor="eff0eb"> 
                  <td width="100" height="25" align="right" bgcolor="eff0eb">企业名称:</td>
                  <td bgcolor="eff0eb"><%= CompanyName %></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td width="100" height="25" align="right" bgcolor="eff0eb">序 
                    号:</td>
                  <td bgcolor="eff0eb"><input name="sortid" type="text" id="contactperson" value="1" size="16"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td width="100" align="right">职位名称:</td>
                  <td bgcolor="eff0eb"><input name="jobname" type="text" id="jobname" size="30"> 
                  </td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td align="right">职位序位:</td>
                  <td bgcolor="eff0eb"><input name="place" type="text" id="property3" value="1" size="16">
                    请填写数字 </td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td align="right">有效性:</td>
                  <td bgcolor="eff0eb"><input name="valid" type="text" id="fax4" size="16"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td align="right">时间:</td>
                  <td bgcolor="eff0eb"><input name="invitedate" type="text" id="fax5" size="16" onclick="SD(this,'document.all.invitedate')" value="<%= Date() %>"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td height="25" align="right" bgcolor="eff0eb">职位要求:</td>
                  <td bgcolor="eff0eb"><textarea name="require" cols="45" rows="6" id="require"></textarea></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td width="100" height="25" align="right" bgcolor="eff0eb">&nbsp; 
                  </td>
                  <td bgcolor="eff0eb"><input type="submit" name="Submit" value="添 加">
                    <input name="locid" type="hidden" id="locid" value="<%= Param %>">
                    <input name="companyname" type="hidden" id="companyname" value="<%= CompanyName %>"> </td>
                </tr>
              </form>
            </table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<% 
Sub Edit_Submit() '修改密码

 Locid					= Replace_text(Request.form("Locid"))
 Sortid					= Replace_text(Request.form("Sortid"))
 CompanyName			= Replace_text(Request.form("CompanyName"))
 JobName				= Replace_text(Request.form("JobName"))
 Require				= Replace_text(Request.form("Require"))
 Place					= Replace_text(Request.form("Place"))
 Valid					= Replace_text(Request.form("Valid"))
 InviteDate				= Replace_text(Request.form("InviteDate"))
 
 If Require <> "" Then Require = Replace(Require,Chr(13),"<br>")
 
 '保存数据
 SQL = "Insert Into [pH_Locale_Jobs] (Locid,Sortid,CompanyName,JobName,Require,Place,Valid,InviteDate) Values ("&Locid&","&Sortid&",'"&CompanyName&"','"&JobName&"','"&Require&"',"&Place&",'"&Valid&"','"&InviteDate&"')"
 Conn.Execute(SQL)
 
 Response.write "<script language=JavaScript>alert('设置成功!');location.href='Web_Locale_Jobs.asp';</script>"
 Response.End()
End Sub

Call CloseDB()
 %>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -