DownView.Asp
上传用户:mtjhgs
上传日期:2021-12-08
资源大小:3755k
文件大小:7k
源码类别:

WEB源码(ASP,PHP,...)

开发平台:

HTML/CSS

  1. <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
  2. <!--#include file="../Include/Const.asp" -->
  3. <!--#include file="../Include/NoHackSql.Asp" -->
  4. <!--#include file="../Include/ConnSiteData.asp" -->
  5. <%
  6. call SiteInfo
  7. if ISHTML = 1 then
  8. Response.expires = 0
  9. Response.expiresabsolute = Now() - 1
  10. Response.addHeader "pragma", "no-cache"
  11. Response.addHeader "cache-control", "private"
  12. Response.CacheControl = "no-cache"
  13. End If
  14. ID=request.QueryString("ID")
  15. if ID <> "" or IsNumeric(ID) then
  16. set rs = server.createobject("adodb.recordset")
  17. sql="select * from Wygkcnflash_Download where ViewFlag"&Language&" and ID="&ID
  18. rs.open sql,conn,1,3
  19. If rs("SeoKeywords"&Language) <> "" Then
  20. SeoKeywords=rs("SeoKeywords"&Language)
  21. Else
  22. SeoKeywords=rs("DownName"&Language)
  23. End If
  24. If rs("SeoDescription"&Language) <> "" Then
  25. SeoDescription=rs("SeoDescription"&Language)
  26. Else
  27. SeoDescription=rs("DownName"&Language)
  28. End If
  29. SeoTitle=rs("DownName"&Language)
  30. End If
  31. rs.close
  32. set rs=nothing
  33. headid=6
  34. %>
  35. <!--#include file="Head.Asp" -->
  36. <div class="clear"></div>
  37. <div id="contant">
  38.   <div class="cleft">
  39. <div class="news">
  40.       <div class="title">
  41.   &nbsp;<b>Download List</b>
  42.   </div>
  43.   <div>
  44.   <ul>
  45. <%=WebMenu(0,0,2)%>
  46. </ul>
  47.   </div>
  48.     </div>
  49. <div class="news">
  50.       <div class="title">
  51.   &nbsp;<b>Hot Download</b>
  52.   </div>
  53.   <div>
  54.   <ul>
  55.   <%=Downloadhot(10)%>
  56.   </ul>
  57.   </div>
  58.     </div>
  59.   </div>
  60. <div class="cright">
  61. <div class="crightb">
  62.   <div class="crightbtitle">
  63.     <div class="crightbtitlel">
  64. Location:
  65. </div>
  66. <div class="crightbtitler">
  67. <%=WebLocation()%>
  68. </div>
  69.   </div>
  70.   <div class="crightbcontent">
  71. <table border="0" cellpadding="0" cellspacing="0" width="100%">
  72. <tbody>
  73. <tr>
  74. <td width="26"> </td>
  75. <td>
  76. <p>
  77. <table cellspacing="0" cellpadding="0" width="100%" bgcolor="#ffffff" border="0" heihgt="">
  78.     <tbody>
  79.         <tr>
  80.             <td>
  81. <%
  82.   ID=request.QueryString("ID")
  83.   if ID="" or not IsNumeric(ID) then
  84.     response.write "<center>No Info</center>"
  85.   elseif conn.execute("select * from Wygkcnflash_Download Where ViewFlag"&Language&" and  ID="&ID).eof then
  86.     response.write "<center>No Info</center>"
  87.   else
  88. dim rs,sql
  89.     set rs = server.createobject("adodb.recordset")
  90. sql="select * from Wygkcnflash_Download where ViewFlag"&Language&" and ID="&ID
  91.     rs.open sql,conn,1,3
  92. Response.Write ""&rs("DownName"&Language)&""&VbCrLf
  93.   End If
  94. %>
  95.             </td>
  96.         </tr>
  97.  <tr>
  98.             <td>
  99. <%
  100. if ViewNoRight(rs("GroupID"),rs("Exclusive")) then
  101. Response.Write "        <tr>"&VbCrLf
  102. Response.Write "          <td align=""center"" style=""color:#999999""><strong>UpdateTime:</strong>"&FormatDate(rs("UpdateTime"),13)&" <strong>Size:</strong>"&rs("FileSize")&" <strong>Hits:</strong><script language=""javascript"" src=""HitCount.asp?id="&rs("ID")&"&LX=Wygkcnflash_Download""></script><script language=""javascript"" src=""HitCount.asp?action=count&LX=Wygkcnflash_Download&id="&rs("ID")&"""></script></td>"&VbCrLf
  103. Response.Write "        </tr>"&VbCrLf
  104. Response.Write "        <tr>"&VbCrLf
  105. Response.Write "          <td height=""20"">&nbsp;</td>"&VbCrLf
  106. Response.Write "        </tr>"&VbCrLf
  107. Response.Write "        <tr>"&VbCrLf
  108. Response.Write "          <td style=""line-height:25px; font-size:12px; padding-left: 8px; padding-right: 8px""><a href="""&rs("FileUrl")&"""><strong style=""color:red"">Download</strong></a></td>"&VbCrLf
  109. Response.Write "        </tr>"&VbCrLf
  110. Response.Write "        <tr>"&VbCrLf
  111. Response.Write "          <td style=""line-height:25px; font-size:12px; padding-left: 8px; padding-right: 8px"">"&rs("Content"&Language)&"</td>"&VbCrLf
  112. Response.Write "        </tr>"&VbCrLf
  113. Else
  114. Response.Write "        <tr>"&VbCrLf
  115. Response.Write "          <td align=""center""><img src=""Images/NoRight.jpg""></td>"&VbCrLf
  116. Response.Write "        </tr>"&VbCrLf
  117. end if
  118. rs.update
  119. rs.close
  120. set rs=nothing
  121. %>
  122.             </td>
  123.         </tr>
  124.     </tbody>
  125. </table>
  126. </p>
  127. </td>
  128. <td width="26"> </td>
  129. </tr>
  130. <tr>
  131. <td> </td>
  132. </tr>
  133. </tbody>
  134. </table>
  135. </div>
  136. </div>
  137.   </div>
  138. </div>
  139. <!--#include file="Foot.Asp"-->
  140. <%
  141. function WebMenu(ParentID,i,level)
  142.   dim rs,sql
  143.   set rs = server.createobject("adodb.recordset")
  144.   sql="select * from Wygkcnflash_DownSort where ViewFlag"&Language&" and ParentID="&ParentID&" order by ID asc"
  145.   rs.open sql,conn,1,1
  146.   if conn.execute("select ID from Wygkcnflash_DownSort Where ViewFlag"&Language&" and ParentID=0").eof then
  147.     response.write "No relevant information"
  148.   end if
  149.   do while not rs.eof
  150.    If ISHTML = 1 Then
  151. AutoLink = ""&DownSortName&""&Separated&""&rs("ID")&""&Separated&"1."&HTMLName&""
  152. Else
  153. AutoLink = "DownList.asp?SortID="&rs("ID")&""
  154. End If
  155. if ParentID=0 then
  156.   response.write "<Li>  <img src=""images/Tx_Ar3.gif"" style=""margin-left:5px;"" /> <a href="""&AutoLink&""" target=""_blank"" style=""margin-left:5px;"">"&rs("SortName"&Language)&"</a></li>"
  157. else
  158.   response.write string(i," ")&"<Li>  <img src=""images/Tx_Ar3.gif"" style=""margin-left:5px;"" /> <a href="""&AutoLink&""" target=""_blank"" style=""margin-left:5px;"">"&rs("SortName"&Language)&"</a></li>"
  159. end if
  160.     i=i+1
  161. if i<level then call WebMenu(rs("ID"),i,level)
  162. i=i-1
  163. rs.movenext
  164.   loop 
  165.   rs.close
  166.   set rs=nothing
  167. end function
  168. function WebLocation()
  169.   WebLocation="&nbsp;Location:<a href=""index.asp"" class=""agray"">Home</a> - <a href=""DownList.asp"" class=""agray"">Download Center</a>"&VbCrLf
  170.   if request.QueryString("ID")="" then
  171.     WebLocation=WebLocation
  172.   elseif not IsNumeric(request.QueryString("ID")) then
  173.     WebLocation=WebLocation&"Read error"
  174.   elseif conn.execute("select * from Wygkcnflash_Download Where ViewFlag"&Language&" and  ID="&request.QueryString("ID")).eof then
  175.     WebLocation=WebLocation&"Read error"
  176.   else
  177.     dim rs,sql
  178.     set rs = server.createobject("adodb.recordset")
  179. sql="select * from Wygkcnflash_Download where ViewFlag"&Language&" and ID="&request.QueryString("ID")
  180.     rs.open sql,conn,1,1
  181. WebLocation=WebLocation&SortPathTXT("Wygkcnflash_DownSort",rs("SortID"))
  182.     rs.close
  183.     set rs=nothing
  184.   end if
  185. end Function
  186. function SortPathTXT(DataFrom,ID)
  187.   dim rs,sql
  188.   Set rs=server.CreateObject("adodb.recordset")
  189.   sql="Select * From "&DataFrom&" where ViewFlag"&Language&" and ID="&ID
  190.   rs.open sql,conn,1,1
  191.   if not rs.eof Then
  192. If ISHTML = 1 Then
  193. AutoLink = ""&DownSortName&""&Separated&""&rs("ID")&""&Separated&"1."&HTMLName&""
  194. Else
  195. AutoLink = "DownList.asp?SortID="&rs("ID")&""
  196. End If  
  197. SortPathTXT=SortPathTXT(DataFrom,rs("ParentID"))&" - <a href="""&AutoLink&"""><span style=""color:#EC0000"">"&rs("SortName"&Language)&"</span></a>"
  198.   end if
  199.   rs.close
  200.   set rs=nothing
  201. end Function
  202. %>