<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'emails-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

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

	<div class="row">
		<?php echo $form->labelEx($model,'userId'); ?>
		<?php echo $form->textField($model,'userId'); ?>
		<?php echo $form->error($model,'userId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'timestamp'); ?>
		<?php echo $form->textField($model,'timestamp'); ?>
		<?php echo $form->error($model,'timestamp'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'subject'); ?>
		<?php echo $form->textField($model,'subject'); ?>
		<?php echo $form->error($model,'subject'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'message_id'); ?>
		<?php echo $form->textField($model,'message_id'); ?>
		<?php echo $form->error($model,'message_id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'to_personal'); ?>
		<?php echo $form->textField($model,'to_personal'); ?>
		<?php echo $form->error($model,'to_personal'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'to_mailbox'); ?>
		<?php echo $form->textField($model,'to_mailbox'); ?>
		<?php echo $form->error($model,'to_mailbox'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'to_host'); ?>
		<?php echo $form->textField($model,'to_host'); ?>
		<?php echo $form->error($model,'to_host'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'from_personal'); ?>
		<?php echo $form->textField($model,'from_personal'); ?>
		<?php echo $form->error($model,'from_personal'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'from_mailbox'); ?>
		<?php echo $form->textField($model,'from_mailbox'); ?>
		<?php echo $form->error($model,'from_mailbox'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'from_host'); ?>
		<?php echo $form->textField($model,'from_host'); ?>
		<?php echo $form->error($model,'from_host'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'reply_to_personal'); ?>
		<?php echo $form->textField($model,'reply_to_personal'); ?>
		<?php echo $form->error($model,'reply_to_personal'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'reply_to_mailbox'); ?>
		<?php echo $form->textField($model,'reply_to_mailbox'); ?>
		<?php echo $form->error($model,'reply_to_mailbox'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'reply_to_host'); ?>
		<?php echo $form->textField($model,'reply_to_host'); ?>
		<?php echo $form->error($model,'reply_to_host'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'recent'); ?>
		<?php echo $form->textField($model,'recent'); ?>
		<?php echo $form->error($model,'recent'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'unseen'); ?>
		<?php echo $form->textField($model,'unseen'); ?>
		<?php echo $form->error($model,'unseen'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'flagged'); ?>
		<?php echo $form->textField($model,'flagged'); ?>
		<?php echo $form->error($model,'flagged'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'answered'); ?>
		<?php echo $form->textField($model,'answered'); ?>
		<?php echo $form->error($model,'answered'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'deleted'); ?>
		<?php echo $form->textField($model,'deleted'); ?>
		<?php echo $form->error($model,'deleted'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'draft'); ?>
		<?php echo $form->textField($model,'draft'); ?>
		<?php echo $form->error($model,'draft'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'msgno'); ?>
		<?php echo $form->textField($model,'msgno'); ?>
		<?php echo $form->error($model,'msgno'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'maildate'); ?>
		<?php echo $form->textField($model,'maildate'); ?>
		<?php echo $form->error($model,'maildate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'size'); ?>
		<?php echo $form->textField($model,'size'); ?>
		<?php echo $form->error($model,'size'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'body_raw'); ?>
		<?php echo $form->textArea($model,'body_raw',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'body_raw'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

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

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