📄 chaxun.jsp~15~
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" %>
<%@ page import="java.util.Iterator;" %>
<%@ include file="home.jsp" %>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>项目列表</title>
<script language="javascript" src="home/yanzheng.js">
</script>
<script id=clientEventHandlersJS language=javascript>
<!--
function Submit1_onclick() {
if(!isNumber(document.form1.bugid.value))
{
alert("bugid请输入数字!");
document.form1.bugid.value="";
document.form1.bugid.focus();
return false;
}
if(!checkDate(document.form1.yujiezhiriqi.value))
{
alert("请正确输入截止日期!例如:2006-11-10");
document.form1.yujiezhiriqi.value="";
document.form1.yujiezhiriqi.focus();
return false;
}
if(!checkDate(document.form1.chuangjianriqi.value))
{
alert("请正确输入创建日期!例如:2006-11-10");
document.form1.chuangjianriqi.value="";
document.form1.chuangjianriqi.focus();
return false;
}
}
//-->
</script>
</head>
<body bgcolor="#CCCCCC">
<jsp:useBean id="xl" scope="request" class="xiangmu.xiangmuliebiao">
</jsp:useBean>
<jsp:useBean id="ml" scope="request" class="xiangmu.mokuailiebiao">
</jsp:useBean>
<jsp:useBean id="bzl" scope="request" class="xiangmu.bugzhuangtailiebiao">
</jsp:useBean>
<jsp:useBean id="cl" scope="request" class="yonghu.ceshirenyuanliebiao">
</jsp:useBean>
<jsp:useBean id="kl" scope="request" class="yonghu.kaifarenyuanliebiao">
</jsp:useBean>
<jsp:useBean id="bl" scope="request" class="xiangmu.bugliebiao">
</jsp:useBean>
<jsp:useBean id="bugfenye" scope="request" class="tmp.fenye"></jsp:useBean>
<jsp:useBean id="canshu" scope="request" class="xiangmu.bug">
</jsp:useBean>
<%
%>
<!--新建Bug成功提示信息 页面-->
<table width="950" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#FFFFFF">
<tr>
<td>
<!--位置显示单元格-->
<table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="#F5F5F5">
<!--深蓝色分割线-->
<tr>
<td height="1" bgcolor="#093879" colspan="10"></td>
</tr>
<!--位置-->
<tr>
<td width="16" height="20" valign="bottom" align="right" background="home/titlebg.gif">
<img src="home/Home.gif">
</td>
<td width="280" height="20" align="left" valign="middle" background="home/titlebg.gif">
<FONT size="2">位置 >> 查询Bug</FONT></td>
<td background="home/titlebg.gif" >
</td>
</tr>
<!--深蓝色分割线-->
<tr>
<td height="1" bgcolor="#093879" colspan="10"></td>
</tr>
</table>
</td>
</tr>
</table>
<!--空白站位/子菜单(新建项目)-->
<table width="950" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#FFFFFF" height="40">
<tr>
<td height="20" valign="top">
</td>
</tr>
<tr>
<td height="20"></td>
</tr>
</table>
<!--工作区-->
<!--新建Bug成功的提示信息-->
<table width="950" border="0" cellpadding="0" cellspacing="0" align="center" bgcolor="#FFFFFF" height="700">
<tr>
<td height="25" valign="top">
<!--项目列表 查询提交表单-->
<form name="form1" action="chaxun2.do" method="post">
<table width="85%" border="1" cellpadding="2" cellspacing="0" align="center" bordercolor="#666666">
<tr bordercolor="#FFFFFF">
<td colspan="7" background="home/titlebg.gif">
<font color="#000000" size="2">项目选项:</font> </td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#DFE3EA">
<td width="20" align="right"> </td>
<td width="120"><select name="xiangmuid">
<option selected value="">-- 项目名称 -- </option>
<%
Iterator i1=xl.xiangmuitems.iterator();
while(i1.hasNext())
{
xiangmu.xiangmu x=new xiangmu.xiangmu();
x=(xiangmu.xiangmu)i1.next();
out.println(" <option value="+x.getXiangmuId()+">"+x.getXiangmumingcheng()+"</option>");
}
%>
</select> </td>
<td colspan="5"><select name="mokuaiid">
<option selected value="">-- 模块名称 -- </option>
<%
Iterator i2=ml.mokuaiitems.iterator();
while(i2.hasNext())
{
xiangmu.mokuai m=new xiangmu.mokuai();
m=(xiangmu.mokuai)i2.next();
out.println(" <option value="+m.getMokuaiId()+">"+m.getMokuaiZhi()+"</option>");
}
%>
</select>
<font color="#336666" size="2">(查询Bug的参数)</font> </td>
</tr>
<tr align="left" bordercolor="#FFFFFF" >
<td colspan="7" background="home/titlebg.gif"><font color="#000000" size="2">Bug选项:</font></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#DFE3EA">
<td width="20" align="right"><font color="#000000"> </font></td>
<td width="120"><font color="#000000">
<select name="bugzhuangtai">
<option selected value="">-- bug状态 --</option>
<%
Iterator i3=bzl.items.iterator();
while(i3.hasNext())
{
xiangmu.bugzhuangtai bz=new xiangmu.bugzhuangtai();
bz=(xiangmu.bugzhuangtai)i3.next();
out.println(" <option value="+bz.getBugzhuangtaiid()+">"+bz.getBugzhuangtaizhi()+"</option>");
}
%>
</select>
</font></td>
<td width="106"><font color="#000000">
<select name="chuangjianzhe">
<option selected value="">-- 创建者 --</option>
<%
Iterator i4=cl.items.iterator();
while(i4.hasNext())
{
yonghu.jiandanyonghu jh1=new yonghu.jiandanyonghu();
jh1=(yonghu.jiandanyonghu)i4.next();
out.println(" <option value="+jh1.getYonghuid()+">"+jh1.getYonghuming()+"</option>");
}
%>
</select>
</font></td>
<td width="102" ><font color="#000000">
<select name="chulizhe">
<option selected value="">-- 处理者 --</option>
<%
Iterator i5=kl.items.iterator();
while(i5.hasNext())
{
yonghu.jiandanyonghu jh2=new yonghu.jiandanyonghu();
jh2=(yonghu.jiandanyonghu)i5.next();
out.println(" <option value="+jh2.getYonghuid()+">"+jh2.getYonghuming()+"</option>");
}
%>
</select>
</font></td>
<td width=170 ><font color="#000000" size="2">创建日期:</font>
<font color="#000000">
<input name="chuangjianriqi" type="text" size="12">
</font></td>
<td width=168 ><font color="#000000" size="2">截止日期< </font>
<font color="#000000">
<input name="yujiezhiriqi" type="text" size="12">
</font></td>
<td >
<font color="#000000" size="2">ID:</font>
<font color="#000000">
<input name="bugid" type="text" size="4">
</font></td>
</tr>
<tr align="left" >
<td colspan="7" background="home/titlebg.gif"><font color="#000000" size="2">Bug名称:</font></td>
</tr>
<tr bordercolor="#FFFFFF" bgcolor="#DFE3EA">
<td></td>
<td colspan="5" align="left"> <input name="bugmingcheng" type="text" size="40"></td>
<td width=78 align="right" ><input type="submit" name="Submit" value=" 查询 " onclick="return Submit1_onclick()"> </td>
</tr>
</table>
</form>
</td>
</tr>
<tr >
<td height="650" valign="top">
<!--显示项目列表-->
<table width="85%" border="1" cellpadding="0" cellspacing="0" align="center" bordercolor="#666666">
<!--标题-->
<tr bordercolor="#FFFFFF">
<td width="2%" background="home/titlebg.gif"></td>
<td width="4%" background="home/titlebg.gif"><font size="2">ID</font></td>
<td width=25% background="home/titlebg.gif"><font size="2">标题</font></td>
<td width=15% background="home/titlebg.gif"><font size="2">所属项目</font></td>
<td width="7%" background="home/titlebg.gif"><font size="2">当前状态</font></td>
<td width="6%" background="home/titlebg.gif"><font size="2">优先级</font></td>
<td width="6%" background="home/titlebg.gif"><font size="2">创建者</font></td>
<td width="6%" background="home/titlebg.gif"><font size="2">修复者</font></td>
<td width="10%" background="home/titlebg.gif"><font size="2">截止日期</font></td>
<td width="4%" background="home/titlebg.gif"><font size="2">查看</font></td>
</tr>
<%
Iterator i6=bl.bugitems.iterator();
while(i6.hasNext())
{
xiangmu.bug b=new xiangmu.bug();
b=(xiangmu.bug)i6.next();
%>
<tr bordercolor="#FFFFFF">
<td nowrap bgcolor="#E4E4E4"><font size="2"><img src="home/problem.gif"> </font></td>
<td nowrap bgcolor="#E4E4E4"><font size="2"><%=b.getBugId() %></font></td>
<td nowrap bgcolor="#E4E4E4"><font size="2"><%=b.getBugBiaoti() %></font></td>
<td nowrap bgcolor="#E4E4E4"><font size="2"><%=b.getBugSuoshuxiangmu() %></font></td>
<td nowrap bgcolor="#E4E4E4"><font size="2"><%=b.getBugZhuangtai() %></font></td>
<td nowrap bgcolor="#E4E4E4"><font size="2"><%=b.getBugYanzhongchengdu() %></font></td>
<td nowrap bgcolor="#E4E4E4"><font size="2"><%=b.getBugChuangjianzhe() %></font></td>
<td nowrap bgcolor="#E4E4E4"><font size="2"><%=b.getBugChulizhe() %></font></td>
<td nowrap bgcolor="#E4E4E4"><font size="2"><%=b.getBugYujiezhishijian() %></font></td>
<td nowrap bgcolor="#E4E4E4"><font size="2"><%out.println("<a href=chakanbug.do?bugid="+b.getBugId()+">"); %><img src="home/view.gif" width="16" height="16" border="0"></a></font></td>
</tr>
<%} %>
<tr bordercolor="#FFFFFF">
<td colspan="13" align="right" background="home/titlebg.gif">
<font size="2" color="#3333CC">
<%//查询参数
java.lang.String xiangmuid="";
if(canshu.getBugSuoshuxiangmu()!=null)
xiangmuid=canshu.getBugSuoshuxiangmu();
java.lang.String mokuaiid="";
if(canshu.getBugSuoshumokuai()!=null)
mokuaiid=canshu.getBugSuoshumokuai();
java.lang.String bugzhuangtai="";
if(canshu.getBugZhuangtai()!=null)
bugzhuangtai=canshu.getBugZhuangtai();
java.lang.String chuangjianzhe="";
if(canshu.getBugChuangjianzhe()!=null)
chuangjianzhe=canshu.getBugChuangjianzhe();
java.lang.String chulizhe="";
if(canshu.getBugChulizhe()!=null)
chulizhe=canshu.getBugChulizhe();
java.lang.String bugid="";
if(canshu.getBugId()!=null)
bugid=canshu.getBugChuangjianzhe();
java.lang.String bugyujiezhiriqi="";
if(canshu.getBugYujiezhishijian()!=null)
bugyujiezhiriqi=canshu.getBugYujiezhishijian();
java.lang.String chuangjianriqi="";
if(canshu.getBugChuangjianshijian()!=null)
chuangjianriqi=canshu.getBugChuangjianshijian();
java.lang.String bugbiaoti="";
if(canshu.getBugBiaoti()!=null)
bugbiaoti=canshu.getBugBiaoti();
int n=bugfenye.n;
int nn=bugfenye.nn;
java.lang.String s="&xiangmuid="+xiangmuid+"&mokuaiid="+mokuaiid+"&bugzhuangtai="+bugzhuangtai+"&chuangjianzhe="+chuangjianzhe+"&chulizhe="+chulizhe+"&chuangjianriqi="+chuangjianriqi+ "&yujiezhiriqi="+yujiezhiriqi+"&bugid="+bugid+"&bugmingcheng="+bugmingcheng;
if(!bugfenye.tishi1.equals(""))
out.println("<a href=chaxun2.do?n=0"+s+">第一页</a>");
if(!bugfenye.tishi2.equals(""))
out.println("<a href=chaxun2.do?n="+(n-1)+s+">上一页</a>");
if(!bugfenye.tishi3.equals(""))
out.println("<a href=chaxun2.do?n="+(n+1)+s+">下一页</a>");
if(!bugfenye.tishi4.equals(""))
out.println("<a href=chaxun2.do?n="+(nn-1)+s+">末页</a>");
out.println(bugfenye.tishi5);
%>
</font>
</td>
</tr>
</table> </td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -