📄 custinfo.jsp
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic"%>
<%
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" />
</head>
<script type="text/javascript">
<!--
//验证数字
function funcSubmit(){
if(''==document.getElementById('cust_name').value){
alert('姓名不能为空');
return false;
}
if(''==document.getElementById('employee_id').value){
alert('请选择客服人员');
return false;
}
re=/^(0|[1-9][0-9]*)$/;
if(re.test(document.getElementById('funds').value)==false){
alert('资金需要输入数字1');
return false;
}
if(re.test(document.getElementById('pay').value)==false){
alert('定价需要输入数字');
return false;
}
return true;
}
//-->
</script>
<body class="mainbody">
<table width="100%" border="0" cellspacing="2" cellpadding="0">
<tr>
<td class="tdgriud">首页 >> 客户管理 >> 客户信息</td>
</tr>
</table>
<html:form action="/manage/custinfo" onsubmit="return funcSubmit();">
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tdborder">
<tr>
<td colspan="6" class="tdtitle">客户资料</td>
</tr>
<tr>
<td class="tdlbg" width="10%">姓名:</td>
<td class="tdrbg" width="23%">
<html:text property="cust_name" disabled="true"/></td>
<td class="tdlbg" width="10%">客服人员:</td>
<td class="tdrbg" width="23%">
<html:select property="employee_id" disabled="true">
<html:option value=""></html:option>
<html:options collection="userlist" property="id" labelProperty="employee_name"/>
</html:select>
</td>
<td class="tdlbg" width="10%">性别:</td>
<td class="tdrbg" width="23%">
<html:select property="sex" disabled="true">
<html:option value="0">女</html:option>
<html:option value="1">男</html:option>
</html:select>
</td>
</tr>
<tr>
<td class="tdlbg">地址:</td>
<td class="tdrbg">
<html:text property="address" disabled="true"/>
</td>
<td class="tdlbg">来电电话:</td>
<td class="tdrbg"><html:text property="telephone" disabled="true"></html:text></td>
<td class="tdlbg">其他电话:</td>
<td class="tdrbg"><html:text property="elesephone" disabled="true"></html:text></td>
</tr>
<tr>
<td class="tdlbg">手机号码:</td>
<td class="tdrbg"><html:text property="mobile" disabled="true"></html:text></td>
<td class="tdlbg">定价:</td>
<td class="tdrbg"><html:text property="pay" disabled="true"></html:text></td>
<td class="tdlbg">传真:</td>
<td class="tdrbg">
<html:text property="fax" disabled="true"/>
</td>
</tr>
<tr>
<td class="tdlbg">邮编:</td>
<td class="tdrbg"><html:text property="zip" disabled="true"/></td>
<td class="tdlbg">电子邮件:</td>
<td class="tdrbg"><html:text property="email" disabled="true"/></td>
<!-- <td class="tdlbg">交款方式:</td>
<td class="tdrbg">
<html:select property="pay_method">
<html:options collection="paytypelist" labelProperty="fieldname" property="fieldcode"/>
</html:select>
</td>
-->
<td class="tdlbg">资金:</td>
<td class="tdrbg"><html:text property="funds" disabled="true"/></td>
</tr>
<tr>
<td class="tdlbg">客户级别:</td>
<td class="tdrbg">
<html:select property="level" disabled="true">
<html:options collection="custlevellist" labelProperty="fieldname" property="fieldcode"/>
</html:select>
历史客户级别:
<bean:write name="custInfoForm" property="level_history"/>
</td>
<td class="tdlbg">职业:</td>
<td class="tdrbg"><html:text property="occupational" disabled="true"></html:text></td>
<td class="tdlbg">客户状态:</td>
<td class="tdrbg">
<html:select property="state" disabled="true">
<html:options collection="custstatelist" labelProperty="fieldname" property="fieldcode"/>
</html:select>
</td>
</tr>
<tr>
<td class="tdlbg">客户类别:</td>
<td class="tdrbg">
<html:select property="type" disabled="true">
<html:options collection="custtypelist" labelProperty="fieldname" property="fieldcode"/>
</html:select>
</td>
<td class="tdlbg">客户来源:</td>
<td class="tdrbg">
<html:select property="source" disabled="true">
<html:options collection="custsourcelist" labelProperty="fieldname" property="fieldcode"/>
</html:select>
</td>
<td class="tdlbg">登记日期:</td>
<td class="tdrbg"><html:text property="create_date" disabled="true"></html:text>
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.custInfoForm.create_date);return false;">
<html:img align="absmiddle" page="/include/calendar/calbtn.gif" width="34" height="22" border="0" alt=""/>
</a></td>
</tr>
<tr>
<td class="tdlbg">服务开始日期:</td>
<td class="tdrbg"><html:text property="start_date" disabled="true"></html:text>
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.custInfoForm.start_date);return false;">
<html:img align="absmiddle" page="/include/calendar/calbtn.gif" width="34" height="22" border="0" alt=""/>
</a></td>
<td class="tdlbg">服务结束日期:</td>
<td class="tdrbg"><html:text property="end_date" disabled="true"></html:text>
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.custInfoForm.end_date);return false;">
<html:img align="absmiddle" page="/include/calendar/calbtn.gif" width="34" height="22" border="0" alt=""/>
</a></td>
<td class="tdlbg"> </td>
<td class="tdrbg"> </td>
<!-- <td class="tdlbg">客户帐号:</td>
<td class="tdrbg">
<html:text property="custaccount" disabled="true"/>
</td>
-->
</tr>
<tr>
<td class="tdlbg">短信服务开始日期:</td>
<td class="tdrbg"><html:text property="message_start_date" disabled="true"></html:text>
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.custInfoForm.start_date);return false;">
<html:img align="absmiddle" page="/include/calendar/calbtn.gif" width="34" height="22" border="0" alt=""/>
</a></td>
<td class="tdlbg">短信服务结束日期:</td>
<td class="tdrbg"><html:text property="message_end_date" disabled="true"></html:text>
<a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.custInfoForm.end_date);return false;">
<html:img align="absmiddle" page="/include/calendar/calbtn.gif" width="34" height="22" border="0" alt=""/>
</a></td>
<td class="tdlbg"> </td>
<td class="tdrbg"> </td>
<!--
<td class="tdlbg">客户密码:</td>
<td class="tdrbg">
<html:text property="custpassword" disabled="true"/>
</td>
-->
</tr>
<tr>
<td class="tdlbg">客户产品、帐号以及密码:</td>
<td class="tdrbg" colspan="5">
<html:textarea property="product" cols="60" rows="10" disabled="true"></html:textarea>
</td>
</tr>
<tr>
<td class="tdrbg" colspan="6" align="center">
<!-- <input type="button" class="btn_back" name="Submit2" value="返 回" onclick="location.href='<%=basePath %>manage/custinfo.do?paramtype=list'"/> -->
<input type="button" class="btn_back" name="Submit2" value="返 回" onclick="window.close()"/></td>
</tr>
</table>
</html:form>
<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="8%" class="tdtitle">客服人员</td>
<td width="35%" class="tdtitle">客服记录</td>
<td width="5%" class="tdtitle">服务类型</td>
<td width="8%" class="tdtitle">录音文件</td>
<td width="16%" class="tdtitle">创建日期</td>
</tr>
<logic:notEmpty name="custservlist">
<logic:iterate id="custserv" name="custservlist" indexId="index">
<tr onmouseover="TdMouseOver(this);" onmouseout="TdMouseOver(this);">
<td align="center" class="tdbg">
<bean:write name="custserv" property="complaint_id" />
</td>
<td class="tdbg"><bean:write name="custserv" property="cust_name" /></td>
<td class="tdbg"><bean:write name="custserv" property="employee_name" /></td>
<td class="tdbg"><bean:write name="custserv" property="content" /></td>
<td class="tdbg">
<logic:equal name="custserv" property="service_type" value="1">
<font color="blue">服务</font>
</logic:equal>
<logic:equal name="custserv" property="service_type" value="2">
<font color="red">投诉</font>
</logic:equal>
</td>
<td class="tdbg">
<html:link page="/upload/${custserv.file_name}">
<bean:write name="custserv" property="file_name" />
</html:link>
</td>
<td class="tdbg"><bean:write name="custserv" property="create_date" /></td>
</tr>
</logic:iterate>
</logic:notEmpty>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -