📄 undom2.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" import="com.statistics.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>已完成模块</title>
<link rel="stylesheet" href="../css/all.css">
<style type="text/css">
<!--
.STYLE2 {font-size: 18px}
-->
</style>
</head>
<%
String dbPath=request.getRealPath("/common/");
%>
<body>
<br>
<br>
<br>
<table width="316" border="1" align="center">
<tr>
<td width="150" class="rd6"><div align="center">项目编号</div></td>
<td width="150" class="rd6"><div align="center">项目名称</div></td>
<td width="150" class="rd6"><div align="center">未完成模块</div></td>
</tr>
<%
int id=Integer.parseInt(request.getParameter("pid"));
String sql="select * from project,module where project.pid=module.pid and project.pid="+id+"and mfinish=0";
System.out.println(sql);
Connection conn=DB.getConn(dbPath);
Statement stmt=DB.getStmt(conn);
ResultSet rs=DB.getRs(stmt,sql);
while(rs.next()){
String i=rs.getString("pid");
%>
<tr>
<td class="rd8"><div align="center"><%=i%></div></td>
<td class="rd8"><div align="center"><%=rs.getString("pname")%></div></td>
<td class="rd8"><div align="center"><%=rs.getString("mname")%></div></td>
</tr>
<%
out.print("<p>");
}
rs.close();
DB.close(conn);
%>
</table>
<form id="form1" name="form1" method="post" action="projectprogress.jsp">
<label>
<div align="center">
<input type="submit" name="Submit" value="返回" />
</div>
</label>
</form>
<div align="center"></div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -