/**
  * 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 = CrugeGruposMail::model()->findByPk($id);
     if ($model === null) {
         throw new CHttpException(404, 'El enlace o direccion solicitado no existe');
     }
     return $model;
 }
Example #2
0
echo "revocar seleccion";
?>
	</div>
	<?php 
$this->widget(Yii::app()->user->ui->CGridViewClass, array('id' => '_lista1', 'selectableRows' => 2, 'dataProvider' => Embarcaciones::model()->search(), 'columns' => array(array('class' => 'CCheckBoxColumn'), 'nomep')));
?>
	
	</div>
	<div id='lista2' class='lista'>
	<div id='asignarSeleccion' class='boton'>
		<?php 
echo "asignar seleccion";
?>
</div>
	<?php 
$this->widget(Yii::app()->user->ui->CGridViewClass, array('id' => '_lista2', 'selectableRows' => 2, 'dataProvider' => CrugeGruposMail::model()->search(), 'columns' => array(array('class' => 'CCheckBoxColumn'), 'desgrupo')));
?>
	
	</div>
</div>
</div>

<script>
	<?php 
/* a cada LI del div de roles le anexa un evento click y le pone un cursor */
?>
	
	var _setSelectedItemName = function(valor){
		$('#mostrarSeleccion').html(valor);
		$('#mostrarSeleccion').data("itemName",valor);
	}