<?php
class Normal_NDropdownAR extends netsControl {
	public function Normal_NDropdownAR(){
		$this->netsControl();
	}
	public function Control($pColumn){
		$tmpControl=$pColumn['stcotName'].'Txt'.$pColumn['NameExtend'];
		$tmpIntroduct='';
		if(strlen($pColumn['stcoctUiIntroduct'])>0 && $pColumn['stcoctUiIntroduct']!='&nbsp;'){
			$tmpIntroduct='<div id="'.$tmpControl.'_Messagebox" class="ControlIntroduct">'.$pColumn['stcoctUiIntroduct'].'</div>';
		}else{
			$tmpIntroduct='<div id="'.$tmpControl.'_Messagebox" class="DHidden">'.$pColumn['stcoctUiIntroduct'].'</div>';
		}
?>
<!-- #<?php echo ($tmpControl); ?> -->
<?php if ($pColumn['stcoctSingleLine']==0) { ?><tr id="<?php echo($tmpControl); ?>_RowBox" class="<?php echo ($pColumn['LineStyle']); ?>"><?php } ?>
<td id="<?php echo ($tmpControl); ?>_Label" class="PanelTitle"><?php echo ($pColumn['stcoctUiName']); ?>：</td>
<td id="<?php echo ($tmpControl); ?>PanelBox" class="PanelBox <?php if ($pColumn['stcoctSingleLine']==1) { ?>PanelMultiColumn<?php } ?>" <?php if ($pColumn['stcoctSingleLine']==0 && $pColumn['stcoctColspan']>1) { ?>colspan="<?php echo($pColumn['stcoctColspan']); ?>"<?php } ?>>
<!--S.<?php echo ($tmpControl); ?>-->
<!-- ### -->
<ul id="<?php echo($tmpControl); ?>_Outbox" class="NDropdown_1">
<!-- ### -->
<li id="<?php echo($tmpControl); ?>_Options" class="DHidden"><div class="NDropdown_5"><ul class="NDropdown_6" style="<?php echo ($pColumn['ControlStyle']); ?>">
<?php $Coun0=0; $tmpSelectIndex=0; foreach ($pColumn['Option'] as $Option){
	$tmpSTYLE='NDropdown_7_Normal';
	if($Option['Value']==$pColumn['Value']){ $tmpSTYLE='NDropdown_7_Selected'; $tmpSelectIndex=$Coun0; } ?>
<li id="<?php echo($tmpControl); ?>_Option_<?php echo($Coun0); ?>" class="<?php echo($tmpSTYLE); ?>" onmouseover="this.className='NDropdown_7_Over';" onmouseout="this.className=this.childNodes[1].value;"><a
	href="#Here" onclick="tmp<?php echo($tmpControl); ?>.OnSelect(<?php echo($Coun0); ?>,'<?php echo($Option['Text']); ?>','<?php echo($Option['Value']); ?>');" class="Link1 FBlue3"><?php echo($Option['Text']); ?></a><input
	id="<?php echo($tmpControl); ?>_Option_<?php echo($Coun0); ?>_ClassName" name="<?php echo($tmpControl); ?>_Option_<?php echo($Coun0); ?>_ClassName" value="<?php echo($tmpSTYLE); ?>" type="hidden" /></li>
<?php $Coun0++; } ?>
<li class="DClear"></li></ul></div></li>
<!-- ### -->
<?php $tmpFlag=0; foreach($pColumn['Option'] as $Option){ if($Option['Value']==$pColumn['Value']){ ?>
<li id="<?php echo($tmpControl); ?>_LabelText" class="NDropdown_2"><a href="#Here" onclick="tmp<?php echo($tmpControl); ?>.OnShowOptions();" class="Link1 FBlack2"><?php echo($Option['Text']); ?></a></li>
<?php $tmpFlag=1; } } if($tmpFlag==0){ ?>
<li id="<?php echo($tmpControl); ?>_LabelText" class="NDropdown_2"><a href="#Here" onclick="tmp<?php echo($tmpControl); ?>.OnShowOptions();" class="Link1 FBlack2"><?php $pColumn['Option'][count($pColumn['Option'])-1]['Text'] ?></a></li>
<?php }?>
<li id="<?php echo($tmpControl); ?>_Button" class="NDropdown_3"><a href="#Here" onclick="tmp<?php echo($tmpControl); ?>.OnShowOptions();"><img src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Control/NDropdownAR_0.jpg" /></a></li>

<li class="DClear"></li></ul>
<input id="<?php echo($tmpControl); ?>_SelectIndex" name="<?php echo($tmpControl); ?>_SelectIndex" value="<?php echo($tmpSelectIndex); ?>" type="hidden" />
<input id="<?php echo($tmpControl); ?>" name="<?php echo($tmpControl); ?>" value="<?php echo($pColumn['Value']); ?>" type="hidden" />
<!-- #Hidden -->
<div id="<?php echo($tmpControl); ?>_BgHidden" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnHiddenbox();" class="DHidden">&nbsp;</div>
<!-- #JSCRIPT -->
<script type="text/javascript">
var tmp<?php echo($tmpControl); ?>=new NDropdownAR();
tmp<?php echo($tmpControl); ?>.sName="<?php echo($tmpControl); ?>";
tmp<?php echo($tmpControl); ?>.sImgCorePath="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>";

</script>
<?php echo ($tmpIntroduct); ?>
<!--sendRequest--><!--E.<?php echo ($tmpControl); ?>--></td>
<td id="<?php echo ($tmpControl); ?>_ImgIntroduct" class="PanelImgIntroduct">
<?php if(strlen($pColumn['stcoctUiImgIntroduct'])>0 && $pColumn['stcoctUiImgIntroduct']!='&nbsp;'){ ?>
<a href="#Here"><img src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/icon_4.jpg" title="<?php echo($pColumn['stcoctUiImgIntroduct']); ?>" /></a>
<?php }else{ ?>&nbsp;<?php } ?></td><?php if ($pColumn['stcoctSingleLine']==0) { ?></tr><?php } ?>
<?php
	}
}
?>