<!--#include file="Include/Const.Asp" -->
<!--#include file="Include/NoSQL.Asp" -->
<!--#include file="Include/ConnSiteData.Asp" -->
<%
Set fso = Server.CreateObject("Scripting.FileSystemObject")
If fso.FileExists(Server.MapPath(""&SysRootDir&"NoInstall.txt")) Then
    response.Redirect "Install.Asp"
End If
Set fso = Nothing
Call SiteInfo()
If ISHTML = 1 Then
    Response.expires = 0
    Response.expiresabsolute = Now() - 1
    Response.addHeader "pragma", "no-cache"
    Response.addHeader "cache-control", "private"
    Response.CacheControl = "no-cache"
End If
%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width">
<title><%=SiteTitle %> - 千博企业网站管理系统</title>
<meta name="keywords" content="<%=Keywords %>" />
<meta name="description" content="<%=Descriptions %>" />
<link rel="stylesheet" id="rs-plugin-settings-css"  href="/Images/assets/css/settings.css?ver=5.2.5" type="text/css" media="all" />
<style id="rs-plugin-settings-inline-css" type="text/css">
.tp-caption a { color: #ff7302; text-shadow: none; -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; -ms-transition: all 0.2s ease-out; }
.tp-caption a:hover { color: #ffa902; }
.tp-caption a { color: #ff7302; text-shadow: none; -webkit-transition: all 0.2s ease-out; -moz-transition: all 0.2s ease-out; -o-transition: all 0.2s ease-out; -ms-transition: all 0.2s ease-out; }
.tp-caption a:hover { color: #ffa902; }
.tp-caption a.btn, .tp-caption a.btn:hover { color: #fff; }
</style>
<link rel="stylesheet" id="stylesheet-css"  href="/Images/themes/css/style.css?ver=1.5" type="text/css" media="all" />
<script type="text/javascript" src="/Images/themes/js/jquery.min.js?ver=1.11.3"></script>
<script type="text/javascript" src="/Images/assets/js/jquery.themepunch.tools.min.js?ver=5.2.5"></script>
<script type="text/javascript" src="/Images/assets/js/jquery.themepunch.revolution.min.js?ver=5.2.5"></script>
<meta name="applicable-device" content="pc,mobile">
<style>
a, .page-title .title span, .sidebar .widget-title span, .header-1 .header-menu .navbar-nav > li.active > a, .header-1 .header-menu .navbar-nav > li.active > a:hover, .header-1 .header-menu .navbar-nav > li > a:hover, .header-1 .header-menu .navbar-nav > li > a:focus, .header-1 .header-menu .navbar-nav > li > a:active, .header-1 .header-menu .navbar-nav > li:hover > a, .sec-title span, .tel-title, .tel-num, .tell-icon, .header-2 .navbar-nav > li.active > a, .header-2 .search-icon:hover { color: #0088cc; }
a:hover, .sidebar .widget ul a:hover, .sidebar .widget ol a:hover, .post-list .entry-title a:hover, .sec-title .more:hover, .p-item-wrap:hover .title a, .news-list a:hover, .bookmarks a:hover, .header-2 .navbar-nav > li a:hover { color: #0077cc; }
.search-form input.submit, .header-1 .header-menu, .header-1 .header-menu .dropdown-menu > li > a:hover, .header-1 .header-menu .dropdown-menu > li > a:focus, .q-href .q-img:after, .pagination .current, .pagination a:hover, .sidebar .widget_nav_menu, .action .contact-title, .flex-control-paging li a.flex-active, .navbar-default .navbar-toggle:active .icon-bar, .navbar-default .navbar-toggle:hover .icon-bar, .navbar-default .navbar-toggle:focus .icon-bar, .header-1 .navbar-collapse, .dropdown-menu > .active > a, .dropdown-menu > .active > a:hover, .dropdown-menu > .active > a:focus, .form-submit .submit { background-color: #0088cc; }
.search-form input.submit:hover, .sidebar .widget_nav_menu ul li.current-menu-item a, .sidebar .widget_nav_menu ul li.current-post-parent a, .sidebar .widget_nav_menu ul li a:hover, .sidebar .widget_nav_menu ul li.current-menu-item .sub-menu a:hover, .sidebar .widget_nav_menu ul li.current-post-parent .sub-menu a:hover, .action .a-box:hover, .header-1 .header-menu .search-index .search-form input.submit, .flex-control-paging li a:hover, .form-submit .submit:hover { background-color: #0077cc; }
.header-2 .navbar-nav > li.active > a { border-top-color: #0088cc; }
.header-2 .navbar-nav > li a:hover { border-top-color: #0077cc; }
.sec-title span, .sidebar .widget-title span, .page-title .title span { border-bottom-color: #0088cc; }
.p-item-wrap:hover { border-color: #0077cc; }
.tell-icon, .comment-respond input:focus, .comment-form-comment textarea:focus { border-color: #0088cc; }
.j-share { position: fixed !important; top: 50% !important; }
.footer { color: #666; background: #f3f3f3; }
.footer a { color: #666; }
.footer a:hover { color: #333; }
.footer .menu li, .footer .footer-menu li { border-right-color: #666; }
</style>
<script> (function() {if (!/*@cc_on!@*/0) return;var e = "abbr, article, aside, audio, canvas, datalist, details, dialog, eventsource, figure, footer, header, hgroup, mark, menu, meter, nav, output, progress, section, time, video".split(', ');var i= e.length; while (i--){ document.createElement(e[i]) } })()</script>
<!--[if lte IE 8]><script src="/Images/themes/js/respond.min.js"></script><![endif]-->
</head>
<body class="home blog">
<!--#include file="Header.Asp"-->
<div id="wrap">
  <div class="slider">
    <div id="rev_slider_1_1_wrapper" class="rev_slider_wrapper fullwidthbanner-container" style="margin: 0px auto; background-color: #E9E9E9; padding: 0px; margin-top: 0px; margin-bottom: 0px;">
      <div id="rev_slider_1_1" class="rev_slider fullwidthabanner" style="display: none;" data-version="5.2.5">
        <ul>
          <li data-index="rs-2" data-transition="fade" data-slotamount="7" data-hideafterloop="0" data-hideslideonmobile="off"  data-easein="default" data-easeout="default" data-masterspeed="300"  data-thumb="/uploadfile/banner1.jpg"  data-delay="5000"  data-rotate="0"  data-saveperformance="on"  data-title="图片1" data-param1="" data-param2="" data-param3="" data-param4="" data-param5="" data-param6="" data-param7="" data-param8="" data-param9="" data-param10="" data-description="">
            <img src="/uploadfile/banner1.jpg"  alt="图片1" title="图片1"  data-bgposition="center top" data-bgfit="cover" data-bgrepeat="no-repeat" class="rev-slidebg" data-no-retina>
          </li>
          <li data-index="rs-3" data-transition="fade" data-slotamount="default" data-hideafterloop="0" data-hideslideonmobile="off"  data-easein="default" data-easeout="default" data-masterspeed="300"  data-thumb="/uploadfile/banner2.jpg"  data-delay="5000"  data-rotate="0"  data-saveperformance="off"  data-title="图片2" data-param1="" data-param2="" data-param3="" data-param4="" data-param5="" data-param6="" data-param7="" data-param8="" data-param9="" data-param10="" data-description="">
            <img src="/uploadfile/banner2.jpg"  alt="图片2" title="图片2"  width="2340" height="1313" data-bgposition="center center" data-bgfit="cover" data-bgrepeat="no-repeat" class="rev-slidebg" data-no-retina>
          </li>
        </ul>
        <script>
		var htmlDiv = document.getElementById("rs-plugin-settings-inline-css"); var htmlDivCss="";
		if(htmlDiv) {
			htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss;
		}else{
			var htmlDiv = document.createElement("div");
			htmlDiv.innerHTML = "<style>" + htmlDivCss + "</style>";
			document.getElementsByTagName("head")[0].appendChild(htmlDiv.childNodes[0]);
		}
		</script>
        <div class="tp-bannertimer tp-bottom" style="visibility: hidden !important;"></div>
      </div>
      <script>
		var htmlDiv = document.getElementById("rs-plugin-settings-inline-css"); var htmlDivCss=".tp-caption.medium_light_white, .medium_light_white { font-size: 38px; line-height: 38px; font-weight: 500; font-family: \"Open Sans\"; color: rgb(255,255,255); text-decoration: none; padding: 0px; background-color: transparent; border-width: 0px; border-color: rgb(255,214,88); border-style: none; }.tp-caption.small_light_white, .small_light_white { font-size: 17px; line-height: 28px; font-weight: 300; color: rgb(255,255,255); text-decoration: none; padding: 0px; background-color: transparent; border-width: 0px; border-color: rgb(255,214,88); border-style: none; }";
		if(htmlDiv) {
			htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss;
		}else{
			var htmlDiv = document.createElement("div");
			htmlDiv.innerHTML = "<style>" + htmlDivCss + "</style>";
			document.getElementsByTagName("head")[0].appendChild(htmlDiv.childNodes[0]);
		}
      </script>
      <script type="text/javascript">
		var setREVStartSize=function(){
			try{var e=new Object,i=jQuery(window).width(),t=9999,r=0,n=0,l=0,f=0,s=0,h=0;
				e.c = jQuery('#rev_slider_1_1');
				e.gridwidth = [980];
				e.gridheight = [450];
				e.sliderLayout = "fullwidth";
				if(e.responsiveLevels&&(jQuery.each(e.responsiveLevels,function(e,f){f>i&&(t=r=f,l=e),i>f&&f>r&&(r=f,n=e)}),t>r&&(l=n)),f=e.gridheight[l]||e.gridheight[0]||e.gridheight,s=e.gridwidth[l]||e.gridwidth[0]||e.gridwidth,h=i/s,h=h>1?1:h,f=Math.round(h*f),"fullscreen"==e.sliderLayout){var u=(e.c.width(),jQuery(window).height());if(void 0!=e.fullScreenOffsetContainer){var c=e.fullScreenOffsetContainer.split(",");if (c) jQuery.each(c,function(e,i){u=jQuery(i).length>0?u-jQuery(i).outerHeight(!0):u}),e.fullScreenOffset.split("%").length>1&&void 0!=e.fullScreenOffset&&e.fullScreenOffset.length>0?u-=jQuery(window).height()*parseInt(e.fullScreenOffset,0)/100:void 0!=e.fullScreenOffset&&e.fullScreenOffset.length>0&&(u-=parseInt(e.fullScreenOffset,0))}f=u}else void 0!=e.minHeight&&f<e.minHeight&&(f=e.minHeight);e.c.closest(".rev_slider_wrapper").css({height:f})
			}catch(d){console.log("Failure at Presize of Slider:"+d)}
		};
		setREVStartSize();
		var tpj=jQuery;
		tpj.noConflict();
		var revapi1;
		tpj(document).ready(function() {
			if(tpj("#rev_slider_1_1").revolution == undefined){
				revslider_showDoubleJqueryError("#rev_slider_1_1");
			}else{
				revapi1 = tpj("#rev_slider_1_1").show().revolution({
					sliderType:"standard",
					jsFileLocation:"/Images/assets/js/",
					sliderLayout:"fullwidth",
					dottedOverlay:"none",
					delay:6000,
					navigation: {
						keyboardNavigation:"off",
						keyboard_direction: "horizontal",
						mouseScrollNavigation:"off",
						mouseScrollReverse:"default",
						onHoverStop:"on",
						touch:{
							touchenabled:"on",
							swipe_threshold: 75,
							swipe_min_touches: 1,
							swipe_direction: "horizontal",
							drag_block_vertical: false
						}
						,
						arrows: {
							style:"uranus",
							enable:true,
							hide_onmobile:false,
							hide_onleave:true,
							hide_delay:200,
							hide_delay_mobile:1200,
							tmp:'',
							left: {
								h_align:"left",
								v_align:"center",
								h_offset:20,
								v_offset:0
							},
							right: {
								h_align:"right",
								v_align:"center",
								h_offset:20,
								v_offset:0
							}
						}
						,
						bullets: {
							enable:true,
							hide_onmobile:false,
							style:"ares",
							hide_onleave:true,
							hide_delay:200,
							hide_delay_mobile:1200,
							direction:"horizontal",
							h_align:"center",
							v_align:"bottom",
							h_offset:0,
							v_offset:20,
							space:10,
							tmp:'<span class="tp-bullet-title">{{title}}</span>'
						}
					},
					visibilityLevels:[1240,1024,778,480],
					gridwidth:980,
					gridheight:450,
					lazyType:"none",
					shadow:0,
					spinner:"spinner0",
					stopLoop:"off",
					stopAfterLoops:-1,
					stopAtSlide:-1,
					shuffle:"off",
					autoHeight:"off",
					disableProgressBar:"on",
					hideThumbsOnMobile:"off",
					hideSliderAtLimit:0,
					hideCaptionAtLimit:0,
					hideAllCaptionAtLilmit:0,
					debugMode:false,
					fallbacks: {
						simplifyAll:"on",
						nextSlideOnWindowFocus:"off",
						disableFocusListener:false,
					}
				});
			}
		});
      </script>
      <script>
		var htmlDivCss = "#rev_slider_1_1 .uranus.tparrows{width:50px;height:50px;background:rgba(255,255,255,0)}#rev_slider_1_1 .uranus.tparrows:before{width:50px;height:50px;line-height:50px;font-size:40px;transition:all .3s;-webkit-transition:all .3s}#rev_slider_1_1 .uranus.tparrows:hover:before{opacity:.75}.ares.tp-bullets:before{content:\" \";position:absolute;width:100%;height:100%;background:transparent;padding:10px;margin-left:-10px;margin-top:-10px;box-sizing:content-box}.ares .tp-bullet{width:13px;height:13px;position:absolute;background:rgba(229,229,229,1);border-radius:50%;cursor:pointer;box-sizing:content-box}.ares .tp-bullet:hover,.ares .tp-bullet.selected{background:rgba(255,255,255,1)}.ares .tp-bullet-title{position:absolute;color:136,136,136;font-size:12px;padding:0 10px;font-weight:600;right:27px;top:-4px;background:rgba(255,255,255,0.75);visibility:hidden;transform:translatex(-20px);-webkit-transform:translatex(-20px);transition:transform .3s;-webkit-transition:transform .3s;line-height:20px;white-space:nowrap}.ares .tp-bullet-title:after{width:0;height:0;border-style:solid;border-width:10px 0 10px 10px;border-color:transparent transparent transparent rgba(255,255,255,0.75);content:\" \";position:absolute;right:-10px;top:0}.ares .tp-bullet:hover .tp-bullet-title{visibility:visible;transform:translatex(0px);-webkit-transform:translatex(0px)}.ares .tp-bullet.selected:hover .tp-bullet-title{background:rgba(255,255,255,1)}.ares .tp-bullet.selected:hover .tp-bullet-title:after{border-color:transparent transparent transparent rgba(255,255,255,1)}.ares.tp-bullets:hover .tp-bullet-title{visibility:hidden}.ares.tp-bullets:hover .tp-bullet:hover .tp-bullet-title{visibility:visible;transform:translateX(0px) translatey(0px);-webkit-transform:translateX(0px) translatey(0px)}.ares.nav-dir-vertical.nav-pos-hor-left .tp-bullet-title{right:auto;left:27px;transform:translatex(20px);-webkit-transform:translatex(20px)}.ares.nav-dir-vertical.nav-pos-hor-left .tp-bullet-title:after{border-width:10px 10px 10px 0 !important;border-color:transparent rgba(255,255,255,0.75) transparent transparent;right:auto !important;left:-10px !important}.ares.nav-dir-vertical.nav-pos-hor-left .tp-bullet.selected:hover .tp-bullet-title:after{border-color:transparent rgba(255,255,255,1) transparent transparent !important}.ares.nav-dir-horizontal.nav-pos-ver-center .tp-bullet-title,.ares.nav-dir-horizontal.nav-pos-ver-bottom .tp-bullet-title{top:-35px;left:50%;right:auto;transform:translateX(-50%) translateY(-10px);-webkit-transform:translateX(-50%) translateY(-10px)}.ares.nav-dir-horizontal.nav-pos-ver-center .tp-bullet-title:after,.ares.nav-dir-horizontal.nav-pos-ver-bottom .tp-bullet-title:after{border-width:10px 10px 0 10px;border-color:rgba(255,255,255,0.75) transparent transparent transparent;right:auto;left:50%;margin-left:-10px;top:auto;bottom:-10px}.ares.nav-dir-horizontal.nav-pos-ver-center .tp-bullet.selected:hover .tp-bullet-title:after,.ares.nav-dir-horizontal.nav-pos-ver-bottom .tp-bullet.selected:hover .tp-bullet-title:after{border-color:rgba(255,255,255,1) transparent transparent transparent}.ares.nav-dir-horizontal.nav-pos-ver-center .tp-bullet:hover .tp-bullet-title,.ares.nav-dir-horizontal.nav-pos-ver-bottom .tp-bullet:hover .tp-bullet-title{transform:translateX(-50%) translatey(0px);-webkit-transform:translateX(-50%) translatey(0px)}.ares.nav-dir-horizontal.nav-pos-ver-top .tp-bullet-title{top:25px;left:50%;right:auto;transform:translateX(-50%) translateY(10px);-webkit-transform:translateX(-50%) translateY(10px)}.ares.nav-dir-horizontal.nav-pos-ver-top .tp-bullet-title:after{border-width:0 10px 10px 10px;border-color:transparent transparent rgba(255,255,255,0.75) transparent;right:auto;left:50%;margin-left:-10px;bottom:auto;top:-10px}.ares.nav-dir-horizontal.nav-pos-ver-top .tp-bullet.selected:hover .tp-bullet-title:after{border-color:transparent transparent rgba(255,255,255,1) transparent}.ares.nav-dir-horizontal.nav-pos-ver-top .tp-bullet:hover .tp-bullet-title{transform:translateX(-50%) translatey(0px);-webkit-transform:translateX(-50%) translatey(0px)}";
		var htmlDiv = document.getElementById('rs-plugin-settings-inline-css');
		if(htmlDiv) {
			htmlDiv.innerHTML = htmlDiv.innerHTML + htmlDivCss;
		}
		else{
			var htmlDiv = document.createElement('div');
			htmlDiv.innerHTML = '<style>' + htmlDivCss + '</style>';
			document.getElementsByTagName('head')[0].appendChild(htmlDiv.childNodes[0]);
		}
      </script>
    </div>
  </div>
  <div class="container">
    <section class="section q-link row">
      <div class="col-xs-6 col-md-3 q-item"><a class="q-href" target="_blank" href="Products.html">
        <div class="q-img"><img src="/uploadfile/list1.jpg" alt="公司产品"></div>
        <div class="q-title">公司产品</div>
        </a></div>
      <div class="col-xs-6 col-md-3 q-item"><a class="q-href" target="_blank" href="About.html">
        <div class="q-img"><img src="/uploadfile/list2.jpg" alt="关于我们"></div>
        <div class="q-title">关于我们</div>
        </a></div>
      <div class="col-xs-6 col-md-3 q-item"><a class="q-href" target="_blank" href="Contact.html">
        <div class="q-img"><img src="/uploadfile/list3.jpg" alt="联系我们"></div>
        <div class="q-title">联系我们</div>
        </a></div>
      <div class="col-xs-6 col-md-3 q-item"><a class="q-href" target="_blank" href="News.html">
        <div class="q-img"><img src="/uploadfile/list4.jpg" alt="企业新闻"></div>
        <div class="q-title">企业新闻</div>
        </a></div>
    </section>
    <section class="section row">
      <div class="col-xs-12 col-sm-12 col-md-4 sec-about">
        <h3 class="sec-title"><a class="more pull-right" href="About.html">更多 &raquo;</a><span>关于我们</span> / About Us </h3>
        <div class="sec-about">
          <p><%=SiteDetail%></p>
        </div>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <h3 class="sec-title"><a class="more pull-right" href="News.html">更多 &raquo;</a><span>新闻动态</span> / News </h3>
        <ul class="news-list">
<%=IndexNews("0,1,2,", 10)%>
        </ul>
      </div>
      <div class="col-xs-12 col-sm-6 col-md-4">
        <h3 class="sec-title"><a class="more pull-right" href="News.html">更多 &raquo;</a><span>业界动态</span> / Industry Dynamics </h3>
        <ul class="news-list">
<%=IndexNews("0,1,3,", 10)%>
        </ul>
      </div>
    </section>
    <section class="products section">
      <h3 class="sec-title"><a class="more pull-right" href="Products.html">更多 &raquo;</a><span>最新产品</span> / Latest Products </h3>
      <ul class="p-list clearfix">
<%=IndexProducts(1, "0,", 8)%>
      </ul>
    </section>
    <section class="section">
      <h3 class="sec-title"><a class="more pull-right" href="Products.html">更多 &raquo;</a><span>热门产品</span> / Hot Products </h3>
      <div class="flexslider j-slider">
        <ul class="slides">
<%=IndexProducts(2, "0,", 8)%>
        </ul>
      </div>
    </section>
    <section class="section">
      <h3 class="sec-title"><span>友情链接</span> / FriendLinks </h3>
      <ul class="c-list clearfix">
        <%=FriendLinks()%>
      </ul>
    </section>
  </div>
</div>
<!--#include file="Footer.Asp"-->
</body>
</html>
<%
Function IndexNews(SortPath, ArticleNum)
    Set rs = Server.CreateObject("Adodb.Recordset")
	sql = "Select Top " & ArticleNum & " * From Qianbo_News Where ViewFlag And Instr(SortPath,'" & SortPath & "') > 0 Order By ID Desc"
    rs.Open sql, conn, 1, 1
    If Not rs.EOF Then
		i = 1
        Do While Not rs.EOF
            If ISHTML = 1 Then
                AutoLink = "" & NewName & Separated & rs("ID") & "." & HTMLName & ""
            Else
                AutoLink = "NewsView.Asp?ID=" & rs("ID") & ""
            End If
			If i = 1 Then
				Response.Write"          <li class=""news-first"">" & vbCrLf
				Response.Write"            <div><span class=""date pull-right"">" & FormatDate(rs("AddTime"), 2) & " </span><a href=""" & AutoLink & """ title=""" & rs("NewsName") & """>" & rs("NewsName") & "</a></div>" & vbCrLf
				Response.Write"            <p class=""news-excerpt"">" & rs("SeoDescription") & "</p>" & vbCrLf
				Response.Write"          </li>" & vbCrLf
			Else
				Response.Write"          <li class=""news-item""><span class=""date pull-right"">" & FormatDate(rs("AddTime"), 2) & " </span><a href=""" & AutoLink & """ title=""" & rs("NewsName") & """>" & rs("NewsName") & "</a></li>" & vbCrLf
			End If
            rs.movenext
			i = i + 1
        Loop
    End If
    rs.Close
    Set rs = Nothing
End Function

Function FormatDate(Byval t, Byval ftype)
    Dim y, m, d, h, mi, s
    FormatDate = ""
    If IsDate(t) = False Then Exit Function
    y = CStr(Year(t))
    m = CStr(Month(t))
    If Len(m) = 1 Then m = "0" & m
    d = CStr(Day(t))
    If Len(d) = 1 Then d = "0" & d
    h = CStr(Hour(t))
    If Len(h) = 1 Then h = "0" & h
    mi = CStr(Minute(t))
    If Len(mi) = 1 Then mi = "0" & mi
    s = CStr(Second(t))
    If Len(s) = 1 Then s = "0" & s
    Select Case CInt(ftype)
        Case 1
            FormatDate = y & "-" & m & "-" & d
        Case 2
            'FormatDate = Right(y, 2) & "-" & m & "-" & d
            FormatDate = y & "-" & m & "-" & d
        Case 3
            FormatDate = m & "-" & d
        Case 4
            FormatDate = y & "-" & m & "-" & d & " " & h & ":" & mi & ":" & s
        Case 5
            FormatDate = h & ":" & mi & ":" & s
        Case 6
            FormatDate = y & "年" & m & "月" & d & "日"
        Case 7
            FormatDate = y & m & d
        Case 8
            FormatDate = y & m & d & h & mi & s
    End Select
End Function

Function IndexProducts(sType, SortPath, ProCount)
    Set rs = Server.CreateObject("Adodb.Recordset")
	If sType = 1 Then
		sql = "Select Top " & ProCount & " * From Qianbo_Products Where ViewFlag And Instr(SortPath,'" & SortPath & "') > 0 Order By ID Desc"
	Else
		sql = "Select Top " & ProCount & " * From Qianbo_Products Where ViewFlag And CommendFlag And Instr(SortPath,'" & SortPath & "') > 0 Order By ID Desc"
	End If
    rs.Open sql, conn, 1, 1
    If Not rs.EOF Then
        While Not rs.EOF
			If ISHTML = 1 Then
				AutoLink = "" & ProName & Separated & rs("ID") & "." & HTMLName & ""
			Else
				AutoLink = "ProductView.Asp?ID=" & rs("ID") & ""
			End If
			If sType = 1 Then
				Response.Write"        <li class=""col-xs-6 col-md-3 col-sm-6 p-item"">" & vbCrLf
				Response.Write"          <div class=""p-item-wrap""><a class=""thumb"" href=""" & AutoLink & """ title=""" & rs("ProductName") & """><img src=""" & rs("BigPic") & """ width=""480"" height=""320"" alt=""" & rs("ProductName") & """></a>" & vbCrLf
				Response.Write"            <h2 class=""title""><a href=""" & AutoLink & """ title=""" & rs("ProductName") & """>" & rs("ProductName") & "</a></h2>" & vbCrLf
				Response.Write"          </div>" & vbCrLf
				Response.Write"        </li>" & vbCrLf
			Else
				Response.Write"          <li>" & vbCrLf
				Response.Write"            <div class=""p-item-wrap""><a class=""thumb"" href=""" & AutoLink & """><img src=""" & rs("BigPic") & """ width=""480"" height=""320"" alt=""" & rs("ProductName") & """></a>" & vbCrLf
				Response.Write"              <h2 class=""title""><a href=""" & AutoLink & """ title=""" & rs("ProductName") & """> " & rs("ProductName") & " </a></h2>" & vbCrLf
				Response.Write"            </div>" & vbCrLf
				Response.Write"          </li>" & vbCrLf
			End If
            rs.movenext
        Wend
    End If
    rs.Close
    Set rs = Nothing
End Function

Function FriendLinks()
    Dim rs, sql, tr, td, ProductName, SmallPicPath
    Set rs = server.CreateObject("adodb.recordset")
    sql = "Select  * From Qianbo_FriendLink Where ViewFlag Order By ID Asc"
    rs.Open sql, conn, 1, 1
    If Not rs.EOF Then
        While Not rs.EOF
			Response.Write"<li class=""c-item""><a href=""" & rs("LinkUrl") & """ title=""" & rs("LinkName") & """ target=""_blank""><img src=""" & rs("LinkFace") & """ class=""attachment-full size-full wp-post-image"" alt=""" & rs("LinkName") & """ /></a></li>"
            rs.movenext
        Wend
    End If
    rs.Close
    Set rs = Nothing
End Function
%>