<?php
class Normal_TextStyle extends netsControl {
	public function Normal_TextStyle(){
		$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>';
		}
		
		$tmpFontFamily='宋体,仿宋,黑体,微软雅黑,方正姚体,华文行楷,楷体,方正舒体,幼圆,华文中宋,隶书,Arial,Arial Black,Times New Roman,Courier New,Tahoma,Verdana';
		$tmpFontSize='8px,10px,12px,14px,16px,18px,22px,24px,28px,32px,36px,42px';
		$tmpFontColor='#E53333,#E56600,#FF9900,#64451D,#DFC5A4,#FFE500,#009900,#006600,#99BB00,#B8D100,#60D978,#00D5FF,#337FE5,#003399,#4C33E5,#9933E5,#337FE5,#CC33E5,#EE33EE,#FFFFFF,#CCCCCC,#999999,#666666,#333333,#000000';
		$tmpFontBGColor='#E53333,#E56600,#FF9900,#64451D,#DFC5A4,#FFE500,#009900,#006600,#99BB00,#B8D100,#60D978,#00D5FF,#337FE5,#003399,#4C33E5,#9933E5,#337FE5,#CC33E5,#EE33EE,#FFFFFF,#CCCCCC,#999999,#666666,#333333,#000000';



?>
<!-- #<?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 class="">
<!-- ### -->
<li id="<?php echo($tmpControl); ?>_A_Button" class="TStyle_TextButton">
	<ul id="<?php echo($tmpControl); ?>_A_Box" class="DHidden">
	<?php $tmpAR0=explode($this->sysSPLIT1,$tmpFontFamily); $Coun0=0; foreach($tmpAR0 as $Row0){ ?>
	<li id="<?php echo($tmpControl); ?>_A_Cell_<?php echo($Coun0); ?>" class="TStyle_TextCell"><a href="#Here" class="Link1 FBlack2" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnChoose('A','<?php echo($Row0); ?>');" style="font-family:<?php echo($Row0); ?>;"><?php echo($Row0); ?></a></li>
	<?php $Coun0++; } ?>
	</ul>
	<a id="<?php echo($tmpControl); ?>_A_Text" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnClick('A');" href="#Here" class="Link1 FBlack2">字体</a></li>
<!-- ### -->
<li id="<?php echo($tmpControl); ?>_B_Button" class="TStyle_TextButton">
	<ul id="<?php echo($tmpControl); ?>_B_Box" class="DHidden">
	<?php $tmpAR0=explode($this->sysSPLIT1,$tmpFontSize); $Coun0=0; foreach($tmpAR0 as $Row0){ ?>
	<li id="<?php echo($tmpControl); ?>_B_Cell_<?php echo($Coun0); ?>" class="TStyle_TextCell"><a href="#Here" class="Link1 FBlack2" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnChoose('B','<?php echo($Row0); ?>');" style="font-size:<?php echo($Row0); ?>;"><?php echo($Row0); ?></a></li>
	<?php $Coun0++; } ?>
	</ul>
	<a id="<?php echo($tmpControl); ?>_B_Text" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnClick('B');" href="#Here" class="Link1 FBlack2">文字大小</a></li>
<!-- ### -->
<li id="<?php echo($tmpControl); ?>_C_Button" class="TStyle_ImgButton"><a id="<?php echo($tmpControl); ?>_C_Text" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnClick('C');" href="#Here"><img src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Control/TextStyle/b_C.jpg" /></a></li>
<li id="<?php echo($tmpControl); ?>_D_Button" class="TStyle_ImgButton"><a id="<?php echo($tmpControl); ?>_D_Text" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnClick('D');" href="#Here"><img src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Control/TextStyle/b_D.jpg" /></a></li>
<li id="<?php echo($tmpControl); ?>_E_Button" class="TStyle_ImgButton"><a id="<?php echo($tmpControl); ?>_E_Text" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnClick('E');" href="#Here"><img src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Control/TextStyle/b_E.jpg" /></a></li>
<!-- ### -->
<li id="<?php echo($tmpControl); ?>_F_Button" class="TStyle_ImgButton">
	<ul id="<?php echo($tmpControl); ?>_F_Box" class="DHidden">
	<?php $tmpAR0=explode($this->sysSPLIT1,$tmpFontColor); $Coun0=0; foreach($tmpAR0 as $Row0){ ?>
	<li id="<?php echo($tmpControl); ?>_F_Cell_<?php echo($Coun0); ?>" class="TStyle_ColorCell" style="background-color:<?php echo($Row0); ?>;"><a href="#Here" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnChoose('F','<?php echo($Row0); ?>');" class="Link1">&nbsp;</a></li>
	<?php $Coun0++; } ?>
	</ul>
	<a id="<?php echo($tmpControl); ?>_F_Text" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnClick('F');" href="#Here"><img src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Control/TextStyle/b_F.jpg" /></a></li>
<!-- ### -->
<li id="<?php echo($tmpControl); ?>_G_Button" class="TStyle_ImgButton">
	<ul id="<?php echo($tmpControl); ?>_G_Box" class="DHidden">
	<?php $tmpAR0=explode($this->sysSPLIT1,$tmpFontBGColor); $Coun0=0; foreach($tmpAR0 as $Row0){ ?>
	<li id="<?php echo($tmpControl); ?>_B_Cell_<?php echo($Coun0); ?>" class="TStyle_ColorCell" style="background-color:<?php echo($Row0); ?>;"><a href="#Here" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnChoose('G','<?php echo($Row0); ?>');" class="Link1">&nbsp;</a></li>
	<?php $Coun0++; } ?>
	</ul>
	<a id="<?php echo($tmpControl); ?>_G_Text" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnClick('G');" href="#Here"><img src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Control/TextStyle/b_G.jpg" /></a></li>
<!-- ### -->
<li class="TStyle_NormalButton"><a href="#Here" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnClear();" class="Link1 FBlack2">清空</a></li>
<!-- ### -->
<li class="TStyle_Sample"><a id="<?php echo($tmpControl); ?>_Sample" href="#Here" class="Link1 FBlack2" style="">文字样例(Text sample)</a></li>

<li class="DClear"></li></ul>
<!-- ### -->
<div id="<?php echo($tmpControl); ?>_BgHidden" onclick="tmpTStyle_<?php echo($tmpControl); ?>.OnHiddenbox();" class="DHidden">&nbsp;</div>
<!-- ### -->
<input id="<?php echo($tmpControl); ?>" name="<?php echo($tmpControl); ?>" value="<?php echo ($pColumn['Value']); ?>" type="hidden" />
<!-- #SCRIPT -->
<script type="text/javascript">
var tmpTStyle_<?php echo($tmpControl); ?>=new TStyle();
tmpTStyle_<?php echo($tmpControl); ?>.sName="<?php echo($tmpControl); ?>";
tmpTStyle_<?php echo($tmpControl); ?>.sC_ImgPath="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Control/TextStyle/";
tmpTStyle_<?php echo($tmpControl); ?>.OnSet("<?php echo ($pColumn['Value']); ?>");

</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
	}
}
?>