<?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/Head_0.php'); ?>
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Ask.css" rel="stylesheet" />
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/JScript/User/Ask.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/Cms/askHome.php" class="Link1 FBlack1">问答首页</a>
<?php
$Coun0=count($tmpDefault->sNavigation)-2;
while ($Coun0>-1) { ?>
<span>>></span> <a href="../../../Plus/m_default/Cms/askList.php?ID=<?php echo ($tmpDefault->sNavigation[$Coun0]['casgtID']); ?>" class="Link1 FBlack1"><?php echo ($tmpDefault->sNavigation[$Coun0]['casgtName']); ?></a>
<?php $Coun0--; } ?>
<span>>></span> <a href="#Here" class="Link1 FBlack1"><?php echo($tmpDefault->sMetaTitle); ?></a></div></div>
<!-- ------ #Content ------ -->
<div class="OutFrame_A">
<!-- ------ #Menu ------ -->
<div class="Frame_M"><?php require($netsFileConfig['bussinessTemplatePackagePath'].'Component/Menu_Ask_0.php'); ?></div>
<!-- ------ #Center ------ -->
<div class="Frame_C">




<?php if(count($tmpDefault->sDetailData)>0){ ?>
<!-- ------ #DETAIL ------ -->
<ul class="Ask_Box_1">
<li class="Ask_Box_2"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Ask/1.jpg" /></li>
<li class="Ask_Box_3"><a href="#Here" class="Link1 FBlack2">问题内容</a></li>

<li class="DClear"></li></ul>
<div class="Ask_Box_4"><table class="AskD_0_1" cellpadding="0" cellspacing="0">
<tr><td class="AskD_0_2">
<div class="AskD_0_4"><a href="#Here"><img src="<?php echo($tmpDefault->sCode->ImgExist($tmpDefault->sDetailData[0]['casctPublisher_Source'],'',0,0)); ?>" /></a></div>
<div class="AskD_0_5"><?php echo($tmpDefault->sDetailData[0]['casctPublisher_Name']); ?></div>

</td><td class="AskD_0_3">
<h1 class="AskD_0_6"><?php echo($tmpDefault->sDetailData[0]['castName']); ?></h1>
<table class="AskD_0_7" cellpadding="0" cellspacing="0"><tr>
	<td class="AskD_0_7_0">悬赏分：</td>
	<?php if($tmpDefault->sDetailData[0]['castCode']>0){ ?>
	<td><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Ask/4.jpg" /></td><td>&nbsp;</td>
	<?php } ?>
	<td class="AskD_0_7_1"><?php echo($tmpDefault->sDetailData[0]['castCode']); ?></td>
	<td class="AskD_0_7_0">提问时间：</td>
	<td class="AskD_0_7_1"><?php echo($tmpDefault->sDetailData[0]['castCreateTime']); ?></td>
	<td class="AskD_0_7_0">回答数：</td>
	<td class="AskD_0_7_1"><?php echo($tmpDefault->sDetailData[0]['casctCount_Discuss']); ?></td>
	<td class="AskD_0_7_0">浏览量：</td>
	<td class="AskD_0_7_1"><?php echo($tmpDefault->sDetailData[0]['casctCount_Views']); ?></td>
	</tr></table>
<div class="AskD_0_8"><?php echo($tmpDefault->sDetailData[0]['casctContent']); ?></div>
<table class="AskD_0_9" cellpadding="0" cellspacing="8"><tr>
	<td><a href="#DisucssForm" class="Link4 FBlue3">我来回答</a><span class="AskD_0_10">(<?php echo($tmpDefault->sDetailData[0]['casctCount_Discuss']); ?>)</span></td>
	<td><a href="#Here" onclick="tmpAsk.OnPositive(<?php echo($tmpDefault->sDetailData[0]['castID']); ?>);" class="Link4 FBlue3">对我有用</a><span id="askDetail_<?php echo($tmpDefault->sDetailData[0]['castID']); ?>_Positive" class="AskD_0_10">(<?php echo($tmpDefault->sDetailData[0]['casctCode_Positive']); ?>)</span></td>
	<td><a href="#Here" onclick="tmpCommon.Favorite_S('<?php echo($tmpDefault->sysFileConfig['PathRoot'].$tmpDefault->sysFileConfig['FavoriteAddress']); ?>','','');" class="Link4 FBlue3">收藏</a></td>
	<td><a href="#Here" onclick="tmpCommon.Favorite_S('','','');" class="Link4 FBlue3">分享</a></td>
	<td><a href="#Here" onclick="tmpCommon.Complaints_S('','举报问答“<?php echo($tmpDefault->sDetailData[0]['castName']); ?>”里存在的错误信息：',1);" class="Link4 FBlue3">举报</a></td>
	</tr></table><br />

</td></tr>
</table></div>
<!-- ------ #BEST ------ -->
<?php $Coun0=0; foreach ($tmpDefault->sData_Best as $Row0){ ?>
<ul class="Ask_Box_1_Red">
<li class="Ask_Box_2"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Ask/7.jpg" /></li>
<li class="Ask_Box_3"><a href="#Here" class="Link1 FRed3">最佳回复</a></li>

<li class="DClear"></li></ul>
<div class="Ask_Box_4_Red">
<!-- #DiscussData -->
<table class="AskD_0_1" cellpadding="0" cellspacing="0">
<!-- ### -->
<tr><td class="AskD_0_2_B">
<div class="AskD_0_4"><a href="#Here"><img src="<?php echo($tmpDefault->sCode->ImgExist($Row0['casdctPublisher_Source'],'',0,0)); ?>" /></a></div>
<div class="AskD_0_5"><?php echo($Row0['casdctPublisher_Name']); ?></div>

</td><td class="AskD_0_3_B">
<div class="AskD_0_8"><?php echo($Row0['casdctContent']); ?></div>
<table class="AskD_0_9" cellpadding="0" cellspacing="8"><tr>
	<?php if($tmpDefault->sDetailData[0]['castCreateBy']==$tmpDefault->sUserInfo[0]['Columns']['uitID']['Value'] && 
		$tmpDefault->sUserInfo[0]['Columns']['uitID']['Value']!=0 &&
		$tmpDefault->sDetailData[0]['castState']==0){ ?>
	<td><a href="<?php echo($tmpDefault->sysPage); ?>?ActionType=DBest&DBest=<?php echo($Row0['casdtID']); ?>&ID=<?php echo($tmpDefault->sDetailData[0]['castID']) ?>">设置为最佳回复</a></td>
	<?php } ?>
	<td><a href="#Here" onclick="tmpAsk.OnPositive_Discuss(<?php echo($tmpDefault->sDetailData[0]['castID']); ?>,<?php echo($Row0['casdtID']); ?>);" class="Link4 FBlue3">支持</a><span id="askDiscuss_<?php echo($tmpDefault->sDetailData[0]['castID']); ?>_<?php echo($Row0['casdtID']); ?>_Positive" class="AskD_0_10">(<?php echo($Row0['casdctCode_BePositive']); ?>)</span></td>
	<td><a href="#Here" onclick="tmpAsk.OnNegative_Discuss(<?php echo($tmpDefault->sDetailData[0]['castID']); ?>,<?php echo($Row0['casdtID']); ?>);" class="Link4 FBlue3">反对</a><span id="askDiscuss_<?php echo($tmpDefault->sDetailData[0]['castID']); ?>_<?php echo($Row0['casdtID']); ?>_Negative" class="AskD_0_10">(<?php echo($Row0['casdctCode_BeNegative']); ?>)</span></td>
	<td><a href="#Here" onclick="tmpCommon.Complaints_S('','举报问答“<?php echo($tmpDefault->sDetailData[0]['castName']); ?>”里存在的错误信息：',1);" class="Link4 FBlue3">举报</a></td>
	</tr></table>

</td></tr></table>
</div>
<?php $Coun0++; } ?>

<!-- ------ #DISCUSS ------ -->
<ul class="Ask_Box_1">
<li class="Ask_Box_2"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Ask/1.jpg" /></li>
<li class="Ask_Box_3"><a href="#Here" class="Link1 FBlack2">网友的回答</a></li>

<li class="DClear"></li></ul>
<div class="Ask_Box_4">
<!-- #DiscussData -->
<div id="discussBox"><!--S.discussBox-->
<table class="AskD_0_1" cellpadding="0" cellspacing="0">
<?php $Coun0=1; foreach ($tmpDefault->sDiscussData as $Row0){ ?>
<!-- ### -->
<tr><td class="AskD_0_2_A">
<div class="AskD_0_4"><a href="#Here"><img src="<?php echo($tmpDefault->sCode->ImgExist($Row0['casdctPublisher_Source'],'',0,0)); ?>" /></a></div>
<div class="AskD_0_5"><?php echo($Row0['casdctPublisher_Name']); ?></div>

</td><td class="AskD_0_3_A">
<div class="AskD_0_8"><?php echo($Row0['casdctContent']); ?></div>
<table class="AskD_0_9" cellpadding="0" cellspacing="8"><tr>
	<?php if($tmpDefault->sDetailData[0]['castCreateBy']==$tmpDefault->sUserInfo[0]['Columns']['uitID']['Value'] && 
		$tmpDefault->sUserInfo[0]['Columns']['uitID']['Value']!=0 &&
		$tmpDefault->sDetailData[0]['castState']==0){ ?>
	<td><a href="<?php echo($tmpDefault->sysPage); ?>?ActionType=DBest&DBest=<?php echo($Row0['casdtID']); ?>&ID=<?php echo($tmpDefault->sDetailData[0]['castID']) ?>">设置为最佳回复</a></td>
	<?php } ?>
	<td><a href="#Here" onclick="tmpAsk.OnPositive_Discuss(<?php echo($tmpDefault->sDetailData[0]['castID']); ?>,<?php echo($Row0['casdtID']); ?>);" class="Link4 FBlue3">支持</a><span id="askDiscuss_<?php echo($tmpDefault->sDetailData[0]['castID']); ?>_<?php echo($Row0['casdtID']); ?>_Positive" class="AskD_0_10">(<?php echo($Row0['casdctCode_BePositive']); ?>)</span></td>
	<td><a href="#Here" onclick="tmpAsk.OnNegative_Discuss(<?php echo($tmpDefault->sDetailData[0]['castID']); ?>,<?php echo($Row0['casdtID']); ?>);" class="Link4 FBlue3">反对</a><span id="askDiscuss_<?php echo($tmpDefault->sDetailData[0]['castID']); ?>_<?php echo($Row0['casdtID']); ?>_Negative" class="AskD_0_10">(<?php echo($Row0['casdctCode_BeNegative']); ?>)</span></td>
	<td><a href="#Here" onclick="tmpCommon.Complaints_S('','举报问答“<?php echo($tmpDefault->sDetailData[0]['castName']); ?>”里存在的错误信息：',1);" class="Link4 FBlue3">举报</a></td>
	</tr></table>

</td></tr>
<?php $Coun0++; } ?>
</table>
<!-- #Pagebutton -->
<br /><div><?php $tmpDefault->sPButton->showPage(); ?></div><br />
</div></div>

<!-- ------ #FORM ------ -->
<ul class="Ask_Box_1">
<li class="Ask_Box_2"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/User/Ask/1.jpg" /></li>
<li class="Ask_Box_3"><a name="DisucssForm" href="#Here" class="Link1 FBlack2">我来回答</a></li>

<li class="DClear"></li></ul>
<div class="Ask_Box_4"><table class="AskD_0_1" cellpadding="0" cellspacing="0">
<tr><td class="AskD_0_2">
<div class="AskD_0_4"><a href="#Here"><img src="<?php echo($tmpDefault->sCode->ImgExist($tmpDefault->sUserInfo[1]['Columns']['uictSourceR00']['Value'],'',0,0)); ?>" /></a></div>
<div class="AskD_0_5"><?php echo($tmpDefault->sUserInfo[0]['Columns']['uitNickname']['Value']); ?></div>

</td><td class="AskD_0_3">
<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>

</td></tr>
</table></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/Cms/askDetail.php?ID=<?php echo ($Row0['castID']); ?>" class="FPoint0 Link1 FBlack2" target="_blank"><?php echo ($Row0['castName']); ?></a><span class="Error_54"><?php echo ($tmpDefault->sCode->TimeFormat($Row0['castCreateTime'],0)); ?></span><br />
	<?php } ?></div>
<br /><br /><br /><br /><br /><br /><br /></div>
<?php } ?>
</div><div class="DClear"></div></div>
<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpAsk=new Ask();

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