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

📄 web_locale_baseupdate.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 CompanyName,Content,Property1,Products,ContactPerson,Phone,Address,InfoFrom,Licence,AddDate,Operation,InviteDate,Memo,Fax,Bus,Owner
'//检测是否跨站
Call Check_url()
'//检测管理员是否有权限操作该页面
If Instr(1,Session("Web_Power"),"170") <= 0 Then 
  Call CloseDB()
  Response.write "对不起!您没有访问该页面的权限..."
  Response.End()
End If
Param  = Replace_text(request("Param"))
Action = Replace_text(request("action"))
Comid  = Replace_text(request("Comid"))
PageNo = Replace_text(request("pageno"))

Select Case Action
 Case "edit"
  Call Edit_Submit() '//跳转到编辑函数
End Select

Set Rs = Conn.Execute("Select * From [pH_Locale_Base] Where Ncid="&Cstr(Param))
 CompanyName			= Rs("CompanyName")
 Content                = Rs("Content")
 Property1				= Rs("Property")
 Products    			= Rs("Products")
 ContactPerson			= Rs("ContactPerson")
 Phone					= Rs("Phone")
 Address				= Rs("Address")
 InfoFrom				= Rs("InfoFrom")
 Licence				= Rs("Licence")
 AddDate				= Rs("AddDate")
 Operation				= Rs("Operation")
 InviteDate				= Rs("InviteDate")
 Memo					= Rs("Memo")
 Fax					= Rs("Fax")
 Bus					= Rs("Bus")
 Owner					= Rs("Owner")
 
 If Content <> "" Then Content = Replace(Content,"<br>",Chr(13))
 %>
<!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"><input name="companyname" type="text" id="companyname" size="30" value="<%= companyname %>"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td width="100" height="25" align="right" bgcolor="eff0eb">营业执照:</td>
                  <td bgcolor="eff0eb">
				  <input name="licence" type="radio" value="1" <% If licence = True Then Response.write "Checked" %>>有
				  <input type="radio" name="licence" value="0" <% If licence = False Then Response.write "Checked" %>>无</td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td width="100" align="right">性质规模:</td>
                  <td bgcolor="eff0eb"><input name="property" type="text" id="property" size="30" value="<%= property1 %>"> 
                  </td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td align="right">主要产品:</td>
                  <td bgcolor="eff0eb"><input name="products" type="text" id="products" size="30" value="<%= products %>"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td align="right">联系人:</td>
                  <td bgcolor="eff0eb"><input name="contactperson" type="text"  size="16" value="<%= contactperson %>"> 
                  </td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td width="100" align="right">联系电话:</td>
                  <td bgcolor="eff0eb"><input name="phone" type="text" id="contactperson" size="16" value="<%= phone %>"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td align="right">传真号码:</td>
                  <td bgcolor="eff0eb"><input name="fax" type="text" id="fax" size="16"  value="<%= fax %>"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td align="right">通讯地址:</td>
                  <td bgcolor="eff0eb"><input name="address" type="text" id="address" size="30" value="<%= address %>"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td align="right">行车路线:</td>
                  <td bgcolor="eff0eb"><input name="bus" type="text" id="bus" size="30" value="<%= bus %>"></td>
                </tr>
                <tr bgcolor="eff0eb">
                  <td align="right">资料来源:</td>
                  <td bgcolor="eff0eb">
				  <input name="infofrom" type="text" id="infofrom" size="16"  value="<%= infofrom %>">
                    <select name="infoclass" id="infoclass" onChange="document.edit.infofrom.value=this.options[this.selectedIndex].value;">
					<option value="">请选择</option>
					<option value="手写">手写</option>
					<option value="传真">传真</option>
					<option value="调老资料">调老资料</option>
                    </select></td>
                </tr>
                <tr bgcolor="eff0eb">
                  <td align="right">时间:</td>
                  <td bgcolor="eff0eb"><input name="invitedate" type="text" id="fax3" size="16" onclick="SD(this,'document.all.invitedate')"  value="<%= invitedate %>"></td>
                </tr>
                <tr bgcolor="eff0eb">
                  <td align="right">业务员:</td>
                  <td bgcolor="eff0eb"><input name="operation" type="text" id="fax4" size="16"  value="<%= operation %>"></td>
                </tr>
                <tr bgcolor="eff0eb">
                  <td align="right">加入时间:</td>
                  <td bgcolor="eff0eb"><input name="adddate" type="text" id="fax5" size="16" onclick="SD(this,'document.all.adddate')" value="<%= adddate %>"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td height="25" align="right" bgcolor="eff0eb">备 注:</td>
                  <td bgcolor="eff0eb"><input name="memo" type="text" id="fax6" value="<%= memo %>" size="30"></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td height="25" align="right" bgcolor="eff0eb">企业简介:</td>
                  <td bgcolor="eff0eb"><textarea name="content" cols="45" rows="6" id="content"><%= content %></textarea></td>
                </tr>
                <tr bgcolor="eff0eb"> 
                  <td height="25" align="right" bgcolor="eff0eb">录入所:</td>
                  <td bgcolor="eff0eb">
				  <select name="owner" id="owner">
				  	  <option value="www" <% If Owner = "www" Then Response.write "Selected" %>>中国精英网</option>


                    </select></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="ncid" type="hidden" id="ncid" value="<%= Param %>"> </td>
                </tr>
              </form>
            </table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<% 
Sub Edit_Submit() '修改密码]
 Ncid                   = Replace_text(Request.form("Ncid"))
 CompanyName			= Replace_text(Request.form("CompanyName"))
 Content                = Replace_text(Request.form("Content"))
 Property1				= Replace_text(Request.form("Property"))
 Products    			= Replace_text(Request.form("Products"))
 ContactPerson			= Replace_text(Request.form("ContactPerson"))
 Phone					= Replace_text(Request.form("Phone"))
 Address				= Replace_text(Request.form("Address"))
 InfoFrom				= Replace_text(Request.form("InfoFrom"))
 Licence				= Replace_text(Request.form("Licence"))
 AddDate				= Replace_text(Request.form("AddDate"))
 Operation				= Replace_text(Request.form("Operation"))
 InviteDate				= Replace_text(Request.form("InviteDate"))
 Memo					= Replace_text(Request.form("Memo"))
 Fax					= Replace_text(Request.form("Fax"))
 Bus					= Replace_text(Request.form("Bus"))
 Owner					= Replace_text(Request.form("Owner"))
 
 If Content <> "" Then Content = Replace(Content,Chr(13),"<br>")
 
 '保存数据
 SQL = "Update [pH_Locale_Base] Set CompanyName='"&CompanyName&"',Content='"&Content&"',Property='"&Property1&"',Products='"&Products&"',ContactPerson='"&ContactPerson&"',Phone='"&Phone&"',Address='"&Address&"',InfoFrom='"&InfoFrom&"',Licence="&Licence&",AddDate='"&AddDate&"',Operation='"&Operation&"',InviteDate='"&InviteDate&"',Memo='"&Memo&"',Fax='"&Fax&"',Bus='"&Bus&"',Owner='"&Owner&"' Where Ncid="&Cstr(Ncid)
 Conn.Execute(SQL)
 
 Response.write "<script language=JavaScript>alert('编辑完成!');location.href='Web_Locale_Base.asp';</script>"
 Response.End()
End Sub

Call CloseDB()
 %>

⌨️ 快捷键说明

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