예제 #1
0
파일: _form.php 프로젝트: aftavwani/Master
<?php 
/* @var $this ProperyDetailsController */
/* @var $model ProperyDetails */
/* @var $form CActiveForm */
?>

<div class="form">

<?php 
$form = $this->beginWidget('CActiveForm', array('id' => 'propery-details-form', 'enableAjaxValidation' => false, 'htmlOptions' => array('enctype' => 'multipart/form-data')));
?>

<div class="pro_image">
<?php 
if (isset($abc[6])) {
    $_abc = PropertyDetails::Model()->findAllByAttributes(array('id' => $abc[6]));
    ?>
<Img src = "<?php 
    echo Yii::app()->baseurl;
    ?>
/uploads/img/<?php 
    echo $_abc[0]['image'];
    ?>
">

<?php 
}
?>
</div>

 /**
  * 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 PropertyDetails the loaded model
  * @throws CHttpException
  */
 public function loadModel($id)
 {
     $model = PropertyDetails::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
예제 #3
0
파일: _form.php 프로젝트: aftavwani/Master
?>
		</div>
		
		<?php 
//echo $form->error($model,'enquiry_date');
?>
	</div>
	
	   
<!--	<div class="proper-rgt">
		<div class="txt-log"><?php 
echo $form->labelEx($model, 'property_id');
?>
</div>
		<div class="txt-box"><?php 
echo $form->dropDownList($model, 'property_id', CHtml::listData(PropertyDetails::model()->findAll(), 'id', 'propert_name'), array('empty' => '--Select Source--'));
?>
 
		<?php 
//echo $form->error($model,'enquiry_source');
?>
</div>
	</div>--->
	
	<div class="proper-rgt">
		<div class="txt-log"><?php 
echo $form->labelEx($model, 'enquiry_source');
?>
</div>
		<div class="txt-box"><?php 
echo $form->dropDownList($model, 'enquiry_source', CHtml::listData(Source::model()->findAll(), 's_tite', 's_tite'), array('empty' => '--Select Source--'));