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

📄 owntotal.jsp

📁 本程序利用java和jsp实现电子政务中涉及到的办公日志系统。利用javabean和jsp的使用技巧和中间软件weblogic8.1.
💻 JSP
字号:
<%@ page contentType="text/html;charset=gb2312"%>
<%@ page import="java.util.*" %>
<jsp:useBean id="offLogBean" class="com.officelog.OffLogBean" scope="page"/>
<%
boolean islogin=offLogBean.ownTotal(request,response);
if(!islogin)
    response.sendRedirect("default.html");
%>    
<jsp:useBean  id="ownList"   class="java.util.Vector" scope="request" />
<jsp:useBean  id="thisPage"   class="java.lang.Integer" scope="request" />
<jsp:useBean  id="maxPage"   class="java.lang.Integer" scope="request" />
<jsp:useBean  id="managerReply"   class="java.lang.String" scope="request" />
<jsp:useBean  id="path"   class="java.lang.String" scope="request" />
<%   
String ownid="";
String reply1="";
String reply2="";
String title="";
String partid="";
String author="";
String userid="";
String dateandtime="";
String state="";

int thispage=thisPage.intValue();
int maxpage=maxPage.intValue();
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<link rel="stylesheet" type="text/css" href="../conn/style.css">
</head>
<body>
<div align="center"><center>
<table border="0" width="92%" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%"><p align="center"><br>
            个人总结<br>
<form name="searchsoft" method="POST" action="/OfficeLog/own_sum/searchOwn.jsp">
查找总结:  <input class=smallInput type="text" name="title" size="13">
<input type="hidden" name="managerReply" value="<%=managerReply%>">
<input type="hidden" name="path" value="<%=path%>">
<input type="submit" value="查 询" name="title">
</form>
<div align="center">
   <div align="center"><center>
   <table border="1" cellspacing="0" width="590" bordercolorlight="#000000" bordercolordark="#FFFFFF" cellpadding="0">
   <tr>
   <td width="46" align="center" bgcolor="#D0D0D0" height="20"><strong>ID</strong></td>
   <td width="200" align="center" bgcolor="#D0D0D0"><strong>总结</strong></td>
   <td width="70" align="center" bgcolor="#D0D0D0"><strong>录入日期</strong></td>
   <td width="70" align="center" bgcolor="#D0D0D0"><strong>作者</strong></td>
   <td width="50" align="center" bgcolor="#D0D0D0"><strong>提交</strong></td>
   <td width="50" align="center" bgcolor="#D0D0D0"><strong>总经理批注</strong></td>
   <td width="30" align="center" bgcolor="#D0D0D0"><strong>经理批注</strong></td>
   </tr>
    <%
           if(ownList!=null)
           { 
               for(int i=ownList.size()/9-1;i>=0;i--)
               {  
                  int j=i*9; 
                  ownid=(String)ownList.elementAt(j);
                  reply1=(String)ownList.elementAt(j+1);
                  reply2=(String)ownList.elementAt(j+2);
                  title=(String)ownList.elementAt(j+3);
                  partid=(String)ownList.elementAt(j+4);
                  author=(String)ownList.elementAt(j+5);
                  userid=(String)ownList.elementAt(j+6);
                  dateandtime=(String)ownList.elementAt(j+7);
                  dateandtime=dateandtime.substring(0,19);
                  state=(String)ownList.elementAt(j+8);
    %> 
   <tr>
   <td height="23" width="46"><p align="center"><%=ownid%></td>
   <td width="200"><p align="center"><a href="/OfficeLog/<%=path%>/ownView.jsp?ownid=<%=ownid%>&managerReply=<%=managerReply%>"><%=title%></a></td>
   <td width="70"><p align="center"><%=dateandtime%></td>
   <td width="70"><p align="center"><%=author%></td>
   <td width="50"><p align="center"><%=state%></td>
   <td width="50"><p align="center"><%=reply1%></td>
   <td width="30"><p align="center"><%=reply2%></td>
   </tr>
   <%}}%>
   </table>
    <form name="form2" method="post" action="/OfficeLog/own_sum/ownTotal.jsp?managerReply=<%=managerReply%>">
                <table cellspacing="5" cellpadding="3" border="0" width="590">

                                  <tbody> 

                                  <tr> 

                                    <td width="16%">第<%=thispage%>页</td>

                                    <td width="12%">共<%=maxpage%>页</td>

                                    <td width="17%"> 

                                      <% if(thispage>1) {%>

                                      <a href="/OfficeLog/own_sum/ownTotal.jsp?page=<%=thispage-1%>&managerReply=<%=managerReply%>">上一页</a> 

                                      <%}%>

                                    </td>

                                    <td width="16%"> 

                                      <% if(thispage<maxpage) {%>

                                      <a href="/OfficeLog/own_sum/ownTotal.jsp?page=<%=thispage+1%>&managerReply=<%=managerReply%>">下一页</a> 

                                      <%}%>

                                    </td>

                                    <td width="39%">第 

                                      <select name="page">

                                        <%  for(int p=1;p<=maxpage;p++){ %>

                                        <option value="<%=p%>"><%=p%></option>

                                        <%}%>

                                      </select>

                                      页 <input type="submit" name="Submit" value="提交"> 

                                      </td>

                                  </tr>

                                  </tbody> 

                                </table>
                                </form>
      </center></div>
    </div></td>
  </tr>
</table>
</center></div>
</body>
</html>

⌨️ 快捷键说明

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