<?php
/* @var $this ContactController */
/* @var $model Contact */
/* @var $form CActiveForm */
?>

<div id="communicationsbox" style="height:525px; background-color:#f7eee1;">
<?php
    foreach(Yii::app()->user->getFlashes() as $key => $message) {
        echo '<div class="flash-' . $key . '">' . $message . "</div>\n";
    }
?>
    <?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'contact-form',
	'enableAjaxValidation'=>false,
)); ?>

  <div id="form_wrapper">

	<?php echo $form->errorSummary($model); ?>

	<fieldset id="current">
    <legend><strong>Contact page</strong></legend>
    <br />
    <table width="800" border="0" cellspacing="0" cellpadding="5">
      
      <tr>
        <td><?php echo $form->labelEx($model,'to_email'); ?> : </td>
        <td>
		<?php echo $form->textField($model,'to_email',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'to_email'); ?>
      </td>
      </tr>
      <tr>
        <td><?php echo $form->labelEx($model,'bcc_email'); ?> : </td>
        <td><?php echo $form->textField($model,'bcc_email',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'bcc_email'); ?></td>
      </tr>
      <tr>
        <td><?php echo $form->labelEx($model,'physical_address'); ?> : </td>
        <td>
		<?php echo $form->textArea($model,'physical_address',array('rows'=>6, 'cols'=>50,'class'=>'ckeditor')); ?>
		<?php echo $form->error($model,'physical_address'); ?></td>
      </tr>
      <tr>
        <td><?php echo $form->labelEx($model,'support_numbers'); ?> : </td>
        <td>
		<?php echo $form->textArea($model,'support_numbers',array('rows'=>6, 'cols'=>50,'class'=>'ckeditor')); ?>
		<?php echo $form->error($model,'support_numbers'); ?></td>
      </tr>
      <tr>
        <td valign="top"><?php echo $form->labelEx($model,'bottom_line'); ?> : </td>
        <td>
		<?php echo $form->textArea($model,'bottom_line',array('rows'=>6, 'cols'=>50,'class'=>'ckeditor')); ?>
		<?php echo $form->error($model,'bottom_line'); ?>
        </td>
      </tr>
      <tr>
        <td align="right">&nbsp;</td>
        <td>&nbsp;&nbsp;&nbsp; <?php echo CHtml::submitButton('Save'); ?></td>
      </tr>
    </table>
  </fieldset>

<?php $this->endWidget(); ?>

</div><!-- form -->
</div>