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

📄 menpaimanage.asp

📁 网佳网络办公系统(以下简称OA)是一套基于B/S模式的无纸化办公系统。[显著特点:无须安装客户端] 主要功能模块:管理 公文 车辆 通知 档案 值班 人事 审批 仓库 主界面 软件下载 个
💻 ASP
字号:
<!--#include file="config.asp"-->
<%
Response.Buffer=true
xian=session("xian")
ljl_xian=mid(xian,6,1)
if ljl_xian<>1 then%>
<script language=vbscript> 
MsgBox "错误:您无权使用本功能模块,如果确实需要操作本模块的权限,请与管理员联系!"
location.href = "txt.asp"
</script>
<%end if%>
<%Response.Expires=0
Response.Buffer=true
Response.ExpiresAbsolute = Now() - 1
Response.AddHeader "Pragma","No-Cache"
Response.AddHeader "Cache-Control","Private"
Response.CacheControl = "No-Cache"
username=session("hxf_u_nickname")
grade=session("hxf_u_grade")
mykind=session("mykind")
mypai=session("mypai")
if username=""  then  Response.Redirect "../error.asp?id=440"
Set conn=Server.CreateObject("ADODB.CONNECTION")
Set rs=Server.CreateObject("ADODB.RecordSet")
Set rs2=Server.CreateObject("ADODB.RecordSet")
connstr=Application("hg_connstr")
conn.open connstr
%>

<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>门派管理系统</title>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<style type=text/css>
<!--
-->
</style>
<link rel="stylesheet" href="setup.css">
</head>
<%
   const MaxPerPage=20
   dim totalPut   
   dim CurrentPage
   dim TotalPages
   dim i,j

   dim typename
   dim keyword
   keyword=request("guestname")

   typename="信息管理系统"
   if not isempty(request("page")) then
      currentPage=cint(request("page"))
   else
      currentPage=1
   end if
   
%>

<body topmargin="0">
<div align="center">
  <center>
<table border="0" width="71%" cellspacing="0" cellpadding="15"> 
  <tr> 
    <td width="100%" align="center"><font color="#FF0000"><b>部门</b></font><font color="#FF0000" size="3"><b>信息管理子系统</b></font></td> 
  </tr> 
</table> 
  </center>
</div>
<div align="center"><center> 
 
<table border="0" width="72%" cellspacing="0" cellpadding="0"> 
  <tr> 
    <td width="100%"> 
      
<!------查询start-------------------->    
      
     <%   
sql="select * from 门派 where 门派 like '%"&keyword&"%' and 有效=false order by id desc"   
Set rs= Server.CreateObject("ADODB.Recordset")   
rs.open sql,conn,1,1   
  if rs.eof and rs.bof then   
       response.write "<p align='center'>没有或没有找到任何数据</p>"   
   else   
	  totalPut=rs.recordcount   
      totalPut=rs.recordcount   
      if currentpage<1 then   
          currentpage=1   
      end if   
      if (currentpage-1)*MaxPerPage>totalput then   
	   if (totalPut mod MaxPerPage)=0 then   
	     currentpage= totalPut \ MaxPerPage   
	   else   
	      currentpage= totalPut \ MaxPerPage + 1   
	   end if   
   
      end if   
       if currentPage=1 then   
           showpage totalput,MaxPerPage,"menpaimanage.asp"   
            showContent   
            showpage totalput,MaxPerPage,"menpaimanage.asp"   
       else   
          if (currentPage-1)*MaxPerPage<totalPut then   
            rs.move  (currentPage-1)*MaxPerPage   
            dim bookmark   
            bookmark=rs.bookmark   
           showpage totalput,MaxPerPage,"menpaimanage.asp"   
            showContent   
             showpage totalput,MaxPerPage,"menpaimanage.asp"   
        else   
	        currentPage=1   
           showpage totalput,MaxPerPage,"menpaimanage.asp"   
           showContent   
           showpage totalput,MaxPerPage,"menpaimanage.asp"   
	      end if   
	   end if   
   rs.close   
   end if   
	           
   set rs=nothing     
   sub showContent   
       dim i   
	   i=0   
%>    
<div align="center"><center>
  <table border="1" cellspacing="0" width="537" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="0">  
      <tr>  
        <td width="169" align="center" bgcolor="#FFCC00" height="20"><strong>部门名称</strong></td>  
        <td width="149" align="center" bgcolor="#FFCC00"><strong>负责人</strong></td>  
        <td width="112" align="center" bgcolor="#FFCC00"><strong>人数</strong></td>  
        <td width="97" align="center" bgcolor="#FFCC00"><strong>操作</strong></td>  
      </tr>  
<%do while not rs.eof%>  
    </center>       
</center>  
      <tr>  
        <td height="23" width="169" bgcolor="#FFF0B2"><p align="left"> <%=rs("门派")%></td>  
        <td width="149" bgcolor="#FFF0B2"><p align="left"> <%=rs("掌门")%></td>  
        <td width="112" bgcolor="#FFF0B2"><p align="center"><font color="red"><%      
	pai=rs("门派")      
	sql2="Select count(*) from 用户 where 门派='"&pai&"'"      
	rs2=conn.execute(sql2)      
	renshu=rs2(0)      
	%>       
	<%=renshu%></font></td>  
  <center> 
 
<center>  
        <td width="97" bgcolor="#FFF0B2"><p align="center">
        <a href="newzt.asp?menpai=<%=rs("门派")%>&action=delete">删除</a></td>  
      </tr>  
<% i=i+1  
	      if i>=MaxPerPage then exit do  
	      rs.movenext  
	   loop  
		  %>  
    </table>  
    </center></div><%  
   end sub   
  
function showpage(totalnumber,maxperpage,filename)  
  dim n  
  if totalnumber mod maxperpage=0 then  
     n= totalnumber \ maxperpage  
  else  
     n= totalnumber \ maxperpage+1  
  end if  
  response.write "<form method=Post action="&filename&">"  
 ' response.write "<p align='center'><font color='red'>"&typename&"</font>&nbsp;"  
  if CurrentPage<2 then  
    response.write "<font color='#000080'>首页 上一页</font>&nbsp;"  
  else  
    response.write "<a href="&filename&"?page=1&guestname="&keyword&">首页</a>&nbsp;"  
    response.write "<a href="&filename&"?page="&CurrentPage-1&"&guestname="&keyword&">上一页</a>&nbsp;"  
  end if  
  if n-currentpage<1 then  
    response.write "<font color='#000080'>下一页 尾页</font>"  
  else  
    response.write "<a href="&filename&"?page="&(CurrentPage+1)&">"  
    response.write "下一页</a> <a href="&filename&"?page="&n&"&guestname="&keyword&">尾页</a>"  
  end if  
   response.write "<font color='#000080'>&nbsp;页次:</font><strong><font color=red>"&CurrentPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "  
    response.write "<font color='#000080'>&nbsp;共<b>"&totalnumber&"</b>条记录 <b>"&maxperpage&"</b>条记录/页</font> "  
   response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput type='text' name='txtitle' value="&currentpage&">"  
  
   response.write "<input class=buttonface type='submit'  value=' Goto '  name='cndok'></span></p></form>"       
end function  
%>  
<form name="searchtitle" method="POST" action="menpaimanage.asp">  
      <p align=center>部门:<input class=smallInput type="text" name="guestname" size="13">   
      <input class=buttonface type="submit" value="查 询" name="title">        </p>     
    </form>     
                          
         
 <!---查询-------end----------------->          
           
           
    </center>          
    </td>      
  </tr>      
</table>         
  </div>         
  <div align="center">
    <center>
    <table border="0" cellpadding="0" cellspacing="0" width="546">
<font size="3" class="c" color="#000000">
<input type="HIDDEN" name="action" value="RegSubmit"></font>
    <td width="544">
<ul>
<p align="center">◇添加部门◇</p>   
<div align="center">
  <center>
  <form method="POST" action="newzt.asp" >  
<table width="496" border="1" cellspacing="0" height="1" cellpadding="0" bordercolorlight="#000080" bordercolordark="#FFFFFF">
      <tr>  
        <td width="284" height="1">  
          
            <p align="center">部门名称</p> 
        </td> 
        <td width="339" height="1" align="left">  
          <p align="center">部门负责人</p>
 </td>
        <td width="301" height="1" align="left"> 
 <p align="center"> 
 <font size="3" class="c" color="#000000">
      <input type="SUBMIT" name="Submit" value="添加">
      </font> </p>
 </td>
      </tr>
      <tr> 
        <td width="284" height="23" align="left"> 
          <div align="center">
            <p align="center"><input name="subject" value="" size=15 maxlength=10 style="border: 1 solid #FF0000">
          </div>
        </td>
        <td width="339" height="23" align="left"> 
          <p align="center"> 
          <input name="comment" value="无" size=31 maxlength=20 style="border: 1 solid #FF0000">
          </p>
        </td>
        <td width="301" height="23" align="center"> 
          <input type="RESET" name="Reset" value="清除"> 
      </td>
      </tr>
      <tr>
        <td width="924" height="30" align="left" colspan="3"> 
          门派名称为2-5个汉字,门派简介为20个以内的汉字简要介绍。
        </td>
      </tr>
</table> </form>   </center>
  </div>
      </ul>
    </table>
</body>

⌨️ 快捷键说明

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