<?php
class Normal_Microblogging_DiscussSubmit extends netsControl {
	public function Normal_Microblogging_DiscussSubmit(){
		$this->netsControl();
	}
	public function Control($pColumn){
		$tmpControl=$pColumn['stcotName'].'Txt'.$pColumn['NameExtend'];
		$tmpParameters=explode($this->sysSPLIT1,$pColumn['Parameter']);
		if(count($tmpParameters)!=3){
			$tmpParameters=array(0,0,$this->sysFileConfig['AnonymousUser_Name']);
		}
		if($tmpParameters[1]==0){
			$tmpParameters[2]=$this->sysFileConfig['AnonymousUser_Name'];
		}
?>
<!-- #<?php echo ($pColumn['stcotName']); ?> -->
<!--S.<?php echo ($tmpControl); ?>-->
<table class="MBlog_Pub_0_44" cellpadding="0" cellspacing="4">

<tr><td class="MBlog_Pub_0_45">
	<div id="<?php echo($tmpControl); ?>_Facebox" class="DHidden"></div>
	<input id="<?php echo($tmpControl); ?>_Value" name="<?php echo($tmpControl); ?>_Value" type="hidden" value="" />
	<div class="MBlog_Pub_0_52" onclick="tmpMBDiscussSubmit_<?php echo($tmpControl); ?>.ShowFace();">
		<div class="MBlog_Pub_0_53"><a href="#Here"><img id="<?php echo($tmpControl); ?>_Img" src="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/Icon/Icon_2/048.gif" /></a></div>
		<div class="DHidden"><img src="" /></div>
		<div class="DClear"></div></div></td>
	<td class="MBlog_Pub_0_55"><textarea id="<?php echo($tmpControl); ?>_Content" name="<?php echo($tmpControl); ?>_Content" <?php $this->GetControlStyle('TextArea'); ?> style="<?php echo($pColumn['ControlStyle']); ?>"></textarea></td>
	<td class="MBlog_Pub_0_56"><input onclick="tmpMBDiscussSubmit_<?php echo($tmpControl); ?>.OnAdd();" type="button" class="MBlog_Pub_Button0" value="回复" /></td>
<?php if($tmpParameters[1]==0){ ?><tr><?php }else{ ?><tr class="DHidden"><?php } ?>
	<td class="MBlog_Pub_0_45">&nbsp;</td>
	<td class="MBlog_Pub_0_55"><input id="<?php echo($tmpControl); ?>_Publisher_Name" name="<?php echo($tmpControl); ?>_Publisher_Name" value="<?php echo($tmpParameters[2]); ?>" <?php $this->GetControlStyle('Text'); ?> style="<?php echo($pColumn['ControlStyle']); ?>" type="text" /></td>
	<td class="MBlog_Pub_0_56">&nbsp;</td></tr>

</tr></table>
<input id="<?php echo($tmpControl); ?>_Parid" name="<?php echo($tmpControl); ?>_Parid" value="<?php echo($tmpParameters[0]); ?>" type="hidden" />
<input id="<?php echo($tmpControl); ?>_ImgValue" name="<?php echo($tmpControl); ?>_ImgValue" value="<?php echo($this->sysFileConfig['sysUiCoreRoot']); ?>Ui/m_nets/Img/Icon/Icon_2/048.gif" type="hidden" />
<input id="<?php echo($tmpControl); ?>_CreateBy" name="<?php echo($tmpControl); ?>_CreateBy" value="<?php echo($tmpParameters[1]); ?>" type="hidden" />
<!-- ------ #SCRIPT ------ -->
<script type="text/javascript">
var tmpMBDiscussSubmit=new MBDiscussSubmit();
var tmpMBDiscussSubmit_<?php echo($tmpControl); ?>=new MBDiscussSubmit();
tmpMBDiscussSubmit_<?php echo($tmpControl); ?>.sName="<?php echo($tmpControl); ?>";

</script>
<!--sendRequest--><!--E.<?php echo ($tmpControl); ?>-->
<?php
	}
	private function GetControlStyle($pType){
		if($pType=='Text'){
			?> class="MBlog_Pub_DiscussText MBlog_Pub_Text" onfocus="this.className='MBlog_Pub_DiscussText MBlog_Pub_Text_Light';" onblur="this.className='MBlog_Pub_DiscussText MBlog_Pub_Text';" <?php
		}else if($pType=='TextArea'){
			?> class="MBlog_Pub_DiscussText MBlog_Pub_TextArea" onfocus="this.className='MBlog_Pub_DiscussText MBlog_Pub_TextArea_Light';" onblur="this.className='MBlog_Pub_DiscussText MBlog_Pub_TextArea';" <?php

		}

	}
}
?>
















