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

📄 blackcustlist.jsp

📁 JAVA实现的中小型企业CRM客户关系管理系统
💻 JSP
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<jsp:directive.page import="com.crm.common.CommUtil"/>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<base href="<%=basePath %>"/>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>所有黑名单列表</title>
<link href="<%=basePath %>skin/default/default.css" rel="stylesheet" type="text/css" />
<script src="<%=basePath %>js/util.js" language="javascript" type="text/javascript"></script>
<script>
	function updateState(state,id){
		var str = "";
		if(state == '2'){
			str = "确定要将该客户从黑名单中取消?";
		}else if(state == '0'){
			str = "确定要将该客户加入到黑名单中?";
		}
		if(confirm(str)){
			location.href='<%=basePath %>manage/custinfo.do?paramtype=updateState&state=' + state + '&id=' + id;
		}
	}
</script>
</head>

<body class="mainbody">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td class="tdgriud">首页&nbsp;&gt;&gt;&nbsp;客户管理&nbsp;&gt;&gt;&nbsp;黑名单客户列表</td>
    <td class="tdgriud" align="right">
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tdborder">
  <tr>
    <td width="8%" class="tdtitle">编号</td>
    <td width="8%" class="tdtitle">客户姓名</td>
    <td width="6%" class="tdtitle">性别</td>
    <td width="8%" class="tdtitle">客户资金</td>
    <td width="7%" class="tdtitle">定价</td>
    <td width="14%" class="tdtitle">开始日期</td>
    <td width="14%" class="tdtitle">结束日期</td>
    <td width="7%" class="tdtitle">客户类型</td>
    <td width="7%" class="tdtitle">客户级别</td>
    <td width="7%" class="tdtitle">客户状态</td>
    <td width="7%" class="tdtitle">客服人员</td>    
    <td width="7%" class="tdtitle">取消黑名单</td>
  </tr>
  <logic:notEmpty name="custinfolist"> 
  <logic:iterate id="custinfo" name="custinfolist" indexId="index">
  <tr onmouseover="TdMouseOver(this);" onmouseout="TdMouseOver(this);" ondblclick="window.open('<%=basePath %>manage/custinfo.do?paramtype=detail&id=<bean:write property="id" name="custinfo"/>','_new')">
    <td align="center" class="tdbg">
    <bean:write name="custinfo" property="id"/>
    </td>
    <td class="tdbg" style="cursor:hand;" onclick="window.open('<%=basePath %>manage/custinfo.do?paramtype=detail&id=<bean:write property="id" name="custinfo"/>','_new')">
    	<u><bean:write name="custinfo" property="cust_name" /></u>
    </td>    
    <td class="tdbg"><bean:write name="custinfo" property="sex_name" /></td>
    <td class="tdbg"><bean:write name="custinfo" property="funds" /></td>
    <td class="tdbg"><bean:write name="custinfo" property="pay" /></td>
    <td class="tdbg"><bean:write name="custinfo" property="start_date" /></td>
    <td class="tdbg"><bean:write name="custinfo" property="end_date" /></td>
    <td class="tdbg"><bean:write name="custinfo" property="type_name" /></td>
    <td class="tdbg"><bean:write name="custinfo" property="level_name" /></td>
    <td class="tdbg"><bean:write name="custinfo" property="state_name" /></td>
    <td class="tdbg">
    <logic:empty name="custinfo" property="employee_name">
	&nbsp;
    </logic:empty>
    <bean:write name="custinfo" property="employee_name" />
    
    </td>    
    <td align="center" class="tdbg">
   
              <%
				if(CommUtil.hasRight(session,"10205")){
			  %>     
    <input type="button" value="取消黑名单" title="取消黑名单" onclick="updateState('2','<bean:write property="id" name="custinfo"/>')"/>&nbsp;
     	<%} %>
    </td>
  </tr>
  </logic:iterate>  
  </logic:notEmpty>  
</table>
<logic:present name="pagetool">  
    <bean:write name="pagetool" filter="false"/>
   </logic:present>
</body>
</html>

⌨️ 快捷键说明

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