WebRoot/xueshengkaoqin_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="xueshengkaoqin_list.jsp">
   搜索:学号:
     <input name="bianhao" type="text" id="bianhao" />
     姓名
     <input name="mingcheng" type="text" id="mingcheng" />
     考勤
     <select name='kaoqin' id='kaoqin'>
	 <option value="">所有</option>
       <option value="正常">正常</option>
       <option value="迟到">迟到</option>
       <option value="早退">早退</option>
       <option value="缺勤">缺勤</option>
       
    </select>
     课程 
     <select name='kecheng' id='kecheng'>
	 <option value="">所有</option>
       <%String sql="select mingcheng from kecheng order by id desc";ResultSet RS_result=connDbBean.executeQuery(sql);while(RS_result.next()){%>
       <option value="<%= RS_result.getString("mingcheng")%>" ><%=RS_result.getString("mingcheng")%></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="CCFFFF">序号</td>
    <td bgcolor='#CCFFFF'>学号</td><td bgcolor='#CCFFFF'>姓名</td><td bgcolor='#CCFFFF'>课程</td><td bgcolor='#CCFFFF'>日期</td><td bgcolor='#CCFFFF'>节数</td><td bgcolor='#CCFFFF'>考勤</td><td bgcolor='#CCFFFF'>备注</td>
    <td bgcolor="CCFFFF">添加时间</td>
    
    <td bgcolor="CCFFFF">操作</td>
  </tr>
  <%
   sql="";
  sql="select * from xueshengkaoqin 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"))+"%'";
后面还有 52 行代码,购买后查看完整代码

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

AI 解读 AI

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

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