WebRoot/cj_list2.jsp

(开头部分) 2KB

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

<%@ page language="java" import="java.util.*" pageEncoding="gb2312"%>
<%@page import="util.Info"%>
<%@page import="dao.CommDAO"%>
<%@page import="util.PageManager"%>
<html>
  <head>
    
    
    <title>成绩查看</title>
    <LINK href="css.css" type=text/css 
rel=stylesheet>

  </head>

<body >
  <p>成绩列表:</p>


<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse">  
  <tr>
    <td width="6%" bgcolor="A4B6D7">序号</td>
    <td width="16%" bgcolor='#A4B6D7'>用户名</td>
    <td width="13%" bgcolor='#A4B6D7'>试卷编号</td>
    <td width="14%" bgcolor='#A4B6D7'>成绩</td>
    <td width="9%" bgcolor="A4B6D7">本班排名</td>
    <td width="9%" bgcolor="A4B6D7">测试时间</td>
    <td width="35%" bgcolor="A4B6D7">我的错题查看</td>
  </tr>
  <%
   double chengji=0;
  double chengjibijiao=0;
String sjbhao="";
int paiming=1;

 new CommDAO().delete(request,"cj"); 
    String url = "cj_list2.jsp?1=1"; 
    String sql =  "select * from cj where  username='"+request.getSession().getAttribute("username")+"'";
 ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request); 
	int i=0;
	for(HashMap map:list){ 
	i++;
	
sjbhao=(String)map.get("sjbh");

  String shanpianxinxiz="";
  String sql2=  "select * from cj where username in(select xuehao from xueshengxinxi where banjimingcheng in(select banjimingcheng from xueshengxinxi where xuehao='"+request.getSession().getAttribute("username")+"')) and sjbh='"+sjbhao+"' ";
  ArrayList<HashMap> list2 = PageManager.getPages("",15,sql2, request); 
	int j=0;
	for(HashMap ggg:list2){ 
	j++;
chengji=Float.valueOf((String)map.get("cj")).floatValue();
	chengjibijiao=Float.valueOf((String)ggg.get("cj")).floatValue();
	if(chengjibijiao>chengji){paiming=paiming+1;}
	}

    
 
%>
  <tr>
    <td><%=i %></td>
后面还有 14 行代码,购买后查看完整代码

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

AI 解读 AI

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

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