getapc.jsp

来自「采用基于B/S结构进行开发学生管理信息系统,本系统采用Servlet+Jsp+J」· JSP 代码 · 共 96 行

JSP
96
字号
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<head>
<link href="Inc/student_com.css" type="text/css" rel="stylesheet">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>奖励、处罚和变动标准</title>
</head>
<body>
<jsp:useBean id='apc' scope='page' class='myBean.APC'/>  
<%String admin_id = (String)session.getAttribute("id"); 
 if(admin_id==null){response.sendRedirect("login.jsp");}
String code="",description="";
%>
<p align="center"><font color="#00FF00" size="+3" face="华文行楷">奖励标准</font></p>
<p><a href="addAPC.jsp?f=A" >添加奖励标准</a></p>
  <div align="center">
    <table cellpadding="2" cellspacing="1" bgcolor="#DEDFDE">
      <tr> 
        <td align="center" bgcolor="#EEEEEE">代号</td>
        <td align="center" bgcolor="#EEEEEE">描述</td>
        <td align="center" bgcolor="#EEEEEE">删除</td>
        <td align="center" bgcolor="#EEEEEE">更改</td>
      </tr>
      <%
      ResultSet rs=apc.getAPC("A");
      while(rs.next()){
        code=rs.getString(1);
        description=rs.getString(2);
   %>
      <tr>
        <td align="center" bgcolor="#FFFFFF"><%=code%></td>
        <td align="center" bgcolor="#FFFFFF"><%=description%></td>
        <td align="center" bgcolor="#FFFFFF"><a href="APCSvlt?action=delete&code=<%=code%>">删除</a></td>
        <td align="center" bgcolor="#FFFFFF"><a href="updateAPC.jsp?code=<%=code%>&description=<%=description%> ">更新</a></td>
      </tr>
      <%}%>
      </table>
  </div>
  <p>&nbsp;</p>
  <p align="center"><font color="#00FF00" size="+3" face="华文行楷">处罚标准</font></p>
  <p><a href="addAPC.jsp?f=P">添加处罚标准</a></p>
  <div align="center">
    <table cellpadding="2" cellspacing="1" bgcolor="#DEDFDE">
      <tr> 
        <td align="center" bgcolor="#EEEEEE">代号</td>
        <td align="center" bgcolor="#EEEEEE">描述</td>
        <td align="center" bgcolor="#EEEEEE">删除</td>
        <td align="center" bgcolor="#EEEEEE">更改</td>
      </tr>
      <%
      rs=apc.getAPC("P");
      while(rs.next()){
        code=rs.getString(1);
        description=rs.getString(2);
    %>
      <tr>
        <td align="center" bgcolor="#FFFFFF"><%=code%></td>
        <td align="center" bgcolor="#FFFFFF"><%=description%></td>
        <td align="center" bgcolor="#FFFFFF"><a href="APCSvlt?action=delete&code=<%=code%>">删除</a></td>
        <td align="center" bgcolor="#FFFFFF"><a href="updateAPC.jsp?code=<%=code%>&description=<%=description%>  ">更新</a></td>
      </tr>
      <%}%>
      </table>
  </div>
  <p>&nbsp;</p>
  <p align="center"><font color="#00FF00" size="+3" face="华文行楷">变动形式</font></p>
  <p><a href="addAPC.jsp?f=C">添加变动形式</a></p>
  <div align="center">
    <table cellpadding="2" cellspacing="1" bgcolor="#DEDFDE">
      <tr> 
        <td align="center" bgcolor="#EEEEEE">代号</td>
        <td align="center" bgcolor="#EEEEEE">描述</td>
        <td align="center" bgcolor="#EEEEEE">删除</td>
        <td align="center" bgcolor="#EEEEEE">更改</td>
      </tr>
      <%
      rs=apc.getAPC("C");
      while(rs.next()){
        code=rs.getString(1);
        description=rs.getString(2);
    %>
      <tr>
        <td align="center" bgcolor="#FFFFFF"><%=code%></td>
        <td align="center" bgcolor="#FFFFFF"><%=description%></td>
        <td align="center" bgcolor="#FFFFFF"><a href="APCSvlt?action=delete&code=<%=code%>">删除</a></td>
        <td align="center" bgcolor="#FFFFFF"><a href="updateAPC.jsp?code=<%=code%>&description=<%=description%> ">更新</a></td>
      </tr>
      <%}
 %>
      </table>
  </div>
<p align="center">&nbsp; </p>
<p align="center"><a href="admin.jsp" target="_parent">返回</a></p>
</body>
</html>

⌨️ 快捷键说明

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