📄 stipendlise.jsp
字号:
<%@ page language="java" import="com.buat.hr.users.User,java.util.ArrayList,com.buat.hr.stipend.StipendDAO,com.buat.hr.stipend.Stipend,com.buat.hr.share.Pagination" pageEncoding="gbk"%>
<%
StipendDAO dao = new StipendDAO();
Pagination pagination = new Pagination(dao.QueryStipendcount(),8);
pagination.setPageNo(request.getParameter("pageNo"));
pagination.setTurn("StipendLise.jsp");
ArrayList vec = dao.QueryStipend(pagination.getStartNo(),pagination.getPerCount());
User user=null; //权限判断
user=(User)session.getAttribute("userGrade");
%>
<html>
<head>
</head>
<body background="../bg.jpg">
<script type="text/javascript">
function del()
{
return window.confirm("真的要删除吗?");
}
</script>
<table width=90% border="1" align="center">
<tr>
<td colspan="8"><font color="red">浏览薪金列表</font></td>
</tr>
<tr><th>员工姓名</th>
<th>基本薪金</th>
<th>饭 补</th>
<th>房 补</th>
<th>全 勤 金</th>
<th>赋 税</th>
<th>额外扣款</th>
<th>发放时间</th>
<%
if(user.getIsadmin().equals("stipendAdmin") || user.getIsadmin().equals("superAdmin")){
%>
<th>执行操作</th>
<%
}
for(int i=0;i<vec.size();i++){
Stipend ins=(Stipend)vec.get(i);
%>
<tr>
<td><%=ins.getName()%></td><td><%=ins.getBasic() %></td><td><%=ins.getEat() %></td><td><%=ins.getHouse() %></td>
<td><%=ins.getDuty()%></td><td><%=ins.getTax()%></td> <td><%=ins.getPunishment()%></td><td><%=ins.getGranttime() %></td>
<%
if(user.getIsadmin().equals("stipendAdmin") || user.getIsadmin().equals("superAdmin")){
%>
<td>
<a href="Update.jsp?idsaaaaaaaaa=<%=ins.getId()%>&datetimes=<%=ins.getGranttime()%>">修改</a>
<a href="deletedate.jsp?id=<%=ins.getId()%>" onClick="return del()">删除</a>
</td>
<%
}
}
%>
</table>
<br><br>
<center>
<font color="red">总共<%= pagination.getPageCount() %>页
当前是第<%= pagination.getPageNo() %>页
</font>
</center>
<br>
<%
if(pagination.getPerCount()>=8){
%>
<form action=<%= pagination.getTurn() %>>
<table width="90%" border="0" align="center">
<tr>
<td align="right"><font color="red"><a href=<%= pagination.getTurn() %>?pageNo=0>第一页</a></font></td>
<td align="right"><font color="red"><a href=<%= pagination.getTurn()%>?pageNo=<%= pagination.getPageNo()-1 %>>上一页</a></font></td>
<td align="right"><font color="red"><a href=<%= pagination.getTurn() %>?pageNo=<%= pagination.getPageNo()+1 %>>下一页</a></font></td>
<td align="right"><font color="red"><a href=<%= pagination.getTurn() %>?pageNo=<%= pagination.getPageCount()%>>最后一页</a></font></td>
<td align="center">跳到第<input type="text" name="pageNo" size="3">页 <input type="submit" value="跳转"></td>
</tr>
</table>
</form>
<%} %>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -