<?php
require($tmpDefault->sysFileConfig['PathRoot'].'Cache/DbCache/Adv/Cache_0.php');
require($netsFileConfig['bussinessTemplatePackagePath_Real'].'Component/Head_Gsnavigation_0.php');
?>
<!-- ------ #Ssheet ------ -->
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Zone.css" rel="stylesheet" />
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Gsnavigation.css" rel="stylesheet" />

<!-- ------ #Jscript ------ -->
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/JScript/User/Zone.js" type="text/javascript"></script>
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/JScript/User/Gsnavigation.js" type="text/javascript"></script>

<!-- ------ #Navigation ------ -->
<div class="OutFrame_A Navigation_0"><div><a href="../../../Plus/m_default/Cms/default.php" class="Link1 FBlack1">首页</a>
<span>>></span> <a href="../../../Plus/m_default/Gsnavigation/gsnavigationHome.php" class="Link1 FBlack1">团购导航首页</a>
<?php
$Coun0=count($tmpDefault->sNavigation)-2;
while ($Coun0>-1) { ?>
<span>>></span> <a href="../../../Plus/m_default/Cms/docList.php?ID=<?php echo ($tmpDefault->sNavigation[$Coun0]['cdgtID']); ?>" class="Link1 FBlack1"><?php echo ($tmpDefault->sNavigation[$Coun0]['cdgtName']); ?></a>
<?php $Coun0--; } ?>
<span>>></span> <a href="#Here" class="Link1 FBlack1"><?php echo($tmpDefault->sMetaTitle); ?></a></div></div>
<!-- ------ #Content ------ -->
<div class="OutFrame_A">
<!-- ------ #CENTER ------ -->
<div class="Gsnav_Rang_C">
<!-- ------ #0.0 ------ -->
<ul class="Gsnav_Title_1">
<li class="Gsnav_Title_2"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitList.php" class="Link2 FBlack2">最多团购网站</a></li>

<li class="Gsnav_Title_24">&nbsp;</li>
<li class="Gsnav_Title_23"><a href="#Here" class="Link1 FBlack2">本月</a></li>
<!--
<li class="Gsnav_Title_22"><a href="#Here" class="Link1 FBlack2">本周</a></li>
<li class="Gsnav_Title_22"><a href="#Here" class="Link1 FBlack2">今日</a></li>
-->
<li class="DClear"></li></ul>
<ul class="Gsnav_Box_1 Gsnav_Rang_1_0">
<li class="Gsnav_Rang_1_1">
<div class="Gsnav_Rang_1_2">排名</div>
<div class="Gsnav_Rang_1_3">名称</div>
<div class="Gsnav_Rang_1_4">活动数</div>
<div class="DClear"></div></li>
<?php
$tmpSQL=' SELECT A.gsnutID,A.gsnutName,A.gsnutNameStyle,B.gsnuctInfo_OrderCount,B.gsnuctCount_Views,
	C.gsnatID,C.gsnatName,C.gsnatNameStyle,D.gsnactCount_Order,D.gsnactCount_Views
	FROM {Nets.TableHead}gsnavigationunit AS A
	INNER JOIN {Nets.TableHead}gsnavigationunitcont AS B ON B.gsnuctIndexID=A.gsnutID
	INNER JOIN {Nets.TableHead}gsnavigationactive AS C ON C.gsnatUnitid=A.gsnutID
	INNER JOIN {Nets.TableHead}gsnavigationactivecont AS D ON D.gsnactIndexID=C.gsnatID
	WHERE 1=1 AND A.gsnutRecycle=0 AND A.gsnutChecked>1 AND C.gsnatRecycle=0 AND C.gsnatChecked>1
	ORDER BY B.gsnuctInfo_OrderCount DESC,A.gsnutID LIMIT 0,6 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=1;
foreach($tmpData0 as $Row0){ ?>
<li class="Gsnav_Rang_1_6">
<div class="Gsnav_Rang_1_7"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/num_<?php echo($Coun0); ?>.jpg" /></div>
<div class="Gsnav_Rang_1_8"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitDetail.php?ID=<?php echo($Row0['gsnutID']); ?>" class="Link1 FRed1" target="_blank">[<?php echo($Row0['gsnutName']); ?>]</a><a href="../../../Plus/m_default/Gsnavigation/gsnavigationactiveDetail.php?ID=<?php echo($Row0['gsnatID']); ?>" title="<?php echo($Row0['gsnatName']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['gsnatName']); ?></a></div>
<div class="Gsnav_Rang_1_9"><?php echo($Row0['gsnactCount_Views']); ?></div>
</li>
<?php $Coun0++; } ?>

<li class="DClear"></li></ul>


<!-- ------ #0.1 ------ -->
<ul class="Gsnav_Title_1 Margin_Top">
<li class="Gsnav_Title_2"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitList.php" class="Link2 FBlack2">热门团购网站</a></li>

<li class="Gsnav_Title_24">&nbsp;</li>
<li class="Gsnav_Title_23"><a href="#Here" class="Link1 FBlack2">本月</a></li>
<!--
<li class="Gsnav_Title_22"><a href="#Here" class="Link1 FBlack2">本周</a></li>
<li class="Gsnav_Title_22"><a href="#Here" class="Link1 FBlack2">今日</a></li>
-->
<li class="DClear"></li></ul>
<ul class="Gsnav_Box_1 Gsnav_Rang_1_0">
<li class="Gsnav_Rang_1_1">
<div class="Gsnav_Rang_1_2">排名</div>
<div class="Gsnav_Rang_1_3">名称</div>
<div class="Gsnav_Rang_1_4">点击量</div>
<div class="DClear"></div></li>
<?php
$tmpSQL=' SELECT A.gsnutID,A.gsnutName,A.gsnutNameStyle,B.gsnuctInfo_OrderCount,B.gsnuctCount_Views,
	C.gsnatID,C.gsnatName,C.gsnatNameStyle,D.gsnactCount_Order,D.gsnactCount_Views
	FROM {Nets.TableHead}gsnavigationunit AS A
	INNER JOIN {Nets.TableHead}gsnavigationunitcont AS B ON B.gsnuctIndexID=A.gsnutID
	INNER JOIN {Nets.TableHead}gsnavigationactive AS C ON C.gsnatUnitid=A.gsnutID
	INNER JOIN {Nets.TableHead}gsnavigationactivecont AS D ON D.gsnactIndexID=C.gsnatID
	WHERE 1=1 AND A.gsnutRecycle=0 AND A.gsnutChecked>1 AND C.gsnatRecycle=0 AND C.gsnatChecked>1
	ORDER BY B.gsnuctCount_Views DESC,A.gsnutID LIMIT 0,6 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=1;
foreach($tmpData0 as $Row0){ ?>
<li class="Gsnav_Rang_1_6">
<div class="Gsnav_Rang_1_7"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/num_<?php echo($Coun0); ?>.jpg" /></div>
<div class="Gsnav_Rang_1_8"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitDetail.php?ID=<?php echo($Row0['gsnutID']); ?>" class="Link1 FRed1" target="_blank">[<?php echo($Row0['gsnutName']); ?>]</a><a href="../../../Plus/m_default/Gsnavigation/gsnavigationactiveDetail.php?ID=<?php echo($Row0['gsnatID']); ?>" title="<?php echo($Row0['gsnatName']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['gsnatName']); ?></a></div>
<div class="Gsnav_Rang_1_9"><?php echo($Row0['gsnuctCount_Views']); ?></div>
</li>
<?php $Coun0++; } ?>

<li class="DClear"></li></ul>




</div>
<!-- ------ #RIGHT ------ -->
<div class="Gsnav_Rang_R">

<!-- ------ #1.0 ------ -->
<ul class="Gsnav_Title_1">
<li class="Gsnav_Title_2"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitList.php" class="Link2 FBlack2">最多订购团购活动</a></li>

<li class="Gsnav_Title_24">&nbsp;</li>
<li class="Gsnav_Title_23"><a href="#Here" class="Link1 FBlack2">本月</a></li>
<!--
<li class="Gsnav_Title_22"><a href="#Here" class="Link1 FBlack2">本周</a></li>
<li class="Gsnav_Title_22"><a href="#Here" class="Link1 FBlack2">今日</a></li>
-->
<li class="DClear"></li></ul>
<ul class="Gsnav_Box_1 Gsnav_Rang_1_0">
<li class="Gsnav_Rang_1_1">
<div class="Gsnav_Rang_1_2">排名</div>
<div class="Gsnav_Rang_1_3">名称</div>
<div class="Gsnav_Rang_1_4">订购数</div>
<div class="DClear"></div></li>
<?php
$tmpSQL=' SELECT A.gsnutID,A.gsnutName,A.gsnutNameStyle,B.gsnuctInfo_OrderCount,B.gsnuctCount_Views,
	C.gsnatID,C.gsnatName,C.gsnatNameStyle,D.gsnactCount_Order,D.gsnactCount_Views
	FROM {Nets.TableHead}gsnavigationunit AS A
	INNER JOIN {Nets.TableHead}gsnavigationunitcont AS B ON B.gsnuctIndexID=A.gsnutID
	INNER JOIN {Nets.TableHead}gsnavigationactive AS C ON C.gsnatUnitid=A.gsnutID
	INNER JOIN {Nets.TableHead}gsnavigationactivecont AS D ON D.gsnactIndexID=C.gsnatID
	WHERE 1=1 AND A.gsnutRecycle=0 AND A.gsnutChecked>1 AND C.gsnatRecycle=0 AND C.gsnatChecked>1
	ORDER BY D.gsnactCount_Order DESC,A.gsnutID LIMIT 0,10 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=1;
foreach($tmpData0 as $Row0){ ?>
<li class="Gsnav_Rang_1_6_A">
<div class="Gsnav_Rang_1_7"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/num_<?php echo($Coun0); ?>.jpg" /></div>
<div class="Gsnav_Rang_1_8_A"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitDetail.php?ID=<?php echo($Row0['gsnutID']); ?>" class="Link1 FRed1" target="_blank">[<?php echo($Row0['gsnutName']); ?>]</a><a href="../../../Plus/m_default/Gsnavigation/gsnavigationactiveDetail.php?ID=<?php echo($Row0['gsnatID']); ?>" title="<?php echo($Row0['gsnatName']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['gsnatName']); ?></a></div>
<div class="Gsnav_Rang_1_9"><?php echo($Row0['gsnactCount_Views']); ?></div>
</li>
<?php $Coun0++; } ?>

<li class="DClear"></li></ul>


<!-- ------ #1.1 ------ -->
<ul class="Gsnav_Title_1 Margin_Top">
<li class="Gsnav_Title_2"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitList.php" class="Link2 FBlack2">热门团购活动</a></li>

<li class="Gsnav_Title_24">&nbsp;</li>
<li class="Gsnav_Title_23"><a href="#Here" class="Link1 FBlack2">本月</a></li>
<!--
<li class="Gsnav_Title_22"><a href="#Here" class="Link1 FBlack2">本周</a></li>
<li class="Gsnav_Title_22"><a href="#Here" class="Link1 FBlack2">今日</a></li>
-->
<li class="DClear"></li></ul>
<ul class="Gsnav_Box_1 Gsnav_Rang_1_0">
<li class="Gsnav_Rang_1_1">
<div class="Gsnav_Rang_1_2">排名</div>
<div class="Gsnav_Rang_1_3">名称</div>
<div class="Gsnav_Rang_1_4">点击量</div>
<div class="DClear"></div></li>
<?php
$tmpSQL=' SELECT A.gsnutID,A.gsnutName,A.gsnutNameStyle,B.gsnuctInfo_OrderCount,B.gsnuctCount_Views,
	C.gsnatID,C.gsnatName,C.gsnatNameStyle,D.gsnactCount_Order,D.gsnactCount_Views
	FROM {Nets.TableHead}gsnavigationunit AS A
	INNER JOIN {Nets.TableHead}gsnavigationunitcont AS B ON B.gsnuctIndexID=A.gsnutID
	INNER JOIN {Nets.TableHead}gsnavigationactive AS C ON C.gsnatUnitid=A.gsnutID
	INNER JOIN {Nets.TableHead}gsnavigationactivecont AS D ON D.gsnactIndexID=C.gsnatID
	WHERE 1=1 AND A.gsnutRecycle=0 AND A.gsnutChecked>1 AND C.gsnatRecycle=0 AND C.gsnatChecked>1
	ORDER BY D.gsnactCount_Views DESC,A.gsnutID LIMIT 0,10 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=1;
foreach($tmpData0 as $Row0){ ?>
<li class="Gsnav_Rang_1_6_A">
<div class="Gsnav_Rang_1_7"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/num_<?php echo($Coun0); ?>.jpg" /></div>
<div class="Gsnav_Rang_1_8_A"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitDetail.php?ID=<?php echo($Row0['gsnutID']); ?>" class="Link1 FRed1" target="_blank">[<?php echo($Row0['gsnutName']); ?>]</a><a href="../../../Plus/m_default/Gsnavigation/gsnavigationactiveDetail.php?ID=<?php echo($Row0['gsnatID']); ?>" title="<?php echo($Row0['gsnatName']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['gsnatName']); ?></a></div>
<div class="Gsnav_Rang_1_9"><?php echo($Row0['gsnactCount_Views']); ?></div>
</li>
<?php $Coun0++; } ?>

<li class="DClear"></li></ul>






</div>
<div class="DClear"></div></div>


<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpGsnavigation=new Gsnavigation();
tmpGsnavigation.OnNavigation(3);
//-- ### --
var tmpZone=new Zone();
tmpZone.sFlag="Gsnavigation";

</script>
<?php require($netsFileConfig['bussinessTemplatePackagePath_Real'].'Component/End_Gsnavigation_0.php'); ?>