📄 managerassign.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"%>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<html:base />
<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 href="../../image/main.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath }/image/shh.css"
rel="stylesheet" type="text/css">
<style type="text/css">
input {
font-size:12px;
}
</style>
<script type="text/javascript">
function selectAllchk(){
var t1 = document.getElementById("t1");
var objs = document.getElementsByTagName("input");
var chkAllBox = document.getElementById("selectAll");
for(var i=0;i<objs.length;i++){
if(objs[i].type=="checkbox"){
objs[i].checked = chkAllBox.checked;
}
}
}
function assignManager(){
var task = document.getElementById("task");
var objs = document.getElementsByTagName("input");
var clientmanagerid = document.getElementById("clientmanagerid");
var tmp = 0;
for(var i=0;i<objs.length;i++){
if(objs[i].type=="checkbox"){
if(objs[i].checked==true){
tmp++;
}
}
}
if(tmp==0){
alert("至少选择一个在线用户");
return false;
}
else if(clientmanagerid.value==""){
alert("请选择一个所属的客户经理");
return false;
}
task.value="assignManager";
form1.submit();
}
function showAssign(){
var clientmanagerid = document.getElementById("clientmanagerid");
var task = document.getElementById("task");
if(clientmanagerid.value==""){
alert("请选择一个客户经理");
return false;
}
task.value="list";
form1.submit();
}
function list(){
var task = document.getElementById("task");
task.value="list";
form1.submit();
}
</script>
</head>
<body>
<html:form action="/managerAssign" styleId="form1">
<html:hidden property="task" styleId="task"/>
<table width="760px" border="1" align="center" cellpadding="0"
cellspacing="0" bordercolor="#D71920">
<tr>
<td>
<br>
<table width="740px" border="0" align="center" cellpadding="0" id="ttc"
cellspacing="0">
<tr height="20">
<td colspan="3">
</td>
</tr>
<tr>
<td width="70" height="27" align="right">
号码:
</td>
<td width="170">
<html:text property="phone"></html:text>
</td>
<td colspan="3">
</td>
</tr>
<tr>
<td height="27" align="right">
套餐:
</td>
<td>
<html:select property="mainoption">
<html:option value="">--------请选择--------</html:option>
</html:select>
</td>
<td width="100" align="right">
业务类型:
</td>
<td width="170">
<html:select property="optiontype">
<html:option value="">--------请选择--------</html:option>
<c:forEach var="optiontype" items="${optiontypeList}">
<html:option value="${optiontype.typename}">${optiontype.typename}</html:option>
</c:forEach>
</html:select>
</td>
<td width="60" rowspan="2" align="left" valign="middle">
<input name="" value="查询" type="button" onclick="list();" style="width: 50px;height: 40px;">
</td>
</tr>
<tr>
<td height="27" align="right">
积分:
</td>
<td>
<html:select property="integral">
<html:option value="">--------请选择--------</html:option>
<c:forEach var="integral" items="${integralList}">
<html:option value="${integral.sname}">${integral.sname}</html:option>
</c:forEach>
</html:select>
分
</td>
<td align="right">
近三个月平均话费:
</td>
<td>
<html:select property="fee">
<html:option value="">--------请选择--------</html:option>
<c:forEach var="fee" items="${feeList}">
<html:option value="${fee.sname}">${fee.sname}</html:option>
</c:forEach>
</html:select>
元
</td>
</tr>
<tr height="20">
<td colspan="3">
</td>
</tr>
</table>
<br />
<div style="height: 300;">
<table width="740" border="0" align="center" cellpadding="0"
cellspacing="0" id="t1">
<tr class="ttop">
<td width="30" align="right">
全选
</td>
<td width="10" height="27" align="right">
<input type="checkbox" id="selectAll" onclick="selectAllchk();">
</td>
<td width="60" align="center">
号码
</td>
<td width="60" align="center">
姓名
</td>
<td width="60" align="center">
所在城市
</td>
<td width="60" align="center">
区/县
</td>
<td width="60" align="center">
套餐
</td>
<td width="90" align="center">
业务类型
</td>
<td width="60" align="center">
客户经理
</td>
<td width="60" align="center">
积分
</td>
<td width="60" align="center">
近三个月平均话费
</td>
</tr>
<c:forEach var="userinfo" items="${userInfoList}">
<tr>
<td width="30" id="ttc" height="27">
</td>
<td width="10" align="right" id="ttc">
<html:multibox property="selectUser" value="${userinfo.userid}" styleId="selectUser"></html:multibox>
</td>
<td width="60" align="center" id="ttc">
${userinfo.phone }
</td>
<td width="60" align="center" id="ttc">
${userinfo.username }
</td>
<td width="60" align="center" id="ttc">
${userinfo.city }
</td>
<td width="60" align="center" id="ttc">
${userinfo.area }
</td>
<td width="60" align="center" id="ttc">
${userinfo.mainoption }
</td>
<td width="90" align="center" id="ttc">
${userinfo.optiontype }
</td>
<td width="60" align="center" id="ttc">
${userinfo.clientmanagerid }
</td>
<td width="60" align="center" id="ttc">
${userinfo.addintegral }
</td>
<td width="60" align="center" id="ttc">
${userinfo.fee }
</td>
</tr>
</c:forEach>
</table>
</div>
<br />
<table width="740px" border="0" align="center" cellpadding="0"
cellspacing="0">
<tr>
<td height="27" align="center">
${pagetool }
</td>
</tr>
</table>
<br />
<table width="740px" border="0" align="center" cellpadding="0"
cellspacing="0" id="ttc">
<tr height="27">
<td colspan="3">
</td>
</tr>
<tr>
<td height="27" align="center">
<html:select property="clientmanagerid" styleId="clientmanagerid">
<html:option value="">--------选择客户经理--------</html:option>
<c:forEach var="user" items="${systemUserInfoList}">
<html:option value="${user.nid}">${user.username}</html:option>
</c:forEach>
</html:select>
<input type="button" value=" 确认分配 " onclick="return assignManager();"/>
<input type="button" value=" 查看所分配的客户信息 " onclick="showAssign();"/>
</td>
</tr>
<tr height="27">
<td colspan="3">
</td>
</tr>
</table>
<br />
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -