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

📄 yaopins.jsp

📁 基于J2EE的门诊划价系统 目 录 第1章 绪论 1 1.1 引言 1 1.2 概述 2 1.2.1 简要概述 2 1.2.2 目标 3 1.2.3 条件或限制 3 1.3 J2EE
💻 JSP
字号:
<%@ page contentType="text/html; charset=gb2312" language="java"
	import="java.sql.*" errorPage=""%>
<!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>
		<style type="text/css">
<!--
#Layer1 {
	position:absolute;
	width:543px;
	height:49px;
	z-index:1;
	left: 244px;
	top: 18px;
}
#Layer2 {
	position:absolute;
	width:262px;
	height:210px;
	z-index:2;
	left: 244px;
	top: 69px;
}
#Layer3 {
	position:absolute;
	width:110px;
	height:201px;
	z-index:3;
	left: 625px;
	top: 85px;
}
#Layer4 {
	position:absolute;
	width:538px;
	height:330px;
	z-index:4;
	left: 245px;
	top: 322px;
}
.STYLE4 {
	font-size: 24px;
	font-family: "宋体";
	font-weight: bold;
	color: #000000;
}
#Layer5 {
	position:absolute;
	width:306px;
	height:221px;
	z-index:1;
	left: 69px;
	top: 58px;
	background-color: #BEC798;
}
#Layer6 {
	position:absolute;
	width:165px;
	height:160px;
	z-index:2;
	left: 534px;
	top: 95px;
	background-color: #BEC798;
}
body {
	background-color: #93A070;
}
-->
</style>
		<script type="text/JavaScript">
<!--
function MM_goToURL() { //v3.0
  var i, args=MM_goToURL.arguments; document.MM_returnValue = false;
  for (i=0; i<(args.length-1); i+=2) eval(args[i]+".location='"+args[i+1]+"'");
}
//-->
</script>
	</head>
	<jsp:useBean id="Rs" scope="page" class="MyWeb.db.DBManager" />
	<%
		//String name=null;
		//String bianhao=null;
		//String jiage=null;
		//String changjia=null;
		ResultSet rs = null;
		String sql = null;
		sql = "select * from yaopin";
		try {
			rs = Rs.executeQuery(sql);
		} catch (Exception e) {
			e.printStackTrace();
		}
	%>
	<body>
		<table width="550" border="1" align="center">
			<tr bgcolor="#BEC798">
				<td height="45">
					<div align="center">
						<span class="STYLE4">库存药品信息</span>
					</div>
				</td>
			</tr>
		</table>
		<%
					out
					.println("<table width=\"550\"border=\"1\" align=\"center\" border=\"1\">");
			out.println("<tr><td>药名<td>编号<td>价格<td>生产厂家</tr>");
			while (rs.next()) {
				out.println("<tr><td>" + rs.getString(1) + "<td>"
				+ rs.getString(2) + "<td>" + rs.getString(3) + "<td>"
				+ rs.getString(4) + "</tr>");
			}
			out.println("</table>");
		%>
		<center>
			<input name="textarea" type="submit"
				onclick="MM_goToURL('parent','../main.jsp');return document.MM_returnValue"
				value="返回">
		</center>
		<hr />
	</body>
</html>

⌨️ 快捷键说明

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