JSP库存管理系统 第11页
{//如果参数不正确,设置当前页码为1ptyonghu_rsFenYe.setCurrentPage(1);}
out.write("\r\n");out.write(" \t所有用户(共");
out.print(rowCount);out.write("位) \r\n");
StringrefName[]={"wupin_id","ptyonghu_name"};StringrefValue[]={wupin_id+"",ptyonghu_name};
out.print(ptyonghu_rsFenYe.earn_fenyi_string("ptyonghuman.jsp",refName,refValue));
out.write("\r\n");out.write(" </td>\r\n");
out.write(" </tr>\r\n");out.write(" <tr>\r\n");
out.write(" <td width=\"10%\" align=\"center\">普通用户序号</td>\r\n");
out.write(" <td width=\"25%\" align=\"center\">普通用户姓名</td>\r\n");
out.write(" <td width=\"25%\" align=\"center\">普通用户所属班级</td>\r\n");
out.write(" <td width=\"20%\" align=\"center\">修改?</td>\r\n");
out.write(" <td width=\"20%\" align=\"center\">删除?</td>\r\n");
out.write(" </tr>\r\n");out.write(" ");
for(int i=0;i<ptyonghu_rsFenYe.getPageSize()&&rs.next();i++){
out.write("\r\n");out.write(" <tr>\r\n");
out.write(" <td align=\"center\">");out.print(rs.getLong("ptyonghu_id"));
out.write("</td>\r\n");out.write(" <td align=\"center\">");
out.print(rs.getString("ptyonghu_name"));
out.write("</td>\r\n");out.write(" <td align=\"center\">");
out.print(rs.getString("wupin_name"));out.write("</td>\r\n");
out.write(" <td align=\"center\">\r\n");
out.write(" <a href='ptyonghu_update1.jsp?ptyonghu_id=");
out.print(rs.getLong("ptyonghu_id"));out.write("&wupin_id=");
out.print(rs.getLong("wupin_id"));out.write("'>修改</a>\r\n");
out.write(" </td>\r\n");out.write(" <td align=\"center\">\r\n");
out.write(" <a href=\"ptyonghu_delete.jsp?ptyonghu_id=");
out.print(rs.getLong("ptyonghu_id"));
out.write("\" onclick=\"return delete_confirm()\">×</a>\r\n");out.write(" </td>\r\n");
out.write(" </tr>\r\n");out.write(" ")}
out.write("\r\n");out.write("</table><br>\r\n");
out.write("<!----------操作提示信息--------------->\r\n");
out.write("<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" bordercolor=\"#808080\" bordercolorlight=\"#808080\" bordercolordark=\"#808080\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"100%\">\r\n");
out.write(" <table border=\"0\" width=\"100%\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"100%\">注意:删除普通用户信息将删除所有此普通用户的所有成绩信息。</td>\r\n");out.write(" </tr>\r\n");
out.write(" </table>\r\n");out.write(" </td>\r\n");
out.write(" </tr>\r\n");out.write("</table>\r\n");
out.write("</body>\r\n");out.write("</html>");} catch (Throwable t) {
if (!(t instanceof SkipPageException)){out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);}
} finally {_jspxFactory.releasePageContext(_jspx_page_context);}}}
**************************************
public final wupin yonghuman_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
private javax.el.ExpressionFactory _el_expressionfactory;
private org.apache.AnnotationProcessor _jsp_annotationprocessor;
public Object getDependants() {return _jspx_dependants;}
public void _jspInit() {_el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
_jsp_annotationprocessor=(org.apache.AnnotationProcessor) getServletConfig().getServletContext().getAttribute(org.apache.AnnotationProcessor.wupin.getName());}public void _jspDestroy() {}public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
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 {response.setContentType("text/html;charset=GB2312");
pageContext = _jspxFactory.getPageContext(this, request, response,null, 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("\r\n");out.write("<html>\r\n");
out.write("<!------系统交互javascript----->\r\n");
out.write("<script language=\"JavaScript\">\r\n");
out.write("<!--\r\n");out.write("function check_data() {\r\n");
out.write("//按提交按钮时,检查数据是否为空\r\n");
out.write(" if(add_yonghu_form.yonghuname.value.length==0){\r\n");
out.write(" \t\talert(\"输入的高级用户姓名为空,请重新输入!\");\r\n");
out.write(" \t\treturn false;\r\n");
out.write("\t}else return true;\t\r\n");out.write("}\r\n");
out.write("function delete_confirm() {\r\n");
out.write("//按删除链接时,弹出确认对话框\r\n");
out.write(" if(confirm(\"确认要删除吗?\")){\r\n");
out.write(" \t\treturn true;\r\n");out.write("\t}else return false;\t\r\n");
out.write("}\r\n");out.write("-->\r\n");
out.write("</script>\r\n");
out.write("<body bgcolor=\"#DCDADA\">\r\n");
out.write("<!---------导航菜单------------->\r\n");
org.apache.jasper.runtime.JspRuntimeLibrary.include(request, response, "navigator.txt", out, false);out.write("\r\n");
out.write("<!---------数据输入------------->\r\n");
out.write("<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" bordercolor=\"#808080\" bordercolorlight=\"#808080\" bordercolordark=\"#808080\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"100%\">\r\n");
out.write(" <table border=\"0\" width=\"100%\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"100%\" colspan=\"3\">录入高级用户信息:<br><hr></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <form name=\"add_yonghu_form\" action=\"yonghu_add.jsp\" method=\"post\" onsubmit=\"return check_data()\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"25%\" align=\"right\">高级用户姓名:</td>\r\n");
out.write("<td width=\"25%\"><input type=\"text\" name=\"yonghuname\" maxlength=\"20\"></td>\r\n");
out.write(" <td width=\"50%\"><input type=\"submit\" value=\"提交\"></td>\r\n");
out.write(" </tr>\r\n");out.write(" </form>\r\n");
out.write(" </table>\r\n");out.write(" </td>\r\n");
out.write(" </tr>\r\n");out.write("</table><br>\r\n");
out.write("<!---------数据输出------------->\r\n");
out.write("<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" bordercolor=\"#808080\" bordercolorlight=\"#808080\" bordercolordark=\"#808080\">\r\n");
yonghuman.yonghu_operation yonghu_select = null;
synchronized (_jspx_page_context) {
yonghu_select=(yonghuman.yonghu_operation) _jspx_page_context.getAttribute("yonghu_select", PageContext.PAGE_SCOPE);
if (yonghu_select == null){yonghu_select = new yonghuman.yonghu_operation(); _jspx_page_context.setAttribute("yonghu_select",yonghu_select,PageContext.PAGE_SCOPE);}
out.write('\r');out.write('\n');
//-----用JavaBean查询出数据,并得到总记录条数------
ResultSet rs=yonghu_select.yonghu_select_all();rs.last();
int rowCount=rs.getRow();rs.beforeFirst();
out.write(' ');out.write('\r');out.write('\n');
util.rsFenYe yonghu_rsFenYe = null;
synchronized (_jspx_page_context) {
yonghu_rsFenYe = (util.rsFenYe) _jspx_page_context.getAttribute("yonghu_rsFenYe", PageContext.PAGE_SCOPE);
if (yonghu_rsFenYe == null){yonghu_rsFenYe = new util.rsFenYe();
_jspx_page_context.setAttribute("yonghu_rsFenYe",yonghu_rsFenYe, PageContext.PAGE_SCOPE);}}out.write('\r');out.write('\n');
org.apache.jasper.runtime.JspRuntimeLibrary.handleSetProperty(_jspx_page_context.findAttribute("yonghu_rsFenYe"), "rs",rs);
out.write("\r\n");out.write("<!-------pageSize为每页记录条数--------->\r\n"); org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(_jspx_page_context.findAttribute("yonghu_rsFenYe"), "pageSize", "10", null, null, false);
out.write("\r\n");out.write(" <tr>\r\n");
out.write(" <td colspan=\"4\" align=\"center\">\r\n");
//-----从请求参数中得到当前页码------
String currentPage=request.getParameter("currentPage");
out.print(rowCount);out.write("位) \r\n");
out.write(" \t"); out.print(yonghu_rsFenYe.earn_fenyi_string("yonghuman.jsp",newString[0],newString[0]));out.write("\r\n");out.write(" </td>\r\n");out.write(" <tr>\r\n");
out.write(" <td width=\"21%\" align=\"center\">高级用户序号</td>\r\n");
out.write(" <td width=\"39%\" align=\"center\">高级用户姓名</td>\r\n");
out.write(" <td width=\"20%\" align=\"center\">修改?</td>\r\n");
out.write(" <td width=\"20%\" align=\"center\">删除?</td>\r\n");
out.write(" </tr>\r\n");out.write(" ");
for(int i=0;i<yonghu_rsFenYe.getPageSize()&&rs.next();i++){out.write("\r\n");
out.write(" <tr>\r\n");out.write(" <td align=\"center\">");
out.print(rs.getLong("yonghu_id"));out.write("</td>\r\n");
out.write(" <td align=\"center\">");out.print(rs.getString("yonghu_name"));
out.write("</td>\r\n");
out.write(" <td align=\"center\"><a href='yonghu_update1.jsp?yonghu_id=");
out.print(rs.getLong("yonghu_id"));out.write("'>修改</a></td>\r\n");
out.write(" <td align=\"center\">\r\n");
out.write("<!----------操作提示信息--------------->\r\n");
out.write("<table border=\"1\" width=\"100%\" cellspacing=\"0\" cellpadding=\"0\" bordercolor=\"#808080\" bordercolorlight=\"#808080\" bordercolordark=\"#808080\">\r\n");
out.write(" <tr>\r\n");out.write(" <td width=\"100%\">\r\n");
out.write(" <table border=\"0\" width=\"100%\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td width=\"100%\">注意:删除高级用户信息将删除所有此高级用户的所有信息。</td>\r\n");out.write(" </tr>\r\n");
out.write(" </table>\r\n");out.write(" </td>\r\n");
out.write(" </tr>\r\n");out.write("</table>\r\n");
out.write("</body>\r\n");out.write("</html>");} catch (Throwable t) {
if (!(t instanceof SkipPageException)){out = _jspx_out;
if (out != null && out.getBufferSize() != 0)
try { out.clearBuffer(); } catch (java.io.IOException e) {}
if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);}
} finally {_jspxFactory.releasePageContext(_jspx_page_context);}}}
*************************************
public final wupin index_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static final JspFactory _jspxFactory = JspFactory.getDefaultFactory();
private static java.util.List _jspx_dependants;
static _jspx_dependants = new java.util.ArrayList(1);
_jspx_dependants.add("/common/session_check.jsp");}
private javax.el.ExpressionFactory _el_expressionfactory;
<< 上一页 [11] [12] [13] [14] 下一页