nullTag.asp 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. <link rel="stylesheet" href="css/alert.css" type="text/css" />
  9. <script language="javascript" src="system/js/jquery-1.7.2.min.js"></script>
  10. <script type="text/javascript" src="js/js.js"></script>
  11. </head>
  12. <body class="clear">
  13. <!--#include file="panel.asp"-->
  14. <%
  15. tagStr=""
  16. Set Rs=Server.CreateObject("ADODB.RecordSet")
  17. Rs.Open "select DISTINCT tagName from tagTable where employeeId="&Session("employee_id"),conn,1
  18. Do while not Rs.bof and not Rs.eof
  19. tagStr=tagStr&"<span>"&Rs("tagName")&"</span>,"
  20. Rs.moveNext
  21. loop
  22. Rs.close
  23. %>
  24. <div id="man_zone">
  25. <div class="fastSelect clear">
  26. <H1>无标签客户</H1>
  27. </div>
  28. <div width="100%" border="0" cellpadding="3" cellspacing="1" class="table2">
  29. <div class="theader">
  30. <div class="col2" >序号</div>
  31. <div class="col3">客户编号</div>
  32. <div class="col4">渠道来源</div>
  33. <div class="col5">区域</div>
  34. <div class="col6">客户类型</div>
  35. <div class="col7">跟进阶段</div>
  36. <div class="col8">录入时间</div>
  37. <div class="col10">操作</div>
  38. </div>
  39. <%
  40. Set Rs1=Server.CreateObject("ADODB.RecordSet")
  41. sqlStr="Select id,cs_code,cs_from,cs_country,cs_type,cs_deal,cs_addtime,cs_tel,cs_email,cs_whatsapp,cs_wechat,cs_linkedin,cs_facebook,cs_alibaba,cs_note From customer Where cs_belong="&Session("employee_id")&" and id not in (select customerId from tagTable)"
  42. Rs.Open sqlStr,Conn,1,1
  43. Do while Not Rs.bof and Not Rs.eof
  44. TempNum=TempNum+1
  45. %>
  46. <div class="tline">
  47. <div class="col2" ><%=TempNum%></div>
  48. <div class="col3 slidepanel"><%=Rs("cs_code")%></div>
  49. <div class="col4">
  50. <%Rs1.Open "select ch_name from qudao where id="&Rs("cs_from")&"",conn,1,1
  51. IF Not Rs1.bof and Not Rs1.eof Then
  52. Response.write Rs1("ch_name")
  53. Else
  54. Response.write "未填写"
  55. End If
  56. Rs1.Close
  57. %>
  58. </div>
  59. <div class="col5">
  60. <%Rs1.Open "select countryName from country where id="&Rs("cs_country")&"",conn,1,1
  61. IF Not Rs1.bof and Not Rs1.eof Then
  62. Response.write Rs1("countryName")
  63. Else
  64. Response.write "未填写"
  65. End If
  66. Rs1.Close
  67. %>
  68. </div>
  69. <div class="col6">
  70. <%Rs1.Open "select businessType from clientType where id="&Rs("cs_type")&"",conn,1,1
  71. IF Not Rs1.bof and Not Rs1.eof Then
  72. Response.write Rs1("businessType")
  73. Else
  74. Response.write "未填写"
  75. End If
  76. Rs1.Close
  77. %>
  78. </div>
  79. <div class="col7"><%If Rs("cs_deal")=3 then
  80. response.write "<span style='color:red;'>成交</span>"
  81. elseif Rs("cs_deal")=2 then
  82. Response.write "明确需求"
  83. elseif Rs("cs_deal")=1 then
  84. Response.write "明确需求"
  85. else
  86. Response.write "无响应"
  87. End IF
  88. %></div>
  89. <div class="col8"><%=Rs("cs_addtime")%></div>
  90. <div class="col10" ><a href="customerEdit.asp?Keys=<%=keys%>&Ord=<%=Ord%>&Page=<%=Page%>&act=edit&id=<%=Rs(0)%>" class="ico_edit ico">修改</a></div>
  91. </div>
  92. <div class="notepanel clear">
  93. <div class="noteItem">
  94. 联系方式
  95. </div>
  96. <div class="lx">
  97. <div class="tel"><%=Rs("cs_tel")%></div>
  98. <div class="mail"><a href="mailto:<%=Rs("cs_email")%>"><%=Rs("cs_email")%></a></div>
  99. <div class="whatsapp"><%=Rs("cs_whatsapp")%></div>
  100. <div class="wechat"><%=Rs("cs_wechat")%></div>
  101. <div class="linkedin"><%=Rs("cs_linkedin")%></div>
  102. <div class="facebook"><%=Rs("cs_facebook")%></div>
  103. <div class="alibaba"><%=Rs("cs_alibaba")%></div>
  104. </div>
  105. <div class="noteItem2">
  106. 备注
  107. </div>
  108. <div class="notecontent">
  109. <%=HtmlUncode(Rs("cs_note"))%>
  110. </div>
  111. <div class="coltag mytag" data-id="<%=Rs("id")%>" data-em="<%=Session("employee_id")%>">
  112. <%=tagStr%>
  113. </div>
  114. </div>
  115. <%
  116. Rs.MoveNext
  117. Loop
  118. %>
  119. </div>
  120. <%Rs.Close:Set Rs=Nothing:Set Rs1=Nothing:Conn.Close:Set Conn=Nothing%>
  121. </div>
  122. </body>
  123. </html>