<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'book-vote-form',
	'enableAjaxValidation'=>false,
)); ?>
<fieldset>
    <legend>custome</legend>
	<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,'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,'bookid'); ?>
		<?php echo $form->textField($model,'bookid'); ?>
		<?php echo $form->error($model,'bookid'); ?>
	</div>

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

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

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

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

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

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

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

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

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

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

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

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

</div>