/**
  * Returns the data model based on the primary key given in the GET variable.
  * If the data model is not found, an HTTP exception will be raised.
  * @param integer $id the ID of the model to be loaded
  * @return Editorial the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = Editorial::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
echo $form->labelEx($model, 'ISBN');
?>
		<?php 
echo $form->textField($model, 'ISBN', array('size' => 13, 'maxlength' => 13));
?>
		<?php 
echo $form->error($model, 'ISBN');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'IdEditorial');
?>
		<?php 
echo $form->dropDownList($model, 'IdEditorial', CHtml::listData(Editorial::model()->findAll(array('order' => 'Nombre')), 'IdEditorial', 'Nombre'), array('prompt' => 'Seleccione una Editorial'));
?>
		<?php 
echo $form->error($model, 'IdEditorial');
?>
	</div>

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