コード例 #1
0
 public function actionConsulta_documento($id, $dane)
 {
     $matricula = Matricula::model()->find("CODIGO_DANE_ESTABLEDUCATIVO='" . $dane . "' AND NRO_OCUMENTO='" . $id . "'");
     if ($matricula != null) {
         echo $matricula->IDMATRICULA;
     }
     $matricula = MatriculaEspejo::model()->find("CODIGO_DANE_ESTABLEDUCATIVO='" . $dane . "' AND NRO_OCUMENTO='" . $id . "'");
     if ($matricula != null) {
         if ($matricula->ID != 0) {
             echo $matricula->ID;
         }
     }
 }
コード例 #2
0
ファイル: index.php プロジェクト: MGGROUP/SAMDEPURACION
<?php

$this->breadcrumbs = array(MatriculaEspejo::label(2), Yii::t('app', 'Index'));
$this->menu = array(array('label' => Yii::t('app', 'Crear') . ' ' . MatriculaEspejo::label(), 'url' => array('create')), array('label' => Yii::t('app', 'Administrar') . ' ' . MatriculaEspejo::label(2), 'url' => array('admin')));
?>

<h1><?php 
echo GxHtml::encode(MatriculaEspejo::label(2));
?>
</h1>

<?php 
$this->widget('zii.widgets.CListView', array('dataProvider' => $dataProvider, 'itemView' => '_view'));