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

📄 custinfoadd.jsp

📁 JAVA实现的中小型企业CRM客户关系管理系统
💻 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('资金需要输入数字');
			return false;
		}
		if(re.test(document.getElementById('pay').value)==false){
			alert('定价需要输入数字');
			return false;
		}	
		return true;		
	}
//-->
</script>
<body class="mainbody">
<html:form action="/manage/custinfo" onsubmit="return funcSubmit()">
<html:hidden property="paramtype"/>
<html:hidden property="id"/>
<table width="100%" border="0" cellspacing="2" cellpadding="0">
  <tr>
    <td class="tdgriud">
    首页&nbsp;&gt;&gt;&nbsp;
    客户管理&nbsp;&gt;&gt;&nbsp;
    客户信息<logic:equal property="paramtype" name="custInfoForm" value="initinsert">添加</logic:equal>
    <logic:equal property="paramtype" name="custInfoForm" value="initupdate">修改</logic:equal>
    </td>
  </tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0" class="tdborder">
  <COLGROUP>
	  <COL WIDTH="15%" align="left">
	  <COL WIDTH="35%" align="left">
	  <COL WIDTH="15%" align="left">
	  <COL WIDTH="35%" align="left"> 
  <COLGROUP>
  <tr>
    <td colspan="4" class="tdtitle">客户资料<logic:equal property="paramtype" name="custInfoForm" value="initinsert">添加</logic:equal>
    <logic:equal property="paramtype" name="custInfoForm" value="initupdate">修改</logic:equal></td>
  </tr>
  <tr>
    <td class="tdlbg">姓名:</td>
    <td class="tdrbg">
    <html:text property="cust_name"/></td>
    <td class="tdlbg">客服人员:</td>
    <td class="tdrbg">
    	<html:select property="employee_id">
    		<html:option value=""></html:option>
    		<html:options collection="userlist" property="id" labelProperty="employee_name"/>
    	</html:select>
    	
    </td>
  </tr>
  <tr>
    <td class="tdlbg">性别:</td>
    <td class="tdrbg">
    <html:select property="sex">
    	<html:option value="0">女</html:option>
    	<html:option value="1">男</html:option>
    </html:select>
    </td>
    <td class="tdlbg">地址:</td>
    <td class="tdrbg">
	<html:text property="address"/>
    </td>
  </tr>
  <tr>
    <td class="tdlbg">来电电话:</td>
    <td class="tdrbg"><html:text property="telephone"></html:text></td>
    <td class="tdlbg">其他电话:</td>
    <td class="tdrbg"><html:text property="elesephone"></html:text></td>
  </tr>
  <tr>
    <td class="tdlbg">手机号码:</td>
    <td class="tdrbg"><html:text property="mobile"></html:text></td>
    <td class="tdlbg">定价:</td>
    <td class="tdrbg"><html:text property="pay"></html:text></td>
  </tr>

  <tr>
    <td class="tdlbg">传真:</td>
    <td class="tdrbg">
	<html:text property="fax"/>
	</td>
    <td class="tdlbg">邮编:</td>
    <td class="tdrbg"><html:text property="zip"/></td>
  </tr>
  <tr>
    <td class="tdlbg">电子邮件:</td>
    <td class="tdrbg"><html:text property="email"/></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="occupational"></html:text></td>
 	
  </tr>
  <tr>
    <td class="tdlbg">资金:</td>
    <td class="tdrbg"><html:text property="funds"/></td>
    <td class="tdlbg">客户状态:</td>
    <td class="tdrbg">
	<html:select property="state">
		<html:options collection="custstatelist" labelProperty="fieldname" property="fieldcode"/>
    </html:select>
	</td>
  </tr>
  <tr>
    <td class="tdlbg">客户级别:</td>
    <td class="tdrbg">
	<html:select property="level">
		<html:options collection="custlevellist" labelProperty="fieldname" property="fieldcode"/>
    </html:select>
    <logic:equal property="paramtype" name="custInfoForm" value="update">
    <html:hidden property="old_level"/>
    <html:hidden property="old_level_name"/>    	
    	&nbsp;历史级别:<bean:write name="custInfoForm" property="level_history"/>
    </logic:equal>
	</td>
    <td class="tdlbg">客户来源:</td>
    <td class="tdrbg">
    <html:select property="source">
		<html:options collection="custsourcelist" labelProperty="fieldname" property="fieldcode"/>
    </html:select>
	</td>
  </tr>
  <tr>
    <td class="tdlbg">客户类别:</td>
    <td class="tdrbg">
    <html:select property="type">
		<html:options collection="custtypelist" labelProperty="fieldname" property="fieldcode"/>
    </html:select>
	</td>
    <td class="tdlbg">登记日期:</td>
    <td class="tdrbg"><html:text property="create_date"></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"></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"></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>
  </tr>
  <tr>
    <td class="tdlbg">短信服务开始日期:</td>
    <td class="tdrbg"><html:text property="message_start_date"></html:text>
    <a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.custInfoForm.message_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"></html:text>
    <a href="javascript:void(0)" onclick="if(self.gfPop)gfPop.fPopCalendar(document.custInfoForm.message_end_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="custaccount" />
    </td>
    <td class="tdlbg">客户密码:</td>
    <td class="tdrbg">
     <html:text property="custpassword"/>
    </td>
  </tr> --> 
  <tr>
    <td class="tdlbg">客户产品、帐号以及密码:</td>
    <td class="tdrbg" colspan="3">
    <html:textarea property="product" cols="60" rows="10"></html:textarea>
    </td>

  </tr>  
<!-- 
  <tr>
    <td class="tdlbg">持股结构:</td>
    <td class="tdrbg">
    <html:textarea property="share_hold_struct" cols="30" rows="5"></html:textarea>
    </td>
    <td class="tdlbg">持股情况:</td>
    <td class="tdrbg">
    <html:textarea property="share_hold" cols="30" rows="5"></html:textarea>
    </td>
  </tr>
  --> 
  <tr>
    <td class="tdrbg" colspan="4" align="center">
    <logic:equal property="paramtype" name="custInfoForm" value="insert">
    <input type="submit" name="Submit" class="btn_save" value="保 存" />&nbsp;&nbsp;
    </logic:equal>
    <logic:equal property="paramtype" name="custInfoForm" value="update">
    <input type="submit" name="Submit" class="btn_edit" value="修 改" />&nbsp;&nbsp;
    </logic:equal>
	&nbsp;&nbsp;
	<input type="button" name="Submit2" class="btn_back" value="返 回" onclick="location.href='<%=basePath %>manage/custinfo.do?paramtype=list'"/>
	</td>
  </tr>
</table>
</html:form>
<iframe width="174" height="189" name="gToday:normal:agenda.js" id="gToday:normal:agenda.js" src="<%=path%>/include/calendar/ipopeng.htm" scrolling="no" frameborder="0" style="visibility:visible; z-index:999; position:absolute; top:-500px; left:-500px;">
</iframe>
</body>
</html>

⌨️ 快捷键说明

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