📄 _exam__jsp.java
字号:
/*
* JSP generated by Resin-3.1.1 (built Mon, 07 May 2007 09:32:40 PDT)
*/
package _jsp._user;
import javax.servlet.*;
import javax.servlet.jsp.*;
import javax.servlet.http.*;
import java.sql.*;
import java.util.Date;
public class _exam__jsp extends com.caucho.jsp.JavaPage
{
private static final java.util.HashMap<String,java.lang.reflect.Method> _jsp_functionMap = new java.util.HashMap<String,java.lang.reflect.Method>();
private boolean _caucho_isDead;
public void
_jspService(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws java.io.IOException, javax.servlet.ServletException
{
javax.servlet.http.HttpSession session = request.getSession(true);
com.caucho.server.webapp.WebApp _jsp_application = _caucho_getApplication();
javax.servlet.ServletContext application = _jsp_application;
com.caucho.jsp.PageContextImpl pageContext = com.caucho.jsp.QJspFactory.allocatePageContext(this, _jsp_application, request, response, null, session, 8192, true, false);
javax.servlet.jsp.JspWriter out = pageContext.getOut();
final javax.el.ELContext _jsp_env = pageContext.getELContext();
javax.servlet.ServletConfig config = getServletConfig();
javax.servlet.Servlet page = this;
response.setContentType("text/html;charset=GB2312");
request.setCharacterEncoding("GB2312");
try {
out.write(_jsp_string0, 0, _jsp_string0.length);
String gestnam = (String) session.getAttribute("name");
String gestpsw = (String) session.getAttribute("password");
if("".equals(gestnam)||gestnam==null & "".equals(gestpsw)||gestpsw==null)
{
response.sendRedirect("..//index.jsp");
}
out.write(_jsp_string1, 0, _jsp_string1.length);
admin.dbcont dbcon;
dbcon = (admin.dbcont) pageContext.getAttribute("dbcon");
if (dbcon == null) {
dbcon = new admin.dbcont();
pageContext.setAttribute("dbcon", dbcon);
}
out.write(_jsp_string2, 0, _jsp_string2.length);
String arrangeId=request.getParameter("exam");
String sql="select * from scores where arrangeId='"+arrangeId+"'"
+" and student_id='"+gestnam+"'";
String flag=" ";
int x=0;
dbcon.getcon();
ResultSet rs=dbcon.stmt.executeQuery(sql);
if(rs.next()){
flag=rs.getString("flag");
}
if(flag.equals("1")){
out.write(_jsp_string3, 0, _jsp_string3.length);
}
else{
int i=0;
sql="select * from arrangeld where arrangeId='"+arrangeId+"'";
rs=dbcon.stmt.executeQuery(sql);
rs.next();
String kaoshiTime=rs.getString("kaoshiTime"); //\u67e5\u8be2\u8003\u8bd5\u65f6\u95f4
String kaoshiType=rs.getString("kaoshiType"); //\u67e5\u8be2\u8003\u8bd5\u7c7b\u578b
sql="select * from students A,arrangeld B,lessons C,Terms D,timu E where A.class_id=B.class_id "
+" and C.lessonid=B.lessonid "
+" and D.TermId=B.TermId "
+" and E.lessonid=B.lessonid "
+" and arrangeId='"+arrangeId+"'"
+" and student_id='"+gestnam+"'";
rs=dbcon.stmt.executeQuery(sql);
out.write(_jsp_string4, 0, _jsp_string4.length);
out.print((kaoshiTime));
out.write(_jsp_string5, 0, _jsp_string5.length);
out.print((kaoshiTime));
out.write(_jsp_string6, 0, _jsp_string6.length);
while(rs.next()){
x++;
int timuid=rs.getInt("timuid");
i++;
out.write(_jsp_string7, 0, _jsp_string7.length);
out.print((i));
out.write('\u3001');
out.print((rs.getString("timu")));
out.write(_jsp_string8, 0, _jsp_string8.length);
out.print((i));
out.write(_jsp_string9, 0, _jsp_string9.length);
out.print((rs.getString("Q1")));
out.write(_jsp_string10, 0, _jsp_string10.length);
out.print((i));
out.write(_jsp_string11, 0, _jsp_string11.length);
out.print((rs.getString("Q2")));
out.write(_jsp_string8, 0, _jsp_string8.length);
out.print((i));
out.write(_jsp_string12, 0, _jsp_string12.length);
out.print((rs.getString("Q3")));
out.write(_jsp_string10, 0, _jsp_string10.length);
out.print((i));
out.write(_jsp_string13, 0, _jsp_string13.length);
out.print((rs.getString("Q4")));
out.write(_jsp_string14, 0, _jsp_string14.length);
}
out.write(_jsp_string15, 0, _jsp_string15.length);
if(x!=0){
out.write(_jsp_string16, 0, _jsp_string16.length);
out.print((arrangeId));
out.write(_jsp_string17, 0, _jsp_string17.length);
}
else{
out.write(_jsp_string18, 0, _jsp_string18.length);
}
}
out.write(_jsp_string19, 0, _jsp_string19.length);
} catch (java.lang.Throwable _jsp_e) {
pageContext.handlePageException(_jsp_e);
} finally {
com.caucho.jsp.QJspFactory.freePageContext(pageContext);
}
}
private java.util.ArrayList _caucho_depends = new java.util.ArrayList();
public java.util.ArrayList _caucho_getDependList()
{
return _caucho_depends;
}
public void _caucho_addDepend(com.caucho.vfs.PersistentDependency depend)
{
super._caucho_addDepend(depend);
com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
}
public boolean _caucho_isModified()
{
if (_caucho_isDead)
return true;
if (com.caucho.server.util.CauchoSystem.getVersionId() != -6891698089151209809L)
return true;
for (int i = _caucho_depends.size() - 1; i >= 0; i--) {
com.caucho.vfs.Dependency depend;
depend = (com.caucho.vfs.Dependency) _caucho_depends.get(i);
if (depend.isModified())
return true;
}
return false;
}
public long _caucho_lastModified()
{
return 0;
}
public java.util.HashMap<String,java.lang.reflect.Method> _caucho_getFunctionMap()
{
return _jsp_functionMap;
}
public void init(ServletConfig config)
throws ServletException
{
com.caucho.server.webapp.WebApp webApp
= (com.caucho.server.webapp.WebApp) config.getServletContext();
super.init(config);
com.caucho.jsp.TaglibManager manager = webApp.getJspApplicationContext().getTaglibManager();
manager.addTaglibFunctions(_jsp_functionMap, "ww", "webwork");com.caucho.jsp.PageContextImpl pageContext = new com.caucho.jsp.PageContextImpl(webApp, this);
}
public void destroy()
{
_caucho_isDead = true;
super.destroy();
}
public void init(com.caucho.vfs.Path appDir)
throws javax.servlet.ServletException
{
com.caucho.vfs.Path resinHome = com.caucho.server.util.CauchoSystem.getResinHome();
com.caucho.vfs.MergePath mergePath = new com.caucho.vfs.MergePath();
mergePath.addMergePath(appDir);
mergePath.addMergePath(resinHome);
com.caucho.loader.DynamicClassLoader loader;
loader = (com.caucho.loader.DynamicClassLoader) getClass().getClassLoader();
String resourcePath = loader.getResourcePathSpecificFirst();
mergePath.addClassPath(resourcePath);
com.caucho.vfs.Depend depend;
depend = new com.caucho.vfs.Depend(appDir.lookup("user/exam.jsp"), 972654084113915983L, false);
com.caucho.jsp.JavaPage.addDepend(_caucho_depends, depend);
}
private final static char []_jsp_string10;
private final static char []_jsp_string4;
private final static char []_jsp_string3;
private final static char []_jsp_string15;
private final static char []_jsp_string12;
private final static char []_jsp_string14;
private final static char []_jsp_string1;
private final static char []_jsp_string18;
private final static char []_jsp_string7;
private final static char []_jsp_string11;
private final static char []_jsp_string19;
private final static char []_jsp_string0;
private final static char []_jsp_string9;
private final static char []_jsp_string6;
private final static char []_jsp_string2;
private final static char []_jsp_string16;
private final static char []_jsp_string5;
private final static char []_jsp_string17;
private final static char []_jsp_string13;
private final static char []_jsp_string8;
static {
_jsp_string10 = "</td>\r\n <td><input type=\"radio\" name=\"".toCharArray();
_jsp_string4 = "\r\n \r\n \r\n<form action=\"success.jsp\" name=\"forms\" method=\"post\">\r\n<center>\u4f60\u73b0\u5728\u5df2\u7ecf\u7528\u4e86<input type=text name=input1 size=9>\u8fd9\u8bd5\u5377\u8981\u6c42\u5728<font color=red>".toCharArray();
_jsp_string3 = "\r\n <form action=\"arrange_sch.jsp\" method=\"post\">\r\n <font color=\"#FF0000\">\u8fd9\u8bd5\u5377\u4f60\u5df2\u7ecf\u8003\u8fc7\u4e86\uff0c\u4e0d\u8981\u6d6a\u8d39\u4f60\u7684\u65f6\u95f4\uff0c\u8bf7\u590d\u4e60\u597d\u5176\u4ed6\u79d1\u76ee\uff01\u795d\u4f60\u522b\u7684\u79d1\u76ee\u80fd\u53d6\u5f97\u597d\u6210\u7ee9\uff01</font><br>\r\n <input type=\"submit\" value=\"\u8fd4\u56de\">\r\n </form>\r\n ".toCharArray();
_jsp_string15 = "\r\n ".toCharArray();
_jsp_string12 = "\" value=\"C\">".toCharArray();
_jsp_string14 = "</td>\r\n </tr>\r\n <tr><td><Br><br></td></tr>\r\n ".toCharArray();
_jsp_string1 = "\r\n<html>\r\n<head>\r\n<script language=\"JavaScript\"> \r\ndocument.oncontextmenu=new Function(\"event.returnValue=false;\"); \r\ndocument.onselectstart=new Function(\"event.returnValue=false;\"); \r\n</script>\r\n<title></title>\r\n<style type=\"text/css\">\r\n<!--\r\n.style1 {font-weight: bold}\r\n-->\r\n</style>\r\n</head>\r\n<body>\r\n \r\n".toCharArray();
_jsp_string18 = "\r\n\r\n <center>\u9898\u76ee\u8fd8\u6ca1\u6709\u51fa\uff0c\u8bf7\u7b49\u5f85\u901a\u77e5\u3002\u3002\u3002\u3002\u3002\u3002\u3002</center>\r\n\r\n".toCharArray();
_jsp_string7 = "\r\n <tr>\r\n <td colspan=\"2\">".toCharArray();
_jsp_string11 = "\" value=\"B\">".toCharArray();
_jsp_string19 = "\r\n<div align=\"center\"><br>\r\n</div>\r\n<br><br>\r\n<form action=\"text_edit.jsp\" method=\"post\">\r\n <object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0\" width=\"112\" height=\"49\" align=\"right\">\r\n <param name=\"BGCOLOR\" value=\"\">\r\n <param name=\"movie\" value=\"termback.swf\">\r\n <param name=\"quality\" value=\"high\">\r\n <embed src=\"termback.swf\" width=\"112\" height=\"49\" align=\"right\" quality=\"high\" pluginspage=\"http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\" ></embed>\r\n </object>\r\n</form>\r\n\r\n</body>\r\n</html>".toCharArray();
_jsp_string0 = "\r\n\r\n\r\n\r\n\r\n".toCharArray();
_jsp_string9 = "\" value=\"A\" >".toCharArray();
_jsp_string6 = "\"+\":0\")\r\n{alert(\"\u65f6\u95f4\u5230\u4e86\uff0c\u8bf7\u4ea4\u5377\uff01\");document.forms.submit.click();}\r\nidt=window.setTimeout(\"update();\",1000);\r\n}\r\n//-->\r\n</script>\r\n\r\n <table border=\"0\" align=\"left\">\r\n ".toCharArray();
_jsp_string2 = "\r\n<b><center>\r\n <div align=\"center\"><span class=\"style1\"><font color=\"red\" size=\"4\">\u5728\u7ebf\u8003\u8bd5</font></span><br>\r\n</div>\r\n <hr><br>\r\n\r\n<br>\r\n\r\n ".toCharArray();
_jsp_string16 = "\r\n <td><input type=\"hidden\" value=\"".toCharArray();
_jsp_string5 = "</font>\u5c0f\u65f6\u5185\u5b8c\u6210 </center>\r\n<script language=javascript>\r\n<!--\r\n//\u5b9a\u4e49\u5ba2\u6237\u7aefJavaScript\u51fd\u6570\u5b9e\u65f6\u663e\u793a\u65f6\u95f4\r\nvar sec=0;var min=0;var hou=0;flag=0;idt=window.setTimeout(\"update();\",1000);\r\nfunction update()\r\n{sec++;\r\nif(sec==60)\r\n{sec=0;min+=1;}\r\nif(min==60)\r\n{min=0;hou+=1;}\r\nif((min>0)&&(flag==0))\r\n{flag=1;}\r\ndocument.forms.input1.value=hou+\":\"+min+\":\"+sec;\r\nif(document.forms.input1.value==\"".toCharArray();
_jsp_string17 = "\" name=\"arrangeId\"><input type=\"submit\" name=\"submit\" value=\"\u63d0\u4ea4\u8bd5\u5377\"></td>\r\n</table>\r\n \r\n \r\n</form>\r\n".toCharArray();
_jsp_string13 = "\" value=\"D\">".toCharArray();
_jsp_string8 = "</td>\r\n </tr>\r\n <tr>\r\n <td><input type=\"radio\" name=\"".toCharArray();
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -