Ejemplo n.º 1
0
 public function actionborrarmensaje($id)
 {
     $modelin1 = Mensajesd::model()->find("id=" . $id);
     $modelin1->delete();
 }
Ejemplo n.º 2
0
	<?php 
///solo si es el usuario administrador de mensajes
if (Yii::app()->params['esmensajero'] == ($usuario = Yii::app()->user->name)) {
    $this->widget('zii.widgets.jui.CJuiTabs', array('tabs' => array('Mensajes' => array('id' => 'mensajes', 'content' => $this->renderPartial('mensajes', array('model' => $model, 'proveedor' => $proveedor), true))), 'options' => array('collapsible' => true), 'id' => 'Mytab'));
}
?>










<?php 
$this->endWidget();
?>

<?php 
print_r(Mensajesd::model()->listarcorreos($model->id, '1'));
//--------------------- begin new code --------------------------
// add the (closed) dialog for the iframe
$this->beginWidget('zii.widgets.jui.CJuiDialog', array('id' => 'cru-dialog', 'options' => array('title' => 'Destinatario', 'autoOpen' => false, 'modal' => false, 'width' => 300, 'height' => 150)));
?>
<iframe id="cru-frame" width="100%" height="100%"></iframe>
<?php 
$this->endWidget();
//--------------------- end new code --------------------------