⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 paramlist.jsp

📁 java阿里巴巴代码
💻 JSP
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"

"http://www.w3.org/TR/html4/loose.dtd">
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.*"%>
<jsp:useBean id="comm" class="com.saas.biz.warnparaMgr.WarnparaInfo" scope="page" />
<jsp:useBean id="bean" class="com.saas.biz.commen.ParamethodMgr" scope="page" />
<%
	String user_id="",iStart ="0",warn_type="",mod_id="";
	if (request.getParameter("iStart") != null)
    {
        iStart = request.getParameter("iStart");
    }
    if (request.getParameter("warn_type") != null)
    {
        warn_type = request.getParameter("warn_type");
    }
     if (request.getParameter("user_id") != null)
    {
        user_id = request.getParameter("user_id");
    }
	
	HashMap paraMap=bean.getCompareInfoByCode("CRM","mod_type");
	ArrayList list = comm.getParamListByType(user_id,warn_type,Integer.parseInt(iStart));
	int counter=comm.getParamCountByType(user_id,warn_type);
    int pages=counter/20+1;
	int pageUp=0,pageDown=0;
	int currenPage=Integer.valueOf(iStart).intValue();
	if(pages>currenPage)
	{
	   if(currenPage>0)
	   {
		pageUp=currenPage-1;
	   }
		pageDown=currenPage+1;
	}
    else if(pages==currenPage)
	{
	   pageUp=currenPage-1;
	   pageDown=currenPage;
	}
%>
<html>
	<head>
		<title>Xsaas-客户管理系统</title>
		<link href="/style/layout.css" rel="stylesheet" type="text/css">
		<style type="text/css">
		#tr{
		 background-color:#f6f6f6; color:#000000;font-weight:bold; font-size:12px;
		}
		#tr1{
		 background-color:#f6f6f6; color:#000000; font-size:12px;
		}
		#tr2{
		 background-color:#ffffff; color:#000000; font-size:12px;
		}
		</style>
		<script type="text/javascript">
		  function deleteDefine(){
			 if(window.confirm("确定要删除所选择记录?")){
			  return true;
			 }else{
			 return false;
		 }
		}
		</script>
	</head>
	<body>
		<table width=100% border=0 cellpadding=1 cellspacing=1 align=center bgcolor="#dddddd">
		<tr id="tr" style="background-color:#f6f6f6; color:#000000;font-weight:bold; font-size:12px;">
			<td  align="center" width="20%">预警参数名称</td>
			<td  align="center" width="15%">预警类型</td>
			<td  align="center" width="10%">告警值</td>
			<td  align="center" width="15%">告警方式</td>
			<td  align="center" width="10%">删除</td>
		</tr>
		<%
		 if(list !=null && list.size()>0){
		  for(int i=0;i<list.size();i++){
		   HashMap map=(HashMap)list.get(i);
		   String param_id=map.get("param_id").toString();
		   String param_name=map.get("param_name").toString();
		   String sum_type="",param_door="",mod_type="";
		   if(map.get("sum_type")!=null){
		   sum_type=map.get("sum_type").toString();
		   if(sum_type=="0" || sum_type.equals("0")){sum_type="E-mail";}
		    else if(sum_type=="1" || sum_type.equals("1")){sum_type="底部通知";}
		    else if(sum_type=="2" || sum_type.equals("2")){sum_type="手工查询";}
		   }
		   if(map.get("param_door")!=null){
		     param_door=map.get("param_door").toString();
		   }
		   if(map.get("mod_type")!=null){
		     mod_type=map.get("mod_type").toString();
		     if(paraMap.get(mod_type)!=null){
		       mod_type=paraMap.get(mod_type).toString();
		     }
		   }
		   if(i%2==0){
		    %><tr id="tr2" style="background-color:#f6f6f6; color:#000000; font-size:12px"><%
		   }else{
		    %><tr id="tr1" style="background-color:#ffffff; color:#000000;  font-size:12px;"><%
		   }
		%>
			<td  align="left" width="20%"><a href="viewWarnParam.jsp?param_id=<%=param_id%>" TARGET=appwin onclick="mydefss()"><%=param_name%></a></td>
			<td  align="left" width="15%"><%=mod_type%></td>
			<td  align="left" width="10%"><%=param_door%></td>
			<td  align="left" width="15%"><%=sum_type%></td>
			<td  align="center" width="10%"><a href="/doTradeReg.do?trade_type_code=1176&param_id=<%=param_id%>" target="_self" onclick="return deleteDefine()"><img src=/img/del.gif width=16 height=16 border=0 alt="删除"></a></td>
			</tr>
		<%}
		}%>
		<tr>

																		<td  align="left" colspan="2" style="font-weight:normal; padding:2px 5px;">共<%=counter%>条 &nbsp;第<%=Integer.parseInt(iStart)+1 %>页&nbsp;&nbsp;共<%=pages%>页</td>
											
																		<td  align="right" colspan="3"  style=" padding:2px 5px;">
																		<a href="javascript:setparamList('<%=warn_type%>','0')">首页 </a>&nbsp; &nbsp;
																		<% 
																			if(Integer.parseInt(iStart)>0){
																		%>
																			<a href="javascript:setparamList('<%=warn_type%>','<%=pageUp%>')">上一页</a> &nbsp;
																		<%
																			}
																			if(Integer.parseInt(iStart)<pages-1){
																		%>
																			<a href="javascript:setparamList('<%=warn_type%>','<%=pageDown%>')">下一页 </a>&nbsp; 
																		<%
																			}
																		%>
																		<a  href="javascript:setparamList('<%=warn_type%>','<%=pages%>')">尾页</a></td>
											
															         </tr>
		
		
	</table>
	</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -