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

📄 adminbumen_add.asp

📁 人才招聘系统,用asp做的
💻 ASP
字号:
	<!--#include file=../conn.asp-->
	<!--#include file=cookies.asp-->
	<!--#include file=top.asp-->
	<%
	dim sql1
	dim rs1
	dim username
	dim comid,i
	username=request.cookies("ijob")("username")
	comid=request.cookies("ijob")("comid")
	%>
<link rel="stylesheet" type="text/css" href="../1.css">
<title>企业招聘管理器</title>
<body topmargin="0" leftmargin="0">

<div align="center">
  <center>

<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="770" height="236">
  <tr>
    <td width="147" height="236" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%">
      <tr>
        <td width="100%"><!--#include file=left.asp--></td>
      </tr>
    </table>
    </td>
    <td width="27" height="236" valign="top"> </td>
    <td width="580" height="236" valign="top">
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="580">
      <tr>
        <td width="580" colspan="5"> </td>
      </tr>
      <tr>
        <td width="580" colspan="5">
        <div align="center">
        <form action="adminbumen_addchk.asp" method="POST">
          <center>
          <table border="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#111111" width="75%" height="69">
            <tr>
              <td width="100%" height="43"><%
set rs1=server.createobject("adodb.recordset")
sql1="select id,bmmc from [bumen] where comid='"&request.cookies("ijob")("comid")&"' and admin<>1"
rs1.open sql1,conn,1,1
'if rs1.eof or rs1.bof then
'response.write "<li>没有部门"
'else
 
%><font color="#C0C0C0">①</font> 选择部门:<select name="bmid" size="1" style="font-size: 9pt">
  <option value="0">选择....</option>
<%       
  Do while not rs1.eof
    response.write "<option value='" +  Cstr(rs1("id")) + "'>" + rs1("bmmc") + "</option>"
    rs1.MoveNext
  Loop
         
%>
      </select>
<%
rs1.close
set rs1=nothing
'end if
%> <font color="#CC0000"><br>
              </font>
              <br>
              <font color="#C0C0C0">②</font>
              管理帐号:<input type="text" name="username" size="20" maxlength="15"><br>
              <br>
              <font color="#C0C0C0">③</font>
              管理密码:<input name="password" size="20" maxlength="15"></td>
            </tr>
            <tr>
              <td width="100%" height="23">
              <p align="center">
              <input onclick='{if(confirm("【提示:】是否增加管理员?")){return true;}return false;}' border="0" src="../img/adminbumen.gif" name="I1" type="image"></td>
            </tr>
          </table>
          </center>
          </form>
        </div>
        </td>
      </tr>
      <tr>
        <td width="580" style="border-bottom-style: none; border-bottom-width: medium" colspan="5"><li> </td>
      </tr>
       <tr>
        <td width="142" align="center" height="20" style="border-bottom-style: none; border-bottom-width: medium" background="../img/jj.gif">
        <p align="left">部门名称</td>
        <td width="82" align="center" height="20" style="border-bottom-style: none; border-bottom-width: medium" background="../img/jj.gif">
        <p align="left">登陆帐号</td>
        <td width="71" align="center" height="20" style="border-bottom-style: none; border-bottom-width: medium" background="../img/jj.gif">
        <p>管理员</td>
        <td width="64" align="center" height="20" style="border-bottom-style: none; border-bottom-width: medium" background="../img/jj.gif">
        <p align="center">状态</td>
        <td width="221" align="center" height="20" style="border-bottom-style: none; border-bottom-width: medium" background="../img/jj.gif">
        对管理员进行操作</td>
      </tr>
      <%
      set rs1=server.createobject("adodb.recordset")
      sql1="select * from [bumen] where comid='"&request.cookies("ijob")("comid")&"'"
      rs1.open sql1,conn,1,1
      if rs1.eof or rs1.bof then
      response.write "<li>没有部门管理员"
      response.end
      else
      rs1.movefirst '移动到第一笔记录!
      Do while not rs1.eof%>
      <tr>
        <td width="142" align="center" height="25" style="border-top-style: none; border-top-width: medium" background="../img/bg.gif">
        <p align="left"><a href="AdminDeptedit.asp?id=<%=rs1("id")%>"><%=rs1("bmmc")%></a></td>
        <td width="82" align="center" height="25" style="border-top-style: none; border-top-width: medium" background="../img/bg.gif">
        <p align="left"><%if rs1("admin")=true then%><%=rs1("username")%><%else%>无<%end if%></td>
        <td width="71" align="center" height="25" style="border-top-style: none; border-top-width: medium" background="../img/bg.gif"><%if rs1("admin")=true then%><font color="#CC0000">有</font><%else%>无<%end if%></td>
        <td width="64" align="center" height="25" style="border-top-style: none; border-top-width: medium" background="../img/bg.gif">
         <%if rs1("adminzt")=0 then%>有效<%else%><font color="#CC0000">无效</font><%end if%>    
        </td>
        <td width="221" align="center" height="25" style="border-top-style: none; border-top-width: medium" background="../img/bg.gif">
        <%if rs1("admin")=true then%>①<a href="adminbumen_edit.asp?id=<%=rs1("id")%>">修改帐号</a>②<%if rs1("adminzt")=false then%><a onclick='{if(confirm("你确认要屏蔽掉【<%=rs1("bmmc")%>】的管理员吗?")){return true;}return false;}' href="adminbumen_zt.asp?id=<%=rs1("id")%>&oo=1">设置为无效</a><%else%><font color="#CC0000"><a href="adminbumen_zt.asp?id=<%=rs1("id")%>&oo=0"><font color="#CC0000">设置为有效</font></a></font><%end if%>③<a onclick='{if(confirm("你确认要删除【<%=rs1("bmmc")%>】的管理员吗?")){return true;}return false;}' href="adminbumen_del.asp?id=<%=rs1("id")%>">删除</a><%else%><font color="#cc0000">ⅹ</font><%end if%></td>
      </tr>
      <%rs1.MoveNext%>
      <%Loop
      end if
      %>
    </table>
    </td>
    <td width="16" height="236" valign="top"> </td>
  </tr>
</table>

  </center>
</div>
<!--#include file=copyright.asp-->
<%
rs1.close
set rs1=nothing
closedb
%>

⌨️ 快捷键说明

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