?? log.jsp
字號:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>無標題文檔</title>
<style type="text/css">
<!--
@import url("_notes/bbb.css");
-->
</style>
</head>
<body >
<%@ page contentType="text/html; charset=gb2312"%>
<%@ page language="java" import="java.sql.*"%>
<jsp:useBean id="subject" scope="page" class="exam.exam"/>
<%
String wnum=new String(request.getParameter("wnum").trim().getBytes("8859_1"));
String word=new String(request.getParameter("word").trim().getBytes("8859_1"));
String sql="select tpri from administrators where wnum='"+wnum+"' and wpswd='"+word+"'";
ResultSet rs=subject.executeQuery(sql);
if(rs.next()){
String tpri=rs.getString("tpri");
session.setAttribute("wnum",wnum);
session.setAttribute("tpri",tpri);
response.sendRedirect("index.jsp");
rs.close();
}
else
{
rs.close();
%>
<table width="375" border="0" align="center">
<tr>
<td height="168"><img src="images/404.gif" width="484" height="361"></td>
</tr>
</table>
<table width="257" height="68" border="0" align="center">
<tr>
<td><div align="center">
<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="147" height="34">
<param name="movie" value="button4.swf">
<param name="quality" value="high">
<param name="base" value=".">
<embed src="button4.swf" base="." quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="147" height="34" ></embed>
</object>
</div></td>
</tr>
</table>
<%}%>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -