WebRoot/shijuanxinxi_add.jsp
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page language="java" import="java.sql.*" %>
<jsp:useBean id="connDbBean" scope="page" class="com.util.db"/>
<script type="text/javascript" src="js/My97DatePicker/WdatePicker.js" charset="gb2312"></script>
<script type="text/javascript" src="js/popup.js"></script>
<script type="text/javascript" src="js/jquery-1.11.0.min.js"></script>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<TITLE>添加试卷信息</TITLE>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
-->
</style>
</head>
<%
String sql="";
String id="";
ResultSet RS_result;
int nts=0;
String danxuantiid="";
String duoxuantiid="";
String panduantiid="";
String tiankongtiid="";
if(request.getParameter("f")!=null){
int ndanxuantishu = Integer.parseInt(request.getParameter("danxuantishu"));
int npanduantishu = Integer.parseInt(request.getParameter("panduantishu"));
int ntiankongtishu = Integer.parseInt(request.getParameter("tiankongtishu"));
int nduoxuantishu = Integer.parseInt(request.getParameter("duoxuantishu"));
String shijuanbianhao=request.getParameter("shijuanbianhao");
String shijuanmingcheng=request.getParameter("shijuanmingcheng");
String kecheng=request.getParameter("kecheng");
String danxuanti=request.getParameter("danxuantifenzhi");
String panduanti=request.getParameter("panduantifenzhi");
String tiankongti=request.getParameter("tiankongtifenzhi");
String duoxuanti=request.getParameter("duoxuantifenzhi");
String faburen=request.getParameter("faburen");
sql="select count(id) as ss from danxuanti where kecheng='"+kecheng+"'";
RS_result=connDbBean.executeQuery(sql);
if(RS_result.next()){
nts=Integer.parseInt(RS_result.getString("ss"));
}
if(nts<ndanxuantishu)
{
out.print("<script>alert('对不起,单选题数不足!');location.href='sy.jsp';</script>");
后面还有 193 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。