WebRoot/cj_list.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="14%" bgcolor='#A4B6D7'>用户名</td>
    <td width="15%" bgcolor='#A4B6D7'>试卷编号</td>
    <td width="17%" bgcolor='#A4B6D7'>成绩</td>
    <td width="15%" bgcolor="A4B6D7">测试时间</td>
    
    <td width="19%" bgcolor="A4B6D7">操作</td>
  </tr>
  <%
  double chengji=0;
  double chengjiz=0;
double zgfchengji=0;double zdfchengji=10000;
int yxrs=0;
int lrs=0;
int bjgrs=0;
 new CommDAO().delete(request,"cj"); 
    String url = "cj_list.jsp?1=1"; 
    String sql =  "select * from cj where  1=1";
 ArrayList<HashMap> list = PageManager.getPages(url,15,sql, request); 
	int i=0;
	for(HashMap map:list){ 
	i++;
	
	chengji=Float.valueOf((String)map.get("cj")).floatValue();
	chengjiz=chengjiz+chengji;
	if(chengji>zgfchengji){zgfchengji=chengji;}
if(chengji<zdfchengji){zdfchengji=chengji;}
if(chengji<zdfchengji){zdfchengji=chengji;}
if(chengji>=85){yxrs=yxrs+1;}
if(chengji<85 && chengji>=60){lrs=lrs+1;}  //必须写两条,不然报错
if(chengji<60){bjgrs=bjgrs+1;}

    
 
%>
  <tr>
    <td><%=i %></td>
    <td><%=map.get("username") %></td><td><%=map.get("sjbh") %></td>
    <td><%=chengji %></td>
    <td><%=map.get("addtime") %></td>
后面还有 12 行代码,购买后查看完整代码

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

AI 解读 AI

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

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