?? star.jsp
字號:
<%@ page language="java" pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<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 rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<body>
<p> </p>
<p> </p>
<form id="form1" name="form1" method="post" action="ActionServlet?action=starquery">
<p>用戶名:<%=session.getAttribute("username")%>您好!您的級別為:</p>
<p>您可以查詢?nèi)缦拢?lt;/p>
<table width="332" border="1">
<tr>
<td width="140">手機機型:
<label></label></td>
<td width="176"><input type="text" name="mobiletype" value="<%=request.getAttribute("mobiletype")%>"/></td>
</tr>
<tr>
<td>手機卡所屬地:</td>
<td><input type="text" name="local" value="<%=request.getAttribute("local")%>"/></td>
</tr>
<tr>
<td>結(jié) 果:
<label></label></td>
<td><input type="text" name="result" value="<%=request.getAttribute("result")%>"/></td>
</tr>
<tr>
<td colspan="2"><div align="center">
<label>
<input type="submit" name="Submit" value="查詢" />
</label>
</div></td>
</tr>
</table><a href="./star/addStar.jsp">添加</a>
<p> </p>
<table width="1200" border="1">
<tr>
<td width="250">時間</td>
<td width="200">測試手機機型</td>
<td width="250">測試類型(是否計費)</td>
<td width="250">測試手機卡所屬地</td>
<td width="100">結(jié)果</td>
<td width="300">出現(xiàn)問題</td>
<td width="200">測試程序版本</td>
<td width="150">操作</td>
</tr>
<%String[][] star=(String[][])request.getAttribute("star");
if(star!=null){
for(int i=0;i<star.length;i++){%>
<tr>
<td><%=star[i][0]%></td>
<td><%=star[i][1]%></td>
<td><%=star[i][2]%></td>
<td><%=star[i][3]%></td>
<td><%=star[i][4]%></td>
<td><%=star[i][5]%></td>
<td><%=star[i][6]%></td>
<td><a href="ActionServlet?action=editstar&no=first&tid=<%=star[i][7]%>">修改</a>
<a href="ActionServlet?action=delstar&tid=<%=star[i][7]%>">刪除</a></td>
</tr>
<%}
}
%>
</table>
<p> </p>
<p> </p>
<p> </p>
</form>
<p> </p>
</body>
</html>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -