About.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/ConnSiteData.asp" -->
  4. <!--#include file="../Include/NoHackSql.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. if request.QueryString("ID")="" then
  15. SeoTitle="关于我们"
  16. elseif not IsNumeric(request.QueryString("ID")) then
  17. SeoTitle="参数错误"
  18. elseif conn.execute("select * from Wygkcnflash_About Where ViewFlag"&Language&" and  ID="&request.QueryString("ID")).eof then
  19. SeoTitle="参数错误"
  20. else
  21. set rs = server.createobject("adodb.recordset")
  22. sql="select * from Wygkcnflash_About where ViewFlag"&Language&" and ID="&request.QueryString("ID")
  23. rs.open sql,conn,1,1
  24. SeoTitle=rs("AboutName"&Language)
  25. rs.close
  26. set rs=nothing
  27. end if
  28. headid=1
  29. %>
  30. <!--#include file="Head2.Asp" -->
  31. <DIV class=mian>
  32. <DIV class=rightbar>
  33. <H5><%=WebLocation()%></H5>
  34. <DIV class=lefterbar>
  35. <DIV id=d_con1><p>
  36.     <%
  37.   dim rs,sql
  38.   set rs = server.createobject("adodb.recordset")
  39.   if request.QueryString("ID")="" or not IsNumeric(request.QueryString("ID")) then
  40. sql="select top 1 * from Wygkcnflash_About where ViewFlag"&Language&" and not ChildFlag order by Sequence asc"
  41.   else
  42. sql="select * from Wygkcnflash_About where ViewFlag"&Language&" and ID="&request.QueryString("ID")
  43.   end if
  44.   rs.open sql,conn,1,3
  45.   if rs.eof Then
  46. %>
  47.            暂无相关信息
  48.             <%
  49.   Else
  50. if ViewNoRight(rs("GroupID"),rs("Exclusive")) then
  51. %><%=rs("Content"&Language)%><%end if
  52. end if%>
  53. </p>
  54. </DIV>
  55. <DIV style="DISPLAY: none" id=d_con2>
  56. 可以后台利用图文、视频、音频、动画等进行全方位介绍。</DIV>
  57. <DIV style="DISPLAY: none" id=d_con3>
  58. 可以后台利用图文、视频、音频、动画等进行全方位介绍。</DIV>
  59. <DIV style="DISPLAY: none" id=d_con4>
  60. 可以后台利用图文、视频、音频、动画等进行全方位介绍。</DIV></DIV>
  61. <DIV class=clearbox></DIV>
  62. </DIV>
  63. <DIV class=leftbar>
  64. <DL>
  65.   <DT>关于我们 
  66.   <DD class=list_1>
  67.   <UL>
  68.   
  69.   
  70.   <!--函数开始-->
  71.     <%If ISHTML = 1 Then
  72. AboutAutoLink = ""&ProSortName&"."&HTMLName&""
  73. Else
  74. AboutAutoLink = "about.asp"
  75. End If%>
  76.     <LI>
  77.   <A title=# href="<%=AboutAutoLink%>">公司概况</A>
  78.     <UL><%=ComWebMenu()%></UL>
  79. <%If ISHTML = 1 Then
  80. NewsAutoLink = ""&NewSortName&"."&HTMLName&""
  81. Else
  82. NewsAutoLink = "Newslist.asp"
  83. End If%>
  84.     <LI>
  85.   <A title=# href="<%=NewsAutoLink%>">新闻中心</A>
  86.     <UL><%=NewsWebMenu()%></UL>
  87.  
  88.   <%If ISHTML = 1 Then
  89. JobAutoLink = ""&JobSortName&"."&HTMLName&""
  90. Else
  91. JobAutoLink = "joblist.asp"
  92. End If%>
  93.  
  94.     <LI>
  95.   <A title=# href="<%=JobAutoLink%>">人才招聘</A>
  96.     <UL><%=JobWebMenu()%></UL>
  97. </LI>
  98.    <!--函数结束-->
  99. </UL>
  100. </DD>
  101.   <DT>产品列表 
  102.   <DD>
  103.   <UL>
  104.     <%call CallFolderView()%>
  105.   </UL></DD></DL>
  106. <DIV class=clearbox></DIV></DIV></DIV>
  107. <!--#include file="Foot.Asp"-->
  108. <%
  109. '调用显示节点------------------------------
  110. Function CallFolderView()
  111. %>
  112. <% Folder(0) %>
  113. <%
  114. End Function
  115. '列出所有节点------------------------------
  116. Function Folder(id)
  117.   Dim rs,sql,i,ChildCount,FolderType,FolderName,onMouseUp,ListType,ViewFlag
  118.   Set rs=server.CreateObject("adodb.recordset")
  119.   sql="Select * From Wygkcnflash_ProductSort where ViewFlag"&Language&" and ParentID="&id&" order by id"
  120.   rs.open sql,conn,1,1
  121.   if id=0 and rs.recordcount=0 then
  122.     response.write ("No Information!")
  123.     response.end
  124.   end if  
  125.   i=1
  126.   response.write("<table border='0' cellspacing='0' cellpadding='0' style='margin-left:16px;line-height:25px'>")
  127.   while not rs.eof
  128.     ChildCount=conn.execute("select count(*) from Wygkcnflash_ProductSort where ParentID="&rs("id"))(0)
  129.     if ChildCount=0 then
  130.   if i=rs.recordcount then
  131.     FolderType="SortFileEnd"
  132.   else
  133.     FolderType="SortFile"
  134.   end if
  135.   FolderName=rs("SortNameCh")&"&nbsp;"&ViewFlag
  136.   onMouseUp=""
  137.     else
  138.   if i=rs.recordcount then
  139.   FolderType="SortEndFolderOpen"
  140. ListType="SortEndListline"
  141. onMouseUp="EndSortChange('a"&rs("id")&"','b"&rs("id")&"');"
  142.   else
  143. FolderType="SortFolderOpen"
  144. ListType="SortListline"
  145. onMouseUp="SortChange('a"&rs("id")&"','b"&rs("id")&"');"
  146.   end if
  147.   FolderName=rs("SortNameCh")&"&nbsp;"&ViewFlag
  148.     end if
  149.     response.write("<tr>")
  150.      response.write("<td nowrap id='b"&rs("id")&"' class='"&FolderType&"' onMouseUp="&onMouseUp&"></td><td nowrap><a href=""ProductList.asp?SortID="&rs("ID")&""">"&FolderName&"</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;")
  151.     response.write("</td></tr>")
  152.     if ChildCount>0 then
  153. %>
  154.       <tr id="a<%= rs("id")%>" style="display:none"><td class="<%= ListType%>" nowrap></td><td ><% Folder(rs("id")) %></td></tr>
  155. <%
  156.     end if
  157.     rs.movenext
  158.     i=i+1
  159.   wend
  160.   response.write("</table>")
  161.   rs.close
  162.   set rs=nothing
  163. end function
  164. function ComWebMenu()
  165.   dim rs,sql
  166.   set rs = server.createobject("adodb.recordset")
  167.   sql="select * from Wygkcnflash_About where ViewFlag"&Language&" and not ChildFlag order by Sequence asc"
  168.   rs.open sql,conn,1,1
  169.   if rs.eof then
  170.     response.write "暂无相关信息"
  171.   else
  172.     do
  173. If ISHTML = 1 Then
  174. AutoLink = ""&AboutNameDiy&""&Separated&""&rs("ID")&"."&HTMLName&""
  175. Else
  176. AutoLink = "About.asp?ID="&rs("ID")&""
  177. End If
  178.       response.write "<Li><a href="""&AutoLink&""" style=""margin-left:5px;"">"&rs("AboutName"&Language)&"</a></li>"
  179.       rs.movenext
  180.     loop until rs.eof
  181.   end if
  182.   rs.close
  183.   set rs=nothing
  184. end function
  185. function NewsWebMenu()
  186.   dim rs,sql
  187.   set rs = server.createobject("adodb.recordset")
  188.   sql="select * from Wygkcnflash_NewsSort Where ViewFlag"&Language&" and ParentID=0 order by ID asc"
  189.   rs.open sql,conn,1,1
  190.   if rs.eof then
  191.     response.write "暂无相关信息"
  192.   else
  193.     do
  194. If ISHTML = 1 Then
  195. AutoLink = ""&NewSortName&""&Separated&""&rs("ID")&""&Separated&"1."&HTMLName&""
  196. Else
  197. AutoLink = "NewsList.asp?SortID="&rs("ID")&""
  198. End If
  199.       response.write "<Li><a href="""&AutoLink&""" style=""margin-left:5px;"">"&rs("SortName"&Language)&"</a></li>"
  200.       rs.movenext
  201.     loop until rs.eof
  202.   end if
  203.   rs.close
  204.   set rs=nothing
  205. end function
  206. function JobWebMenu()
  207. If ISHTML = 1 Then
  208. AutoLink = ""&JobSortName&""&Separated&""&rs("ID")&"."&HTMLName&""
  209. Else
  210. AutoLink = "joblist.asp"
  211. End If
  212.   response.write "<li><a href="""&AutoLink&""" style=""margin-left:5px;"">招聘信息</a></li>"
  213.   response.write "<li><a href=""MemberTalent.asp"" style=""margin-left:5px;"">我的应聘</a></li>"
  214. end function
  215. function WebLocation()
  216.   WebLocation=""
  217.   dim rs,sql
  218.   set rs = server.createobject("adodb.recordset")
  219.   if request.QueryString("ID")="" or not IsNumeric(request.QueryString("ID")) then
  220. sql="select top 1 * from Wygkcnflash_About where ViewFlag"&Language&" and not ChildFlag order by Sequence asc"
  221.   else
  222. sql="select * from Wygkcnflash_About where ViewFlag"&Language&" and ID="&request.QueryString("ID")
  223.   end if
  224.   rs.open sql,conn,1,1
  225.   if rs.eof then
  226.     WebLocation=WebLocation&"参数错误"
  227.   else
  228.     WebLocation=WebLocation&""&rs("AboutName"&Language)
  229.   end if
  230.   rs.close
  231.   set rs=nothing
  232. end Function
  233. %>