📄 showlog.jsp
字号:
<%@page contentType="text/html; charset=gb2312"%>
<%@ page language="java" import="java.util.*,
com.tongtu.util.LogInfo,
com.tongtu.util.Page;" %>
<%@ include file="/WEB-INF/jsp/includes.jsp"%>
<%@ taglib uri="/WEB-INF/tags/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/tags/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/tags/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tags/struts-tiles.tld" prefix="tiles" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
Page pages=(Page)request.getAttribute("page");
int pagenum=0;
String pagen=(String)request.getAttribute("pagenum");
if (pagen!=null) pagenum=Integer.parseInt(pagen);
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<html>
<script language="javascript" src="js/calendar.js"></script>
<head>
<base href="<%=basePath%>">
<title>登录成功</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<form name="adForm" action="agentusermod.go">
<table width="100%" height="100" border="0" cellpadding="0" cellspacing="1">
<tr>
<td height="29" align="right" >上传时间:</td>
<td height="29"><input type="text" name="startTime" readonly>
<a onclick="formname1('adForm.startTime');doMenu('idpad1')"><img src="pic/clock.gif" width="18" height="18" border="0" style="cursor:hand"></a>
</td>
</tr>
</table>
<table width="100%" height="150" border="0" cellpadding="0" cellspacing="0">
<tr align="left">
<td height="25" background="<%=path%>/pic/admin_bg_3.gif"><strong>用户ID</strong></td>
<td background="<%=path%>/pic/admin_bg_3.gif"><strong>操作记录</strong></td>
<td background="<%=path%>/pic/admin_bg_3.gif"> <strong>操作时间</strong></td>
</tr>
<%
LogInfo loginfo = new LogInfo();
if (page != null){
List logList=pages.getList();
for (int i = 0; i < logList.size();i++){
loginfo = (LogInfo)logList.get(i);
%>
<tr>
<td height="23" ><%=loginfo.getUserId()%></td>
<td><%=loginfo.getOperator()%></td>
<td><%=loginfo.getCreateTime()%></td>
</tr>
<%} }%>
</table>
<table>
<%
int nextPageStart = 0;
if (pages!=null) nextPageStart=pages.getStartOfNextPage();
int previousPage=0;
if (pages!=null) previousPage=pages.getStartOfPreviousPage();
int start = 0;
String startnum=(String)request.getAttribute("start");
if (startnum!=null) start=Integer.parseInt(startnum);
int count = 10;
int currentPage = (start/count)+1;
int numPages = (int)Math.ceil((double)pagenum/(double)count);
if(numPages==0){
currentPage=0;
}
%>
<tr>
<td height="30" valign="middle"><div align="right">
第<%=currentPage%>页/共<%=numPages%>页 |
<%
if(currentPage>1){
%>
<a href="showlog.do?start=0&count=<%=count%>">第一页</a>
|
<%}else{%>
第一页
|
<%}%>
<%
if(pages!=null&&pages.isPreviousPageAvailable()){
%>
<a href="showlog.do?start=<%=previousPage%>&count=<%=count%>">前一页</a>
|
<%}
if(nextPageStart<pagenum){
%>
<a href="showlog.do?start=<%=nextPageStart%>&count=<%=count%>">下一页</a>
|
<%}
int lastStart = count*(numPages-1);
if(currentPage<numPages&&lastStart>0){
%>
<a href="showlog.do?start=<%=lastStart%>&count=<%=count%>">最后一页</a>
<%}else{%>
最后一页
<%}%>
GO
<select name="pageselect" onchange="javascrpt:pagesubmit();">
<%for(int n=1;n<numPages+1;n++){%>
<% if(n==currentPage){%>
<option value="<%=(n-1)*count%>" selected><%=n%></option>
<%}else{%>
<option value="<%=((n-1)*count)%>"><%=n%></option>
<%}}%>
</select>
<tr>
<td background="<%=path%>/pic/admin_main_bg1.jpg"
height="9"></td>
</tr>
</table>
<script language="JavaScript">
function pagesubmit()
{
var start=document.all.pageselect.value;
//alert(start);
window.location.href="showlog.do?start="+start+"&count=<%=count%>";
}
</script>
<SPAN ID='idpad1' STYLE='display:none;position:absolute;width:0;padding-top:0;padding-left:0;padding-bottom:0;z-index:0;' onmouseout='hideMenu();'>
<iframe ID="pad1" src="<%=path%>/TimeC.do?month1=1&year1=2000" width=195 height=205 name="pad1"></iframe>
</SPAN>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -