WebRoot/xuesheng_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="xuesheng_list.jsp">
   搜索:学号:
  <input name="bianhao" type="text" id="bianhao" />
 
  姓名:
  <input name="xm" type="text" id="xm" />
  班级:
  <input name="bj" type="text" id="bj" />
  电话:
  <input name="dh" type="text" id="dh" />
  <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 width="7%" bgcolor="A4B6D7">序号</td>
    <td width="7%" bgcolor='#A4B6D7'>学号</td>
    <td width="6%" bgcolor='#A4B6D7'>密码</td>
    <td width="7%" bgcolor='#A4B6D7'>姓名</td><td width="7%" bgcolor='#A4B6D7'>班级</td><td width="7%" bgcolor='#A4B6D7'>性别</td><td width="12%" bgcolor='#A4B6D7'>出生年月</td><td width="7%" bgcolor='#A4B6D7'>籍贯</td><td width="7%" bgcolor='#A4B6D7'>电话</td><td width="7%" bgcolor='#A4B6D7'>备注</td>
    <td width="17%" bgcolor="A4B6D7">添加时间</td>
    
    <td width="9%" bgcolor="A4B6D7">操作</td>
  </tr>
  <%
  String sql="";
  sql="select * from xuesheng where 1=1";
  if(request.getParameter("bianhao")=="" ||request.getParameter("bianhao")==null )
  {}
  else
  {
  	sql=sql+" and xuehao like '%"+new String(request.getParameter("bianhao").getBytes("8859_1"))+"%'";
  }
  if(request.getParameter("xm")=="" ||request.getParameter("xm")==null )
  {}
  else
  {
  	sql=sql+" and xingming like '%"+new String(request.getParameter("xm").getBytes("8859_1"))+"%'";
  }
  if(request.getParameter("bj")=="" ||request.getParameter("bj")==null )
  {}
后面还有 46 行代码,购买后查看完整代码

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

AI 解读 AI

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

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