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

📄 list.asp

📁 培训学员管理系统
💻 ASP
📖 第 1 页 / 共 2 页
字号:
				<form name="form2" method="post" action="">
				  <div align="center">
				    <%if not rs.eof then%>
    <span class="style4">共有<%=rs.recordcount%>条通过审核且不在回收站的记录,每页显示<%=rs.pagesize%>条 ,第<%=page%>/<%=rs.pagecount%>页&nbsp;
    <%if page>1 then%>
    <a href="list.asp?Page=<% = 1%>&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>">首页</a> <a href="list.asp?Page=<% =page -1 %>&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>">上一页</a>
    <%end if %>
    <%if page<>rs.pagecount then %>
    <a href="list.asp?Page=<% =page + 1%>&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>">下一页</a> <a href="list.asp?Page=<% = rs.PageCount%>&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>">尾页</a></span>
  <% end if %>
    <select name="select" id="select2" onChange="javascript:window.location.href('list.asp?page='+this.options[this.selectedIndex].value+'&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>')">
      <% for i=1 to rs.pagecount%>
      <option value="<%=i%>" <%if i=page then response.Write("selected") end if%> ><%=i%> </option>
      <% next%>
    </select>
    <span class="STYLE13">
    <select name="pagesize" id="pagesize" onChange="javascript:window.location.href('list.asp?pagesize='+this.options[this.selectedIndex].value+'&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>')">
   	    <% for iii=10 to 50 step 5%>
      <option value="<%=iii%>" <%if iii=rs.pagesize then response.Write("selected") end if%> >每页显示<%=iii%>条记录</option>
      <% next%>
      <% for i=60 to 180 step 20%>
      <option value="<%=i%>" <%if i=rs.pagesize then response.Write("selected") end if%> >每页显示<%=i%>条记录</option>
      <% next%>
      <% for ii=200 to 1000 step 200%>
      <option value="<%=ii%>" <%if ii=rs.pagesize then response.Write("selected") end if%> >每页显示<%=ii%>条记录</option>
      <% next%>
      <option value="10000" <%if rs.pagesize=10000 then response.Write("selected") end if%> >每页显示10000条记录</option>
    </select>
    </span><br>
</div>
  <TABLE width=99% border=1 align="center" cellPadding=0 cellSpacing=0 
            borderColorLight=#6699ff borderColorDark=#ffffff bgcolor="#FFFFFF" style="border-collapse:collapse">
  <col width="166" />
  <tr height="21">
    <td width="6%" height="29"  bgcolor="#FFCC33"><div align="center">
      <input name="checkbox" type=checkbox id="checkbox" onClick="this.value=check(this.form.seltyid)" value="全选">
    </div></td>
    <td width="7%" align="center" valign="middle"  bgcolor="#FFCC33" class="STYLE4">行号</td>
    <td width="10%" align="center" valign="middle"  bgcolor="#FFCC33" class="STYLE2"><div align="center">姓 名</div></td>
    <td width="21%" align="center" valign="middle"  bgcolor="#FFCC33" class="STYLE2">学号<span class="style1"><a title="按降序排列" <%if by="xuehaodesc" then%> style="color:#FF00FF;"<%end if%> href="list.asp?by=xuehaodesc&key=<%=key%>&ziduan=<%=ziduan%>" >↓</a><a title="按升序排列" <%if by="xuehaoasc" then%> style="color:#FF00FF;"<%end if%> href="list.asp?by=xuehaoasc&key=<%=key%>&ziduan=<%=ziduan%>" >↑</a></span></td>
    <td width="9%" align="center" valign="middle"  bgcolor="#FFCC33" class="STYLE2"><span class="STYLE4">性别</span></td>
    <td width="12%" align="center" valign="middle"  bgcolor="#FFCC33" class="STYLE2"><span class="STYLE4">就业单位</span><span class="style1"><a title="按降序排列" <%if by="jiuyequxiangdesc" then%> style="color:#FF00FF;"<%end if%> href="list.asp?by=jiuyequxiangdesc&key=<%=key%>&ziduan=<%=ziduan%>" >↓</a><a title="按升序排列" <%if by="jiuyequxiangasc" then%> style="color:#FF00FF;"<%end if%> href="list.asp?by=jiuyequxiangasc&key=<%=key%>&ziduan=<%=ziduan%>" >↑</a></span></td>
    <td width="13%" align="center" valign="middle"  bgcolor="#FFCC33" class="STYLE2"><span class="STYLE4">出生年月</span><span class="style1"><a title="按降序排列" <%if by="chushengnianyuedesc" then%> style="color:#FF00FF;"<%end if%> href="list.asp?by=chushengnianyuedesc&key=<%=key%>&ziduan=<%=ziduan%>" >↓</a><a title="按升序排列" <%if by="chushengnianyueasc" then%> style="color:#FF00FF;"<%end if%> href="list.asp?by=chushengnianyueasc&key=<%=key%>&ziduan=<%=ziduan%>" >↑</a></span></td>
    <td width="13%" align="center" valign="middle"  bgcolor="#FFCC33" class="STYLE2"><span class="STYLE4">文化程度</span><span class="style1"><a title="按降序排列" <%if by="wenhuachengdudesc" then%> style="color:#FF00FF;"<%end if%> href="list.asp?by=wenhuachengdudesc&key=<%=key%>&ziduan=<%=ziduan%>" >↓</a><a title="按升序排列" <%if by="wenhuachengduasc" then%> style="color:#FF00FF;"<%end if%> href="list.asp?by=wenhuachengduasc&key=<%=key%>&ziduan=<%=ziduan%>" >↑</a></span></td>
    
	<td width="9%"  bgcolor="#FFCC33" class="STYLE2"><div align="center">操 作</div></td>
  </tr>
   <%count=0
do while not rs.eof and count<rs.pagesize %>
   <%if count Mod 2=0 then%><TR bgcolor="#F5FAFE" onMouseOver="this.style.backgroundColor='#FFDA6A'" onMouseOut="this.style.backgroundColor='#F5FAFE'">
     <%else%><TR bgcolor="#E2EEFC" onMouseOver="this.style.backgroundColor='#FFDA6A'" onMouseOut="this.style.backgroundColor='#E2EEFC'">
<%end if%>  
     <td height="22"><div align="center">
      <input name="seltyid" type="checkbox" id="seltyid" value="<%=rs("id")%>">
    </div></td>
     <td height="22"><%=xuhao2+1%></td>
     <td height="22"><div align="center"><span class="STYLE17"><a href="xy_view_all.asp?ID=<%=rs("ID")%>" target="_self"><%=rs("xingming")%></a><a href="js_view.asp?requestid=<%=rs("id")%>" target="_self"></a></span></div></td>
    <td height="22" align="center"><%=rs("xuehao")%></td>
    <td height="22" align="center" ><%=rs("xingbie")%></td>
    <td height="22" align="center"><%=rs("jiuyequxiang")%></td>
    <td height="22" align="center"><%=rs("chushengnianyue")%></td>
    <td height="22" align="center"><%=rs("wenhuachengdu")%></td>
    
	 <td height="22" align="center" ><a href="xy_update.asp?ID=<%=rs("ID")%>" target="_self"><img src="images/edit.gif" alt="修改的资料" width="13" height="13" border="0"></a> <a href="xy_delete_view_all.asp?ID=<%=rs("ID")%>" target="_self" class="STYLE5" onClick="return confirm('确认删除记录吗?')"><img src="images/delete.gif" alt="删除记录" width="13" height="13" border="0"></a></td>

  </tr>
  <%
  rs.movenext
  count=count+1
  xuhao2=xuhao2+1
  loop

  %>
  <%end if%>
</table>
<div align="center">
<p align="center">
    <%end if%>
    <span class="style4"> 共有<%=rs.recordcount%>条通过审核且不在回收站的记录,每页显示<%=rs.pagesize%>条 ,第<%=page%>/<%=rs.pagecount%>页&nbsp;
      <%if page>1 then%>
      <a href="list.asp?Page=<% = 1%>&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>">首页</a><a href="list.asp?Page=<% = 1%>"&key=<%=key%>&ziduan=<%=ziduan%>></a> <a href="list.asp?Page=<% =page -1 %>&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>">上一页</a><a href="list.asp?Page=<% =page -1 %>&key=<%=key%>&ziduan=<%=ziduan%>"></a>
      <%end if %>
      <%if page<>rs.pagecount then %>
      <a href="list.asp?Page=<% =page + 1%>&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>">下一页</a><a href="list.asp?Page=<% =page + 1%>&key=<%=key%>&ziduan=<%=ziduan%>"></a> <a href="list.asp?Page=<% = rs.PageCount%>&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>">尾页</a><a href="list.asp?Page=<% = rs.PageCount%>&key=<%=key%>&ziduan=<%=ziduan%>"></a></span>
      <% end if %>
    <select name="select2" id="select" onChange="javascript:window.location.href('list.asp?page='+this.options[this.selectedIndex].value+'&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>')">
      <% for i=1 to rs.pagecount%>
      <option value="<%=i%>" <%if i=page then response.Write("selected") end if%> ><%=i%> </option>
      <% next%>
    </select>
    <span class="STYLE13">
    <select name="pagesize" id="pagesize" onChange="javascript:window.location.href('list.asp?pagesize='+this.options[this.selectedIndex].value+'&key=<%=key%>&ziduan=<%=ziduan%>&by=<%=by%>')">
         <% for iii=10 to 50 step 5%>
      <option value="<%=iii%>" <%if iii=rs.pagesize then response.Write("selected") end if%> >每页显示<%=iii%>条记录</option>
      <% next%>
      <% for i=60 to 180 step 20%>
      <option value="<%=i%>" <%if i=rs.pagesize then response.Write("selected") end if%> >每页显示<%=i%>条记录</option>
      <% next%>
      <% for ii=200 to 1000 step 200%>
      <option value="<%=ii%>" <%if ii=rs.pagesize then response.Write("selected") end if%> >每页显示<%=ii%>条记录</option>
      <% next%>
      <option value="10000" <%if rs.pagesize=10000 then response.Write("selected") end if%> >每页显示10000条记录</option>
    </select>
    </span>    <a href="list.asp" target="_self"></a></p>
  <p align="center"><span class="STYLE13">
 全选/不选</span>
    <input name="checkbox2" type=checkbox onClick="this.value=check(this.form.seltyid)" value="全选">
     
    <input type="button" name="Submit4" value="删除到回收站" onClick="subdeletetozhan()" style="width:85;background-color: #FFCC66; color: #000000; border: 1 solid #00CC00">
     
      
    <input type="button" name="Submit3" value="永久批量删除所选" onClick="subdeleteforever()" style="width:135;background-color: #FFCC66; color: #000000; border: 1 solid #00CC00">
    <input name="deleteorupdate" type="hidden" id="deleteorupdate">
    <input name="deleteall" type="hidden" id="deleteall">
    <input name="caozuo" type="hidden" id="caozuo">
</p>
  </form>
         <p style="color: #999999">      </p></td>
      </tr>
    </table></td>
  </tr>
</table>

</body>
</html>
 <script language="javascript">

//
function subdeleteforever()
{
    if (window.confirm('真的要永久删除所选学员吗?该操作不可恢复!继续吗?'))
     {
	  form2.action="xy_delete_all.asp";
	  form2.deleteall.value="deletforever";
       form2.submit();//提交该表单; 
     }
    
}
function subdeletetozhan()
{
form2.action="admin_xy_caozuo.asp"; 
form2.caozuo.value="intozhan";
form2.submit();
}
</script>
<SCRIPT LANGUAGE="JavaScript">

<!-- 
var checkflag = "false";
function check(field) {
if (checkflag == "false") {
for (i = 0; i < field.length; i++) {
field[i].checked = true;}
checkflag = "true";
return "false"; }
else {
for (i = 0; i < field.length; i++) {
field[i].checked = false; }
checkflag = "false";
return "true"; }
}
 -->
</script>

⌨️ 快捷键说明

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