/beta/CRM/include_OldCusData.asp

http://github.com/khaneh/Orders · ASP · 92 lines · 89 code · 1 blank · 2 comment · 3 complexity · 440d63558ea72053da179d780c67fff4 MD5 · raw file

  1. <%
  2. ' This include file needs OLD_ACID
  3. %>
  4. <TABLE border="1" width="100%" cellspacing="1" cellpadding="5">
  5. <%
  6. mySQL="SELECT * FROM [U82ACC] WHERE [Field2] = N'" & OLD_ACID & "' "
  7. Set RS1 = conn.Execute(mySQL)
  8. 'response.write mySQL
  9. col1Color="#FFFFFF"
  10. col2Color="#CCCCCC"
  11. if (RS1.eof) then%>
  12. <tr><td dir='rtl' align='center'><h1> ...</h1></td></tr>
  13. <% else
  14. mySQL="SELECT Users.RealName as RealName FROM tblCSR_ACC_Relation INNER JOIN Users ON tblCSR_ACC_Relation.CSR = Users.ID WHERE (tblCSR_ACC_Relation.Account = '"& Request("acID")& "')"
  15. Set RS2 = conn.Execute(mySQL)
  16. if RS2.eof then
  17. CSRName="<B><FONT Color='red'>" & "" & "</FONT></B>"
  18. else
  19. CSRName="<B><FONT Color='blue'>" & RS2("RealName") & "</FONT></B>"
  20. end if
  21. RS2.close
  22. %>
  23. <tr dir='rtl'>
  24. <td bgcolor="<%=col1Color%>"><%= CSRName %>&nbsp;
  25. </td>
  26. <td bgcolor="<%=col2Color%>" width="100"> :</td>
  27. </tr>
  28. <tr dir='rtl'>
  29. <td bgcolor="<%=col1Color%>"><%= RS1("Field3") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  30. </tr>
  31. <tr dir='rtl'>
  32. <td bgcolor="<%=col1Color%>"><%= RS1("Field4") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  33. </tr>
  34. <tr dir='rtl'>
  35. <td bgcolor="<%=col1Color%>"><%= RS1("Field5") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  36. </tr>
  37. <tr dir='rtl'>
  38. <td bgcolor="<%=col1Color%>"><%= RS1("Field7") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  39. </tr>
  40. <tr dir='rtl'>
  41. <td bgcolor="<%=col1Color%>"><%= RS1("Field8") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  42. </tr>
  43. <tr dir='rtl'>
  44. <td bgcolor="<%=col1Color%>"><%= RS1("Field9") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  45. </tr>
  46. <tr dir='rtl'>
  47. <td bgcolor="<%=col1Color%>"><%=replace(RS1("Field10"),"","-") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  48. </tr>
  49. <tr dir='rtl'>
  50. <td bgcolor="<%=col1Color%>"><%=replace(RS1("Field11"),"","-") %>&nbsp;</td><td bgcolor="<%=col2Color%>">Fax :</td>
  51. </tr>
  52. <tr dir='rtl'>
  53. <td bgcolor="<%=col1Color%>"><%= RS1("Field12") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  54. </tr>
  55. <tr dir='rtl'>
  56. <td bgcolor="<%=col1Color%>"><%= RS1("Field13") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  57. </tr>
  58. <tr dir='rtl'>
  59. <td bgcolor="<%=col1Color%>"><%= RS1("Field14") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  60. </tr>
  61. <tr dir='rtl'>
  62. <td bgcolor="<%=col1Color%>"><%= RS1("Field15") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  63. </tr>
  64. <tr dir='rtl'>
  65. <td bgcolor="<%=col1Color%>"><%= RS1("Field16") %>&nbsp;</td><td bgcolor="<%=col2Color%>"> :</td>
  66. </tr>
  67. <tr dir='rtl'>
  68. <td colspan="2">&nbsp;</td>
  69. </tr>
  70. <tr dir='rtl'>
  71. <td bgcolor="<%=col1Color%>"><%= RS1("Field17") %>&nbsp;</td><td rowspan="6" bgcolor="<%=col2Color%>"> :</td>
  72. </tr>
  73. <tr dir='rtl'>
  74. <td bgcolor="<%=col1Color%>"><%= RS1("Field18") %>&nbsp;</td>
  75. </tr>
  76. <tr dir='rtl'>
  77. <td bgcolor="<%=col1Color%>"><%= RS1("Field19") %>&nbsp;</td>
  78. </tr>
  79. <tr dir='rtl'>
  80. <td bgcolor="<%=col1Color%>"><%= RS1("Field20") %>&nbsp;</td>
  81. </tr>
  82. <tr dir='rtl'>
  83. <td bgcolor="<%=col1Color%>"><%= RS1("Field21") %>&nbsp;</td>
  84. </tr>
  85. <tr dir='rtl'>
  86. <td bgcolor="<%=col1Color%>"><%= RS1("Field22") %>&nbsp;</td>
  87. </tr>
  88. <%
  89. end if
  90. %>
  91. </TABLE>