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

📄 searchown.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"/>
<%
String txttitle=new String(request.getParameter("title").getBytes("8859_1"),"gb2312");
boolean islogin=offLogBean.searchOwn(request,response,txttitle);
if(!islogin)
   response.sendRedirect("default.html");
%>   
<jsp:useBean  id="ownList"   class="java.util.Vector" scope="request" />
<jsp:useBean  id="searchTitle"   class="java.lang.String" 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 allSearch=ownList.size();
%>
<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="submit" value="查 询" name="title">
</form>
<div align="center">
   <div align="center"><center>
   <p>关键词:<%=searchTitle%>  有 <%=allSearch/9%>个查询结果 </p>
   <table border="1" cellspacing="0" width="589" 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>
    </center></div>
    </div></td>
  </tr>
</table>
</center></div>
</body>
</html>

⌨️ 快捷键说明

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