function view() { if (!VAR3) { die("Error del sistema 404"); } $this->unidad = new tab_unidad(); if (VAR3 == null) { header("Location: " . PATH_DOMAIN . "/unidad/"); } $row = $this->unidad->dbselectByField("uni_id", VAR3); if (count($row) == 0) { header("Location: " . PATH_DOMAIN . "/unidad/"); } $row = $row[0]; $this->registry->template->titulo = "EDITAR SECCIÓN: {$row->uni_descripcion}"; $this->registry->template->uni_id = $row->uni_id; if ($row->uni_par > 0) { $unidad = new unidad(); $uni_par = $unidad->obtenerSelectUnidades($row->uni_par); $this->registry->template->uni_par = $uni_par; } else { $unidad = new unidad(); $this->registry->template->uni_par = $unidad->obtenerSelectUnidades(); } $localidad = new localidad(); $this->registry->template->loc_id = $localidad->obtenerSelectLocalidades($row->loc_id); $this->registry->template->uni_cod = $row->uni_cod; $this->registry->template->uni_descripcion = utf8_encode($row->uni_descripcion); $this->registry->template->uni_dir = $row->uni_dir; $this->registry->template->uni_tel = $row->uni_tel; $this->menu = new menu(); $liMenu = $this->menu->imprimirMenu(VAR1, $_SESSION['USU_ID']); $this->registry->template->men_titulo = $liMenu; $this->registry->template->PATH_WEB = PATH_WEB; $this->registry->template->PATH_DOMAIN = PATH_DOMAIN; $this->registry->template->PATH_WEB = PATH_WEB; $this->registry->template->PATH_DOMAIN = PATH_DOMAIN; $this->registry->template->PATH_EVENT = "update"; $this->registry->template->GRID_SW = "true"; $this->registry->template->PATH_J = "jquery-1.4.1"; $this->registry->template->show('header'); $this->registry->template->show('unidad/tab_unidad.tpl'); $this->registry->template->show('footer'); }
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'); }
function obtenerLocalidades() { $provincia = new localidad(); $res = $provincia->obtenerSelect(0, $_REQUEST['Pro_id']); echo $res; }
function verifCodigo() { $localidad = new localidad(); $localidad->setRequest2Object($_REQUEST); $loc_id = $_REQUEST['Loc_id']; $loc_codigo = strtolower(trim($_REQUEST['Loc_codigo'])); if ($localidad->existeCodigo($loc_codigo, $loc_id)) { echo 'El código ya existe, escriba otro.'; } echo ''; }
function obtenerLocalidades() { $actividad_viaje = new localidad(); $res = $actividad_viaje->obtenerSelect(0, $_REQUEST['acv_id']); echo $res; }