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

📄 company_modi.asp

📁 嘉缘人才6.0精简 ,很好用的人才系统
💻 ASP
字号:
<!--#include file="../../conn/conn.asp" -->
<!--#include file="../../Inc/Commoncode.asp" -->
<!--#include file="../checkvalid.asp" -->
<%
If Not FRAdminLevel(303) Then
	Call ErrorMsg()
End If%>
<html>
<head>
<title>修改企业资料</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href=../css/style.css rel=stylesheet type="text/css">
<script language="javascript" src="../Inc/Admin.js"></script><script language="JavaScript">
<!--
//功能:去掉字符串前后空格
//返回值:去掉空格后的字符串
function fnRemoveBrank(strSource)
{
 return strSource.replace(/^\s*/,'').replace(/\s*$/,'');
}
function GetCapital(capitalid)
{
document.frames["capitalframe"].location.replace("../../inc/getcapital.asp?capitalid="+capitalid);
}
function GetCity(cityid)
{
document.frames["cityframe"].location.replace("../../inc/getcity.asp?cityid="+cityid);
}
function String.prototype.lenB()
{
return this.replace(/[^\x00-\xff]/g,"**").length;
}
function Juge(theForm)
{
  if (fnRemoveBrank(theForm.comname.value) == "")
  {
    alert("请输入公司名称!");
    theForm.comname.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.trade.value) == "")
  {
    alert("请选择所属行业!");
    theForm.trade.focus();
    return (false);
  }
    if (fnRemoveBrank(theForm.province.value) == "")
  {
    alert("请选择所在省份!");
    theForm.province.focus();
    return (false);
  }
    if (fnRemoveBrank(theForm.capital.value) == "")
  {
    alert("请选择所在城市!");
    theForm.capital.focus();
    return (false);
  }
    if (fnRemoveBrank(theForm.city.value) == "")
  {
    alert("请选择所在县区!");
    theForm.city.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.ecoclass.value) == "")
  {
    alert("请选择公司性质!");
    theForm.ecoclass.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.funddate.value) == "")
  {
    alert("请输入成立日期!");
    theForm.funddate.focus();
    return (false);
  }
  var objv = fnRemoveBrank(theForm.fund.value);
  var pattern = /^[0-9]+$/;
  flag = pattern.test(objv);
  if(!flag)
  {
    alert("注册资金:要求为数字!请重新输入。");
    theForm.fund.focus();
    return (false);
   }
   if (fnRemoveBrank(theForm.introduce.value) == "")
  {
    alert("请输入公司简介!");
    theForm.introduce.focus();
    return (false);
  }
  if ((theForm.introduce.value).lenB()>=8000)
  {
	 alert("公司简介太长了,要求不多于8000个字符!");
	 theForm.introduce.focus();
	 return (false);
  }
  if (fnRemoveBrank(theForm.address.value) == "")
  {
    alert("请输入通信地址!");
    theForm.address.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.contact.value) == "")
  {
    alert("请输入联系人!");
    theForm.contact.focus();
    return (false);
  }
  if (fnRemoveBrank(theForm.tel.value) == "")
  {
    alert("请输入联系电话!");
    theForm.tel.focus();
    return (false);
  }
  var objv = fnRemoveBrank(theForm.email.value);
  var pattern = /^([a-zA-Z0-9_-])+(\.([a-zA-Z0-9_-])+)*@([a-zA-Z0-9_-])+(\.([a-zA-Z0-9_-])+)+$/;
  flag = pattern.test(objv);
  if(!flag)
  {
    alert("电子邮件:格式不正确!请重新输入。");
	theForm.email.focus();
	return (false); 
  }  
 }
-->
</script></head>

<body>
<iframe height=0 width=0 src="" id="capitalframe"></iframe>
<iframe height=0 width=0 src="" id="cityframe"></iframe>
<%
company_id=clng(trim(request("id")))
keyword=trim(request("keyword"))
segment=trim(request("segment"))
operate=trim(request("operate"))
group=trim(request("group"))
page=trim(request("page"))
set rst=server.createobject("ADODB.Recordset")
sql="select * from job_member where member_id="&company_id
rst.open sql,conn,1,1
%> 
<table width="100%" border="0" cellpadding="2" cellspacing="1" class="tableBorder"  align="center">
  <tr> 
  	<th height=25 colspan="2" class="tableHeaderText">修改企业资料</th> 
  </tr>
  <form action="company_update.asp?id=<%=company_id%>&keyword=<%=keyword%>&page=<%=page%>&segment=<%=segment%>&operate=<%=operate%>&group=<%=group%>" method="POST" name="companyform" onSubmit="return Juge(this)">
    <TBODY>
      <TR > 
        <TD height=25 colSpan=2 align=left><FONT color=#333333>(注:带</FONT><FONT color=#ff6600>*</FONT><FONT color=#b00000><FONT color=#333333>号为必填项)</FONT></FONT>        </TD>
      </TR>
      <tr > 
        <td height=25 colspan="2" class="huibg"><font color="#FF0000"><strong>基本资料</strong></font></td>
      </tr>
      <TR > 
        <TD align=left width="16%" height=25><FONT color=#ff6600>*</FONT>公司名称: 
        </TD>
        <TD align=left width="84%"> <INPUT name=comname id="comname" size=38 maxLength=50 value="<%=rst("member_name")%>"> 
        </TD>
      </TR>
      <TR > 
        <TD height=25 align=left>&nbsp;&nbsp;营业执照:</TD>
        <TD align=left> <INPUT maxLength=50 size=30 name=licence value="<%=rst("member_licence")%>"> 
        </TD>
      </TR>
      <TR > 
        <TD height=25 align=left><FONT color=#ff6600>*</FONT>所属行业: </TD>
        <TD align=left> <select name=trade id="select2">
            <option value=""></option>
            <%
	  Set rs= Server.CreateObject("ADODB.RecordSet")
       sql="select trade_id,trade_name from job_trade"
       rs.open sql,conn,1,1
       do while not rs.eof
	   if rst("member_trade")=rs("trade_id") then
	  	response.write"<OPTION value="&rs("trade_id")&" selected>"&rs("trade_name")&"</option>"
	   else
	    response.write"<OPTION value="&rs("trade_id")&">"&rs("trade_name")&"</option>"
	   end if
		 rs.movenext
		 loop
		 rs.close
		%>
        </SELECT> </TD>
      </TR>
      <TR > 
        <TD height=25 align=left><FONT color=#ff6600>*</FONT>所在地区: </TD>
        <TD align=left><select name="province" size="1" id="select4" onchange=GetCapital(this.options[this.selectedIndex].value)>
            <option value="" selected>省份</option>
            <%
       sql="select * from job_provinceandcity where fid=0"
       rs.open sql,conn,1,1
       do while not rs.eof
	   if rst("member_provinceid")=rs("id") then
	     response.write"<OPTION value="&rs("id")&" selected>"&rs("province_city")&"</option>"
	   else
	  	 response.write"<OPTION value="&rs("id")&">"&rs("province_city")&"</option>"
	   end if
		 rs.movenext
		 loop
		 rs.close
		%>
          </select> <span id="load100"></span> <span id="ccapital"> 
          <select name=capital onchange=GetCity(this.options[this.selectedIndex].value)>
            <option value="" selected>地级市</option>
            <%
	   if rst("member_provinceid")<>"" and not isnull(rst("member_provinceid")) and rst("member_provinceid")<>0 then
       sql="select * from job_provinceandcity where fid="&rst("member_provinceid")&" order by id "
       rs.open sql,conn,1,1
       do while not rs.eof
	   if rst("member_capitalid")=rs("id") then
	     response.write"<OPTION value="&rs("id")&" selected>"&rs("province_city")&"</option>"
	   else
	  	 response.write"<OPTION value="&rs("id")&">"&rs("province_city")&"</option>"
	   end if
		 rs.movenext
		 loop
		 rs.close
	   end if
		%>
          </select>
          </span> <span id="load200"></span> <span id="ccity"> 
          <select name=city>
            <option value="" selected>县级地区</option>
            <%
	   if rst("member_capitalid")<>"" and not isnull(rst("member_capitalid")) and rst("member_capitalid")<>0 then
       sql="select * from job_provinceandcity where fid="&rst("member_capitalid")&" order by id "
       rs.open sql,conn,1,1
       do while not rs.eof
	   if rst("member_cityid")=rs("id") then
	     response.write"<OPTION value="&rs("id")&" selected>"&rs("province_city")&"</option>"
	   else
	  	 response.write"<OPTION value="&rs("id")&">"&rs("province_city")&"</option>"
	   end if
		 rs.movenext
		 loop
		 rs.close
	   end if
		%>
          </select>
        </span> </TD>
      </TR>
      <TR > 
        <TD height=25 align=left><FONT color=#ff6600>*</FONT>公司性质: </TD>
        <TD align=left> <select name="ecoclass" size="1" id="select6">
            <option value="" selected></option>
            <%
       sql="select ecoclass_id,ecoclass_name from job_ecoclass"
       rs.open sql,conn,1,1
       do while not rs.eof
	   if rst("member_ecoclass")=rs("ecoclass_id") then
	  	response.write"<OPTION value="&rs("ecoclass_id")&" selected>"&rs("ecoclass_name")&"</option>"
	   else
	    response.write"<OPTION value="&rs("ecoclass_id")&">"&rs("ecoclass_name")&"</option>"
	   end if
		 rs.movenext
		 loop
		 rs.close
		 set rs=nothing
		%>
        </select> </TD>
      </TR>
      <TR > 
        <TD height=25 align=left><FONT color=#ff6600>*</FONT>成立日期: </TD>
        <TD align=left>
        <input name="funddate" type="text" size="10" id=funddate value="<%=rst("member_founddate")%>"><img src="../images/calendar_bnt.gif" style="cursor:pointer;" align="absmiddle" onClick="fPopUpCalendarDlg(funddate);return false" WIDTH="34" HEIGHT="21"></span> 
		</TD>
      </TR>
      <TR > 
        <TD height=25 align=left><FONT color=#ff6600>*</FONT>注册资金: </TD>
        <TD align=left> <INPUT name=fund id="fund" size=10 value="<%=rst("member_fund")%>">
        万人民币</TD>
      </TR>
      <TR > 
        <TD height=25 align=left><FONT color=#ff6600>*</FONT>员工人数: </TD>
        <TD height=20> <INPUT name=workers type=radio class="checkbox" value=少于50人 <%if rst("member_workers")="少于50人" then response.write "checked" end if%>>
          少于<B>50</B>人 
          <INPUT name=workers type=radio class="checkbox" value=50-200人 <%if rst("member_workers")="50-200人" then response.write "checked" end if%>> 
          <B>50-200</B>人 
          <INPUT name=workers type=radio class="checkbox" value=200-500人 <%if rst("member_workers")="200-500人" then response.write "checked" end if%>> 
          <B>200-500</B>人 
          <input name=workers type=radio class="checkbox" value=500-1000人 <%if rst("member_workers")="500-1000人" then response.write "checked" end if%>> 
          <B>500-1000</B>人 
          <input name=workers type=radio class="checkbox" value=1000人以上 <%if rst("member_workers")="1000人以上" then response.write "checked" end if%>> 
        <B>1000</B>人以上</TD>
      </TR>
      <TR > 
        <TD height=25 vAlign=top><FONT color=#ff6600>*</FONT>公司简介:</TD>
        <TD><TEXTAREA name=introduce cols=72 rows=11 class=fieldtext id="textarea"><%=ChangeStrbox(rst("member_introduce"))%></TEXTAREA> 
        </TD>
      </TR>
      <tr > 
        <td height=25 colspan="2"><font color="#FF0000"><strong>联系方式</strong></font></td>
      </tr>
      <TR > 
        <TD height=25 align=left valign="middle"><FONT color=#ff6600>*</FONT>通讯地址:        </TD>
        <TD align=left><input name="address" type="text" size="38" maxlength="50" value="<%=rst("member_address")%>"> 
        </TD>
      </TR>
      <TR > 
        <TD height=25 valign="middle">&nbsp;&nbsp;邮&nbsp;&nbsp;&nbsp;编: </TD>
        <TD align=left> <INPUT name=post id="post2" size=6 maxLength=6 value="<%=rst("member_post")%>"> 
        </TD>
      </TR>
      <TR > 
        <TD width="16%" height=25 vAlign=middle><FONT color=#ff6600>*</FONT>联 
          系 人:</TD>
        <TD width="84%" align=left> <INPUT name=contact id="contact2" size=28 maxLength=25 value="<%=rst("member_contact")%>"> 
        </TD>
      </TR>
      <TR > 
        <TD height=25 vAlign=middle><FONT color=#ff6600>*</FONT>联系电话:</TD>
        <TD align=left> <input name="tel" type="text" id="tel2" size="38" maxlength="100" value="<%=rst("member_tel")%>"> 
        </TD>
      </TR>
      <TR > 
        <TD height=25 align=left valign="middle">&nbsp;&nbsp;传&nbsp;&nbsp;&nbsp;真:</TD>
        <TD align=left> <input name="fax" type="text" id="fax2" size="38" maxlength="100" value="<%=rst("member_fax")%>"> 
        </TD>
      </TR>
      <TR > 
        <TD height=25 align=left vAlign=middle><FONT color=#ff6600>*</FONT>电子邮件:</TD>
        <TD align=left vAlign=top> <INPUT maxLength=100 size=38 name=email value="<%=rst("member_email")%>"> 
        </TD>
      </TR>
      <TR > 
        <TD height=25 valign="middle" noWrap>&nbsp;公司主页: </TD>
        <TD><INPUT name=url id="url2" size=38 maxLength=100 value="<%=rst("member_url")%>"> 
        </TD>
      </TR>
      <TR > 
        <TD height=25><FONT color=#d84d45>&nbsp;&nbsp; </FONT>&nbsp; </TD>
        <TD colSpan=2 ><FONT color=#000000> 
          <INPUT name=resetcontactinfo 
                        type=checkbox class="checkbox" id="resetcontactinfo" value=1>
          同步更新所有招聘信息中的联系方式<br>
        (选中此选项后,所有该公司发布的招聘信息中的联系方式也将同时更改为此联系方式。) </FONT></TD>
      </TR>
      <%
	  rst.close
	  set rst=nothing
	  conn.close
	  set conn=nothing
	  %>
      <TR > 
        <TD height=25 colspan="2" align="center"> <input name="submitdd" type="submit"  class=inputs  value=" 修 改 "> 
        <input name="reset" type="reset" class=inputs value=" 还 原 "> </TD>
      </TR>
    </TBODY>
  </form>
</TABLE>
</body>

⌨️ 快捷键说明

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