customerAdd.asp 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182
  1. <!--#include file="Conn.asp"--><%Checklogin()%>
  2. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>管理区域</title>
  7. <link rel="stylesheet" href="css/common.css" type="text/css" />
  8. <script language="javascript" src="js/jquery-1.7.2.min.js"></script>
  9. <script type="text/javascript" src="js/js.js"></script>
  10. <script type="text/javascript" src="js/xheditor-1.1.9/xheditor-1.1.9-zh-cn.min.js"></script>
  11. <script type="text/javascript" src="js/Hz2Py-szm-min.js"></script>
  12. <script type="text/javascript" src="js/ySearchSelect.js"></script>
  13. <script>
  14. $(document).ready(function(){
  15. $('.txt2').xheditor({
  16. tools:'full',hoverExecDelay:-1,urlBase:'system',//urlType:'root',//plugins:allPlugin,
  17. upLinkUrl:"upload.asp",upLinkExt:"zip,rar,txt,pdf",
  18. upImgUrl:"upload.asp",upImgExt:"jpg,jpeg,gif,png",
  19. upFlashUrl:"upload.asp",upFlashExt:"swf",
  20. upMediaUrl:"upload.asp",upMediaExt:"wmv,avi,wma,mp3,mid"//,loadCSS:'css/edit.css'
  21. });
  22. });
  23. </script>
  24. </head>
  25. <body class="clear">
  26. <!--#include file="panel.asp"-->
  27. <div id="man_zone">
  28. <form name="form1" id="form1" method="post" action="customerSave.asp<%=hrefstr%>" onSubmit="return checkInput();">
  29. <table width="100%" border="0" cellpadding="3" cellspacing="1" class="table1">
  30. <tbody>
  31. <tr>
  32. <th width="8%">客户编号</th>
  33. <td><input type="text" id="cs_code" name="cs_code" value="" class="txt1" /><input type="hidden" name="cs_addtime" value="<%=now()%>" /></td>
  34. </tr>
  35. <tr>
  36. <th width="8%">公司名称</th>
  37. <td><input type="text" id="cs_company" name="cs_company" value="" class="txt1" /></td>
  38. </tr>
  39. <tr>
  40. <th width="8%">联系人</th>
  41. <td><input type="text" id="cs_name" name="cs_name" value="" class="txt1" /></td>
  42. </tr>
  43. <tr>
  44. <th width="8%">地区</th>
  45. <td>
  46. <div class="layui-input-inline">
  47. <div class="layui-form-select ySearchSelect y1">
  48. <div class="layui-input" >请选择客户区域</div>
  49. <input name="cs_country" id="cs_country" type="hidden">
  50. <i class="layui-edge"></i>
  51. <ul>
  52. <% Set Rs=server.CreateObject("ADODB.RecordSet")
  53. Rs.Open "Select id,countryCode,countryName from country",conn,1,1
  54. Do while Not Rs.bof And Not Rs.eof
  55. %>
  56. <li class="on" data-c="<%=Rs("id")%>">(+<%=Rs("countryCode")%>)<%=Rs("countryName")%></li>
  57. <%
  58. Rs.moveNext
  59. loop
  60. Rs.close
  61. %>
  62. <p>无匹配项</p>
  63. </ul>
  64. </div>
  65. </div>
  66. <script>
  67. $(function () {
  68. $(".y1").ySearchSelect();
  69. })
  70. </script>
  71. </td>
  72. </tr>
  73. <tr>
  74. <th width="8%">来源</th>
  75. <td><Select id="cs_from" name="cs_from">
  76. <option value="0">请选择来源</option>
  77. <% Rs.Open "Select id,ch_name from qudao",conn,1,1
  78. Do while Not Rs.bof And Not Rs.eof
  79. %>
  80. <option value="<%=Rs("id")%>"><%=Rs("ch_name")%></option>
  81. <%
  82. Rs.moveNext
  83. loop
  84. Rs.close
  85. %>
  86. </Select>
  87. </td>
  88. </tr>
  89. <tr >
  90. <th rowspan="7">联系方式</th>
  91. <td><input type="text" id="cs_tel" name="cs_tel" value="" class="txt1 tel" placeholder="电话格式:区号+号码 如:+86 15012345678" /></td>
  92. </tr>
  93. <tr>
  94. <td><input type="text" id="cs_wechat" name="cs_wechat" value="" class="txt1 wechat" placeholder="微信"/></td>
  95. </tr>
  96. <tr>
  97. <td><input type="text" id="cs_whatsapp" name="cs_whatsapp" value="" class="txt-short2 whatsapp" placeholder="Whatsapp 格式:区号+号码 如:+86 15012345678"/><span class="syncphone">同步到电话联方式</span></td>
  98. </tr>
  99. <tr>
  100. <td><input type="text" id="cs_email" name="cs_email" value="" class="txt1 mail" placeholder="邮件" /></td>
  101. </tr>
  102. <tr>
  103. <td><input type="text" id="cs_linkedin" name="cs_linkedin" value="" class="txt1 linkedin" placeholder="领英链接"/></td>
  104. </tr>
  105. <tr>
  106. <td><input type="text" id="cs_facebook" name="cs_facebook" value="" class="txt1 facebook" placeholder="Facebook" /></td>
  107. </tr>
  108. <tr>
  109. <td><input type="text" id="cs_alibaba" name="cs_alibaba" value="" class="txt1 alibaba" placeholder="阿里巴巴会员名" /></td>
  110. </tr>
  111. <tr>
  112. <th>地址</th>
  113. <td><input type="text" id="cs_address" name="cs_address" value="" class="txt1" /></td>
  114. </tr>
  115. <tr>
  116. <th>业务类型</th>
  117. <td>
  118. <% Rs.Open "Select id,businessType from clientType",conn,1,1
  119. Do while Not Rs.bof And Not Rs.eof
  120. %>
  121. <input type="radio" name="cs_type" value="<%=Rs("id")%>" id="fortype<%=Rs("id")%>"><label for="fortype<%=Rs("id")%>"><%=Rs("businessType")%></label>
  122. <%
  123. Rs.moveNext
  124. loop
  125. Rs.close
  126. %>
  127. </td>
  128. </tr>
  129. <tr>
  130. <th>跟进阶段</th>
  131. <td>
  132. <input type="radio" id="fordeal1" class="cs_deal" name="cs_deal" value="0"><label for="fordeal1">无响应</label>
  133. <input type="radio" id="fordeal2" class="cs_deal" name="cs_deal" value="1" checked="checked"><label for="fordeal2">背景调查</label>
  134. <input type="radio" id="fordeal3" class="cs_deal" name="cs_deal" value="2" ><label for="fordeal3">明确需求</label>
  135. <input type="radio" id="fordeal4" class="cs_deal" name="cs_deal" value="3"><label for="fordeal4">已成交</label>
  136. </td>
  137. </tr>
  138. <tr>
  139. <th>其他</th>
  140. <td>
  141. <input type="checkbox" id="belongClient" class="cs_belongClient" name="cs_belongClient" value="1"><label for="belongClient">客户的客户</label>
  142. </td>
  143. </tr>
  144. <tr>
  145. <th>自定义标签</th>
  146. <td><div class="taglist"></div>
  147. <input type="hidden" id="mytag" name="mytag" value="">
  148. <div class="commontag clear">
  149. <i class="tag">美特柏品牌客户</i>,<i class="tag">OEM定制客户</i>,<i class="tag">小型B端客户</i>,<i class="tag">C端客户</i>,<i class="tag">贸易公司</i>,<i class="tag">档口客户</i>
  150. <% Rs.Open "select distinct tagName from tagTable where employeeId="&Session("employee_id"),conn,1,1
  151. Do while Not Rs.bof And Not Rs.eof
  152. %>
  153. <i class="tag"><%=TextUncode(Rs("tagName"))%></i>,
  154. <%
  155. Rs.moveNext
  156. loop
  157. Rs.close
  158. Set Rs=Nothing
  159. %>
  160. </div>
  161. <input type="text" id="tapinput" class="txt-short" placeholder="添加新标签,按Enter添加">
  162. </td>
  163. </tr>
  164. <tr>
  165. <th width="8%">备注</th>
  166. <td><textarea name="cs_note" class="txt2" placeholder=""></textarea></td>
  167. </tr>
  168. <tr>
  169. <th></th>
  170. <td><input type="button" name="save" id="save" value="确定" class="btn1" onclick="subform();"/> <input type="button" value="返回" class="btn1" onClick="location.href='customers.asp'" /></td>
  171. </tr>
  172. </tbody>
  173. </table>
  174. </form>
  175. </div>
  176. </body>
  177. </html>
  178. <%Conn.Close:Set Conn=Nothing%>