public function beforeSave() { if ($this->isNewRecord) { // $this->creadopor=Yii::app()->user->name; // $this->creadoel=Yii::app()->user->name; $this->prefijo = '7'; $this->codigotra = Numeromaximo::numero($this, 'correlativo', 'maximovalor', 3, 'prefijo'); //$this->cod_estado='01'; //$this->c_salida='1'; } else { //$this->ultimares=" ".strtoupper(trim($this->usuario=Yii::app()->user->name))." ".date("H:i")." :".$this->ultimares; } if ($this->oldattributes['iduser'] != $this->iduser) { if (!is_null($this->iduser)) { $registros = Yii::app()->db->createCommand(" select idfield from\tcruge_field t where t.fieldname='codtra' ")->queryAll(); if (count($registros) > 0) { foreach ($registros as $row) { $cuantoshay = Yii::app()->db->createCommand(" SELECT count(idfieldvalue) from cruge_fieldvalue where iduser="******" and idfield=" . $row['idfield'] . " ")->queryScalar(); if ($cuantoshay == 0) { $comando = Yii::app()->db->createCommand(" INSERT INTO cruge_fieldvalue(iduser,idfield,value) values (" . $this->iduser . "," . $row['idfield'] . ",'" . $this->codigotra . "') "); $comando->execute(); } if ($cuantoshay == 1) { $comando = Yii::app()->db->createCommand(" UPDATE cruge_fieldvalue SET value= '" . $this->codigotra . "' where iduser="******" and idfield=" . $row['idfield'] . " "); $comando->execute(); } } } } } return parent::beforeSave(); }
public function beforeSave() { if ($this->isNewRecord) { $this->creadopor = Yii::app()->user->name; // $this->creadoel=Yii::app()->user->name; $this->prefijo = '97'; $this->codocu = '360'; $this->codestado = '10'; //creado $gg = new Numeromaximo(); $this->codpro = $gg->numero($this, 'correlativo', 'maximovalor', 4, 'prefijo'); // $this->codpro='97'.Numeromaximo::numero($this,'correlativo','maximovalor',4); // $this->codpro='97'.Numeromaximo::numero($this->model(),'codpro','maximovalor',4); //$this->cod_estado='01'; //$this->c_salida='1'; } else { //$this->ultimares=" ".strtoupper(trim($this->usuario=Yii::app()->user->name))." ".date("H:i")." :".$this->ultimares; } return parent::beforeSave(); }
public function beforeSave() { if ($this->isNewRecord) { $this->creadopor = Yii::app()->user->name; $this->numdoc = Numeromaximo::numero($this->model(), 'correlativo', 'maximovalor', 12, 'prefijo'); //$this->codigo='34343434'; } else { //$this->ultimares=" ".strtoupper(trim($this->usuario=Yii::app()->user->name))." ".date("H:i")." :".$this->ultimares; } return parent::beforeSave(); }
/** * Retrieves a list of models based on the current search/filter conditions. * @return CActiveDataProvider the data provider that can return the models based on the search/filter conditions. */ public function beforeSave() { if ($this->isNewRecord) { //$this->created = new CDbExpression('NOW()'); // $nuevovalor=new CDbExpression('SELEC MAX(NUMERO)'); //$this->numero=new CDbExpression('SELECt MAX(NUMERO) from mot_materiales'); //$this->modified = new CDbExpression('NOW()'); $this->numero = Numeromaximo::numero($this, 'numero', 'maximovalor', 11); $this->codtraba = '0001'; //$this->creadorpor='0001'; } return parent::beforeSave(); }
public function beforeSave() { if ($this->isNewRecord) { $this->creadopor = Yii::app()->user->isGuest ? 'Invitado' : Yii::app()->user->name; // $this->creadoel=Yii::app()->user->name; $this->correlativo = Numeromaximo::numero($this->model(), 'correlativo', 'maximovalor', 5); $this->codigoestado = '01'; //$this->c_salida='1'; } else { //$this->ultimares=" ".strtoupper(trim($this->usuario=Yii::app()->user->name))." ".date("H:i")." :".$this->ultimares; } return parent::beforeSave(); }
public function beforeSave() { if ($this->isNewRecord) { //$this->creadopor=Yii::app()->user->name; // $this->creadoel=Yii::app()->user->name; //$this->codlugar='000001'; $this->codlugar = Numeromaximo::numero($this->model(), 'codlugar', 'maximovalor', 6); //$this->cod_estado='01'; //$this->c_salida='1'; } else { //$this->ultimares=" ".strtoupper(trim($this->usuario=Yii::app()->user->name))." ".date("H:i")." :".$this->ultimares; } return parent::beforeSave(); }
public function beforeSave() { if ($this->isNewRecord) { ///$this->usuario=Yii::app()->user->name; $this->coddocucargo = '260'; $this->cnumcargo = Numeromaximo::numero($this->model(), 'cnumcargo', 'maximovalor', 10); //$this->cnumcargo= //$command = Yii::app()->db->createCommand(" select nextval('sq_guias') "); //$this->n_guia= $command->queryScalar(); $this->codigoestadocargo = '99'; //para que no lo agarre la vista VW-GUIA HASTA QUE GRABE TODO EL DETALLE } else { if ($this->c_estgui == '99') { //SI SE TRATA DE UNA GUIA NUEVA COLOCARLE 'PREVIO' $this->codigoestadocargo = '10'; } //$this->ultimares=" ".strtoupper(trim($this->usuario=Yii::app()->user->name))." ".date("H:i")." :".$this->ultimares; } return parent::beforeSave(); }
/** * Creates a new model. * If creation is successful, the browser will be redirected to the 'view' page. */ public function actionCreate() { $model = new Mot(); $naleatorio = 1; ///esto es por gusto apra evitar errroes limia esta varialbe ya que no sirve // $naleatorio=Numeromaximo::numero_aleatorio(10,10001); // $model->numeroauxiliar=$naleatorio; // Uncomment the following line if AJAX validation is needed // $this->performAjaxValidation($model); if (!isset(Yii::app()->session['numeropedido'])) { // unset(Yii::app()->session['numeropedido']); Yii::app()->session['numeropedido'] = Numeromaximo::numerounico(); } else { /* if(!isset($_POST['Mot']) and isset(Yii::app()->session['numeropedido'])) unset(Yii::app()->session['numeropedido']); ///LIMPIAMOS CAULQUIER SESION QUE HAYA QUEDADO , SIEMPER Y CUANDO NO VENGA DE UN POST Yii::app()->session['numeropedido'] = Numeromaximo::numerounico();*/ } if (isset($_POST['Mot'])) { $model->attributes = $_POST['Mot']; if ($model->save()) { //si grabo bien $model->refresh(); //ahora si ya $cadenasql = "UPDATE mot_mat_det SET hidmot =" . $model->id . " where hidmot= " . Yii::app()->session['numeropedido'] . " "; Yii::app()->db->createCommand($cadenasql)->execute(); //destrumos al sesion del numero de pedidod unset(Yii::app()->session['numeropedido']); unset(Yii::app()->session['numeroitem']); //echo " este es elutlimo id ---------------------->".$model->id."<br>"; $this->redirect(array('view', 'id' => $model->id)); } } /*if (!empty($_GET['aleatorio'])) $model->numeroauxiliar=$_GET['aleatorio']; */ $this->render('create', array('model' => $model, 'naleatorio' => $naleatorio)); }
$this->widget('ext.coco.CocoWidget', array('id' => 'cocowidget1', 'onCompleted' => 'function(id,filename,jsoninfo){ }', 'onCancelled' => 'function(id,filename){ alert("cancelled"); }', 'onMessage' => 'function(m){ alert(m); }', 'allowedExtensions' => array('JPEG', 'JPG', 'gif', 'PNG'), 'sizeLimit' => 2000000, 'uploadDir' => $ruta, 'buttonText' => 'Subir Imagen', 'receptorClassName' => 'application.models.Maestrocompo', 'methodName' => 'FileReceptor', 'userdata' => $model->codigo, 'maxUploads' => 1, 'maxUploadsReachMessage' => 'No esta permitido cargar mas archivos', 'multipleFileSelection' => true, 'nombrealt' => $model->codigo . '')); } ?> <div class="row"> <DIV ID="imagenmaterial" > <?php /* echo CHtml::image( "/recurso/materiales/".$model->codigo.".jpg" ,"", array('width'=>'240','height'=>'240') );*/ Numeromaximo::Pintaimagen(Yii::app()->params['rutaimagenesmateriales'] . $model->codigo . ".JPG", Yii::app()->params['rutaimagenesmateriales'] . "NODISPONIBLE.JPG", 240, 240); ?> </DIV> </div> <div class="row buttons"> <?php echo !$model->isNewRecord ? CHtml::ajaxSubmitButton("Borrar Imagen.", array("Maestrocompo/borraimagen"), array("type" => "POST", "data" => array("codiguito" => "js:Maestrocompo_codigo.value"), "update" => "#imagenmaterial")) : ""; ?> </div> </div> <!-- FIn del panel derecho !-->
<?php echo $form->errorSummary($model); ?> <div style="overflow:auto"> <div class="division"> <div style="width:200px;height:210px, padding:15px; margin:5px; float:left;"> <?php Numeromaximo::Pintaimagen("/materiales/" . $data->codart . ".JPG", "/materiales/NODISPONIBLE.JPG", 100, 100); ?> <div class="division"> <?php $modelodatos = Maestrodetalle::model()->findByPk(array('codart' => $model->codart, 'codcentro' => $model->codcen, 'codal' => $model->codalm)); if (!is_null($modelodatos)) { if ($modelodatos->supervisionautomatica == '1') { $maximovalor = round(1.5 * $modelodatos->canteconomica, 0); //(30% exceso de la cantidad economica) $this->widget('ext.semaforo.Semaforo', array('valores' => array($modelodatos->cantreposic, $modelodatos->cantreorden, $modelodatos->canteconomica), 'asc' => 1, 'valor' => $model->cantlibre)); $this->widget('ext.kpi.Kpi', array('startAngle' => -150, 'endAngle' => 150, 'min' => 0, 'max' => $model->cantlibre > $maximovalor ? $model->cantlibre + 0 : $maximovalor + 0, 'step' => $maximovalor / 40, 'texto' => 'Libre', 'ancholinea' => 1, 'titulo' => 'Stock', 'rangocolores' => array(array('from' => 0, 'to' => $modelodatos->cantreposic + 0, 'color' => '#DF5353'), array('from' => $modelodatos->cantreposic + 0, 'to' => $modelodatos->cantreorden + 0, 'color' => '#FFBF00'), array('from' => $modelodatos->cantreorden + 0, 'to' => $modelodatos->canteconomica + 0, 'color' => '#55BF3B'), array('from' => $modelodatos->canteconomica + 0, 'to' => 2.5 * $modelodatos->canteconomica + 0, 'color' => '#DF5353')), 'valor' => $model->cantlibre + 0, 'sufix' => ' Unidades ')); } else { echo "Este material no tiene supervision de Stocks, Consulte con el administrador de datos de material para activar esta opcion";
public function actionView($id) { ///Verificamos que este bloqueado por el usuario if (Numeromaximo::estasensesion($id, $this->documento)) { $this->terminabloqueo($id); //$this->limpiatemporaldetalle(); } $this->render('view', array('model' => $this->loadModel($id))); }
public function beforeSave() { if ($this->isNewRecord) { //buscano el igv $this->nigv = Igv::model()->findByPk(1)->valor; // $this->codestado = '99'; $this->coddocu = '110'; $this->fecdoc = date("Y-m-d"); } else { if ($this->codestado == '99') { $this->codestado = '10'; $this->numcot = Numeromaximo::numero($this->model(), 'numcot', 'maximovalor', 8); //ahora el hijo $command = Yii::app()->db->createCommand("update dcotmateriales set estadodetalle='10' where hidguia =" . $this->idguia . " "); $command->execute(); } $command = Yii::app()->db->createCommand("update dcotmateriales set estadodetalle='10' where hidguia =" . $this->idguia . " and estadodetalle ='99' "); $command->execute(); } //$this->ultimares=" ".strtoupper(trim($this->usuario=Yii::app()->user->name))." ".date("H:i")." :".$this->ultimares; return parent::beforeSave(); }
public function beforeSave() { if ($this->isNewRecord) { //$this->creadopor=Yii::app()->user->name; $this->codocu = '901'; //Si es un tipo de material que hereda el atributo ROTATIVO ///eNOTOICES COLOCARLO AUTOMATRICAMENTE if (Maestrotipos::model()->findBypK($this->codtipo)->esrotativo == '1') { $this->esrotativo = '1'; } //$g=new Numeromaximo; $this->codigo = Numeromaximo::numero($this, 'correl', 'maximovalor', 6, 'codtipo'); //$this->codigo='34343434'; } else { //$this->ultimares=" ".strtoupper(trim($this->usuario=Yii::app()->user->name))." ".date("H:i")." :".$this->ultimares; } return parent::beforeSave(); }
public function beforeSave() { if ($this->isNewRecord) { $this->creadopor = Yii::app()->user->name; $this->codtrabajador = yii::app()->user->um->getFieldValue(Yii::app()->user->id, 'codtra'); //$this->codigo='34343434'; $this->codocu = '101'; $this->cestadovale = '99'; //$this->codobjeto='001'; //$gg=new Numeromaximo; } else { if ($this->oldAttributes['cestadovale'] != $this->cestadovale and $this->cestadovale == ESTADO_VALE_CREADO) { $this->numvale = Numeromaximo::numero($this, 'correlativo', 'maximovalor', 8, 'codcentro'); $this->fechacre = date("Y-m-d H:i:s"); } //if ($this->cestadovale=='01') //$this->numvale=Numeromaximo::numero($this->model(),'correlativo','maximovalor',8,'codcentro'); //$this->ultimares=" ".strtoupper(trim($this->usuario=Yii::app()->user->name))." ".date("H:i")." :".$this->ultimares; } return parent::beforeSave(); }
<?php $this->breadcrumbs = array('Partes'); mt_srand(time()); $numero = mt_rand(1000000, 2000000); $this->menu = array(array('label' => 'Crear Parte', 'url' => array('create', 'aleatorio' => $numero, 'codep' => $codigobarco)), array('label' => 'Ver los partes', 'url' => array('admin')), array('label' => 'Mis activos', 'url' => array('inventario/misactivos', 'codigobarco' => $codigobarco)), array('label' => 'Mis materiales', 'url' => array('mismateriales', 'codigobarco' => $codigobarco)), array('label' => 'Agregar Carter', 'url' => array("carteres/crearcarter", 'codep' => $codigobarco)), array('label' => 'Ver los carteres', 'url' => array("partes/muestracarteres")), array('label' => 'Pedir materiales', 'url' => array('mot/create', 'naleatorio' => Numeromaximo::numero_aleatorio(20, 10001) . ' '))); //echo isset( Yii::app()->user->ui )? "hola a,igos esto es cruge":"no pasa nasda "; ?> <DIV class="row"> <?php echo "Usuario : " . Yii::app()->user->getField('nombres') . "-" . Yii::app()->user->getField('apaterno') . "-" . Yii::app()->user->getField('amaterno') . "-" . Yii::app()->user->email; ?> </DIV <DIV class="row"> <?php echo "micortimer suario : " . microtime(true) * 10000 . " "; ?> </DIV> <div class="row"> <?php //$codigobarco=Yii::app()->getModule('user')->user()->profile->codep; // if( ($codigobarco=='000' )) { // } else { $nino = Embarcaciones::model()->find('codep=:codigo', array(':codigo' => $codigobarco)); echo !is_null($nino) ? "Embarcacion: " . $nino->nomep . "\n." : ""; // } ?>
public function terminabloqueo($id) { return Numeromaximo::desbloquea($id, $this->documento); }
public function actionborraimagen() { if (isset($_POST['codiguito'])) { $yourfile = Yii::getPathOfAlias('webroot') . Yii::app()->params['rutaimagenesmateriales'] . $_POST['codiguito'] . '.jpg'; $cfile = Yii::app()->file; if ($cfile->set($yourfile)->exists) { if (@unlink($yourfile)) { //$cfile->delete(true) // echo "El archivo ".$yourfile." se borro exitosamente "; Numeromaximo::Pintaimagen($yourfile, Yii::app()->params['rutaimagenesmateriales'] . "NODISPONIBLE.JPG", 240, 240); } else { // echo "El archivo ".$yourfile." No pudo ser borrado "; } } else { // echo "El archivo ".$yourfile." No existe "; } $yourfile1 = Yii::getPathOfAlias('webroot') . Yii::app()->params['rutaimagenesmateriales'] . $_POST['codiguito'] . '.JPG'; $cfile1 = Yii::app()->file; if ($cfile1->set($yourfile1)->exists) { if (@unlink($yourfile1)) { // echo "El archivo ".$yourfile1." se borro exitosamente "; } else { //echo "El archivo ".$yourfile1." No pudo ser borrado "; } } else { // echo "El archivo ".$yourfile1." No existe "; } } }
public function actionPinta($id) { $modelogrande = $this->loadModel($id); if ($modelogrande->cestadovale == '20') { $transaccion = $modelogrande->dbConnection->beginTransaction(); //echo gettype($transaccion); //Yii::app()->end(); $itemsk = Alkardex::model()->findall('hidvale=:valoi', array(':valoi' => $id)); /// registas kardex pcn valores negativos foreach ($itemsk as $v) { $modeloentregas = new Alentregas(); $modelokardex = new Alkardex(); //echo $v['id']; //Yii::app()->end(); $modeloentregasant = Alentregas::model()->find(' idkardex=:clave', array(':clave' => $v['id'])); $modeloentregas->setAttributes(array('iddetcompra' => $modeloentregasant->iddetcompra, 'cant' => $modeloentregasant->cant * -1, 'idkardex' => $v['id']), true); $modelokardex->setAttributes(array('codart' => $v['codart'], 'codmov' => $v['codmov'], 'cant' => $v['cant'] * -1, 'alemi' => $v['alemi'], 'aldes' => $v['aldes'], 'fecha' => date("Y-m-d H:i:s"), 'coddoc' => $v['coddoc'], 'numdoc' => $v['numdoc'], 'um' => $v['um'], 'codocuref' => $v['codocuref'], 'numdocref' => $v['numdocref'], 'codcentro' => $v['codcentro'], 'codestado' => '10', 'numdocref' => $v['numdocref'], 'hidvale' => $v['hidvale']), true); $modelokardex->save(); $modelokardex->refresh(); $modeloentregas->idkardex = $modelokardex->id; $modeloentregas->save(); $modocompra = Docompra::model()->findByPk($modeloentregasant->iddetcompra); ///cuantos hay if ($modocompra->cantidadentregada = $v['cant']) { $modocompra->estadodetalle = '20'; //regresar a colocarlo como aprobado por que se reversa toda la atencion } else { if ($modocompra->cantidadentregada > $v['cant']) { $modocompra->estadodetalle = '50'; // de hecho pasa a ser parcial } else { ///Error:: quiere decir qu se atendio una cantidad en exceso al ingreos $transaccion->rollback(); throw new CHttpException(500, 'Se produjo un error, Se ha atrendido una cantidad mayor al del pedido '); } } //actualizar el invetario $moneda = $modocompra->docompra_ocompra->moneda; if ($moneda == Yii::app()->params['monedadef']) { $conversion = 1; } else { $conversion = Numeromaximo::cambiomoneda($moneda, Yii::app()->params['monedadef']); } $modeloinventario = Alinventario::model()->findByPk($modocompra->docompra_alinventario->id); $cantidad = $modeloinventario->cantlibre; if ($cantidad >= $v['cant']) { $descuento = $modocompra->docompra_ocompra->descuento === null ? 0 : $modocompra->docompra_ocompra->descuento / 100; $modeloinventario->cantlibre = $cantidad - $v['cant']; //$modeloinventario->punit= $modeloinventario->punit = (($cantidad + $modeloinventario->cantres) * $modeloinventario->punit - $modocompra->punit * $conversion * (1 - $descuento) * $v['cant']) / ($cantidad + $modeloinventario->cantres - $v['cant']); $inventario->codmon = Yii::app()->params['monedadef']; } else { $transaccion->rollback(); throw new CHttpException(500, 'Se produjo un error, EL stock libre utilizacion esta por debajo para devolucion '); } } //for each //$modelito=$this->loadModel(9); //$hijos= $modelito->numeroitems; //$nietos=$modelito->almacendocs_alkardex->numeroitems; //$criteria=new CDbCriteria; //$criteria->with=array('alentregas_alkardex.alkardex_almacendocs'); //$criteria->with=array('almacendocs_alkardex'); //$criteria->addCondition('alkardex_almacendocs.id=9'); //$registros=Almacendocs::Model()->findAll($criteria); //$registros=Ocompra::Model()->with('ocompra_docompra')->findAll($criteria); //echo $registros[0]['numvale']."\n"; //echo $registros[0]['almacendocs_alkardex'][0]['codmov']."\n";; //echo $registros[0]['almacendocs_alkardex'][0]['alkardex_alentregas'][0]['iddetcompra']."\n"; //echo $registros[0]['almacendocs_alkardex'][0]['alkardex_alentregas'][1]['iddetcompra']."\n"; //echo //echo $modelito->almacendocs_alkardex[0]->alkardex_alentregas[1]; //echo $modelito->codocu; //ECHO Ocompra::model()->findByPk(19)->subtotal; //echo Docompra::model()->findByPk(31)->docompra_alinventario->cantlibre; $modocompra->save(); $modeloinventario->save(); $modelogrande->{$cestadovale} = '30'; $transaccion->commit(); } else { throw new CHttpException(500, 'Este vale ya se anulo, o tiene un estado que no permite su anulacion '); } }
public function beforeSave() { if ($this->isNewRecord) { $this->creadopor = Yii::app()->user->name; //$this->codigo='34343434'; $this->codocu = '101'; $this->cestadovale = '99'; //$this->codobjeto='001'; //$gg=new Numeromaximo; $this->numvale = Numeromaximo::numero($this, 'correlativo', 'maximovalor', 8, 'codcentro'); $this->fechacre = date("Y-m-d H:i:s"); } else { //if ($this->cestadovale=='01') //$this->numvale=Numeromaximo::numero($this->model(),'correlativo','maximovalor',8,'codcentro'); //$this->ultimares=" ".strtoupper(trim($this->usuario=Yii::app()->user->name))." ".date("H:i")." :".$this->ultimares; } return parent::beforeSave(); }
public function beforeSave() { $prefix = "public_"; if ($this->isNewRecord) { $mij = null; //$command = Yii::app()->db->createCommand(" select nextval('sq_guias') "); //$this->n_guia= $command->queryScalar(); $this->codocu = '340'; //$this->codobjeto='001'; $this->fechadoc = date("Y-m-d H:i:s"); $this->creadopor = Yii::app()->user->name; $this->iduser = Yii::app()->user->id; $this->estado = '99'; //para que no lo agarre la vista VW-GUIA HASTA QUE GRABE TODO EL DETALLE //$this->numero=Numeromaximo::numero($this->model(),'numero','maximovalor',10); } else { if ($this->estado == '99') { //SI SE TRATA DE UNA GUIA NUEVA COLOCARLE 'PREVIO' $this->estado = '10'; //$this->c_serie=substr($this->cod_cen, 1); // $this->numero=Numeromaximo::numero($this->model(),'numero','maximovalor',10); $gg = new Numeromaximo(); $this->numero = $gg->numero($this, 'correlativ', 'maximovalor', 7, 'codocu'); // validate user input and redirect to the previous page if valid $command = Yii::app()->db->createCommand(" UPDATE " . $prefix . "desolpe1 set est='10' where hidsolpe=" . $this->id . " "); $command->execute(); } } return parent::beforeSave(); }
//$ruta='materiales'.DIRECTORY_SEPARATOR; $this->widget('ext.coco.CocoWidget', array('id' => 'cocowidget1', 'onCompleted' => 'function(id,filename,jsoninfo){ }', 'onCancelled' => 'function(id,filename){ alert("cancelled"); }', 'onMessage' => 'function(m){ alert(m); }', 'allowedExtensions' => array('jpg', 'JPG', 'JPEG', 'JPG', 'gif', 'PNG'), 'sizeLimit' => 2000000, 'uploadDir' => $ruta, 'buttonText' => 'Subir Imagen', 'receptorClassName' => 'application.models.Maestrocompo', 'methodName' => 'FileReceptor', 'userdata' => $model->id, 'maxUploads' => 1, 'maxUploadsReachMessage' => 'No esta permitido cargar mas archivos', 'multipleFileSelection' => true, 'nombrealt' => $model->id . '')); } ?> </div> <?php /* echo CHtml::image( "/recurso/materiales/".$model->codigo.".jpg" ,"", array('width'=>'240','height'=>'240') );*/ echo Yii::app()->params['imgreportes'] . $model->id . ".jpg"; Numeromaximo::Pintaimagen(Yii::app()->params['imgreportes'] . $model->id . ".JPG", Yii::app()->params['rutaimagenesmateriales'] . "NODISPONIBLE.JPG", 140, 140); ?> </div> <div class="panelderecho"> <div class="row"> <?php echo $form->labelEx($model, 'x_grilla'); ?> <?php echo $form->textField($model, 'x_grilla'); ?> <?php