yp.asp

来自「网站的后台管理代码......内容比较全面....新手比较适合」· ASP 代码 · 共 107 行

ASP
107
字号
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<script language="javascript">
var lsdz = "";
function checkIn()
   {if(confirm("你真的要删除这条记录?"))
      return true
   else 
      return false;
}
</script>
<!--#include file="../inc/adconn.asp"-->
<!--#include file="../css.asp"-->
<%
if session("admin_name")="" then 
response.end
end if%>
<script language= "javascript">
function openpage(htmlurl) {
var newwin=window.open(htmlurl,"newWin","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,top=100,left=200,width=400,height=460");
newwin.focus();
return false;
}
</script>
<%set rs=server.CreateObject("adodb.recordset")
sql="select * from yingpin"
rs.open sql,conn,1,3
if rs.eof then
     response.write "<font color='red'>"
      response.write "暂且没有资料"
	  response.write "</font>"
      response.end
	  else
	  rs.PageSize =10 '每页记录条数
iCount=rs.RecordCount '记录总数
iPageSize=rs.PageSize
maxpage=rs.PageCount 
page=request("page")
  
  if Not IsNumeric(page) or page="" then
    page=1
  else
    page=cint(page)
  end if
  
  if page<1 then
    page=1
  elseif page>maxpage then
    page=maxpage
  end if
  
  rs.AbsolutePage=Page

if page=maxpage then
x=iCount-(maxpage-1)*iPageSize
else
x=iPageSize
end if
i=0
end if
%>

<TABLE border="0" cellspacing="0" width="100%" cellpadding="0">
  <TR>
    <TD height=25 align=left bgcolor="#FFCC00">&gt;&gt;所有应聘信息</TD>
  </TR>
</TABLE>
<TABLE width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#336699">
    <tr height=25 > 
      <TD width="67" align="center" background="../images/pics/tile_sub.gif"><font color="#FFFFFF"><b>ID号</b></font></TD>
      <TD width="153" align="center" background="../images/pics/tile_sub.gif"><font color="#FFFFFF"><b>应聘人</b></font></TD>
      <TD width="175" align="center" background="../images/pics/tile_sub.gif"><font color="#FFFFFF"><b>应聘岗位</b></font></TD>
	        <TD width="175" align="center" background="../images/pics/tile_sub.gif"><font color="#FFFFFF"><b>联系电话</b></font></TD>
      <TD width="220" align="center" background="../images/pics/tile_sub.gif"><font color="#FFFFFF"><b>日期</b></font></TD>
      <TD width="106" align="center" background="../images/pics/tile_sub.gif"><font color="#FFFFFF"><b>操作</b></font></TD>
    </TR>
	<% do while not rs.eof and i< rs.pagesize
	i=i+1
	%>
    <tr height="15"> 
      <td width="67" height="28" align="center" bgcolor="#ffffff"><font face="Arial"><b><%=rs("id")%></b></font></td>
      <td width="153" bgcolor="#ffffff"><%=rs("name")%></td>
      <td width="175" align="center" bgcolor="#ffffff"><%=rs("zhiwei")%></td>
	  <td width="175" align="center" bgcolor="#ffffff"><%=rs("tele")%></td>
      <td width="220" align="center" bgcolor="#ffffff"><% =rs("time") %></td>
      <td width="106" align="center" bgcolor="#ffffff"><a href="xiangxi.asp?id=<%=rs("id")%>" onClick="return openpage(this.href);">详细</a>||<a href="delyp.asp?id=<%=rs("id")%>" 
onClick="return checkIn();">删除</a></td>
    </tr>
	<%
	rs.movenext
	loop%>
	<TR> 
              <TD height="30" 
colSpan=7 bgcolor="#FFFFFF" id=mainfoot> <div align="center">共<font color=red><%=maxpage%></font>页 第<%=page%>页 <font color=666666> 
                  <%if page-1>0 then%>
                  <a href="delhw.asp?page=<%=page-1%>">上一页</a> 
                  <%else%>
                  <font color=666666>上一页</font> 
                  <%end if%>
                    
                  <%if page+1<=maxpage then%>
                  <a href="delhw.asp?page=<%=page+1%>">下一页</a> 
                  <%else%>
                  <font color=666666>下一页</font> 
                  <%end if%>
      </font>共<% =iCount %>条记录</div></TD>
  </TR>
  </table>

⌨️ 快捷键说明

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