?? chengjiechaxun.jsp
字號:
<%@ page language="java" pageEncoding="GB18030"%>
<jsp:useBean id="chengjidata" scope="page"
class="xiong.gang.student.bean.ChengJiData" />
<jsp:useBean id="chengji" scope="page"
class="xiong.gang.student.bean.ChengJiBean" />
<%
String sno=(String)session.getAttribute("sno");
chengji=chengjidata.sql(sno);
%>
<html>
<head>
<title>My JSP 'chengjiechaxun.jsp' starting page</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">
-->
<link href="/SelectCourseSystem/css/bgcolor.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
body {
margin-left: 2px;
margin-top: 2px;
margin-right: 2px;
margin-bottom: 2px;
}
.STYLE1 {
font-size: 20px;
font-family: "隸書";
color: #000066;
font-weight: bold;
}
.STYLE3 {font-size: 20px; font-family: "隸書"; color: #000066; font-weight: bold; }
.STYLE11 {font-size: 14px; font-weight: bold; }
-->
</style>
</head>
<body>
<table width="950" height="200" border="1" align="center"
bordercolor="#000000" bgcolor="#CCCCCC">
<!--DWLayoutTable-->
<tr>
<td width="940" height="520" align="center" valign="top"
bgcolor="#CCCCCC">
<div align="center">
<table width="950" align="center">
<!--DWLayoutTable-->
<tr bgcolor="#999999">
<th width="150" height="20" valign="top" class="STYLE1">
學號 </th>
<th width="250" valign="top" class="STYLE1">
姓名 </th>
<th width="250" valign="top" class="STYLE1">
課程名 </th>
<th width="250" valign="top" class="STYLE1">
任課教師 </th>
<th width="250" valign="top" class="STYLE1">
就讀院系 </th>
<th width="250" valign="top" class="STYLE1">
上課地點 </th>
<th width="250" valign="top" class="STYLE1">
上課時間 </th>
<th width="250" valign="top" class="STYLE1">
課程成績 </th>
</tr>
<tr bgcolor="#999999">
<td height="30">
<div align="center">
<%=session.getAttribute("sno")%>
</div></td>
<td><div align="center">
<%=((String)session.getAttribute("sname")).replace("同學","") %>
</div></td>
<td>
<div align="center">
<%if(chengji.getEcname()!=null){ %>
<%=chengji.getEcname()%>
<%} %>
</div></td>
<td>
<div align="center">
<%if(chengji.getEtname()!=null){ %>
<%=chengji.getEtname()%>
<%} %>
</div></td>
<td>
<div align="center">
<%if(chengji.getEsxibu()!=null){ %>
<%=chengji.getEsxibu()%>
<%} %>
</div></td>
<td>
<div align="center">
<%if(chengji.getEcaddress()!=null){ %>
<%=chengji.getEcaddress()%>
<%} %>
</div></td>
<td>
<div align="center">
<%if(chengji.getEctime()!=null){ %>
<%=chengji.getEctime()%>
<%} %>
</div></td>
<td>
<div align="center">
<%if(chengji.getEchengji()!=null){ %>
<%=chengji.getEchengji()%>
<%} %>
</div></td>
</tr>
<tr align="center" valign="middle">
<td height="15" > </td>
<td> </td>
<td> </td>
<td colspan="2" valign="top">
<%
String success=(String)request.getAttribute("success");
String error=(String)request.getAttribute("error");
String zhongfu=(String)request.getAttribute("zhongfu");
String guoduo=(String)request.getAttribute("guoduo");
String nianji=(String)request.getAttribute("nianji");
if(success!=null){
%>
<font color="red" class="STYLE11">恭喜您!選課成功!</font>
<%} %>
<%
if(error!=null){
%>
<font color="red" class="STYLE11">很憒憾!選課失敗!</font>
<%} %>
<%
if(zhongfu!=null){
%>
<font color="red" class="STYLE11">對不起!您已選過課, 如果想重新選課, 請先退課.</font>
<%} %>
<%
if(guoduo!=null){
%>
<font color="red" class="STYLE11">對不起!您所選的課超過限選數, 請選擇其它課程.</font>
<%} %>
<%
if(nianji!=null){
%>
<font color="red" class="STYLE11">對不起!您不符合該課的限選年級, 請選擇其它課程.</font>
<%} %>
</td>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -