busigatewaypalt_jsp.java
来自「jsp_javabean+tomcat的web管理系统!」· Java 代码 · 共 378 行 · 第 1/2 页
JAVA
378 行
package org.apache.jsp.config;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import java.sql.*;
import msrv.Pagination;;
public final class busiGatewayPalt_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
private static java.util.Vector _jspx_dependants;
static {
_jspx_dependants = new java.util.Vector(1);
_jspx_dependants.add("/config/../verifys.inc");
}
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,
"", 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');
out.write('\n');
out.write('\r');
out.write('\n');
msrv.PurviewVerify pv = null;
synchronized (_jspx_page_context) {
pv = (msrv.PurviewVerify) _jspx_page_context.getAttribute("pv", PageContext.PAGE_SCOPE);
if (pv == null){
pv = new msrv.PurviewVerify();
_jspx_page_context.setAttribute("pv", pv, PageContext.PAGE_SCOPE);
}
}
out.write('\r');
out.write('\n');
String msrvUserID="",projectID="",contextPath="",relativelyURI="",relativelyFile="";
if(session.getAttribute("msrvUserID")==null||session.getAttribute("msrvUserID").equals(""))
{
out.print("<script>alert('非法进入');window.location='main.jsp';window.parent.carnoc.location='left.jsp'</script>");
return;
}else{
msrvUserID=(String)session.getAttribute("msrvUserID");
contextPath=request.getContextPath();
relativelyURI=request.getRequestURI();
relativelyFile=relativelyURI.substring(contextPath.length()+1,relativelyURI.length());
}
pv.init(Integer.parseInt(msrvUserID),relativelyFile);
if(!pv.getViewPurview()){
out.print("<script>alert('你不具有此项权限,请与管理员联系!');</script>");
return;
}
out.write('\r');
out.write('\n');
msrv.NDBConn conn = null;
synchronized (_jspx_page_context) {
conn = (msrv.NDBConn) _jspx_page_context.getAttribute("conn", PageContext.PAGE_SCOPE);
if (conn == null){
conn = new msrv.NDBConn();
_jspx_page_context.setAttribute("conn", conn, PageContext.PAGE_SCOPE);
}
}
out.write("\r\n");
out.write("<html>\r\n");
out.write("<head>\r\n");
out.write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=gb2312\">\r\n");
out.write("<title>无标题文档</title>\r\n");
out.write("<style type=\"text/css\">\r\n");
out.write("<!--\r\n");
out.write("body {\r\n");
out.write("\tmargin-left: 0px;\r\n");
out.write("\tmargin-top: 0px;\r\n");
out.write("\tmargin-right: 0px;\r\n");
out.write("}\r\n");
out.write(".style1 {color: #FFFFFF}\r\n");
out.write("-->\r\n");
out.write("</style>\r\n");
out.write("<link href=\"../css/all.css\" rel=\"stylesheet\" type=\"text/css\">\r\n");
out.write("<script language=\"javascript\">\r\n");
out.write(" //分页跳转\r\n");
out.write(" function gotoPage(pageNum){\r\n");
out.write("\t document.pagiNation.pageNum.value=pageNum;\r\n");
out.write("\t document.pagiNation.submit();\r\n");
out.write("\t}\r\n");
out.write("\tfunction deleteConfirm(url){\r\n");
out.write("\t if(confirm(\"确认要删除此项吗?\")){\r\n");
out.write("\t window.location=url;\r\n");
out.write("\t }\r\n");
out.write("\t}\r\n");
out.write("</script>\r\n");
out.write("</head>\r\n");
out.write("\r\n");
out.write("<body>\r\n");
String sql="",gateway="";
ResultSet rs=null;
sql="select id,gatewayMark,gatewayName,gatewayType,corpId,serviceId,helpOrder,helpReturn,testOrder,testReturn,freeCode,allCancelReturn,errReturn,free_hour,charge_day,send_day,send_hour,fee_type,msg_type,mo_relate_to_mt_flag,gateway_status,send_interval from megajoysms.dbo.gateway_refer order by gatewayType,gatewayMark";
try{
rs=conn.executeQuery(sql);
}catch(SQLException ex){out.println(ex.getMessage());}
Pagination pageN=null; //分页
int pageNum=1,rows=0,pageSize=0; //页码及行码,页尺寸
try{
pageN=new Pagination(rs);
}catch(Exception ex){out.println(ex.getMessage());}
if(request.getParameter("pageSize")!=null){ //设置页面尺寸
pageSize=Integer.parseInt(request.getParameter("pageSize"));
}else pageSize=20;
pageN.setPageSize(pageSize);
if(request.getParameter("pageNum")!=null){ //设置页码
pageNum=Integer.parseInt(request.getParameter("pageNum"));
if(pageNum<=0) pageNum=1;
}
pageN.gotoPage(pageNum);
out.write("\r\n");
out.write("<table width=\"1391\" height=\"100%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#808080\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td height=\"23\"> <span class=\"style1\">后台管理--业务处理平台--网关配置表</span></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr>\r\n");
out.write(" <td align=\"center\" valign=\"top\" bgcolor=\"#FFFFFF\"><br> <table width=\"98%\" border=\"0\" cellpadding=\"0\" cellspacing=\"1\" bgcolor=\"#CCCCCC\">\r\n");
out.write(" <tr bgcolor=\"#F2F2F2\">\r\n");
out.write(" <td height=\"20\" colspan=\"23\">\r\n");
out.write(" <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\r\n");
out.write(" <tr>\r\n");
out.write(" <td> 网关列表</td>\r\n");
out.write(" <td align=\"right\"><a href=\"addGateway.jsp\">添加</a> </td>\r\n");
out.write(" </tr>\r\n");
out.write(" </table></td>\r\n");
out.write(" </tr>\r\n");
out.write(" <tr align=\"center\">\r\n");
out.write(" <td width=\"2%\" height=\"17\" bgcolor=\"#FFFFFF\"> 流水号</td>\r\n");
out.write(" <td width=\"3%\" bgcolor=\"#FFFFFF\">网关标识</td>\r\n");
out.write(" <td width=\"3%\" bgcolor=\"#FFFFFF\">网关名称</td>\r\n");
out.write(" <td width=\"4%\" bgcolor=\"#FFFFFF\">网关类型</td>\r\n");
out.write(" <td width=\"3%\" bgcolor=\"#FFFFFF\">公司代码</td>\r\n");
out.write(" <td width=\"3%\" bgcolor=\"#FFFFFF\">接入号码</td>\r\n");
out.write(" <td width=\"3%\" bgcolor=\"#FFFFFF\">帮助指令</td>\r\n");
out.write(" <td width=\"8%\" bgcolor=\"#FFFFFF\">帮助菜单</td>\r\n");
out.write(" <td width=\"3%\" bgcolor=\"#FFFFFF\">测试指令</td>\r\n");
out.write(" <td width=\"4%\" bgcolor=\"#FFFFFF\">测试回复</td>\r\n");
out.write(" <td width=\"3%\" bgcolor=\"#FFFFFF\">免费代码</td>\r\n");
out.write(" <td width=\"4%\" bgcolor=\"#FFFFFF\">取消所有回复</td>\r\n");
out.write(" <td width=\"12%\" bgcolor=\"#FFFFFF\">错误指令回复</td>\r\n");
out.write(" <td width=\"4%\" bgcolor=\"#FFFFFF\">免费时间</td>\r\n");
out.write(" <td width=\"6%\" bgcolor=\"#FFFFFF\">开始收费日期</td>\r\n");
out.write(" <td width=\"4%\" bgcolor=\"#FFFFFF\">发送日期</td>\r\n");
out.write(" <td width=\"4%\" bgcolor=\"#FFFFFF\">发送时间</td>\r\n");
out.write(" <td width=\"4%\" bgcolor=\"#FFFFFF\">收费类型</td>\r\n");
out.write(" <td width=\"4%\" bgcolor=\"#FFFFFF\">消息类型</td>\r\n");
out.write(" <td width=\"4%\" bgcolor=\"#FFFFFF\">上,下行消息关系</td>\r\n");
out.write(" <td width=\"4%\" bgcolor=\"#FFFFFF\">网关状态</td>\r\n");
out.write(" <td width=\"4%\" bgcolor=\"#FFFFFF\">发送间隔</td>\r\n");
out.write(" <td width=\"7%\" bgcolor=\"#FFFFFF\">操作</td>\r\n");
out.write(" </tr>\r\n");
out.write("\t ");
if(pageN.getRowsCount()>0){
do{
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?