abnormal.asp 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216
  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. <div id="man_zone">
  15. <%
  16. Act = Request.QueryString("act")
  17. Page = Request.QueryString("Page")
  18. Set Rs=Server.CreateObject("ADODB.RecordSet")
  19. Keys=Server.UrlEnCode(Keys)
  20. hrefstr = "?keys="&Keys
  21. %>
  22. <form id="form1" method="post" action="?act=postchk&Keys=<%=keys%>&Page=<%=Page%>" onSubmit="return false" />
  23. <div class="fastSelect clear">
  24. <H1>异常客户</H1>
  25. </div>
  26. <div width="100%" border="0" cellpadding="3" cellspacing="1" class="table2 em<%=Session("employee_id")%>">
  27. <div class="theader">
  28. <div class="col1" ><input type="checkbox" name="chkall" id="chkall" onClick="chkboxall(this,'chkbox')" /></div>
  29. <div class="col2" >序号</div>
  30. <div class="col3">客户编号</div>
  31. <div class="col4">渠道来源</div>
  32. <div class="col5">区域</div>
  33. <div class="col6">客户类型</div>
  34. <div class="col6">跟进阶段</div>
  35. <div class="colmark">颜色标记</div>
  36. <div class="col6">录入时间</div>
  37. <div class="col9">操作</div>
  38. </div>
  39. <%
  40. 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,colortag,cs_note,cs_claimFrom From customer Where (cs_alibaba='' and (cs_code like '%阿里%' or cs_code like '%1688%') and cs_belong="&Session("employee_id")&" ) or (cs_from=8 and cs_wechat='' and cs_belong="&Session("employee_id")&") Order By colortag DESC,id Desc"
  41. Rs.Open sqlStr ,Conn,1,1
  42. If Not Rs.Bof And Not Rs.Eof Then
  43. Rs.PageSize = 20
  44. If Page = "" Then Page = 1
  45. If Page = "end" Then Page = Rs.PageCount
  46. If Not IsNumeric(Page) Or Page < 1 Then Page = 1
  47. Page = Cint(Page)
  48. If Page > Rs.PageCount Then Page = Rs.PageCount
  49. Rs.AbsolutePage = Page
  50. TempNum = Rs.PageSize * (Page - 1)
  51. Set Rs1=Server.CreateObject("ADODB.RecordSet")
  52. For i=1 To Rs.PageSize
  53. If Rs.Bof Or Rs.Eof Then Exit For
  54. TempNum=TempNum+1:classid=Rs(1)
  55. %>
  56. <div class="tline color<%=Rs("colorTag")%>">
  57. <div class="col1" align="center" ><input type="checkbox" name="chkbox" value="<%=Rs(0)%>" /></div>
  58. <div class="col2" ><%=TempNum%></div>
  59. <div class="col3 slidepanel"><%=Rs("cs_code")%><%If Rs("cs_claimFrom")>0 Then%><img src="../images/yijiao.png" class="handover" title="来自认领"><%End If%></div>
  60. <div class="col4">
  61. <%Rs1.Open "select ch_name from qudao where id="&Rs("cs_from")&"",conn,1,1
  62. IF Not Rs1.bof and Not Rs1.eof Then
  63. Response.write Rs1("ch_name")
  64. Else
  65. Response.write "未填写"
  66. End If
  67. Rs1.Close
  68. %>
  69. </div>
  70. <div class="col5">
  71. <%Rs1.Open "select countryName from country where id="&Rs("cs_country")&"",conn,1,1
  72. IF Not Rs1.bof and Not Rs1.eof Then
  73. Response.write Rs1("countryName")
  74. Else
  75. Response.write "未填写"
  76. End If
  77. Rs1.Close
  78. %>
  79. </div>
  80. <div class="col6">
  81. <%Rs1.Open "select businessType from clientType where id="&Rs("cs_type")&"",conn,1,1
  82. IF Not Rs1.bof and Not Rs1.eof Then
  83. Response.write Rs1("businessType")
  84. Else
  85. Response.write "未填写"
  86. End If
  87. Rs1.Close
  88. %>
  89. </div>
  90. <div class="col6"><%If Rs("cs_deal")=3 then
  91. response.write "<span style='color:red;'>成交</span>"
  92. elseif Rs("cs_deal")=2 then
  93. Response.write "明确需求"
  94. elseif Rs("cs_deal")=1 then
  95. Response.write "背景调查"
  96. else
  97. Response.write "无响应"
  98. End IF
  99. %>
  100. </div>
  101. <div class="colmark colormark">
  102. <ul class="colorlist" data-id="<%=Rs("id")%>">
  103. <li value="1" class="color1"></li>
  104. <li value="2" class="color2"></li>
  105. <li value="3" class="color3"></li>
  106. <li value="4" class="color4"></li>
  107. <li value="0" class="color0"></li>
  108. </ul>
  109. </div>
  110. <div class="col6"><%=Rs("cs_addtime")%></div>
  111. <div class="col9" ><a href="customerEdit.asp?Keys=<%=keys%>&fliterDeal=<%=fliterDeal%>&fliterBusiness=<%=fliterBusiness%>&Page=<%=Page%>&act=edit&id=<%=Rs(0)%>" class="ico_edit ico">修改</a></div>
  112. </div>
  113. <div class="notepanel clear">
  114. <div class="noteItem">
  115. 联系方式
  116. </div>
  117. <div class="lx">
  118. <div class="tel"><%=Rs("cs_tel")%></div>
  119. <div class="mail"><a href="mailto:<%=Rs("cs_email")%>"><%=Rs("cs_email")%></a></div>
  120. <div class="whatsapp"><%=Rs("cs_whatsapp")%></div>
  121. <div class="wechat"><%=Rs("cs_wechat")%></div>
  122. <div class="linkedin"><%=Rs("cs_linkedin")%></div>
  123. <div class="facebook"><%=Rs("cs_facebook")%></div>
  124. <div class="alibaba"><%=Rs("cs_alibaba")%></div>
  125. </div>
  126. <div class="noteItem2">
  127. 备注
  128. </div>
  129. <div class="notecontent">
  130. <%=HtmlUnCode(Rs("cs_note"))%>
  131. </div>
  132. </div>
  133. <%
  134. Rs.MoveNext
  135. Next
  136. Else
  137. If Keys="" Then
  138. %>
  139. <tr>
  140. <div align="center" colspan="9">Sorry,当前暂无信息</div>
  141. </tr>
  142. <%
  143. Else
  144. %>
  145. <tr>
  146. <div align="center" colspan="9"><a href="?">Sorry,没有找到“<%=Keyscode%>”相关的信息,点击返回</a></div>
  147. </tr>
  148. <%
  149. End If
  150. End If
  151. %>
  152. <div colspan="9">
  153. <div class="showpagebox">
  154. <%
  155. If Rs.PageCount > 1 Then
  156. PageName="?Keys="&Keys&urlStr&"&"
  157. Pagelen=3
  158. If Page>1 Then
  159. Response.Write "<a href="""&PageName&"Page=1"">首页</a>"
  160. Response.Write "<a href="""&PageName&"Page="&Page-1&""">上一页</a>"
  161. End If
  162. If Pagelen*2+1 >= Rs.PageCount Then
  163. StartPage=1:EndPage=Rs.PageCount
  164. Else
  165. If Page<=Pagelen+1 Then
  166. StartPage=1
  167. EndPage=Pagelen*2+1
  168. Else
  169. StartPage=Page-Pagelen
  170. EndPage=Page+Pagelen
  171. End If
  172. If Page+Pagelen>Rs.PageCount Then StartPage=Rs.PageCount-Pagelen*2:EndPage=Rs.PageCount
  173. End If
  174. For i = StartPage To EndPage
  175. If i = Page Then
  176. Response.Write "<a class=""current"">"&i&"</a>"
  177. Else
  178. Response.Write "<a href="""&PageName&"Page="&i&""">"&i&"</a>"
  179. End If
  180. Next
  181. If Page<Rs.PageCount Then
  182. If Rs.PageCount - Page > Pagelen Then Response.Write "<a href="""&PageName&"Page="&Rs.PageCount&""">..."&Rs.PageCount&"</a>"
  183. Response.Write "<a href="""&PageName&"Page="&Page+1&""">下一页</a>"
  184. Response.Write "<a href="""&PageName&"Page="&Rs.PageCount&""">尾页</a>"
  185. End If
  186. End If
  187. %> </div>
  188. </div>
  189. </div>
  190. </form>
  191. <%Rs.Close:Set Rs=Nothing:Set Rs1=Nothing:Conn.Close:Set Conn=Nothing%>
  192. </div>
  193. </body>
  194. </html>