예제 #1
0
파일: _form.php 프로젝트: josuesperb/sipesq
?>
		<?php 
echo $form->textField($model, 'lattes');
?>
		<?php 
echo $form->error($model, 'lattes');
?>
	</div>


	<div class="row">
		<?php 
echo $form->labelEx($model, 'cod_vinculo_institucional');
?>
		<?php 
echo $form->dropDownList($model, 'cod_vinculo_institucional', CHtml::listData(VinculoInstitucional::model()->findAll(array('order' => 'nome')), 'cod_vinculo_institucional', 'nome'), array('prompt' => "Selecione uma Instituição"));
?>
		<?php 
echo $form->error($model, 'cod_vinculo_institucional');
?>
	</div>

	<div class="row">
		<?php 
echo $form->labelEx($model, 'cod_banco');
?>
		<?php 
echo $form->textField($model, 'cod_banco');
?>
		<?php 
echo $form->error($model, 'cod_banco');
 /**
  * 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 the ID of the model to be loaded
  */
 public function loadModel($id)
 {
     $model = VinculoInstitucional::model()->findByPk((int) $id);
     if ($model === null) {
         throw new CHttpException(404, 'The requested page does not exist.');
     }
     return $model;
 }
예제 #3
0
파일: _view.php 프로젝트: josuesperb/sipesq
    ?>
		<br />
	<?php 
}
?>
	
		
	<?php 
if (isset($data->cod_vinculo_institucional)) {
    ?>
		<b><?php 
    echo CHtml::encode($data->getAttributeLabel('cod_vinculo_institucional'));
    ?>
:</b>
		<?php 
    echo CHtml::encode(VinculoInstitucional::model()->findByPk($data->cod_vinculo_institucional)->nome);
    ?>
	<?php 
}
?>
	
	
	
	<div class="financeiro-div" style="display:none">
	<img src="<?php 
echo Yii::app()->request->baseUrl;
?>
/css/ajax-loader.gif" alt="Carregando...">
	</div>
	
	<?php