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

📄 clientall.jsp

📁 自己制作的联通CRM,支持客户分类,管理,升级,积分管理等等..
💻 JSP
字号:
<%@ page language="java" pageEncoding="GBK"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<%@ 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" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<link href="${pageContext.request.contextPath}/image/main.css" rel="stylesheet" type="text/css">

<c:if test="${requestScope.list==null}">
	<c:redirect url="/clintmanage.do?tag=getalluser" />
</c:if>
<html:html lang="true"><head>
    <title>clientall.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	
	<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
	<meta name="ProgId" content="VisualStudio.HTML">
	<meta name="Originator" content="Microsoft Visual Studio .NET 7.1">
	<script src="${pageContext.request.contextPath}/show/clientmanager/Calendar.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312"><style type="text/css">
</style>

</head>
  
  <body onLoad="TextGet();">
  <html:form action="/clintmanage" method="post" styleId="form1">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
      <tr>
        <td width="7%" height="42" align="right" >号码:</td>
        <td width="9%">&nbsp;
            <html:text property="phone" size="15"/></td>
        <td width="8%" align="right">省:</td>
        <td width="22%" align="left">
		<select name="contrry" onChange="TextGet();" style="width:105px;">
          <option value="all"> 所有省 </option>
          <c:forEach var="MeetroomBen" items="${requestScope.list}">
            <option value="${MeetroomBen.aid}">${MeetroomBen.aname}</option>
          </c:forEach>
        </select></td>
        <td width="2%" align="right">市:</td>
        <td width="18%" align="left"><select name="city">
          <option value="all"> 该省的所有市 </option>
        </select></td>
        <td width="34%" align="left">&nbsp;</td>
      </tr>
      <tr>
        <td width="7%" height="43" align="right">区名:</td>
        <td width="9%" align="left">&nbsp;
            <html:text property="area" size="15"/></td>
        <td colspan="2" align="right">&nbsp;三个月话费 > 1000起始月:</td>
        <td colspan="2">&nbsp;
            <html:text property="phoneday" size="15" onclick="setDay(this);"></html:text></td>
        <td align="left">&nbsp;
            <input type="hidden" name="tag" value="queryphone">
            <input type="submit" name="button4" value="查询"> </td>
	  </tr>
    </table>
  </html:form>
  <html:form action="/clintmanage" method="post" styleId="form1">
    <table width="100%" height="131" border="1" cellpadding="0" cellspacing="0" bordercolor="#D71920">
    <tr>
      <td align="center" valign="middle"><table width="100%" border="1" cellspacing="0" id="ttc">
        <tr>
          <td width="6%" align="center" id="ttc"><input type="hidden" name="tag" value="out1">
              <input type="submit" name="button" value="导出"></td>
          <td width="15%" align="center" id="ttc"><strong>用户手机号码</strong></td>
          <td width="16%" align="center" id="ttc"><strong>用户姓名</strong></td>
          <td width="16%" align="center" id="ttc"><strong>地区</strong></td>
          <td width="15%" align="center" id="ttc"><strong>是否是会员</strong></td>
          <td width="11%" align="center" id="ttc"><strong>操作</strong></td>
        </tr>
        <c:forEach var="list" items="${requestScope.userlist}">
          <tr>
            <td id="ttc">&nbsp;
                <html:multibox property="daochu" value="${list.userid}"></html:multibox></td>
            <td id="ttc">&nbsp;${list.phone}</td>
            <td id="ttc">&nbsp;${list.username}</td>
            <td id="ttc">&nbsp;${list.area}</td>
            <c:if test="${list.ismember==1}">
              <td id="ttc">&nbsp;是</td>
            </c:if>
            <c:if test="${list.ismember==0}">
              <td id="ttc">&nbsp;否</td>
            </c:if>
            <td width="21%" id="ttc"><a href="${pageContext.request.contextPath}/clintmanage.do?tag=getuser&userid=${list.userid}">详情</a>| <a  href="${pageContext.request.contextPath}/clintmanage.do?tag=addserch">添加</a>|
              <c:if test="${list.clientmanagerid==requestScope.nid}"> <a  href="${pageContext.request.contextPath}/clintmanage.do?tag=updateserch&userid=${list.userid}">修改</a>| <a href="${pageContext.request.contextPath}/clintmanage.do?tag=deletuser&userid=${list.userid}" onClick="return window.confirm('确定要删除吗?')">删除</a> </c:if>            </td>
          </tr>
        </c:forEach>
      </table></td>
    </tr>
  </table>
  </html:form>
  <table width="100%" border="0" cellspacing="0">
    <tr>
      <td align="center"><input type="button" name="button1" value="全选" onClick="check1();"></td>
      <td align="center"><input type="button" name="button2" value="取消" onClick="nocheck1();"></td>
      <html:form action="/clintmanage" method="post" styleId="form2">
	  <td align="center">
        <input type="hidden" name="tag" value="getmyuser">
        <input type="submit" name="button5" value="我的客户">
		</td>
      </html:form>
        <html:form action="/clintmanage" method="post" styleId="form3"> 
      <td align="center"><input type="hidden" name="tag" value="getalluser">
      <input type="submit" name="button6" value="所有客户"></td>
	  </html:form>
    </tr>
  </table>
       ${requestScope.pagetool}
  </body>
  <script language="javascript">

        function check1(){
		var username=document.getElementsByName("daochu");
		for(var i=0;i<username.length;i++)
		{
			username[i].checked=true;
		}
		}
		function nocheck1(){
		var username=document.getElementsByName("daochu");
		for(var i=0;i<username.length;i++)
		{
			username[i].checked=false;
		}
		}
		
		var xmlHttp;
	function createHttpRequest(){
		if (window.ActiveXObject){
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}else if (window.XMLHttpRequest){
			xmlHttp = new XMLHttpRequest();
		}
	}	
		
	function TextGet(){
		createHttpRequest();
		var contrry = document.getElementById("contrry").value;
		var url = "${pageContext.request.contextPath}/address1.do?praid="+contrry+"&date="+new Date()+"&tag=getsmall";
		xmlHttp.open("GET",url,true);
		xmlHttp.onreadystatechange = CallBackGet;
		xmlHttp.send();
	}
		function CallBackGet(){
		var result = xmlHttp.responseXML;
		if (xmlHttp.readyState == 4){
			var userList = result.getElementsByTagName("user");
			var userSelect = document.getElementById("city");
			userSelect.length = 1;
			if (userList.length>0){
				for (var i = 0;i<userList.length;i++){
					var userBean = userList[i];
					var username = userBean.childNodes[0].firstChild.nodeValue;
				
					//加入到下拉框
					var option = new Option(username,username);
					userSelect.add(option);
				}
				
			}
			
		}
	}
		
</script>
  
</html:html>

⌨️ 快捷键说明

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