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

📄 major_list.jsp

📁 这个是j2eejava web 编程精要十五讲的全部源码。对学习java web编程的人来说是很能得的资料
💻 JSP
字号:
<jsp:include page="../user/checklogin.jsp" flush="true"/>
<jsp:include page="../header/header.jsp" flush="true"/>
<!--<jsp:include page="../user/checklogin.jsp" flush="true"/>-->
<%@ page contentType="text/html;charset=gb2312" %>

<SCRIPT language=javascript>
 var isSure=false;
function OpenWin(theURL,winName,features)
{
  window.open(theURL,winName,features);
}

function toOpen(str)
{
  
	if(str!='')
  { 
    OpenWin('../index/press_update.jsp?ID='+str,'newWin','scrollbars=no,width=500,height=400');
  }
  else
  {
    alert("不能得到ID!");
    return false;
  }
  
}

function Open()
{

    OpenWin('../system/major_insert.jsp','newWin','scrollbars=no,width=300,height=150');

}



</SCRIPT>

<jsp:include page="../header/header_bg2.jsp" flush="true"/>
      <jsp:include page="../header/menu_manager.jsp" flush="true"/>
      
  

      
      

    </TD>
    <TD width=672>
      <TABLE height=1 cellSpacing=0 cellPadding=0 width=538 border=0>
        <TBODY>
        <TR>
          <TD vAlign=bottom colSpan=2 height=43></TD></TR>                                                  
        <TR>
          <TD width=40 height=45 rowSpan=2><IMG height=43 
            src="../../images/qy_1_0.gif" width=40></TD>
          <TD vAlign=top width=498 height=15><IMG height=1 
            src="../../images/qy_1.gif" width=498></TD></TR>
        <TR>
          <TD vAlign=top width=498 height="30"></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=0 cellPadding=0 width=672 border=0>
        <TBODY>
    

        <TR>
          <TD height=23>

<%@ page import="foton.util.*" %>
<%@ page import="foton.system.*" %>
<%@ page import="java.util.*" %>
<h2 align="center">专业维护 </h2>
<form name=form1 action="../system/majorServ.jsp" method="post">

<table width=60% border=0 cellpadding="3" cellspacing="1" align="center">
   <tr bgcolor=#8899cc>
     <td>  </td>
    <td> 编号 </td>
   <td> 专业名称</td>
   
   </tr>

<% Condition condition = new Condition();
  int pageNum = 15;
  int currPage;
  String url = "../system/major_list.jsp";

   if (request.getParameter("pages")==null) {
     currPage =0;
   }
   else {
        currPage = new Integer(request.getParameter("pages")).intValue();
   }

    condition.setPageNum(pageNum);
    condition.setCurrPage(currPage);


  // ArrayList list = (ArrayList)session.getAttribute("result");
     
	 majorDAO dao = new majorDAO();

     ArrayList list = dao.getMajor(condition);
     int n=1;

  Iterator it = list.iterator();
  while (it!=null && it.hasNext()) {
    majorInfo info = (majorInfo)it.next();
%>
<tr bgcolor=#ffffff>
  <td> <input type="checkbox" name="check" value='<%=info.getMajorID()%>'> </td>
<td> <%=info.getMajorID()%> </td>
<td> <%=info.getMajorName()%></td>

</tr>
	
<%  n++; } %>





</table>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<%=Pagination.getPaginationScript(condition.getCurrPage(),condition.getPageNum(),condition.getRecordNum(),url)%>
<div >&nbsp;&nbsp;&nbsp;&nbsp;</div>
<div >&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type=button name="but1" value="增加" onclick="javascript:Open();">&nbsp;&nbsp;
<input type=submit name="action" value="删除"></div>
<div >&nbsp;&nbsp;&nbsp;&nbsp;</div>
</form>

</TD></TR></TABLE></TBODY></TABLE><!-- #BeginLibraryItem "/Library/zhu_copyright.lbi" -->                

<TABLE cellSpacing=0 cellPadding=0 width=767 background=foton.files/d_1_bj.gif 
border=0>
  <TBODY>
  <TR>
    <TD width=124><IMG height=19 src="../../images/d_1.gif" width=124></TD>
    <TD width=643><FONT color=#cccccc>北汽福田汽车股份有限公司 版权所有 &copy;                                                                                                          
  2004</FONT></TD></TR></TBODY></TABLE><!-- #EndLibraryItem -->

⌨️ 快捷键说明

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