<?php
require($tmpDefault->sysFileConfig['PathRoot'].'Cache/DbCache/Adv/Cache_0.php');
require($netsFileConfig['bussinessTemplatePackagePath_Real'].'Component/Head_Gsnavigation_0.php');

$tmpTimeruns='';
?>
<!-- ------ #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>

<!-- ------ #Content ------ -->
<!-- ------ #0 ------ -->
<div class="OutFrame_A Margin_Top">
<!-- ------ #CENTER ------ -->
<div class="Gsnav_C">
<!-- ### -->
<ul class="Gsnav_Title_1">
<li class="Gsnav_Title_3"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitList.php" class="Link2 FWhite1">热门团购网</a></li>

<li class="DClear"></li></ul>
<ul class="Gsnav_Box_1 Gsnav_Home_2_1">
<?php
$tmpSQL=' SELECT A.gsnutID,A.gsnutName,A.gsnutParid,A.gsnutNameStyle
	FROM {Nets.TableHead}gsnavigationunit AS A
	INNER JOIN {Nets.TableHead}gsnavigationunitcont AS B ON B.gsnuctIndexID=A.gsnutID
	WHERE 1=1 AND A.gsnutRecycle=0 AND A.gsnutChecked>1 {Nets.Zoneid}
	ORDER BY A.gsnutOrderBy DESC,A.gsnutID DESC LIMIT 0,40 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
if($tmpDefault->sZoneid!=-1){
	$tmpSTR=str_replace('{Nets.Zoneid}',' AND (B.gsnuctInfo_Zones LIKE \''.$tmpDefault->sZoneid.',%\' OR B.gsnuctInfo_Zones LIKE \'%,'.$tmpDefault->sZoneid.',%\') ',$tmpSTR);
}else{
	$tmpSTR=str_replace('{Nets.Zoneid}',' ',$tmpSTR);
}
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li class="Gsnav_Head_3_1"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitDetail.php?ID=<?php echo($Row0['gsnutID']); ?>" class="Link1 FBlack2"><?php echo($Row0['gsnutName']); ?></a></li>
<?php $Coun0++; } ?>

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


</div>
<!-- ------ #RIGHT ------ -->
<div class="Gsnav_R">
<!-- ### -->
<ul class="Gsnav_Title_5">
<li id="tabinfobox_Button_0" class="Gsnav_Title_6"><a href="#Here" onclick="tmpGsnavigation.OnTabInfobox(0);" class="Link1 FBlack3">公告</a></li>
<li id="tabinfobox_Button_1" class="Gsnav_Title_7"><a href="#Here" onclick="tmpGsnavigation.OnTabInfobox(1);" class="Link1 FBlack3">规则</a></li>
<li id="tabinfobox_Button_2" class="Gsnav_Title_7"><a href="#Here" onclick="tmpGsnavigation.OnTabInfobox(2);" class="Link1 FBlack3">安全交易</a></li>

<li class="DClear"></li></ul>
<!-- ### -->
<ul id="tabinfobox_Box_0" class="Gsnav_Box_2 Gsnav_Home_2_1">
<li class="Gsnav_Home_1_1"><?php echo($sysCmsadvData['Gsnavigation_Homeright_A']); ?></li>
<?php
$tmpParid=16;
$tmpSQL=' SELECT A.cdtID,A.cdtName,A.cdtNameStyle
	FROM {Nets.TableHead}cmsdoc AS A
	WHERE 1=1 AND A.cdtRecycle=0 AND A.cdtChecked>1 AND A.cdtParid={Nets.Parid}
	ORDER BY A.cdtOrderBy DESC,A.cdtID DESC LIMIT 0,4 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$tmpParid,$tmpSTR);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li class="Gsnav_Home_1_2"><a href="../../../Plus/m_default/Cms/docDetail.php?ID=<?php echo($Row0['cdtID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['cdtName']); ?></a></li>
<?php $Coun0++; } ?></ul>
<!-- ### -->
<ul id="tabinfobox_Box_1" class="DHidden">
<li class="Gsnav_Home_1_1"><?php echo($sysCmsadvData['Gsnavigation_Homeright_B']); ?></li>
<?php
$tmpParid=17;
$tmpSQL=' SELECT A.cdtID,A.cdtName,A.cdtNameStyle
	FROM {Nets.TableHead}cmsdoc AS A
	WHERE 1=1 AND A.cdtRecycle=0 AND A.cdtChecked>1 AND A.cdtParid={Nets.Parid}
	ORDER BY A.cdtOrderBy DESC,A.cdtID DESC LIMIT 0,4 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$tmpParid,$tmpSTR);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li class="Gsnav_Home_1_2"><a href="../../../Plus/m_default/Cms/docDetail.php?ID=<?php echo($Row0['cdtID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['cdtName']); ?></a></li>
<?php $Coun0++; } ?></ul>
<!-- ### -->
<ul id="tabinfobox_Box_2" class="DHidden">
<li class="Gsnav_Home_1_1"><?php echo($sysCmsadvData['Gsnavigation_Homeright_C']); ?></li>
<?php
$tmpParid=18;
$tmpSQL=' SELECT A.cdtID,A.cdtName,A.cdtNameStyle
	FROM {Nets.TableHead}cmsdoc AS A
	WHERE 1=1 AND A.cdtRecycle=0 AND A.cdtChecked>1 AND A.cdtParid={Nets.Parid}
	ORDER BY A.cdtOrderBy DESC,A.cdtID DESC LIMIT 0,4 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$tmpParid,$tmpSTR);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<li class="Gsnav_Home_1_2"><a href="../../../Plus/m_default/Cms/docDetail.php?ID=<?php echo($Row0['cdtID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row0['cdtName']); ?></a></li>
<?php $Coun0++; } ?></ul>


</div>

<div class="DClear"></div></div>
<!-- ------ #1 ------ -->
<div class="OutFrame_A Margin_Top">
<!-- ### -->
<ul class="Gsnav_Title_1">
<li class="Gsnav_Title_2"><a href="#Here" class="Link1 FBlack2">热门团购</a></li>

<li class="Gsnav_Title_30">
团购信息分类：
<?php
$tmpParid=2;
$tmpSQL=' SELECT A.gsnagtID,A.gsnagtName,B.gsnagctCount_Info
	FROM {Nets.TableHead}gsnavigationactivegroup AS A
	INNER JOIN {Nets.TableHead}gsnavigationactivegroupcont AS B ON B.gsnagctIndexID=A.gsnagtID
	WHERE 1=1 AND A.gsnagtRecycle=0 AND A.gsnagtChecked>1 AND A.gsnagtParid={Nets.Parid}
	ORDER BY A.gsnagtOrderBy DESC,A.gsnagtID DESC ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$tmpParid,$tmpSTR);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<a href="../../../Plus/m_default/Gsnavigation/gsnavigationactiveList.php?ID=<?php echo($Row0['gsnagtID']); ?>" class="Link2 FBlack2"><?php echo($Row0['gsnagtName']); ?></a><span class="Gsnav_Title_31">(<?php echo($Row0['gsnagctCount_Info']); ?>)</span>
<?php $Coun0++; } ?></li>
<li class="DClear"></li></ul>
<ul class="Gsnav_Box_1">
<?php
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<!-- ### -->
<li class="Gsnav_List_2_1">
<div class="Gsnav_List_2_2"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationactiveList.php?ID=<?php echo($Row0['gsnagtID']); ?>" class="Link2 FWhite1" target="_blank"><?php echo($Row0['gsnagtName']); ?></a><span class="Gsnav_List_2_4">(<?php echo($Row0['gsnagctCount_Info']); ?>)</span></div>
<div class="Gsnav_List_2_3"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Gsnavigation/11.jpg" /></div>
<div class="Gsnav_List_2_5"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationactiveList.php?ID=<?php echo($Row0['gsnagtID']); ?>" class="Link2 FBlack2" target="_blank">更多>></a></div>
</li>
<?php
$tmpParid=2;
$tmpSQL=' SELECT A.gsnatID,A.gsnatName,A.gsnatState,A.gsnatURL,
	B.gsnactPrice_EndTime,B.gsnactPrice_Origin,B.gsnactPrice_Now,B.gsnactPrice_Sale,B.gsnactCount_Order,B.gsnactSourceR00,
	C.gsnutID,C.gsnutName
	FROM {Nets.TableHead}gsnavigationactive AS A
	INNER JOIN {Nets.TableHead}gsnavigationactivecont AS B ON B.gsnactIndexID=A.gsnatID
	INNER JOIN {Nets.TableHead}gsnavigationunit AS C ON C.gsnutID=A.gsnatUnitid
	WHERE 1=1 AND A.gsnatRecycle=0 AND A.gsnatChecked>1 AND A.gsnatParid={Nets.Parid} {Nets.Zoneid}
	ORDER BY A.gsnatOrderBy DESC,A.gsnatID DESC LIMIT 0,8 ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$Row0['gsnagtID'],$tmpSTR);
if($tmpDefault->sZoneid!=-1){
	$tmpSTR=str_replace('{Nets.Zoneid}',' AND A.gsnatZoneid='.$tmpDefault->sZoneid.' ',$tmpSTR);
}else{
	$tmpSTR=str_replace('{Nets.Zoneid}',' ',$tmpSTR);
}
$tmpData1=$tmpDefault->sDb->Search($tmpSTR);
$Coun1=0;
foreach($tmpData1 as $Row1){ ?>
<li class="Gsnav_List_3_1_A Gsnav_List_3_1_0" onmouseover="this.className='Gsnav_List_3_1_B Gsnav_List_3_1_0';" onmouseout="this.className='Gsnav_List_3_1_A Gsnav_List_3_1_0';"><div class="Gsnav_List_3_1_Box">
<div class="Gsnav_List_3_2"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationactiveDetail.php?ID=<?php echo($Row1['gsnatID']); ?>" class="Link1 FBlack2" target="_blank"><?php echo($Row1['gsnatName']); ?></a></div>
<div class="Gsnav_List_3_3"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationactiveDetail.php?ID=<?php echo($Row1['gsnatID']); ?>" target="_blank"><img src="<?php echo($Row1['gsnactSourceR00']); ?>" /></a>
</div>
<?php if($Row1['gsnatState']==1 || $Row1['gsnatState']==2){ ?>
<div class="Gsnav_List_3_4">剩余时间：
	<span id="GroupsaleTime_<?php echo($Row1['gsnatID']); ?>_Day" class="FStrong">100</span>天
	<span id="GroupsaleTime_<?php echo($Row1['gsnatID']); ?>_Hour" class="FStrong">0</span>小时
	<span id="GroupsaleTime_<?php echo($Row1['gsnatID']); ?>_Min" class="FStrong">0</span>分
	<span id="GroupsaleTime_<?php echo($Row1['gsnatID']); ?>_Seconds" class="FStrong">0</span>秒</div>
<?php $tmpTimeruns.=$Row1['gsnatID'].$tmpDefault->sysSPLIT1; }else{ ?>
<div class="Gsnav_List_3_4">结束时间：<?php echo($Row1['gsnactPrice_EndTime']); ?></div>
<?php } ?>
<input id="GroupsaleTime_<?php echo($Row1['gsnatID']); ?>_Endtime" name="GroupsaleTime_<?php echo($Row1['gsnatID']); ?>_Endtime" value="<?php echo($Row1['gsnactPrice_EndTime']); ?>" type="hidden" />

<table class="Gsnav_List_3_5" cellpadding="0" cellspacing="0"><tr>
<td class="Gsnav_List_3_6">团价：</td><td class="Gsnav_List_3_13"><?php echo($Row1['gsnactPrice_Now']); ?>元</td>
<td class="Gsnav_List_3_6">折扣：</td><td class="Gsnav_List_3_7"><?php echo($Row1['gsnactPrice_Sale']); ?>折</td>
</tr><tr>
<td class="Gsnav_List_3_6">原价：</td><td class="Gsnav_List_3_14"><?php echo($Row1['gsnactPrice_Origin']); ?>元</td>
<td class="Gsnav_List_3_6">已售：</td><td class="Gsnav_List_3_7"><?php echo($Row1['gsnactCount_Order']); ?>个</td>
</tr></table>
<ul class="Gsnav_List_3_8">
<li class="Gsnav_List_3_9"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitDetail.php?ID=<?php echo($Row1['gsnutID']); ?>" class="Link1 FBlack2" target="_blank">来自：<?php echo($Row1['gsnutName']); ?></a></li>

<li class="Gsnav_List_3_11"><a href="<?php echo($Row1['gsnatURL']); ?>" class="Link2 FWhite1" target="_blank">立即团购</a></li>
<li class="Gsnav_List_3_10"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Gsnavigation/13.jpg" /></li>
</ul>

</div></li>
<?php $Coun1++; } ?>
<li class="Gsnav_List_3_12">&nbsp;</li>
<?php $Coun0++; } ?>
<li class="DClear"></li></ul>
</div>



<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpGsnavigation=new Gsnavigation();
tmpGsnavigation.OnNavigation(0);
//-- ### --
var tmpZone=new Zone();
tmpZone.sFlag="Gsnavigation";
//-- ### --
<?php $tmpDefault->sTimecallbackDefined=1; ?>
tmpGsnavigation.sTimeboxs="<?php echo($tmpTimeruns); ?>";
function netsTime_callback(){
	tmpFrames.hiddenContent();
	
	if(sysTimeIndex%50==0){
		tmpGsnavigation.OnTimerun();
	}
}
</script>
<?php require($netsFileConfig['bussinessTemplatePackagePath_Real'].'Component/End_Gsnavigation_0.php'); ?>