<?php
require($netsFileConfig['bussinessTemplatePackagePath_Real'].'Component/Head_0.php');
require($netsFileConfig['sysCoreRoot_Real'].'User/Common/Control/Vote_Label.php');
require($netsFileConfig['sysCoreRoot_Real'].'User/Common/Control/Vote_Text.php');
require($netsFileConfig['sysCoreRoot_Real'].'User/Common/Control/Vote_TextArea.php');
require($netsFileConfig['sysCoreRoot_Real'].'User/Common/Control/Vote_RadioAR.php');
require($netsFileConfig['sysCoreRoot_Real'].'User/Common/Control/Vote_CheckboxAR.php');
?>
<link href="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Ssheet/User/Vote.css" rel="stylesheet" />
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Jscript/User/Vote.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>
<?php
$Coun0=count($tmpDefault->sNavigation)-2;
while ($Coun0>-1) { ?>
<span>>></span> <a href="../../../Plus/m_default/Cms/voteSurvey.php?ID=<?php echo ($tmpDefault->sNavigation[$Coun0]['cvgtID']); ?>" class="Link1 FBlack1"><?php echo ($tmpDefault->sNavigation[$Coun0]['cvgtName']); ?></a>
<?php $Coun0--; } ?>
<span>>></span> <a href="#Here" class="Link1 FBlack1"><?php echo($tmpDefault->sMetaTitle); ?></a></div></div><br />
<!-- ------ #Content ------ -->
<div class="OutFrame_A">

<?php if(count($tmpDefault->sData_Group)>0){ ?>
<?php if($tmpDefault->sActionType=='DViewResult'){ ?>
<!-- ------ ### ------ -->
<h1 class="Vote_Qes_1"><?php echo($tmpDefault->sData_Group[0]['cvgtName']); ?><span class="FBlack4">（问卷结果）</span></h1>
<div class="Vote_Qes_2"><?php echo($tmpDefault->sData_Group[0]['cvgctContent']); ?></div>
<!-- ------ ### ------ -->
<?php
$Coun0=0;
foreach($tmpDefault->sData_Result as $Row0){ ?>
<!-- ### -->
<div class="Vote_Qes_3"><?php echo($Coun0+1); ?>.<?php echo($Row0['cvtName']); ?><span class="Vote_Qes_4"><?php echo($Row0['cvctContent']); ?></span></div>
<div class="Vote_Qes_11"><?php echo($Row0['cvctOptions']); ?></div><br />
<?php $Coun0++; } ?>


<?php }else { ?>
<!-- ------ ### ------ -->
<h1 class="Vote_Qes_1"><?php echo($tmpDefault->sData_Group[0]['cvgtName']); ?></h1>
<div class="Vote_Qes_2"><?php echo($tmpDefault->sData_Group[0]['cvgctContent']); ?></div>
<!-- ------ ### ------ -->
<?php
$Coun0=0;
foreach($tmpDefault->sData_List as $Row0){ ?>
<!-- ### -->
<div class="Vote_Qes_3"><?php echo($Coun0+1); ?>.<?php echo($Row0['cvtName']); ?><span class="Vote_Qes_4"><?php echo($Row0['cvctContent']); ?></span></div>
<?php
$tmpOptions=array();
$tmpDefault->getOption($Row0['cvtID'],$tmpOptions);

$tmpFlag='Normal';
$tmpAR0=$tmpDefault->sysUiDescriptionModel;
$tmpAR0['stcotName']='Voteobject_'.$Coun0;
$tmpAR0['Option']=$tmpOptions;
$tmpAR0['stcoctUiType']=$Row0['cvctControl_Type'];
$tmpAR0['stcoctUiLen']=$Row0['cvctControl_Len'];
$tmpAR0['Value']=$Row0['cvctControl_Default'];
$tmpAR0['stcoctDefaultValue']=$Row0['cvctControl_Default'];
$tmpAR0['Control_Need']=$Row0['cvctControl_Need'];
$tmpAR0['Control_Input']=$Row0['cvctControl_Input'];
$tmpAR0['Control_ID']=$Row0['cvtID'];
$tmpDefault->DefUiPanel($tmpAR0,$tmpFlag);
$tmpControls->getVote($tmpAR0);
?>
<br />
<?php $Coun0++; } ?>
<!-- ------ ### ------ -->
<?php if(count($tmpDefault->sData_List)>0){ ?>
<div class="Vote_Qes_6"><div class="Button_Normal Vote_Qes_7"><a href="#Here" class="Link1 FBlack2" onclick="tmpVote.OnQues_Next(); tmpCommon.netsSubmit();">确认提交</a></div></div>
<?php } ?>
<input id="votePageindexTxt" name="votePageindexTxt" value="<?php echo($tmpDefault->sVotepageindex); ?>" type="text" class="DHidden" />
<textarea id="voteResultTxt" name="voteResultTxt" class="DHidden"><?php echo($tmpDefault->sVoteresult); ?></textarea>

<?php } ?>




<?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/voteSurvey.php?ID=<?php echo ($Row0['cvgtID']); ?>" class="FPoint0 Link1 FBlack2" target="_blank"><?php echo ($Row0['cvgtName']); ?></a><span class="Error_54"><?php echo ($tmpDefault->sCode->TimeFormat($Row0['cvgtCreateTime'],0)); ?></span><br />
	<?php } ?></div>
<br /><br /><br /><br /><br /><br /><br /></div>
<?php } ?>
</div><br />


<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpVote=new Vote();
tmpVote.Ques_Count=<?php echo(count($tmpDefault->sData_List)); ?>;

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