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

📄 modcom.asp

📁 人力资源管理系统(绝对是大型的真正商业代码)
💻 ASP
字号:
<!--#include file="../dbconn.asp"-->
<%
sql="select * from company where username='" & Request("user_name") & "'"
set Rs=conn.Execute(sql)
if Request("user_name")="" or Request("pwd")="" then
Response.Redirect "comlogin.htm"
end if
%>
<HTML>
<HEAD>
<META HTTP-EQUIV=Content-Type CONTENT="text/html; charset=gb2312">
<TITLE>修改公司信息</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" type="text/css" href="../css/cdol.css">
<script language="JavaScript">
<!-- Hide
function test(form) {
  if (form.company_name.value == ""){
    alert("请输入您公司的名字 !");
    return false;
  }
  if (isNaN(form.zipcode.value) ){
    alert("邮政编码请输入数字 !");
    return false;
  }
  else if(form.zipcode.value.length != 6){
          alert("邮政编码请输入6位数字 !");
          return false;
       }
  
  if (form.company_email.value == "" || 
      form.company_email.value.indexOf('@', 0) == -1){ 
        alert(" e-mail address 不正确! 请再输入一次!");
        return false;
   }
  if (form.user_pass_1.value ==""){
     alert("请输入您的密码!");
     return false;
  }

  if (form.user_pass_2.value=="" || form.user_pass_2.value != form.user_pass_1.value  ){
      alert("您的确认密码不正确,请重新输入!")
      return false;
  }  
    return true;
 }
// -->
</script>
</head>

<body topmargin=0 marginheight=0 bgColor=#E6E5B8 text="#383098">
<%If Rs.Bof OR Rs.Eof Then
Response. Write "<html><body><center>我们的数据库中没有查到您的用户名,请先注册新用户<p>"
Response.Write "<a href='postcom.htm'> 注册新用户 </a>"
Response.Write "</center></body></html>" 
Else
If trim(Request("pwd"))<>Rs("pwd") Then
Response. Write "<html><body><center>密码出错,请检查是否大小写不对。<p>"
Response.Write "<a href='comlogin.htm'> 返回 </a>"
Response.Write "</center></body></html>" 
else%>
 
        <table border="0" cellpadding="0" cellspacing="0"
            width="52%" dwcopytype="CopyTableRow" height="613" align="center">
            <form method="post" onSubmit="return test(this)" action="update.asp" >
          <tr> 
            <td align="center" width="23%" height="40"
                    class="p3">公司名称:</td>
            <td width="77%" height="40"> 
              <input type="text"
                    size="26" name="company_name" value="<%=rs("name")%>">(*)
            </td>
          </tr>
          <tr> 
            <td align="center" width=23% height="40"
                    class="p3">法人代表: </td>
            <td width=77% height="40"> 
              <input type="text"
                    size="26" name="company_owner" value="<%=rs("owner")%>">(*)
            </td>
          </tr>
          <tr> 
            <td align="center" width=23% height="40"
                    class="p3">所在行业:</td>
            <td width=77% height="40"> 
              <select name="company_class" size="1" style="width: 195; height: 23">
              <option selected>请选择</option>
              <option value="计算机/通讯">计算机/通讯</option>
              <option value="办公设备/家电">办公设备/家电</option>
              <option value="贸易/销售/市场">贸易/销售/市场</option>
              <option value="秘书/行政/翻译">秘书/行政/翻译</option>
              <option value="人力资源">人力资源</option>
              <option value="金融/财会">金融/财会</option>
              <option value="公关/广告/媒体">公关/广告/媒体</option>
              <option value="法律/咨询">法律/咨询</option>
              <option value="机械/仪器/仪表">机械/仪器/仪表</option>
              <option value="医药/化工">医药/化工</option>
              <option value="建筑建材/热能工程">建筑建材/热能工程</option>
              <option value="仓储/运输/后勤">仓储/运输/后勤</option>
              <option value="食品/旅游">食品/旅游</option>
              <option value="汽车">汽车</option>
              <option value="其他">其他</option>
              </select>(*)
            </td>
          </tr>
          <tr> 
            <td align="center" width=23% height="40"
                    class="p3">公司地址: </td>
            <td width=77% height="40"> 
              <input type="text"
                    size="26" name="company_address" value="<%=rs("address")%>">(*)
            </td>
          </tr>
          <tr> 
            <td align="center" width=23% height="40"
                    class="p3">邮政编码:</td>
            <td width=77% height="40"> 
              <input type="text"
                    size="26" name="zipcode" value="<%=rs("zipcode")%>">(*)
            </td>
          </tr>
          <tr> 
            <td align="center" width=23% height="40"
                    class="p3">E-mail:</td>
            <td width=77% height="40"> 
              <input type="text" name="company_email" value="<%=rs("email")%>" size="26">(*)
            </td>
          </tr>
          <tr> 
            <td align="center" width=23% height="40"
                    class="p3">联系电话:</td>
            <td width=77% height="40"> 
              <input type="text" name="tel" size="26" value="<%=rs("tel")%>">
            </td>
          </tr>
          <tr> 
            <td align="center" width=23% height="40"
                    class="p3">公司传真:</td>
            <td width=77% height="40"> 
              <input type="text" name="fax" value="<%=rs("fax")%>" size="26">
            </td>
          </tr>
          <tr> 
            <td align="center" width=23% height="40"
                    class="p3">公司网址:</td>
            <td width=77% height="40"> 
              <input type="text" name="web_site" value="<%=rs("web")%>" size="26">
            </td>
          </tr>
          <tr> 
            <td align="center" width=23% height="93"
                    class="p3">公司简介:</td>
            <td width=77% height="93"> 
            <textarea name="company_info" cols="30" rows="4"><%=rs("info")%></textarea>
              
            </td>
          </tr>
          <tr>
            <td align="center" width=23% height="40"
                    class="p3">用户名:</td>
            <td width=77% height="40">
              <%=rs("username")%>           </td>
          </tr>
          <tr> 
            <td align="center" width=23% height="40"
                    class="p3">密  码: </td>
            <td width=77% height="40"> 
              <input
                    type="password" size="20" name="user_pass_1" value="<%=rs("pwd")%>">
            </td>
          </tr>
          <tr> 
            <td align="center" width=23% height="40"
                    class="p3">确认密码: </td>
            <td width=77% height="40"> 
              <input
                    type="password" size="20" name="user_pass_2" value="">
            </td>
          </tr>
          
          
          <tr> 
            <td align="right" width="23%" height="40"
                    class="p3">
                    <input type="hidden" name="ID" value="<%=rs("userid")%>">
            </td>
             <td width=77% height="40"> 
                          <p align="left"> 
                          &nbsp;<input type="submit" name="Submit"
                    value="提交修改" class="p3"> <INPUT class=p3 name=Submit2 type=reset value=重新填写>                         
                          </p>
                          </td>  
           
          </tr> </form>  
          </table>      
       
<%end if                                  
end if     
conn.Close      
set conn=nothing %>              
</body>  
</html>  

⌨️ 快捷键说明

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