<?php $this->renderPartial('/_include/header');?>

<div id="contentHeader">
  <h3>留言反馈</h3>
  <div class="searchArea">
    <ul class="action left" >
    </ul>
    <div class="search right"> </div>
  </div>
</div>
<?php if (CHtml::errorSummary($model)):?>
<table id="tips">
  <tr>
    <td><div class="erro_div"><span class="error_message"> <?php echo CHtml::errorSummary($model); ?> </span></div></td>
  </tr>
</table>
<?php endif?>
<?php $form=$this->beginWidget('CActiveForm',array('id'=>'xform','htmlOptions'=>array('name'=>'xform'))); ?>
<table class="form_table">
  <tr>
    <td ><div class="custom_title">用户名：</div>
      <?php echo $form->textField($model,'username',array('size'=>50,'maxlength'=>128)); ?></td>
  </tr>
  <tr>
    <td ><div class="custom_title">真实姓名：</div>
      <?php echo $form->textField($model,'realname',array('size'=>50,'maxlength'=>128)); ?></td>
  </tr>
  <tr>
    <td ><div class="custom_title">邮箱：</div>
      <?php echo $form->textField($model,'email',array('size'=>50,'maxlength'=>128)); ?></td>
  </tr>
  <tr>
    <td ><div class="custom_title">电话：</div>
      <?php echo $form->textField($model,'telephone',array('size'=>50,'maxlength'=>128)); ?></td>
  </tr>
  <tr>
    <td ><div class="custom_title">其它联系方式：</div>
      <?php echo $form->textField($model,'contact_other',array('size'=>50,'maxlength'=>128)); ?></td>
  </tr>
  <tr>
    <td><div class="custom_title">留言内容：</div>
      <?php echo $form->textArea($model,'question',array('rows'=>10, 'cols'=>70)); ?></td>
  </tr>
  <tr>
    <td><div class="custom_title">留言回复：</div>
      <?php echo $form->textArea($model,'answer_content',array('rows'=>10, 'cols'=>70)); ?></td>
  </tr>
  <tr class="submit">
    <td ><input type="submit" name="editsubmit" value="提交" class="button" tabindex="3" /></td>
  </tr>
</table>
<script type="text/javascript">
$(function(){
	$("#xform").validationEngine();	
});
</script>
<?php $form=$this->endWidget(); ?>
<?php $this->renderPartial('/_include/footer');?>
