📄 showoneempallclientinfo.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"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
<head>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
margin-left: 6px;
margin-top: 5px;
margin-right: 0px;
margin-bottom: 0px;
}
a:link {
color: #000000;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #333333;
}
a:active {
text-decoration: none;
color: #333333;
}
-->
</style>
<html:base />
<title>显示我的客户</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">
-->
<script src="<%=request.getContextPath() %>/js/crm.js" language="JavaScript"></script>
<script type="text/javascript">
function allsel(){
if(document.getElementsByName("chkpla")!=null){
b=eval(document.getElementsByName("chkpla"));
b_all=eval(document.getElementsByName("all")[0]);
if(b_all.checked == true){
b.checked=true;//长度为1时
for(var i=0;i<b.length;i++){
b[i].checked=true;
}
}
else if(b_all.checked==false){
b.checked=false;
for(var i=0;i<b.length;i++){
b[i].checked=false;
}
}
}
}
function checkdel1(){
var sel = document.getElementByName("chkpla").value;
var check2 = document.getElementsByName("chkpla");
window.alert(sel);
var a=new Array();
var objYN="";
objYN=false;
for(var j=0;j<check2.length;j++){
if(check2[j].checked){
a[j]=check2[j].value;
objYN= true;
}
}
if(objYN== false){
alert('请勾选用户!');
}else{
if(confirm("你确定要删除所勾选的用户吗?")){
return true;
}
return false;
}
}
function checkdel(){
var sel = document.clientInfoForm.elements("chkpla").value;
var check2 = document.getElementsByName("chkpla");
var a=new Array();
var objYN="";
objYN=false;
for(var j=0;j<check2.length;j++){
if(check2[j].checked){
a[j]=check2[j].value;
objYN= true;
}
}
if(objYN== false){
alert('请勾选用户!');
}else{
if(confirm("你确定要删除所勾选的用户吗?")){
return true;
}
return false;
}
}
function delMuchClientInfo(){
frs.action = "<%=request.getContextPath()%>/deleteMuchClientInfo.do";
frs.submit();
}
function ascSort(){
var aa = document.getElementsByName("select")[0].value;
window.location="/oa/showOneEmpAllClientInfoAsc.do?sortId=" + aa;
}
function descSort(){
var aa = document.getElementsByName("select")[0].value;
window.location="/oa/showOneEmpAllClientInfoDesc.do?sortId=" + aa;
}
function isNumberString (InString,RefString)
{
for (Count=0; Count < InString.length; Count++)
{
TempChar= InString.substring (Count, Count+1);
if (RefString.indexOf (TempChar, 0)==-1)
return (false);
}
return (true);
}
function showClientInfo()
{
var page1 = document.getElementById("appointPage").value;
if(isNumberString(page1,"0123456789"))
{
window.location="/oa/showOneEmpAllClientInfo.do?appointPage=" + page1;
}else
{
alert("请输入数字!");
document.getElementById("appointPage").value = ""
}
}
</script>
</head>
<body>
<form action="" method="post" name="fr" style="display:none;inline"></form>
<table width="729" border="0" cellpadding="0" cellspacing="1">
<tr>
<td width="727" height="25">
我的客户信息
</td>
<td width="130">
<select name="select">
<option value="client_id" selected="selected">
按客户编号
</option>
<option value="client_state">
按客户级别
</option>
<option value="server_mode">
按客户状态
</option>
</select>
</td>
<td width="30" style="cursor: hand;">
<div align="center" >
<img src="<%=request.getContextPath() %>/image/0550376.gif" width="16" height="16"
onclick="ascSort()" />
</div>
</td>
<td width="30" style="cursor: hand;">
<div align="center">
<img src="<%=request.getContextPath() %>/image/0550374.gif" width="16" height="16"
onclick="descSort()" />
</div>
</td>
</tr>
</table>
<html:form action="/deleteMuchClientInfo.do" method="post">
<table width="730" border="1" cellpadding="0" cellspacing="1"
bgcolor="#3868F8" id="bb">
<tr>
<td width="36" height="22" bgcolor="#A4B5E3">
<div align="center">
选择
</div>
</td>
<td width="56" bgcolor="#A4B5E3">
<div align="center">
客户编号
</div>
</td>
<td width="226" bgcolor="#A4B5E3" onclick="mySort(2,'bb')"
style="cursor: hand;">
<div align="center">
客户名称
</div>
</td>
<td width="44" bgcolor="#A4B5E3">
<div align="center">
联系人
</div>
</td>
<td width="89" bgcolor="#A4B5E3">
<div align="center">
<p>
固定电话
</p>
</div>
</td>
<td width="60" bgcolor="#A4B5E3" onclick="mySort(5,'bb')"
style="cursor: hand;">
<div align="center">
客户级别
</div>
</td>
<td width="60" bgcolor="#A4B5E3" onclick="mySort(6,'bb')"
style="cursor: hand;">
<div align="center">
服务状态
</div>
</td>
<td width="59" bgcolor="#A4B5E3">
<div align="center">
录入编号
</div>
</td>
<td width="90" bgcolor="#A4B5E3">
<div align="center">
操 作
</div>
</td>
</tr>
<logic:notEmpty name="clientInfoList">
<logic:iterate id="clientInfo" name="clientInfoList">
<tr>
<td height="20" bgcolor="#FFFFFF">
<div align="center">
<input type="checkbox" name="chkpla"
value="<bean:write name="clientInfo" property="clientId"/>" />
</div>
</td>
<td height="20" bgcolor="#FFFFFF">
<bean:write name="clientInfo" property="clientId" />
</td>
<td bgcolor="#FFFFFF"
style="padding-left:2px; padding-right:2px; padding-top:2px; padding-bottom:2px;">
<bean:write name="clientInfo" property="clientName" />
</td>
<td bgcolor="#FFFFFF">
<bean:write name="clientInfo" property="linkman" />
</td>
<td bgcolor="#FFFFFF">
<div align="center">
<bean:write name="clientInfo" property="rivetPhone" />
</div>
</td>
<td bgcolor="#FFFFFF">
<bean:write name="clientInfo" property="clientState" />
</td>
<td bgcolor="#FFFFFF">
<bean:write name="clientInfo" property="serverMode" />
</td>
<td bgcolor="#FFFFFF">
<bean:write name="clientInfo" property="empId" />
</td>
<td bgcolor="#FFFFFF">
<div align="center">
<html:link page="/showOneClientInfo.do" paramId="clientId"
paramName="clientInfo" paramProperty="clientId">查看</html:link>
<html:link page="/attornFindClientInfo.do" paramId="clientId"
paramName="clientInfo" paramProperty="clientId">转让</html:link>
<%--<html:link page="/deleteClientInfo.do" paramId="clientId"
paramName="clientInfo" paramProperty="clientId" onclick="return checkdel2();">删除</html:link>
--%></div>
</td>
</tr>
</logic:iterate>
</logic:notEmpty>
</table>
<table width="725" border="0" cellpadding="0" cellspacing="1">
<tr>
<td width="123" height="25">
<%--<div align="left">
<input type="checkbox" name="all" value="checkbox"
onclick="allsel()" />
全选
<input type="submit" value="批量删除" />
<html:submit onclick="return checkdel()" value="批量删除"></html:submit>
</div>
--%></td>
<td width="600" height="25">
<div align="right">
<html:link page="/showOneEmpAllClientInfo.do"
paramId="currentPage" paramName="pageBean"
paramProperty="firstPage">首页</html:link>
<html:link page="/showOneEmpAllClientInfo.do"
paramId="currentPage" paramName="pageBean"
paramProperty="lastPage">尾页</html:link>
<html:link page="/showOneEmpAllClientInfo.do"
paramId="currentPage" paramName="pageBean"
paramProperty="downPage">下一页</html:link>
<html:link page="/showOneEmpAllClientInfo.do"
paramId="currentPage" paramName="pageBean" paramProperty="upPage">上一页</html:link>
当前为第
<font color="red"> <bean:write name="pageBean"
property="currentPage" /> </font>页 总共
<font color="red"> <bean:write name="pageBean"
property="totalRecoder" /> </font>条记录 总页面数
<font color="red"> <bean:write name="pageBean"
property="totalPages" /> </font>页 跳转至
<input type="text" id="appointPage" size="2">
页
<input type="button" value="GO"
onclick="return showClientInfo(); ">
</div>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -