<?php
class Normal_Source extends netsControl {
	public function Normal_Source(){
		$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); ?>-->
<!-- ### -->
<div id="<?php echo ($tmpControl); ?>_Box_0" class="Source_2">
<input id="<?php echo($tmpControl); ?>" name="<?php echo($tmpControl); ?>" type="text" class="SControl1 ControlText"
onclick="tmpControl.onControlLight(this,'ControlText');<?php echo($pColumn['Parameter_JS_Onclick']); ?>"
onblur="tmpControl.onControlBlur(this,'ControlText');<?php echo($pColumn['Parameter_JS_Onblur']); ?>"
onfocus="tmpControl.chooseCall('<?php echo ($pColumn['Parameter']); ?>',this);<?php echo($pColumn['Parameter_JS_Onfocus']); ?>"
onchange="tmp<?php echo ($tmpControl); ?>.OnTextChange();<?php echo($pColumn['Parameter_JS_Onchange']); ?>"
onmouseover="<?php echo($pColumn['Parameter_JS_Onmouseover']); ?>"
onmouseout="<?php echo($pColumn['Parameter_JS_Onmouseout']); ?>"
value="<?php echo ($pColumn['Value']); ?>" style="<?php echo ($pColumn['ControlStyle']); ?>" />

</div>
<!-- ### -->
<div id="<?php echo ($tmpControl); ?>_Box_1" class="Source_1">
<table id="<?php echo ($tmpControl); ?>_ImgList" cellpadding="0" cellspacing="4"></table></div>
<!-- ### -->
<ul class="Source_5">
<li id="<?php echo ($tmpControl); ?>_Button_0" class="Source_6"><a href="#Here" onclick="tmp<?php echo ($tmpControl); ?>.OnTabSlide(0);" class="Link1 FBlue4">手工编辑</a></li>
<li id="<?php echo ($tmpControl); ?>_Button_1" class="Source_7"><a href="#Here" onclick="tmp<?php echo ($tmpControl); ?>.OnTabSlide(1);" class="Link1 FBlue4">浏览等比缩略图片</a></li>

<li class="Source_8"><a href="../../../Component/Nets/netsFile/FileManage.php" target="_blank" class="Link1 FBlue4">打开文件管理器</a></li>
<li class="DClear"></li></ul>
<div class="Source_10"><iframe src="../../../Component/Nets/netsFile/FileSimple.php?RControl=<?php echo($tmpControl); ?>&UDirectory=<?php echo ($pColumn['Parameter']); ?>&UType=0" scrolling="No" frameborder="0" class="UploadFrame"></iframe></div>

<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmp<?php echo ($tmpControl); ?>=new Source();
tmp<?php echo ($tmpControl); ?>.sName="<?php echo ($tmpControl); ?>";
tmp<?php echo ($tmpControl); ?>.sImgCorePath="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>";
tmp<?php echo ($tmpControl); ?>.sImgCustomPath="<?php echo($this->sysFileConfig['PathRoot']); ?>";

/*
<div><img src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/SourceImg_0.jpg" /></div>
<div class="Source_3"><a href="{Nets.Src}" target="_blank"><img src="{Nets.ImgSrc}" /></a></div>
<div><img src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/SourceImg_1.jpg" /></div>
*/
tmp<?php echo ($tmpControl); ?>.sImglistTemplate='<div><img src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/SourceImg_0.jpg" /></div><div class="Source_3"><a href="{Nets.Src}" target="_blank"><img src="{Nets.ImgSrc}" /></a></div><div><img src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/Common/Img/Common/SourceImg_1.jpg" /></div>';

<?php if(strlen($pColumn['Value'])<4){ ?>
tmp<?php echo ($tmpControl); ?>.OnTabSlide(0);
<?php }else{ ?>
tmp<?php echo ($tmpControl); ?>.OnTabSlide(1);
tmp<?php echo ($tmpControl); ?>.OnTextChange();
<?php } ?>

</script>

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