WebRoot/jiangchengxinxi_add.jsp
(开头部分) 2KB这里只显示每个文件的开头 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>
<script language="javascript" src="js/Calendar.js"></script>
</head>
<script lanaguage="javascript">
function gow()
{
document.location.href="jiangchengxinxi_add.jsp?xuehao="+document.form1.xuehao.value;
}
</script>
<body >
<form name="form1" id="form1" method="post" action="jiangchengxinxi_add_post.jsp">
添加奖惩信息:
<br><br>
<table width="100%" border="1" align="center" cellpadding="3" cellspacing="1" bordercolor="#00FFFF" style="border-collapse:collapse"> <tr><td>学号:</td><td><select name='xuehao' id='xuehao' onChange="gow();">
<option value="">请选择</option>
<%
String sql="select xuehao from jibenxinxi order by id desc";
ResultSet RS_result=connDbBean.executeQuery(sql);
while(RS_result.next()){
%>
<option value="<%= RS_result.getString("xuehao")%>" <%
if( request.getParameter("xuehao")!=null)
{
if (RS_result.getString("xuehao").toString().trim().equals(request.getParameter("xuehao").toString().trim()))
{
out.print("selected='selected'");
}
}
%> ><%=RS_result.getString("xuehao")%></option>
<%}
%>
</select></td></tr><tr><td>姓名:</td><td><input name='xingming' type='text' id='xingming' <%
if( request.getParameter("xuehao")!=null)
{
String sql2;
sql2="select xingming from jibenxinxi where xuehao='"+request.getParameter("xuehao")+"'";
ResultSet RS_result2=connDbBean.executeQuery(sql2);
while(RS_result2.next()){
%>
value="<%=RS_result2.getString("xingming") %>"
<%}
}
%> /></td></tr><tr><td>奖惩:</td><td><select name='jiangcheng' id='jiangcheng'>
<option value="奖励">奖励</option>
<option value="惩罚">惩罚</option>
后面还有 12 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
