<?php
require($netsFileConfig['bussinessTemplatePackagePath'].'Component/Head_Shop_0.php');
require($tmpDefault->sysFileConfig['PathRoot'].'Cache/DbCache/Adv/Cache_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/Shop.css" rel="stylesheet" />
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Code.css" rel="stylesheet" />
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Order.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/Shop.js" type="text/javascript"></script>
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/JScript/User/Code.js" type="text/javascript"></script>
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/JScript/User/Order.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/Shop/codeHome.php" class="Link1 FBlack1">积分商城首页</a>
<?php
$Coun0=count($tmpDefault->sNavigation)-2;
while ($Coun0>-1) { ?>
<span>>></span> <a href="../../../Plus/m_default/Shop/codeList.php?ID=<?php echo ($tmpDefault->sNavigation[$Coun0]['shcsgtID']); ?>" class="Link1 FBlack1"><?php echo ($tmpDefault->sNavigation[$Coun0]['shcsgtName']); ?></a>
<?php $Coun0--; } ?>
<span>>></span> <a href="#Here" class="Link1 FBlack1"><?php echo($tmpDefault->sMetaTitle); ?></a></div></div>

<!-- ------ #Content ------ -->
<div class="OutFrame_A">
<!-- #Menu -->
<?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/Menu_Code_0.php'); ?>
<!-- #Center -->
<div class="Code_C">



<?php if(count($tmpDefault->sDetailData)>0){ ?>
<!-- ### -->
<table class="Code_C_41" cellpadding="0" cellspacing="0"><tr>
<td class="Code_C_42"><a href="#Here"><img src="<?php echo($tmpDefault->sDetailData[0]['shcsctSourceR00']); ?>" class="Code_C_53" /></a><br /><a href="<?php echo($tmpDefault->sDetailData[0]['shcsctSourceR00']); ?>" target="_Blank" class="Link4 FBlue3">点击看大图</a></td>
<td class="">&nbsp;&nbsp;</td>
<td class="Code_C_43">
<h2 class="Code_C_44"><?php echo($tmpDefault->sDetailData[0]['shcstName']); ?></h2>
<table class="Code_C_45" cellpadding="0" cellspacing="0"><tr>
<td class="Code_C_46">原需积分：</td><td class="Code_C_47"><?php echo($tmpDefault->sDetailData[0]['shcsctPrice0']); ?></td>
<td class="Code_C_46">现需积分：</td><td class="Code_C_47"><?php echo($tmpDefault->sDetailData[0]['shcstPrice']); ?></td>
</tr><tr>
<td class="Code_C_46">到期时间：</td><td class="Code_C_47"><?php echo($tmpDefault->sDetailData[0]['shcstPassTime']); ?></td>
<td class="Code_C_46">剩余库存：</td><td class="Code_C_47"><?php echo($tmpDefault->sDetailData[0]['shcsctCount_Total']); ?></td>
</tr><tr>
<td class="Code_C_46">已售数量：</td><td class="Code_C_47"><?php echo($tmpDefault->sDetailData[0]['shcsctCount_Order']); ?></td>
<td class="Code_C_46">商品单位：</td><td class="Code_C_47"><?php echo($tmpDefault->sDetailData[0]['shcsctUnit']); ?></td>
</tr><tr>
<td class="Code_C_46">标签：</td><td class="Code_C_47"><?php echo($tmpDefault->sDetailData[0]['shcstTag']); ?></td>

</tr></table>
<div class="Code_C_56"><table cellpadding="0" cellspacing="0"><tr>
<!--<td><a href="#Here" onclick="tmpCommon.OnUserURL('<?php echo($tmpDefault->sysPage); ?>?ActionType=DOrder&ID=<?php echo($tmpDefault->sDetailData[0]['shcstID']); ?>','对不起，登陆后才能换取积分商品');"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/10.jpg" /></a></td>-->
<td><a href="#Here" onclick="tmpOrder.OnOrder_Submit(0,0);"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/10.jpg" /></a></td>
<td><a href="#Here" onclick="tmpOrder.OnOrder_Submit(1,0);"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Shop/10_0.jpg" /></a></td>
<td>&nbsp;&nbsp;&nbsp;&nbsp;</td>
<td><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/sign_3_A.jpg" /></td><td class="Code_C_55"><a href="#Here" onclick="tmpCommon.OnPrint();" class="Link3 FBlue1">打印</a></td>
<td><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/sign_3_A.jpg" /></td><td class="Code_C_55"><a href="#Here" onclick="tmpCommon.Favorite_S('<?php echo($tmpDefault->sysFileConfig['PathRoot'].$tmpDefault->sysFileConfig['FavoriteAddress']); ?>','','');" class="Link3 FBlue1">收藏</a></td>
<td><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/sign_3_A.jpg" /></td><td class="Code_C_55"><a href="#Here" onclick="tmpCommon.Complaints_S('','举报积分商品“<?php echo($tmpDefault->sDetailData[0]['shcstName']); ?>”里存在的错误信息：',1);" class="Link3 FBlue1">报错</a></td>
</tr></table></div>
</td></tr></table><br />
<!-- ------ ### ------ -->
<input id="Order_0_ID_Txt" name="Order_0_ID_Txt" value="<?php echo ($tmpDefault->sDetailData[0]['shcstID']); ?>" type="hidden" />
<input id="Order_0_Count_Txt" name="Order_0_Count_Txt" value="1" type="hidden" />
<input id="Order_0_Price_Txt" name="Order_0_Price_Txt" value="<?php echo ($tmpDefault->sDetailData[0]['shcstPrice']); ?>" type="hidden" />
<input id="Order_0_Code_Txt" name="Order_0_Code_Txt" value="0.00" type="hidden" />
<input id="Order_0_Activeid_Txt" name="Order_0_Activeid_Txt" value="0" type="hidden" />
<input id="Order_0_Parentid_Txt" name="Order_0_Parentid_Txt" value="0" type="hidden" />
<input id="Order_0_Type_Txt" name="Order_0_Type_Txt" value="0" type="hidden" />
<input id="Order_0_Parameters_Txt" name="Order_0_Parameters_Txt" value="" type="hidden" />

<input id="Order_0_Parameters_Controls_Txt" name="Order_0_Parameters_Controls_Txt" value="" type="hidden" />

<!-- ------ #Detail ------ -->
<ul class="Code_C_48">
<?php
$tmpAR0=array('详细介绍','订单列表','我要留言',);
$Coun0=0;
foreach($tmpAR0 as $Row0){ ?>
<li id="tabDetail_<?php echo($Coun0); ?>_Button" class="Code_C_50"><a href="#Here" onclick="tmpCode.OnTab_Detail(<?php echo($Coun0); ?>);" class="Link2 FBlack2"><?php echo($Row0); ?></a></li>
<?php $Coun0++; } ?>
<li class="DClear"></li></ul>
<!-- ### -->
<?php $Coun0=0; ?>
<div id="tabDetail_<?php echo($Coun0); ?>_Box" class="DHidden"><div class="Code_C_51_A"><?php echo($tmpDefault->sDetailData[0]['shcsctContent']); ?></div></div>
<!-- ### -->
<?php $Coun0++; ?>
<div id="tabDetail_<?php echo($Coun0); ?>_Box" class="DHidden">
<table class="">
<?php $Coun1=0; foreach ($tmpDefault->sListData_Order as $Row0){ ?>
<tr><td></td><td></td></tr>
<?php $Coun1++; } ?>
</table>
<!-- #Pagebutton -->
<br /><div><?php $tmpDefault->sPButton_Order->showPage(); ?></div><br />

</div>
<!-- ### -->
<?php $Coun0++; ?>
<div id="tabDetail_<?php echo($Coun0); ?>_Box" class="DHidden">
<div id="discussBox"><!--S.discussBox-->
<?php $Coun1=1; foreach ($tmpDefault->sListData_Discuss as $Row0){ ?>
<div class="Code_C_81">
<div class="Code_C_82"><span>#<?php echo ($Coun1); ?></span> 网友：<?php echo ($Row0['shcsdctPublisher_Name']); ?> 发表于 <?php echo ($Row0['shcsdtCreateTime']); ?></span></div>
<div class="Code_C_83"><?php echo ($Row0['shcsdctContent']); ?></div>
</div>
<?php $Coun1++; } ?>
<!-- #Pagebutton -->
<br /><div><?php $tmpDefault->sPButton_Discuss->showPage(); ?></div><br />
<!--sendRequest--><!--E.discussBox--></div>
<!-- #DiscussBox -->
<table class="DocDe_45" cellpadding="0" cellspacing="0"><tr>
<td><a name="DiscussForm" href="#Here" class="Link1 FBlack2">网友评论：</a></td>
<td>共有<span class="DocDe_41"><?php echo ($tmpDefault->sRecordCount_Discuss); ?></span>位网友对本文章发表了自己的看法</td>
</tr></table>
<div class="DocDe_49"><table cellpadding="0" cellspacing="8">
<?php
$tmpFlag='Normal';
foreach ($tmpDefault->sUiDescription_Discuss 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>






<?php }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/Shop/codeDetail.php?ID=<?php echo ($Row0['shcstID']); ?>" class="FPoint0 Link1 FBlack2" target="_blank"><?php echo ($Row0['shcstName']); ?></a><span class="Error_54"><?php echo ($tmpDefault->sCode->TimeFormat($Row0['shcstCreateTime'],0)); ?></span><br />
	<?php } ?></div>
<br /><br /><br /><br /><br /><br /><br /></div>
<?php } ?>
</div><div class="DClear"></div></div><br />
<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpZone=new Zone();
var tmpCode=new Code();
var tmpOrder=new Order();
tmpZone.sFlag="Shop";

tmpCode.OnTab_Detail(0);

tmpOrder.sCarURL="Plus/Common/Shop/codesalecar_list.php";
tmpOrder.sOrderURL="Plus/Common/Shop/codesaleorder_list.php";


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