?? courseinfo.jsp
字號(hào):
<%@ page contentType="text/html;charset=gb2312" %>
<%@page import="grad.util.course.*,grad.util.user.*,java.util.*;"%>
<%@ page session="true" %>
<table cellpadding="0" cellspacing="0" width="630">
<TR>
<TD width="630" bgcolor="#FFFFFF">
<script language="javascript">
function openScript(url,name, width, height){
var Win = window.open(url,name,'width=' + width + ',height=' + height + ',resizable=1,scrollbars=yes,menubar=no,status=yes' );
}
</script>
<%
if(((String)session.getAttribute("usercode")!=null)&&(((Integer)session.getAttribute("usertype")).intValue()==3))
{
op_user ope=new op_user();
String saction=request.getParameter("action");
String coursecode=request.getParameter("coursecode");
String coursename=request.getParameter("coursename");
String coursetech=request.getParameter("coursetech");
if(saction!=null&&saction.equals("del")){
ope.delCourse(coursecode);
}
%>
<p align=center>
<table width=500>
<tr>
<td>
<form name="s" action="courseInfo.jsp">
<table align="center">
<tr>
<td width=100>請(qǐng)輸入課程編號(hào):</td>
<td width=200><input type=text name="coursecode"></td>
</tr>
<tr>
<td width=100>或課程名稱(關(guān)鍵字):</td>
<td width=200><input type=text name="coursename"></td>
</tr>
<tr>
<td width=100>或任課教師:</td>
<td width=200><input type=text name="coursetech"></td>
</tr>
<tr>
<td colspan="2" align="center">
<input type=submit value="查詢" name="submit"><input type=hidden value="query" name="action">
</td>
</tr>
</table>
</form></td>
</tr>
</table>
<%
if(saction!=null&&saction.equals("query")){
ArrayList al=ope.getAllCourseQuery(coursecode,coursename,coursetech);
if(al!=null&&al.size()>0){
%>
<table border="0" >
<br>
<tr><td colspan=2>目前具有下列課程信息:</td></tr>
<%
for(int i=0;i<al.size();i++){
course cs=(course)al.get(i);
%>
<tr><td>課程<%=(i+1)%>:<%=(cs.getcourse_name())%>(任課教師:<%=(cs.getcourse_tech())%>)</td><td>
<a href="#" onclick="openScript('courseDetail.jsp?ID=<%=cs.getCourse_code()%>','indentlist',500,400);">瀏覽詳細(xì)</a>
<a href="#" onclick="openScript('courseDetail.jsp?ID=<%=cs.getCourse_code()%>','indentlist',500,400);">瀏覽詳細(xì)&修改</a>
<a href="courseInfo.jsp?coursecode=<%=cs.getCourse_code()%>&action=del">刪除</a>
</td></tr>
<%}%>
</table>
</p>
</td>
</tr>
<%
}else{out.print("沒有查到你想要的課程信息");}
}
}else
{
out.print("你還沒有登錄或者你得權(quán)限不夠,請(qǐng)<a href=../index.jsp target=_parent>返回首頁登錄</a>");
}
%>
</table>
<table width="650">
<tr>
<td>
<%@ include file="../inc/tail.htm"%>
</td>
</tr>
</table>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -