<?php Yii::app()->clientScript->scriptMap = array('jquery.js'=>false);?>
<?php $form=$this->beginWidget('CActiveForm', array(
    	'id'=>'book-form',
    	'enableAjaxValidation'=>false,
    )
);
?>
<?php echo $form->errorSummary($chapter); ?>

<div class="row">
    <?php echo $form->labelEx($chapter,'chaptername'); ?>
	<?php echo $form->textField($chapter,'chaptername', array('size' => 60));?>
	<?php echo $form->error($chapter,'chaptername'); ?>
</div>
<div class="row">
    <?php echo $form->labelEx($chapter,'display'); ?>
	<?php echo $form->dropDownlist($chapter,'display', Chapters::$aDisplay);?>
	<?php echo $form->error($chapter,'display'); ?>
</div>
<div class="row">
    <?php echo $form->labelEx($chapter,'isimage'); ?>
	<?php echo $form->dropDownlist($chapter,'isimage', Chapters::$aImage);?>
	<?php echo $form->error($chapter,'isimage'); ?>
</div>
<div class="row">
	<?php echo $form->labelEx($chapter,'content'); ?>
	<?php echo $form->textArea($chapter,'content', array('cols' => 64, 'rows' => 20)); ?>
	<?php echo $form->error($chapter,'content'); ?>
</div>

<div class="row buttons">
    <?php echo CHtml::ajaxSubmitButton($chapter->isNewRecord ? '创建' : '保存', '', array('success'=>'js:function(){$.fancybox.close();}'));?>
</div>

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