<?php
class Normal_CheckboxAR extends netsControl {
	public function Normal_CheckboxAR(){
		$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); ?>-->
<table cellpadding="0" cellspacing="0"><tr>
<?php
		$tmpAR0=explode($this->sysSPLIT1,$pColumn['Value']);
		$Coun0=0;
		foreach ($pColumn['Option'] as $Option){
			$tmpStyle='';
			if(in_array($Option['Value'],$tmpAR0)){
				$tmpStyle='_Light';
			}
?><td class="ChooseCell_A<?php echo($tmpStyle); ?>" style="padding-left:0px;"><input id="<?php echo($tmpControl.$Coun0); ?>" name="<?php echo($tmpControl); ?>[]" type="checkbox" class="ChooseCell_C<?php echo($tmpStyle); ?> SControl1"
onclick="tmpControl.onControlLight(this,'ChooseCell_C<?php echo($tmpStyle); ?>');<?php echo($pColumn['Parameter_JS_Onclick']); ?>"
onblur="tmpControl.onControlBlur(this,'ChooseCell_C<?php echo($tmpStyle); ?>');<?php echo($pColumn['Parameter_JS_Onblur']); ?>"
onfocus="<?php echo($pColumn['Parameter_JS_Onfocus']); ?>"
onchange="<?php echo($pColumn['Parameter_JS_Onchange']); ?>"
onmouseover="<?php echo($pColumn['Parameter_JS_Onmouseover']); ?>"
onmouseout="<?php echo($pColumn['Parameter_JS_Onmouseout']); ?>"
value="<?php echo ($Option['Value']); ?>" <?php if(in_array($Option['Value'],$tmpAR0)){ echo (' checked="checked" '); } ?> /></td>
<td class="ChooseCell_B<?php echo($tmpStyle); ?>"><label for="<?php echo($tmpControl.$Coun0); ?>"><?php echo ($Option['Text']); ?></label></td><?php
			$tmpINT=$Coun0+1;
			if($pColumn['stcoctUiLen']==0){ $pColumn['stcoctUiLen']=1; }
			if($tmpINT%$pColumn['stcoctUiLen']==0){
?></tr><tr><?php
			}
			$Coun0++;
		}
?>
</tr></table><?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
	}
}
?>