?? tf_005fuser_005fupdate_jsp.java
字號(hào):
package org.apache.jsp.web_005fpage.info_005fall.user;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.util.*;
import jinLing.pub.*;
import jinLing.user.*;
import jinLing.department.*;
public final class tf_005fuser_005fupdate_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
public java.util.List getDependants() {
return _jspx_dependants;
}
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
JspFactory _jspxFactory = null;
PageContext pageContext = null;
HttpSession session = null;
ServletContext application = null;
ServletConfig config = null;
JspWriter out = null;
Object page = this;
JspWriter _jspx_out = null;
PageContext _jspx_page_context = null;
try {
_jspxFactory = JspFactory.getDefaultFactory();
response.setContentType("text/html; charset=gb2312");
pageContext = _jspxFactory.getPageContext(this, request, response,
"../../pub_include/ErrPage.jsp", true, 8192, true);
_jspx_page_context = pageContext;
application = pageContext.getServletContext();
config = pageContext.getServletConfig();
session = pageContext.getSession();
out = pageContext.getOut();
_jspx_out = out;
out.write(" \r\n");
out.write(" ");
request.setCharacterEncoding("gb2312");
out.write(" \r\n");
out.write(" ");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "../../pub_include/pub_function_javascript.html", out, true);
out.write(" \r\n");
out.write(" \r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<style>\r\n");
out.write("<!--\r\n");
out.write(".style2 {color: #FFFFFF}\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"../../pub_include/hosc.css\">\r\n");
out.write("<link href=\"../../pub_include/body_css.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312/\"> \r\n");
out.write("</head> \r\n");
Collection col = null;
Hashtable list = new Hashtable();
// InitInputOption initInputOption;
// PubOp pubOp = new PubOp("USER");
User user=new User();
Department department=new Department();
//判斷增加修改
String optype = "1";
if(null != request.getParameter("optype") && !request.getParameter("optype").toString().equals(""))
optype=request.getParameter("optype").toString();
out.write(" \r\n");
out.write("<body leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' background='../../images/bg.gif' >\r\n");
out.write(" <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width='100%' >\r\n");
out.write(" <tr>\r\n");
out.write(" <TD width='100%'class='title'> 用戶管理</span></TD>\r\n");
out.write(" </tr>\r\n");
out.write(" </table>\r\n");
out.write(" <div align='center'>\r\n");
out.write(" <center>\r\n");
out.write(" <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width=100% >\r\n");
out.write(" <tr>\r\n");
out.write(" <td width='100%' height='10' align='center'></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td width='100%' height='0' valign='top' align='center'>\r\n");
out.write(" <table width='100%' border='1' style='border-collapse: collapse; padding-left:5' bordercolor='#6595D6' cellpadding='0' cellspacing='0'> \r\n");
out.write(" <tr class='table_biaoti'> \r\n");
out.write(" \r\n");
out.write(" <td >帳號(hào)</td>\r\n");
out.write(" <td >姓名</td>\r\n");
out.write("\t\t\t<td >單位</td>\r\n");
out.write(" <td >電話</td>\r\n");
out.write(" <td width='5%' >刪除</td>\r\n");
out.write(" <td width='5%' >修改</td>\r\n");
out.write(" </tr>\r\n");
String pPageNo = "1";
if (null != request.getParameter("PAGENO") &&!request.getParameter("PAGENO").toString().trim().equals(""))
if (Integer.parseInt(request.getParameter("PAGENO"))<1)
pPageNo="1";
else
pPageNo=request.getParameter("PAGENO");
col = user.execSel(list,pPageNo,"10");
String pPageCount = String.valueOf(user.getRecordcount());
String allCount = pPageCount;
pPageCount = (Integer.parseInt(pPageCount)%10==0)?String.valueOf(Integer.parseInt(pPageCount)/10):String.valueOf(Integer.parseInt(pPageCount)/10+1);
if (Integer.parseInt(pPageCount)<Integer.parseInt(pPageNo))
pPageNo=pPageCount;
Iterator it = col.iterator();
while (it.hasNext())
{
Hashtable rs = (Hashtable) it.next();
out.write("\r\n");
out.write(" <tr class='table_list_lr'> \r\n");
out.write(" <td > ");
out.print(rs.get("USER_NO"));
out.write(" </td>\r\n");
out.write(" <td > ");
out.print(rs.get("USER_NAME"));
out.write(" </td>\r\n");
out.write("\t\t\t<td > ");
out.print(rs.get("DEPARTMENT_NAME"));
out.write(" </td>\r\n");
out.write(" <td > ");
out.print(rs.get("USER_TEL"));
out.write(" </td>\r\n");
out.write(" <!--刪除和修改還要傳一些條件參數(shù)-->\r\n");
out.write(" <td align='center' height='20' valign='middle'>\r\n");
out.write(" <img src='../../images/del.gif' width='18' height='18' border='0' style='cursor:hand' onClick=\"Del_ID('");
out.print(rs.get("USER_ID"));
out.write("')\">\r\n");
out.write(" </td>\r\n");
out.write(" <td align='center' height='20' valign='middle'>\r\n");
out.write(" <a href='tf_user_update.jsp?optype=2&USER_ID=");
out.print(rs.get("USER_ID"));
out.write("'>\r\n");
out.write(" <img src='../../images/edit.gif' width='18' height='18' border='0' style='cursor:hand'>\r\n");
out.write(" </a>\r\n");
out.write(" </td>\r\n");
out.write(" </tr>\r\n");
out.write(" ");
}
out.write(" \r\n");
out.write(" </table> \r\n");
out.write(" <p></td> \r\n");
out.write(" </tr> \r\n");
out.write(" </table> \r\n");
out.write(" <table border='0' cellpadding='0' cellspacing='0' style='border-collapse: collapse' bordercolor='#111111' width=90% > \r\n");
out.write(" ");
String strpageno = "tf_user_update.jsp";
out.write(" \r\n");
out.write(" <form action='");
out.print(strpageno);
out.write("' method='POST' name='form_list'> \r\n");
out.write(" <tr> \r\n");
out.write(" <td height='17' valign='top' align='center'> </td> \r\n");
out.write(" <td height='17' valign='top' align='center'> \r\n");
String vFirstURL = strpageno;
String vPrevURL = strpageno+"?&PAGENO="+(Integer.parseInt(pPageNo)-1);
String vNextURL = strpageno+"?&PAGENO="+((Integer.parseInt(pPageCount)<(Integer.parseInt(pPageNo)+1))?(Integer.parseInt(pPageCount)):(Integer.parseInt(pPageNo)+1));
String vLastURL = strpageno+"?&PAGENO="+pPageCount;
out.write(" \r\n");
out.write(" <A onClick=\"PrevURLFun();\" style=\"cursor:hand \"> 上一頁 </A> \r\n");
out.write("\t\t<A onClick=\"NextURLFun();\" style=\"cursor:hand \"> 下一頁 </A> \r\n");
out.write("<script language=javascript>\r\n");
out.write(" function PrevURLFun()\r\n");
out.write(" {\r\n");
out.write(" self.location = \"");
out.print(vPrevURL);
out.write("\";\r\n");
out.write("\t return true;\r\n");
out.write(" }\r\n");
out.write(" function NextURLFun()\r\n");
out.write(" {\r\n");
out.write(" self.location = \"");
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -