<?php Yii::app()->clientScript->scriptMap = array('jquery.js'=>false);?>
<style type="text/css">
.tab tr {
	height: 40px;
}
.tab th {
	text-align:left;
	width:200px;
}
</style>
<div class="form">

<fieldset>
	<legend>阅读短信</legend>
<?php echo CHtml::beginForm();?>
<table class="tab">
	<tr>
		<td width="100">标题：</td>
		<td><?php echo CHtml::textField('subject','RE:'.$message->data->subject,array('size'=>40));?></td>
	</tr>
	<tr>
		<td>发送者：</td>
		<td><?php echo CHtml::encode($message->msgfrom);?></td>
	</tr>
	<tr>
		<td>发送时间：</td>
		<td><?php echo date('Y-m-d H:i:s', $message->createdate);?></td>
	</tr>
	<tr>
		<td>短信内容：</td>
		<td><?php echo CHtml::encode($message->data->message);?></td>
	</tr>
	<tr>
		<td>回复内容：</td>
		<td><?php echo CHtml::textArea('message', '', array('cols'=>50,'rows'=>10));?></td>
	</tr>
	<tr>
		<td><?php echo CHtml::ajaxSubmitButton('发送', array('message/group'), array('success'=>'js:function(){$.fancybox.close();}'));?></td>
		<td></td>
	</tr>
</table>
<?php echo CHtml::hiddenField('msgto',$message->msgfromid);?>
<?php echo CHtml::hiddenField('group',0);?>
<?php echo CHtml::endForm();?>
</fieldset>
</div>