/trunk/article.asp

https://github.com/akabeko/fusionexcel · ASP · 144 lines · 138 code · 6 blank · 0 comment · 17 complexity · c889781812a0fb68af5424b17cc9844c MD5 · raw file

  1. <!--#include file="data/dbCon.asp" -->
  2. <%
  3. call OpenDatabase()
  4. Dim article_id, lang
  5. article = 0
  6. lang = "en"
  7. if not Request("article_id") = "" then
  8. if IsNumeric(Request("article_id")) then
  9. article_id = Request("article_id")
  10. end if
  11. end if
  12. if Request("lang") <> "" then
  13. if Request("lang") = "chi" then
  14. lang = "chi"
  15. elseif Request("lang") = "en" then
  16. lang = "en"
  17. end if
  18. end if
  19. if lang = "chi" then
  20. sql = "SELECT id, title_chi as title, content_chi as content, meta_robots_chi as meta_robots, meta_author_chi as meta_author, meta_description_chi as meta_description, meta_keywords_chi as meta_keywords FROM tbl_article WHERE publish = true AND id = " & article_id
  21. elseif lang = "bm" then
  22. sql = "SELECT id, title_bm as title, content_bm as content, meta_robots_bm as meta_robots, meta_author_bm as meta_author, meta_description_bm as meta_description, meta_keywords_bm as meta_keywords FROM tbl_article WHERE publish = true AND id = " & article_id
  23. else
  24. sql = "SELECT id, title, content, meta_robots, meta_author, meta_description, meta_keywords FROM tbl_article WHERE publish = true AND id = " & article_id
  25. end if
  26. call CreateRecordSet(RecordSet, sql)
  27. %>
  28. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  29. <html xmlns="http://www.w3.org/1999/xhtml" lang="en">
  30. <head>
  31. <title>FusionExcel - News & Events - News & Events Page 01 of 27.</title>
  32. <meta name="description" content="<% if RecordSet("meta_description") <> "" then %><%= RecordSet("meta_description") %><% else %><% end if %>">
  33. <meta name="keywords" content="<% if RecordSet("meta_keywords") <> "" then %><%= RecordSet("meta_keywords") %><% else %>FusionExcel International<% end if %>">
  34. <meta charset="ISO-8859-1" />
  35. <meta name="robots" content="<% if RecordSet("meta_robots") <> "" then %><%= RecordSet("meta_robots") %><% else %>all<% end if %>">
  36. <meta name="distribution" content="global" />
  37. <meta name="author" content="<% if RecordSet("meta_author") <> "" then %><%= RecordSet("meta_author") %><% else %>FusionExcel International<% end if %>">
  38. <meta name="designer" content="KLHunter.com - Web Design Management" />
  39. <meta name="copyright" content="FusionExcel International ?All Rights Reserved" />
  40. <link href="/css/fe.css?1" rel="stylesheet" type="text/css">
  41. <style type="text/css">
  42. <!--
  43. body {
  44. background-image: url(img/bg.gif);
  45. margin-left: 0px;
  46. margin-top: 20px;
  47. margin-right: 0px;
  48. margin-bottom: 20px;
  49. }
  50. -->
  51. </style>
  52. </head>
  53. <body>
  54. <table width="950" border="0" align="center" cellpadding="0" cellspacing="10" bgcolor="#FFFFFF">
  55. <!--DWLayoutTable-->
  56. <tr>
  57. <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  58. <tr valign="top">
  59. <td colspan="3" height="114px"><script type="text/javascript">
  60. var iframesrc="topframe.asp"
  61. document.write('<iframe id="datamain" name="myframe" src="'+iframesrc+'" ALLOWTRANSPARENCY="true" width="930px" height="114px" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe>')
  62. </script>
  63. </td>
  64. </tr>
  65. <tr>
  66. <td width="180" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  67. <tr>
  68. <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
  69. <tr>
  70. <td colspan="2">
  71. <script type="text/javascript">
  72. var iframesrc="news_list.asp?lang=<%= Request("lang") %>&category=<%= Request("categoery") %>&type=sidebar"
  73. document.write('<iframe id="datamain" name="myframe" src="'+iframesrc+'" ALLOWTRANSPARENCY="true" width="180px" height="1145px" marginwidth="0" marginheight="0" frameborder="0" scrolling="no"></iframe>')
  74. </script>
  75. </td>
  76. </tr>
  77. </table></td>
  78. </tr>
  79. </table></td>
  80. <td width="10" valign="top">&nbsp;</td>
  81. <td width="740" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  82. <tr>
  83. <td><img src="img/banner_news.jpg" width="740" height="170" /></td>
  84. </tr>
  85. <tr>
  86. <td height="8"></td>
  87. </tr>
  88. <tr>
  89. <td valign="top" bgcolor="#999999">
  90. <table width="100%" border="0" cellspacing="1" cellpadding="10">
  91. <tbody>
  92. <tr>
  93. <td height="950" valign="top" bgcolor="#EEF0FC">
  94. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  95. <tbody>
  96. <tr>
  97. <td valign="top" class="conthead">
  98. <table width="100%" border="0" cellspacing="0" cellpadding="0">
  99. <tbody>
  100. <tr>
  101. <td valign="top"><strong><%= RecordSet("title") %></strong></td>
  102. </tr>
  103. <tr>
  104. <td valign="top">&nbsp;</td>
  105. </tr>
  106. </tbody>
  107. </table>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td valign="top" class="content">
  112. <%= RecordSet("content") %>
  113. </td>
  114. </tr>
  115. </tbody>
  116. </table>
  117. </td>
  118. </tr>
  119. </tbody>
  120. </table>
  121. </td>
  122. </tr>
  123. </tbody></table>
  124. </td>
  125. </tr>
  126. </table></td>
  127. </tr>
  128. <tr>
  129. <td colspan="3" height="10"></td>
  130. </tr>
  131. <tr>
  132. <td colspan="3"><iframe src="iframe_bottom.html" width="930" height="28" marginwidth="0" marginheight="0" frameborder="0" scrolling="No"></iframe></td>
  133. </tr>
  134. </table></td>
  135. </tr>
  136. </table>
  137. </body>
  138. </html>