WebRoot/banji_list.jsp

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。


<%@ page language="java"  pageEncoding="gb2312"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="connDbBean" scope="page" class="db.db"/>
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>班级</title>
    
    <LINK href="CSS.css" type=text/css rel=stylesheet>

  </head>

  <body >
  <p>已有班级列表:</p>
  <form name="form1" id="form1" method="post" action="banji_list.jsp">
   搜索:名称:
  <input name="bianhao" type="text" id="bianhao" />
  院系
  <input name="yuanxi" type="text" id="yuanxi" />
 
  班主任
  <select name="banzhuren" id="banzhuren" >
    <option value="">请选择</option>
    <%
    String sql;
    
       sql="select xingming from jiaoshi order by id desc";
       ResultSet RS_result=connDbBean.executeQuery(sql);
        while(RS_result.next()){
        %>
    <option value="<%= RS_result.getString("xingming")%>" ><%=RS_result.getString("xingming")%></option>
    <%} 
        
        %>
  </select>
  <input type="submit" name="Submit" value="查找" />
</form>

<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse">  
  <tr>
    <td bgcolor="A4B6D7">序号</td>
    <td bgcolor='#A4B6D7'>名称</td><td bgcolor='#A4B6D7'>院系</td><td bgcolor='#A4B6D7'>班主任</td>
    <td bgcolor="A4B6D7">添加时间</td>
    
    <td bgcolor="A4B6D7">操作</td>
  </tr>
  <%
   sql="";
  sql="select * from banji where 1=1";
  if(request.getParameter("bianhao")=="" ||request.getParameter("bianhao")==null )
  {}
  else
  {
  	sql=sql+" and mingcheng like '%"+new String(request.getParameter("bianhao").getBytes("8859_1"))+"%'";
后面还有 46 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。