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

📄 shopcart.jsp

📁 Spring+hibernate学生在线选课系统
💻 JSP
字号:
<%@ include file="/WEB-INF/view/include/taglibs.jsp" %>
<%@ page language="java" contentType="text/html;charset=gb2312" import="java.util.*" %>

<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'shopCart.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/main.css">
    <style type="text/css">

    </style>
  
  </head>
  
 
<body>
<script>
   function chkdelete(){
   if(confirm("是否确实删除?"))
   return true;
   else return false;
  }
  </script>  
<br>
<c:set value="0" var="count"/>
<FORM name="addElectiveForm"  method="post" action="addElective.do" >
<center>
 我选择的课程.
  <table width="600" border="0" cellpadding="1" cellspacing="0" bordercolor="#E3E9F1">
  <tr>
    <td width="10" class="table_title">&nbsp;</td>
    <td width="90" class="table_title">课程名</td>
    <td width="90" class="table_title">教师</td>
    <td width="90" class="table_title">系别</td>
    <td width="60" class="table_title">学分</td>
    <td width="60" class="table_title">限定人数</td>
    
    <td width="40">&nbsp;</td>
  </tr>
  
  <c:forEach var="courseinfo" items="${sessionScope.shoplist}" varStatus="status">
  <tr class="table_row">
    <td width="30"><c:out value="${status.count}"/></td>
    <td><c:out value="${courseinfo.name}"/></td>
   
   <td><c:out value="${courseinfo.teacher}"/></td>
   <td><c:out value="${courseinfo.department}"/></td>
   <td><c:out value="${courseinfo.credit}"/></td>
   <td><c:out value="${courseinfo.amount}"/></td>
   
   
      
  
  
    <td width="40"><a href="<c:url value="/delShopCart.do">
			<c:param name="course_id" value="${courseinfo.id}" />
			</c:url>
			" onClick="return chkdelete();">
			删除</a>		</td>
  </tr>
  
 
 </c:forEach>

  <tr>
  <td width="10" class="table_title"><input name="userid" type=hidden value='<c:out value="${sessionScope.id}"/>'>
     <!--<input name="totalprice" type=hidden value='<c:out value="${count}"/>'>--></td>
    <td width="90" class="table_title"></td>
    <td width="90" class="table_title"></td>
    <td width="90" class="table_title"></td>
    <td width="60" class="table_title"></td>
    <td width="60" class="table_title"> <input name="ConfirmElective" type="submit" value="确定选课" ></td>
    <!--<td width="60" class="table_title"></td>
    <td width="60" class="table_title"></td>-->
    <td width="40">&nbsp;</td>
 
  
   
  </tr>
</table>

</center>
</FORM>
</body>
</html>

⌨️ 快捷键说明

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