Esempio n. 1
0
 public function loadModel($id)
 {
     $model = Quests::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
Esempio n. 2
0
    );
    });
</script>

<div class="nav--order-wrap"><div class="step1"><p>1</p></div><div  class="arrow_right"><img src="../../../images/arrow_right.png" width="19" height="19" /></div><div  class="step2"><p>2</p></div></div>

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'orders-form', 'enableAjaxValidation' => false));
?>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'quest_id');
?>
		<?php 
echo $form->dropDownList($model, 'quest_id', Quests::all(), array('class' => 'quest_id'));
?>
		<?php 
echo $form->error($model, 'quest_id');
?>
        <div class="form-group">	       
		<?php 
echo $form->labelEx($model, 'date_day');
?>
        <div class="input-group date" id="datetimepicker1">
		<?php 
echo $form->textField($model, 'date_day', array("class" => "datetimepicker form-control"));
?>
        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
        </div>
        </div>