/ltd/ccs/ccs_gz_lastyear/cx/CF_TEST/detail.asp

http://github.com/zhaowe/bc · ASP · 122 lines · 113 code · 8 blank · 1 comment · 2 complexity · e58bfcc829203cc34981f19fce594bd8 MD5 · raw file

  1. <%@ Language=VBScript %>
  2. <%
  3. OledbStr_cf = "provider=sqloledb;server=10.254.0.46;database=cftest;uid=sa;pwd=szx6275;"
  4. Set objConn_cf = Server.CreateObject("ADODB.Connection")
  5. objConn_cf.Open OledbStr_cf
  6. Set objRst=server.CreateObject ("ADODB.Recordset")
  7. objRst.LockType=3
  8. objRst.CursorType=3
  9. set objRst.activeConnection=objConn_cf
  10. 'Á¬½ÓÊý¾Ý¿â
  11. id=Request.QueryString ("Q")
  12. SqlIns ="select * from cf_comm where id='"& id &"' "
  13. objrst.Source =sqlins
  14. objrst.Open
  15. if objrst("sex")=0 then
  16. sex="Å®"
  17. else
  18. sex="ÄÐ"
  19. end if
  20. %>
  21. <HTML>
  22. <HEAD>
  23. <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
  24. </HEAD>
  25. <style type="text/css">
  26. TD {
  27. FONT-FAMILY: ËÎÌå; FONT-SIZE: 15px
  28. }
  29. </style>
  30. <body>
  31. <p align="center">¡¡
  32. </p>
  33. <p align="center"><b><font size="5"><font color="#CC3300"><%=objrst("name")%></font>¡ª¡ª<font color="#0066FF">Ïêϸ×ÊÁÏ</font></font></b>
  34. </p>
  35. <table border="0" cellspacing="1" width="100%" height="1" bgcolor="#0000FF" bordercolor="#0000FF">
  36. <tr>
  37. <td width="4%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>ÐÕÃû</b></font></td>
  38. <td width="7%" height="1" bgcolor="#FFFFFF"><%=objrst("name")%></td>
  39. <td width="4%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>ÐÔ±ð</b></font></td>
  40. <td width="3%" height="1" bgcolor="#FFFFFF"><%=sex%></td>
  41. <td width="4%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>ÄêÁä</b></font></td>
  42. <%if objrst("age")>0 then%>
  43. <td width="3%" height="1" bgcolor="#FFFFFF"><%=objrst("age")%></td>
  44. <%else%>
  45. <td width="3%" height="1" bgcolor="#FFFFFF"></td>
  46. <%end if%>
  47. <td width="4%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>ÉúФ</b></font></td>
  48. <td width="3%" height="1" bgcolor="#FFFFFF"><%=objrst("shengxiao")%></td>
  49. <td width="4%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>ÐÇ×ù</b></font></td>
  50. <td width="6%" height="1" bgcolor="#FFFFFF"><%=objrst("constellation")%></td>
  51. <td width="4%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>ѪÐÍ</b></font></td>
  52. <td width="3%" height="1" bgcolor="#FFFFFF"><%=objrst("bloodtype")%></td>
  53. <td width="8%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>³öÉúÈÕÆÚ</b></font></td>
  54. <%if objrst("age")>0 then%>
  55. <td width="15%" height="1" bgcolor="#FFFFFF"><%=objrst("birthday")%></td>
  56. <%else%>
  57. <td width="15%" height="1" bgcolor="#FFFFFF"></td>
  58. <%end if%>
  59. </tr>
  60. </table>
  61. <table border="0" cellspacing="1" width="100%" height="1" bgcolor="#0000FF" bordercolor="#0000FF">
  62. <tr>
  63. <td width="8%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>°ì¹«µç»°</b></font></td>
  64. <td width="15%" height="1" bgcolor="#FFFFFF"><%=objrst("office_tel")%></td>
  65. <td width="8%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>¼ÒÍ¥µç»°</b></font></td>
  66. <td width="16%" height="1" bgcolor="#FFFFFF"><%=objrst("home_tel")%></td>
  67. <td width="8%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>ËÞÉáµç»°</b></font></td>
  68. <td width="17%" height="1" bgcolor="#FFFFFF"><%=objrst("dorm_tel")%></td>
  69. </tr>
  70. </table>
  71. <table border="0" cellspacing="1" width="100%" height="1" bgcolor="#0000FF" bordercolor="#0000FF">
  72. <tr>
  73. <td width="5%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>ÊÖ»ú</b></font></td>
  74. <td width="9%" height="1" bgcolor="#FFFFFF"><%=objrst("mobile_tel")%></td>
  75. <td width="5%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>´«ºô</b></font></td>
  76. <td width="15%" height="1" bgcolor="#FFFFFF"><%=objrst("bp_call")%></td>
  77. <td width="6%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>EMAIL</b></font></td>
  78. <td width="26%" height="1" bgcolor="#FFFFFF"><a href="mailto:<%=objrst("email")%>"><%=objrst("email")%></a></td>
  79. <td width="3%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>QQ</b></font></td>
  80. <td width="12%" height="1" bgcolor="#FFFFFF"><%=objrst("qq_code")%></td>
  81. </tr>
  82. </table>
  83. <table border="0" cellspacing="1" width="100%" height="1" bgcolor="#0000FF" bordercolor="#0000FF">
  84. <tr>
  85. <td width="8%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>¹¤×÷µ¥Î»</b></font></td>
  86. <td width="73%" height="1" bgcolor="#FFFFFF"><%=objrst("corporation")%></td>
  87. </tr>
  88. <tr>
  89. <td width="8%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>¹«Ë¾µØÖ·</b></font></td>
  90. <td width="73%" height="1" bgcolor="#FFFFFF"><%=objrst("office_addr")%></td>
  91. </tr>
  92. <tr>
  93. <td width="8%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>¼ÒÍ¥µØÖ·</b></font></td>
  94. <td width="73%" height="1" bgcolor="#FFFFFF"><%=objrst("home_addr")%></td>
  95. </tr>
  96. <tr>
  97. <td width="8%" height="1" bgcolor="#FFFFFF"><font color="#990099"><b>¹«Ô¢µØÖ·</b></font></td>
  98. <td width="73%" height="1" bgcolor="#FFFFFF"><%=objrst("dorm_addr")%></td>
  99. </tr>
  100. </table>
  101. <table border="0" cellspacing="1" width="100%" height="1" bgcolor="#0000FF" bordercolor="#0000FF">
  102. <tr>
  103. <td width="8%" height="1" bgcolor="#FFFFFF"><font color="#990099">&nbsp;&nbsp;
  104. <b>±¸×¢</b></font></td>
  105. <td width="73%" height="1" bgcolor="#FFFFFF"><%=objrst("memo")%></td>
  106. </tr>
  107. </table>
  108. <p align="center"><b><font size="4"><font color="#0066FF"><a href="com_modi.asp?Q=<%=id%>">ÐÞ ¸Ä</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="com_disp.asp">·µ »Ø</a></font></font></b>
  109. </p>
  110. </body>
  111. </HTML>
  112. <%
  113. objrst.Close
  114. %>