📄 getdoctorinfo.jsp
字号:
<%@ page contentType="text/html; charset=gbk"%><%@ include file = "../include/ccs.inc" %>
<%@ page import="hospital.db.dboperation.*" %>
<%@ page import="hospital.db.*" %>
<%@ page import="java.sql.*" %>
<html>
<head>
<title>医院门诊预约系统-管理员-医生信息</title>
</head>
<%
String _getDoctorInfo="";
Admin admin=(Admin)session.getAttribute("admin");
ResultSet rs=null;
if(admin==null)
_getDoctorInfo="<a href=\"login.jsp\">请先登录</a>";
else{
int g=admin.getDoctorInfo();
switch(g){
case 1:
_getDoctorInfo="查询成功(单击医生姓名删除该记录)";
rs=admin.getResultSet();
break;
case 0:
_getDoctorInfo="一般异常";
break;
case -1:
_getDoctorInfo="数据库异常";
break;
case -2:
_getDoctorInfo="医生不存在";
break;
}
}
%>
<body bgcolor="#FFFFFF">
<table width="770" height="423" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
<tr>
<td height="421" bgcolor="#FFFFFF"><%@ include file = "../include/head.inc" %>
<table width="770" height="290" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<%@ include file="../include/admin.inc" %>
<td width="603" align="center" valign="top">
<table width="100%" height="85%" border="0" cellpadding="3" cellspacing="1" bgcolor="#666666">
<tr>
<td width="488" height="257" align="center" valign="top" bgcolor="E3EDFF">
<br>
<p><%=_getDoctorInfo%></p>
<table width="100%">
<tr>
<th>姓名</th>
<th>年龄</th>
<th>性别</th>
<th>职称</th>
<th>科室</th>
<th>特长</th>
<th>电话</th>
</tr>
<%while(rs!=null && rs.next()){%>
<tr align="center">
<td><a href="removeDoctor.jsp?did=<%=rs.getString("DID")%>" onclick="return confirm('确实要删除此医生吗?');">
<%=Util.decode(rs.getString("Name"))%></a></td>
<td><%=rs.getInt("Age")%></td>
<td><%=rs.getInt("Sex")%></td>
<td><%=Util.decode(rs.getString("Level"))%></td>
<td><%=Util.decode(rs.getString("Section"))%></td>
<td><%=Util.decode(rs.getString("Specialism"))%></td>
<td><%=rs.getString("Phone")%></td>
</tr>
<%}%>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<%
if(admin!=null)
admin.closeConnection();
%>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -