<?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>

<!-- ------ #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/Gsnavigation/gsnavigationactiveList.php?ID=<?php echo ($tmpDefault->sNavigation[$Coun0]['gsnagtID']); ?>" class="Link1 FBlack1"><?php echo ($tmpDefault->sNavigation[$Coun0]['gsnagtName']); ?></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_C">


<?php $tmpTimeruns=''; if(count($tmpDefault->sDetailData)>0){ ?>
<!-- ### -->
<div class="Gsnav_Box_3">
<h1 class="Gsnav_Detail_1_1"><?php echo($tmpDefault->sDetailData[0]['gsnatName']); ?></h1>
<ul class="Gsnav_Detail_1_2">
<?php
$Coun0=0;
foreach($tmpDefault->sData_LinkShare as $Row1){ ?>
<li class="Gsnav_Detail_1_3"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot'].$Row1['clctSourceR00']); ?>" /></li>
<li class="Gsnav_Detail_1_4"><a href="<?php echo(str_replace('{Nets.CONTENT}',$tmpDefault->sDetailData[0]['gsnatName'],str_replace('{Nets.URL}',$tmpDefault->sysURL,$Row1['cltURL']))); ?>" target="<?php echo($Row1['cltTarget']); ?>" class="Link1 FBlack2"><?php echo($Row1['cltName']); ?></a></li>
<?php $Coun0++; } ?>
<li class="DClear"></li></ul>
<!-- ### -->
<div class="Gsnav_Detail_1_5">
<!-- ### -->
<div class="Gsnav_Detail_1_6">
<div class="Gsnav_Detail_1_8">
<?php if($tmpDefault->sDetailData[0]['gsnatState']==2){ ?>
<div class="Gsnav_Detail_1_9"><a href="<?php echo($tmpDefault->sDetailData[0]['gsnatURL']); ?>" target="_blank"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/2.gif" /></a></div>
<div class="Gsnav_Detail_1_10"><span class="Gsnav_Detail_1_11">￥</span><span class="Gsnav_Detail_1_12"><?php $tmpAR0=explode('.',$tmpDefault->sDetailData[0]['gsnactPrice_Now']); echo($tmpAR0[0]); ?></span><span class="Gsnav_Detail_1_13">.<?php echo($tmpAR0[1]); ?></span></div>
<?php }else{ ?>
<div class="Gsnav_Detail_1_9"><a href="<?php echo($tmpDefault->sDetailData[0]['gsnatURL']); ?>" target="_blank"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/2_A.gif" /></a></div>
<div class="Gsnav_Detail_1_10"><span class="Gsnav_Detail_1_11">￥</span><span class="Gsnav_Detail_1_12"><?php $tmpAR0=explode('.',$tmpDefault->sDetailData[0]['gsnactPrice_Now']); echo($tmpAR0[0]); ?></span><span class="Gsnav_Detail_1_13">.<?php echo($tmpAR0[1]); ?></span></div>
<?php } ?>
</div><br /><br /><br /><br />

<table class="GroupsaleDetail_9" cellpadding="0" cellspacing="8"><tr>
<td class="GroupsaleDetail_10"><span class="GroupsaleDetail_11">原价：</span><br /><span class="GroupsaleDetail_12_A"><?php echo ($tmpDefault->sDetailData[0]['gsnactPrice_Origin']); ?></span></td>
<td class="GroupsaleDetail_10"><span class="GroupsaleDetail_11">折扣：</span><br /><span class="GroupsaleDetail_12_B"><?php echo ($tmpDefault->sDetailData[0]['gsnactPrice_Sale']); ?>折</span></td>
<td class="GroupsaleDetail_10"><span class="GroupsaleDetail_11">节省：</span><br /><span class="GroupsaleDetail_12_C"><?php echo ($tmpDefault->sDetailData[0]['gsnactPrice_Save']); ?></span></td>
</tr></table>

<?php if($tmpDefault->sDetailData[0]['gsnatState']==2){ ?>
<div class="GroupsaleDetail_13_A"><div>距离本次团购结束还有：</div>
<ul class="GroupsaleDetail_41">
<li class="GroupsaleDetail_42"><div class="GroupsaleDetail_45"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/19.jpg" /></div><div id="GroupsaleTime_<?php echo($tmpDefault->sDetailData[0]['gsnatID']); ?>_Day" class="GroupsaleDetail_43">3</div><div class="GroupsaleDetail_44">天</div></li>
<li class="GroupsaleDetail_42"><div class="GroupsaleDetail_45"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/19.jpg" /></div><div id="GroupsaleTime_<?php echo($tmpDefault->sDetailData[0]['gsnatID']); ?>_Hour" class="GroupsaleDetail_43">20</div><div class="GroupsaleDetail_44">小时</div></li>
<li class="GroupsaleDetail_42"><div class="GroupsaleDetail_45"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/19.jpg" /></div><div id="GroupsaleTime_<?php echo($tmpDefault->sDetailData[0]['gsnatID']); ?>_Min" class="GroupsaleDetail_43">9</div><div class="GroupsaleDetail_44">分</div></li>
<li class="GroupsaleDetail_42"><div class="GroupsaleDetail_45"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/19.jpg" /></div><div id="GroupsaleTime_<?php echo($tmpDefault->sDetailData[0]['gsnatID']); ?>_Seconds" class="GroupsaleDetail_43">33</div><div class="GroupsaleDetail_44">秒</div></li>
<li class="DClear"></li></ul></div>
<input id="GroupsaleTime_<?php echo($tmpDefault->sDetailData[0]['gsnatID']); ?>_Endtime" name="GroupsaleTime_<?php echo($tmpDefault->sDetailData[0]['gsnatID']); ?>_Endtime" value="<?php echo($tmpDefault->sDetailData[0]['gsnactPrice_EndTime']); ?>" type="hidden" />

<div class="GroupsaleDetail_14">
<span class="GroupsaleDetail_15">已经有<?php echo ($tmpDefault->sDetailData[0]['gsnactCount_Order']); ?>人购买</span><br />
<span class="GroupsaleDetail_16">团购已成功，还<?php echo ($tmpDefault->sDetailData[0]['gsnactPrice_TotalCount']); ?>件可以继续购买...</span><br />
<span class="GroupsaleDetail_17">最低团购人数：<?php echo ($tmpDefault->sDetailData[0]['gsnactPrice_LimitPeople']); ?>人</span><br />
</div>
<?php $tmpTimeruns.=$tmpDefault->sDetailData[0]['gsnatID'].$tmpDefault->sysSPLIT1; }else{ ?>
<div class="GroupsaleDetail_14">
<span class="GroupsaleDetail_15">本商品已经卖完了，共有<?php echo ($tmpDefault->sDetailData[0]['gsnactCount_Order']); ?>人订购。</span><br />
</div>

<?php } ?>

<div class="GroupsaleDetail_14"><table><tr>
<td><a href="#Here" onclick="tmpGsnavigation.OnSetcode(<?php echo($tmpDefault->sDetailData[0]['gsnatID']); ?>,'Positive');" class="Link1 FBlack2">很好(<span id="mainCode_<?php echo($tmpDefault->sDetailData[0]['gsnatID']); ?>_Positive"><?php echo($tmpDefault->sDetailData[0]['gsnactCode_Positive']); ?></span>)</a></td><td>&nbsp;&nbsp;</td>
<td><a href="#Here" onclick="tmpGsnavigation.OnSetcode(<?php echo($tmpDefault->sDetailData[0]['gsnatID']); ?>,'Negative');" class="Link1 FBlack2">不好(<span id="mainCode_<?php echo($tmpDefault->sDetailData[0]['gsnatID']); ?>_Negative"><?php echo($tmpDefault->sDetailData[0]['gsnactCode_Negative']); ?></span>)</a></td><td>&nbsp;&nbsp;</td>
<td><a href="#discussTitle" onclick="tmpGsnavigation.OnDetailTab(1);" class="Link1 FBlack2">写点评</a></td>
</tr></table></div>


</div>
<!-- ### -->
<div class="Gsnav_Detail_1_7">
<div class="GroupsaleDetail_19"><img src="<?php echo ($tmpDefault->sDetailData[0]['gsnactSourceR01']); ?>" /></div>
<div class="GroupsaleDetail_20"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/16.jpg" />
<?php echo ($tmpDefault->sDetailData[0]['gsnactSpeak']); ?>
<img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Groupsale/17.jpg" /><br /><br /></div>

</div>
<div class="DClear"></div></div>
<!-- ------ #CONTENT ------ -->
<ul class="Gsnav_Detail_3_11">
<li class="Gsnav_Detail_3_12"><a href="#Here" class="Link1 FBlack2">本次团购介绍</a></li>

<li class="DClear"></li></ul>
<div class="Gsnav_Detail_3_13"><?php echo ($tmpDefault->sDetailData[0]['gsnactContent']); ?></div>
<!-- ------ #DISCUSS ------ -->
<ul class="Gsnav_Detail_3_11">
<li class="Gsnav_Detail_3_14"><a name="discussTitle" href="#Here"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Microblogging/13.jpg" /></a></li>
<li class="Gsnav_Detail_3_12"><a href="#Here" class="Link1 FBlack2">用户点评</a><span class="GroupsaleDetail_21">(共为您找到<span class="GroupsaleDetail_22"><?php echo($tmpDefault->sRecordCount_Discuss); ?></span>条回复)</span></li>

<li class="DClear"></li></ul>
<div class="Gsnav_Detail_3_13">
<!-- ------ #Discuss ------ -->
<!-- #DiscussData -->
<!-- ### -->
<div id="discussBox"><!--S.discussBox--><table class="GsnaviDetail_31" cellpadding="2" cellspacing="0">
<?php $Coun0=1; foreach ($tmpDefault->sDiscussData as $Row0){ ?>
<tr>
<td class="GsnaviDetail_32"><a href="#Here"><img src="<?php echo($tmpDefault->sCode->ImgExist($Row0['gsnadctPublisher_Name'],'',0,0)); ?>" class="GsnaviDetail_34" /></a></td><td class="GsnaviDetail_38">&nbsp;</td>
<td class="GsnaviDetail_33"><a href="#Here" class="GsnaviDetail_37"><?php echo($Row0['gsnadctPublisher_Name']); ?></a><span class="GsnaviDetail_35"><?php echo($Row0['gsnadtCreateTime']); ?></span><br />
	<span class="GsnaviDetail_36"><?php echo ($Row0['gsnadctContent']); ?></span></td>
</tr>
<?php $Coun0++; } ?></table>
<!-- #Pagebutton -->
<br /><div><?php $tmpDefault->sPAjaxButton->showPage(); ?></div><br />
<!--sendRequest--><!--E.discussBox--></div>

<!-- #Discuss form -->
<div class="DocDe_49"><table cellpadding="0" cellspacing="8">
<?php
$tmpFlag='Normal';
foreach ($tmpDefault->sUiDescription_0 as $Row0){
	$tmpDefault->DefUiPanel($Row0,$tmpFlag);
	$tmpControls->getControl($Row0);
} ?>
<tr><td></td><td class="FBlack4">网友评论只表达了其个人看法，并不表示本站同意其观点。</td></tr>
<tr><td></td><td><input type="submit" value="提交评论" onclick="tmpCommon.setActionType('','DAdd','','ID=<?php echo($tmpDefault->sMainID); ?>');" /></td></tr>
</table></div>




</div>



</div>
<?php $tmpTimeruns=$tmpDefault->sDetailData[0]['gsnatID']; }else{ ?>
<div class="Error_51"><br /><br /><br /><br /><br /><br /><br />
<div class="Error_52">您所查看的团购信息并不存在。</div>
<div class="Error_53">您所查看的团购信息并不存在，您可以查看其它团购信息：<br />
	<?php foreach ($tmpDefault->sOtherData as $Row0){ ?>
	<a href="../../../Plus/m_default/Gsnavigation/gsnavigationactiveDetail.php?ID=<?php echo ($Row0['gsnatID']); ?>" class="FPoint0 Link1 FBlack2" target="_blank"><?php echo ($Row0['gsnatName']); ?></a><span class="Error_54"><?php echo ($tmpDefault->sCode->TimeFormat($Row0['gsnatCreateTime'],0)); ?></span><br />
	<?php } ?></div>
<br /><br /><br /><br /><br /><br /><br /></div>
<?php } ?>
</div>
<!-- ------ #RIGHT ------ -->
<div class="Gsnav_R">
<!-- #### -->
<?php if(count($tmpDefault->sData_Unit)>0){ ?>
<ul class="Gsnav_Title_5">
<li class="Gsnav_Title_6"><a href="#Here" class="Link1 FBlack3">商家信息</a></li>

<li class="DClear"></li></ul>
<!-- ### -->
<div class="Gsnav_Box_2 Gsnav_Detail_2_1">
<div class="Gsnav_Detail_2_5"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitDetail.php?ID=<?php echo($tmpDefault->sData_Unit[0]['gsnutID']); ?>" class="Link1 FBlack1" target="_blank"><?php echo($tmpDefault->sData_Unit[0]['gsnutName']); ?></a><span>(共有12条团购)</span></div>
<div class="Gsnav_Detail_2_2"><a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitDetail.php?ID=<?php echo($tmpDefault->sData_Unit[0]['gsnutID']); ?>" class="Link1 FBlack1" target="_blank"><img src="<?php echo($tmpDefault->sCode->ImgExist($tmpDefault->sData_Unit[0]['gsnuctSourceR00'],'',0,0)); ?>" /></a></div>
<div class="Gsnav_Detail_2_4">
此团购信息来源于<?php echo($tmpDefault->sData_Unit[0]['gsnutName']); ?><br />
QQ：800020136<br />
邮箱：help@meituan.com<br />
<a href="../../../Plus/m_default/Gsnavigation/gsnavigationunitDetail.php?ID=<?php echo($tmpDefault->sData_Unit[0]['gsnutID']); ?>" class="Link1 FRed1" target="_blank">查看<b><?php echo($tmpDefault->sData_Unit[0]['gsnutName'].$tmpDefault->sZoneName); ?></b>的所有团购信息</a><br /> 
</div>

</div>
<?php } ?>
<!-- ### -->
<?php require($netsFileConfig['bussinessTemplatePackagePath_Real'].'Component/Menu_Gsnavigation_0.php'); ?></div>
<div class="DClear"></div></div>

<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpGsnavigation=new Gsnavigation();
tmpGsnavigation.OnNavigation(1);
//-- ### --
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'); ?>