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

📄 adminachieve1_body.asp

📁 南鄂电子商务学校网: 学校概况、校园动态、师资力量、教学成果、师生论坛、友情链接
💻 ASP
字号:
<%sub adminachieve1_body()
dim totalart,Currentpage,totalpages,i,colname

sql="select * from achieve order by achieve_id DESC"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%>
<!--#include file="admintop.asp"-->
<table width="<%=tablewidth%>" border="0" cellspacing="0" cellpadding="0" align="center">
  <tr> 
    <td width="205" bgcolor="#FFFFFF" valign="top" class="line">
      <%call adminmenu()%>
    </td>
    <td width="565" bgcolor="#FFFFFF" valign="top" align="center" class="linee"> <table width="98%" border="0" cellspacing="1" cellpadding="0"  class="linee" background="images/dh.gif">
        <tr align="center"> 
          <td width="50%" height="25"><a href="admin_achieve1.asp">成果管理</a></td>
          <td width="50%"><a href="admin_achieve2.asp?action=newachieve">新增成果</a></td>
        </tr>
      </table>
      <table width="98%" border="0" cellspacing="0" cellpadding="0">
        <tr> 
          <td height="6"></td>
        </tr>
      </table>
      <table width="98%" border="1" cellspacing="0" cellpadding="4" bordercolor="#09DD77" style="border-collapse: collapse">
        <tr align="center"> 
          <td bgcolor="#FFFFFF" width="10%">编号</td>
          <td bgcolor="#FFFFFF" width="60%">文章标题</td>
		  <td bgcolor="#FFFFFF" width="10%">浏览</td>
          <td bgcolor="#FFFFFF" width="20%">操作</td>
        </tr>
<%if not rs.eof then
rs.movefirst
rs.pagesize=achieveperpage
if trim(request("page"))<>"" then
   currentpage=clng(request("page"))
   if currentpage>rs.pagecount then
      currentpage=rs.pagecount
   end if
else
   currentpage=1
end if
   totalart=rs.recordcount
   if currentpage<>1 then
      if(currentpage-1)*achieveperpage<totalart then
	     rs.move(currentpage-1)*achieveperpage
		 dim bookmark
		 bookmark=rs.bookmark
	  end if
   end if
   if (totalart mod achieveperpage)=0 then
      totalpages=totalart\achieveperpage
   else
      totalpages=totalart\achieveperpage+1
   end if
   i=0
do while not rs.eof and i<achieveperpage%>
        <tr> 
          <td bgcolor="#FFFFFF" align="center"><%=rs("achieve_id")%></td>
          <td bgcolor="#FFFFFF"><a href="showachieve.asp?achieve_id=<%=rs("achieve_id")%>" target="_blank"><%if len(rs("achieve_title"))>26 then
 response.write ""&left(rs("achieve_title"),24)&"..."
else
 response.write ""&rs("achieve_title")
end if%></a></td>
          <td bgcolor="#FFFFFF" align="center"><%=rs("achieve_count")%></td>
          <td bgcolor="#FFFFFF" align="center"><a href="admin_achieve2.asp?achieve_id=<%=rs("achieve_id")%>&action=editachieve">edit</a> 
            <a href="admin_achieve2.asp?achieve_id=<%=rs("achieve_id")%>&action=delachieve">del</a></td>
        </tr>
<%
i=i+1
rs.movenext
loop
else
if rs.eof and rs.bof then
%>
        <tr align="center"> 
          <td bgcolor="#FFFFFF" colspan="4">当前没有文章!</td>
        </tr>
<%end if
end if%>
      </table>
	  <table width="96%" border="0" cellspacing="0" cellpadding="0" align="center">
        <form name="form1" method="post" action="admin_achieve1.asp">
          <tr> 
            <td align="right"><%=currentpage%> /<%=totalpages%>页,共<%=totalart%>条记录,<%=achieveperpage%>篇/每页. 
              <%
i=1
showye=totalpages
if showye>10 then
showye=10
end if
for i=1 to showye
if i=currentpage then
%>
              <B><%=i%></B> 
              <%else%>
              <a href="admin_achieve1.asp?page=<%=i%>"><%=i%></a> 
              <%end if
next
if totalpages>currentpage then
if request("page")="" then
page=1
else
page=request("page")+1
end if%>
              <a href="admin_achieve1.asp?page=<%=page%>" title="下一页">>></a> 
              <%end if%>
              &nbsp;&nbsp;&nbsp;&nbsp; 
              <input type="text" name="page" class="input" style="width:30px;">
              <input type="submit" name="Submit" value="Go" class="button" style="width:24px;">
            </td>
          </tr>
        </form>
      </table>
      <br>
    </td>
  </tr>
</table>
<%
rs.close
set rs=nothing
end sub%>

⌨️ 快捷键说明

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