<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'sale-form',
	'enableAjaxValidation'=>false,
)); ?>
<fieldset>
    <legend></legend>
	<p class="note"><span class="required">*</span> 字段为必须</p>

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

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

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

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

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

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

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

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

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

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '创建' : '保存');?>
	</div>
</fieldset>

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

</div>