subTag.asp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. tagName=Request.QueryString("tagName")
  16. employeeId=Request.QueryString("employeeId")
  17. If employeeId="" or Not IsNumeric(employeeId) Then
  18. employeeId=0
  19. End If
  20. If tagName="" or IsNull(tagName) Then
  21. response.redirect "customer.asp"
  22. End If
  23. %>
  24. <div id="man_zone">
  25. <div class="fastSelect clear">
  26. <H1>标签:<%=tagName%></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 Rs=Server.CreateObject("ADODB.RecordSet")
  41. Set Rs1=Server.CreateObject("ADODB.RecordSet")
  42. 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="&employeeId&" and id in (select customerId from tagTable where tagName='"&tagName&"')"
  43. Rs.Open sqlStr,Conn,1,1
  44. Do while Not Rs.bof and Not Rs.eof
  45. TempNum=TempNum+1
  46. %>
  47. <div class="tline">
  48. <div class="col2" ><%=TempNum%></div>
  49. <div class="col3 slidepanel"><%=Rs("cs_code")%></div>
  50. <div class="col4">
  51. <%Rs1.Open "select ch_name from qudao where id="&Rs("cs_from")&"",conn,1,1
  52. IF Not Rs1.bof and Not Rs1.eof Then
  53. Response.write Rs1("ch_name")
  54. Else
  55. Response.write "未填写"
  56. End If
  57. Rs1.Close
  58. %>
  59. </div>
  60. <div class="col5">
  61. <%Rs1.Open "select countryName from country where id="&Rs("cs_country")&"",conn,1,1
  62. IF Not Rs1.bof and Not Rs1.eof Then
  63. Response.write Rs1("countryName")
  64. Else
  65. Response.write "未填写"
  66. End If
  67. Rs1.Close
  68. %>
  69. </div>
  70. <div class="col6">
  71. <%Rs1.Open "select businessType from clientType where id="&Rs("cs_type")&"",conn,1,1
  72. IF Not Rs1.bof and Not Rs1.eof Then
  73. Response.write Rs1("businessType")
  74. Else
  75. Response.write "未填写"
  76. End If
  77. Rs1.Close
  78. %>
  79. </div>
  80. <div class="col7"><%If Rs("cs_deal")=3 then
  81. response.write "<span style='color:red;'>成交</span>"
  82. elseif Rs("cs_deal")=2 then
  83. Response.write "明确需求"
  84. elseif Rs("cs_deal")=1 then
  85. Response.write "背景调查"
  86. else
  87. Response.write "无响应"
  88. End IF
  89. %></div>
  90. <div class="col8"><%=Rs("cs_addtime")%></div>
  91. <div class="col10" >修改</div>
  92. </div>
  93. <div class="notepanel clear">
  94. <div class="noteItem">
  95. 联系方式
  96. </div>
  97. <div class="lx">
  98. <div class="tel"><%=Rs("cs_tel")%></div>
  99. <div class="mail"><a href="mailto:<%=Rs("cs_email")%>"><%=Rs("cs_email")%></a></div>
  100. <div class="whatsapp"><%=Rs("cs_whatsapp")%></div>
  101. <div class="wechat"><%=Rs("cs_wechat")%></div>
  102. <div class="linkedin"><%=Rs("cs_linkedin")%></div>
  103. <div class="facebook"><%=Rs("cs_facebook")%></div>
  104. <div class="alibaba"><%=Rs("cs_alibaba")%></div>
  105. </div>
  106. <div class="noteItem2">
  107. 备注
  108. </div>
  109. <div class="notecontent">
  110. <%=HtmlUncode(Rs("cs_note"))%>
  111. </div>
  112. </div>
  113. <%
  114. Rs.MoveNext
  115. Loop
  116. %>
  117. </div>
  118. <%Rs.Close:Set Rs=Nothing:Set Rs1=Nothing:Conn.Close:Set Conn=Nothing%>
  119. </div>
  120. </body>
  121. </html>