<div id="panel_Normal"><!--S.Normal-->
<!-- #Tab -->
<ul id="NormalTab_Box" class="Tab"><?php $tmpDefault->DefUiButton('ReportLink',array()); ?>
	<li id="ListTab_Option_0" class="Tab_Option" onmouseover="tmpControl.onTabOptionShow('Tab_Option_ListCount','Tab_Option_Box',0);" onmouseout="tmpControl.onTabOptionShow('Tab_Option_ListCount','',1);">
		<div id="Tab_Option_ListCount" class="DHidden"><?php echo ($tmpControlPage->getPrevNextRecord($tmpDefault->sysPage,$tmpDefault->sPrevid,$tmpDefault->sNextid,$tmpDefault->sPrevNextRecordParameters)); ?></div>
		<a href="#Here" class="Link1 FBlack2"><img src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/icon_16.jpg" /></a></li>
	<li class="DClear"></li></ul>
<ul id="NormalTabChild_Box" class="TabChild">
<?php $tmpDefault->DefUiButton('ReportChildLink',array()); ?><li class="DClear"></li></ul>
<!-- ------ #CONTENT ------ -->
<?php if(count($tmpDefault->sData_Group)==1){ ?>
<!-- #Title -->
<div class="Report_Flat_Title"><table cellpadding="4" cellspacing="0">
<tr><td class="Report_Flat_TitleTitle">标题：</td><td class="Report_Flat_TitleContent"><?php echo($tmpDefault->sData_Group[0]['cvgtName']); ?></td></tr>
<tr><td class="Report_Flat_TitleTitle">内容：</td><td class="Report_Flat_TitleContent"><?php echo($tmpDefault->sData_Group[0]['cvgctContent']); ?></td></tr>
</table></div>
<!-- #List sort -->
<div id="reportList" class=""><!--S.reportList-->
<table class="List" cellpadding="0" cellspacing="1"><tr class="ListTitle">
<?php
$tmpDefault->sPAjaxButton->showSort($tmpDefault->sSortButton[0]);
$tmpDefault->sPAjaxButton->showSort($tmpDefault->sSortButton[1]);

?>
<td class="ListTitle_Normal">操作</td>
</tr>
<!-- #List -->
<?php
//-- ------ #List ------ --
$tmpSTR='';
$Coun0=0;
foreach ($tmpDefault->sListData as $Row0){
	$tmpLineStyle='ListCell';
	$tmpINT=$Coun0+1;
	if($tmpINT%2==0){
		$tmpLineStyle='ListCell0';
	} ?>
<tr id="<?php echo ($tmpDefault->sTable[0]['sttColumnHead']); ?>Row<?php echo($Coun0); ?>" class="<?php echo ($tmpLineStyle); ?>" onmouseover="this.className='ListCell1';" onmouseout="this.className='<?php echo ($tmpLineStyle); ?>';">
<td class="ListCellID">
	<?php echo ($Row0['cvtID']); ?>
	<input id="<?php echo ($tmpDefault->sTable[0]['sttColumnHead']); ?>IDTxtList<?php echo ($Coun0); ?>" name="<?php echo ($tmpDefault->sTable[0]['sttColumnHead']); ?>IDTxtList<?php echo ($Coun0); ?>" type="hidden" value="<?php echo ($Row0['cvtID']); ?>" />
	<input id="<?php echo ($tmpDefault->sTable[0]['sttColumnHead']); ?>RowStyle<?php echo ($Coun0); ?>" name="<?php echo ($tmpDefault->sTable[0]['sttColumnHead']); ?>RowStyle<?php echo ($Coun0); ?>" type="hidden" value="<?php echo ($tmpLineStyle); ?>" /></td>
<td class="ListCellTitle"><a href="#Here" onclick="tmpCms.OnVote_GetOptions(<?php echo($tmpDefault->sData_Group[0]['cvgtID']); ?>,<?php echo ($Row0['cvtID']); ?>);" class="Link1 FBlue1"><?php echo($Row0['cvtName']); ?></a></td>

<td class="ListCellOption"><table class="" cellpadding="0" cellspacing="0"><tr>
<td><a href="../../../Mana/m_cms/other/cmsvote.php?ActionType=Normal&Normal=<?php echo ($Row0['cvtID']); ?>,0" target="_blank"><img alt="查看详细内容" src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/icon_17.jpg" /></a></td>
</tr></table></td>
</tr>
<?php $Coun0++; } ?>
</table>
<!-- #Page button -->
<?php $tmpDefault->sPAjaxButton->showPage(); ?>
<!--sendRequest--><!--E.reportList--></div>
<div id="reportPanel" class="">

</div>
<!-- ------ #SCRIPT ------ -->
<script src="<?php echo($tmpDefault->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Jscript/Mana/Cms.js" type="text/javascript"></script>
<script type="text/javascript">
var tmpCms=new Cms();
tmpCms.OnVote_GetOptions(<?php echo($tmpDefault->sData_Group[0]['cvgtID']); ?>,0);

</script>



<?php }else { ?>
<br /><br /><br /><br /><br />
<div class="Report_Flat_Error">对不起，您要查看的投票分类不存在或已被删除。</div>
<br /><br /><br /><br /><br />
<?php } ?>

<!-- ------ #Panel ------ -->
<?php if($tmpDefault->sActionType=='DReport_Options'){ ?>
<div id="reportPanel" class=""><!--S.reportPanel-->
<!-- #Panel -->
<div class="Report_Flat_Panel"><table class="Report_Flat_PanelBox" cellpadding="0" cellspacing="1">
<?php
$tmpFlag='Report_Options';
foreach ($tmpDefault->sUiDescription_0 as $Row0){
	$tmpDefault->DefUiPanel($Row0,$tmpFlag);
	$tmpControls->getControl($Row0);
} ?>
</table></div>
<ul class="Report_Flat_PanelButtonBox">
<li class="Report_Flat_PanelButton"><a href="#Here" onclick="tmpCms.OnVote_OptionsSubmit(); tmpCommon.setActionType('Report','DReport_Save','','&Report=<?php echo($tmpDefault->sParid); ?>,0'); tmpCommon.netsSubmit();" class="Link1 FBlue2">保存问题</a></li>
<li class="Report_Flat_PanelButton"><a href="#Here" onclick="tmpCms.OnVote_OptionsNew();" class="Link1 FBlue2">新增选项</a></li>
<li class="Report_Flat_PanelButton"><a id="reportPanel_ShowButton" href="#Here" onclick="tmpCms.OnVote_ControlsShow();" class="Link1 FBlue2">查看所有资料</a></li>
<li class="Report_Flat_PanelIntroduct">注意：不会保存内容为空的选项</li>
<li class="DClear"></li></ul>
<!-- #Options -->
<?php
$tmpStyle='DHidden';
if($tmpDefault->sOptionControlType=='CheckboxAR' || $tmpDefault->sOptionControlType=='RadioAR'){
	$tmpStyle='Report_Flat_Options';
}
?>
<div id="reportPanel_OptionsBox" class="<?php echo($tmpStyle); ?>"><table id="reportPanel_OptionsTable" class="Report_Flat_OptionsTable" cellpadding="0" cellspacing="0">
<?php
$tmpSQL=' SELECT A.cvotID,A.cvotName,A.cvotNameStyle,A.cvotParid,A.cvotOrderBy
	FROM {Nets.TableHead}cmsvoteoption AS A
	WHERE 1=1 AND A.cvotRecycle=0 AND A.cvotChecked>1 AND A.cvotParid={Nets.Parid}
	ORDER BY A.cvotOrderBy DESC,A.cvotID DESC ';
$tmpSTR=str_replace('{Nets.TableHead}',$tmpDefault->sysTableHead,$tmpSQL);
$tmpSTR=str_replace('{Nets.Parid}',$tmpDefault->sMainID,$tmpSTR);
$tmpData0=$tmpDefault->sDb->Search($tmpSTR);
$Coun0=0;
foreach($tmpData0 as $Row0){ ?>
<tr>
<td class="Report_Flat_OptionsTableIndex"><span><?php echo($Coun0+1); ?></span><input type="hidden" value="<?php echo($Row0['cvotID']); ?>" /></td>
<td class="Report_Flat_OptionsTableInput"><input type="text" class="SControl1 Report_Flat_OptionsTableInputbox"
	onclick="tmpControl.onControlLight(this,'Report_Flat_OptionsTableInputbox');"
	onblur="tmpControl.onControlBlur(this,'Report_Flat_OptionsTableInputbox');"
	value="<?php echo($Row0['cvotName']); ?>" /></td>
<td class="Report_Flat_OptionsTableButton"><a href="#Here" onclick="tmpCms.OnVote_OptionsDelete(this);" class="Link1 FBlue1">删除本选项</a></td>
</tr>
<?php $Coun0++; }
$tmpAR0=array();
$Coun0=0;
if(count($tmpData0)==0){ $tmpAR0=array(
	array('cvotID'=>0,'cvotName'=>'',),
	array('cvotID'=>0,'cvotName'=>'',),
	array('cvotID'=>0,'cvotName'=>'',),
	array('cvotID'=>0,'cvotName'=>'',),
	array('cvotID'=>0,'cvotName'=>'',),
	); }
foreach($tmpAR0 as $Row0){ ?>
<tr>
<td class="Report_Flat_OptionsTableIndex"><span><?php echo($Coun0+1); ?></span><input type="hidden" value="<?php echo($Row0['cvotID']); ?>" /></td>
<td class="Report_Flat_OptionsTableInput"><input type="text" class="SControl1 Report_Flat_OptionsTableInputbox"
	onclick="tmpControl.onControlLight(this,'Report_Flat_OptionsTableInputbox');"
	onblur="tmpControl.onControlBlur(this,'Report_Flat_OptionsTableInputbox');"
	value="<?php echo($Row0['cvotName']); ?>" /></td>
<td class="Report_Flat_OptionsTableButton"><a href="#Here" onclick="tmpCms.OnVote_OptionsDelete(this);" class="Link1 FBlue1">删除本选项</a></td>
</tr>
<?php $Coun0++; } ?>
</table></div>
<input id="reportPanel_OptionsBox_Flag" name="reportPanel_OptionsBox_Flag" value="1" type="hidden" />
<input id="reportPanel_OptionsValueTxt" name="reportPanel_OptionsValueTxt" value="" type="hidden" />

<!--sendRequest--><!--E.reportPanel--></div>
<?php } ?>


<!-- ------ #ADV ------ -->
<div class="Adv_Button"><?php echo($tmpDefault->sNetsAdv_C); ?></div>
