<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'bookpostreply-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,'postid'); ?>
		<?php echo $form->textField($model,'postid'); ?>
		<?php echo $form->error($model,'postid'); ?>
	</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'=>14,'maxlength'=>14)); ?>
		<?php echo $form->error($model,'username'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'subject'); ?>
		<?php echo $form->textField($model,'subject',array('size'=>60,'maxlength'=>200)); ?>
		<?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,'createdate'); ?>
		<?php echo $form->textField($model,'createdate'); ?>
		<?php echo $form->error($model,'createdate'); ?>
	</div>

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

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

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

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

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

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

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

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

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

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

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

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

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