<div class="form">
<?php	$form=$this->beginWidget('CActiveForm', array(
	'id'=>'fax-faxSend-form',
	'enableAjaxValidation'=>false,
	'htmlOptions' => array('enctype' => 'multipart/form-data'),
	
	)); ?>

	<h1><?php echo "Send Fax"; ?></h1>

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

	
	<div class="row">
		<?php $models = Fax::model()->findAll(); ?>
		<?php $listdata = CHtml::listData($models, "id", "sender"); ?>
		<?php echo $form->labelEx($model,'sender'); ?>
		<?php echo $form->dropDownList($model,'sender',$listdata); ?>
		<?php echo $form->error($model,'sender'); ?>
	</div>
	
	<div class="row">
		<?php echo $form->labelEx($model,'Fax number'); ?>
		<?php echo $form->textField($model,'number'); ?>
		<?php echo $form->error($model,'number'); ?>
	</div>
	
	<div class="row">
		<?php $models = Fax::model()->findAll(); ?>
		<?php $listdata = CHtml::listData($models, "id", "resolution"); ?>
		<?php echo $form->labelEx($model,'resolution'); ?>
		<?php echo $form->dropDownList($model,'resolution', $listdata); ?>
		<?php echo $form->error($model,'resolution'); ?>
	</div>
	
	<div class="row buttons">
		<?php echo $form->labelEx($model,'file'); ?>
		<?php echo CHtml::activeFileField($model, 'file'); ?>
		
	</div>

	<div class="row buttons">
		<?php echo CHtml::hiddenField('action','send'); ?>
		<?php echo CHtml::submitButton(__('Send')); ?>
		
	</div>

	<?php $this->endWidget(); ?>
</div><!-- form -->