function addPiso() { $localidad = new localidad(); //$ubicacion = new ubicacion (); if ($this->esPadre(VAR3) != true) { $row = $this->ubicacion->dbSelectBySQL("SELECT * FROM tab_ubicacion WHERE ubi_id='" . $ubicacion->dameIdPadre(VAR3)->ubi_par . "' AND ubi_par ='0' AND ubi_estado='1'"); } else { $row = $this->ubicacion->dbSelectBySQL("SELECT * FROM tab_ubicacion WHERE ubi_id='" . VAR3 . "' AND ubi_estado='1'"); //echo $row[0]; } $this->registry->template->loc_id = $localidad->buscaIdLocalidad($row[0]->ubi_id); $this->registry->template->ubi_id = ""; $this->registry->template->ubi_par = VAR3; $this->registry->template->ubi_par2 = $row[0]->ubi_codigo; $this->registry->template->ubi_codigo = ''; $this->registry->template->ubi_descripcion = ""; $this->registry->template->titulo_ubi = "NUEVO PISO"; $this->registry->template->PATH_WEB = PATH_WEB; $this->registry->template->PATH_DOMAIN = PATH_DOMAIN; $this->registry->template->PATH_EVENT = "savePiso"; $this->registry->template->GRID_SW = "false"; $this->registry->template->PATH_J = "jquery-1.4.1"; $this->menu = new menu(); $this->liMenu = $this->menu->imprimirMenu(VAR1, $_SESSION['USU_ID']); $this->registry->template->men_titulo = $this->liMenu; $this->registry->template->show('headerG'); $this->registry->template->show('ubicacion/tab_piso.tpl'); $this->registry->template->show('footer'); }