?? searchown.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 + -