WebRoot/Kaoqin/onduty_index.jsp

(开头部分) 6KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<%@ page language="java" pageEncoding="gb2312"%>
<%@ page import="java.util.*"%>
<%@page import="com.hiernate.persistence.*"%>
<jsp:directive.page import="com.hiernate.util.HibernateUtil"/>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<head>
	<html:base />
	<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 href="../CSS/style.css" rel="stylesheet" type="text/css">
</head>
<body background="../Images/main_center.jpg">
  <table width="801" height="505" border="0" cellpadding="0" cellspacing="0" background="../Images/main_center.jpg">
  <tr>
    <td width="801" height="100%" valign="top"> 
		<table width="100%" height="514" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td width="100%" height="40" valign="bottom" background="../Images/main_top.JPG"><table width="100%" height="100%" border="0">
          <tr>
            <td class="STYLE1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<img src="../Images/isexists.gif" width="16" height="16"/>&nbsp;<b>上下班登记</b></td>
			 <td width="71" valign="middle">
          <p><a href="#" class="STYLE1" onClick="Javascript:window.open('onduty_add.jsp','','width=580,height=350');return false">登记</a></p></td>
          </tr>
        
	 </table>
      <tr>
        <td height="451" colspan="2" valign="top"><br><br>
		  <% String currPage = request.getParameter("currPage");
             int iCurrPage = 1 ;
             int pages = 1 ;
             int allRecCount = 0 ;
             int recPerPage = 5 ;
             allRecCount = HibernateUtil.findOndutyCount();          //查询出上下班记录的总数量
             pages = (allRecCount - 1)/recPerPage + 1 ;              //计算出总的页数
             if(pages == 0){                                         //对页数进行有效性处理,使页数的最小值是1
           	       pages = 1;
               }
             if(currPage != null && !currPage.equalsIgnoreCase("")){
             	iCurrPage = Integer.parseInt(currPage);
              }
             List listOnduty =HibernateUtil.findOnduty((iCurrPage - 1) * recPerPage, recPerPage);
			          if(listOnduty.isEmpty()){
			               out.println("暂无信息");
			            }
			  %>
		<table width="724" height="109" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
		  <td height="39" colspan="7" background="../Images/tiao.jpg"><table width="720" height="26" border="0">

<tr>

                <td width="67"><div align="center" class="STYLE7">登记姓名</div></td>
                <td width="68"><div align="center" class="STYLE7">所属部门</div></td>
后面还有 64 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。