} if (isset($_POST['vision'])) { $vision = trim($_POST['vision']); } if (isset($_POST['objetivo'])) { $objetivo = trim($_POST['objetivo']); } if (isset($_POST['historia'])) { $historia = trim($_POST['historia']); } if (isset($_POST['codigo_parroquia'])) { $parroquia = explode("_", trim($_POST['codigo_parroquia'])); $codigo_parroquia = $parroquia[0]; } include_once "../class/class_sistema.php"; $sistema = new sistema(); if ($lOpt == 'Modificar') { $sistema->rif_negocio($rif_negocio); $sistema->nombre($nombre); $sistema->telefono($telefono); $sistema->email($email); $sistema->clave_email($clave_email); $sistema->direccion($direccion); $sistema->mision($mision); $sistema->vision($vision); $sistema->objetivo($objetivo); $sistema->historia($historia); $sistema->codigo_parroquia($codigo_parroquia); if ($sistema->Actualizar($_SESSION['user_name'], $oldrif)) { $confirmacion = 1; } else {
function view() { if (!VAR3) { die("Error del sistema 404"); } $sistema = new sistema(); $this->sistema = new tab_sistema(); $this->sistema->setRequest2Object($_REQUEST); $row = $this->sistema->dbselectByField("sis_id", VAR3); if (!$row) { die("Error del sistema 404"); } $row = $row[0]; $this->registry->template->sis_id = $row->sis_id; $this->registry->template->sis_codigo = $row->sis_codigo; $this->registry->template->sis_nombre = $row->sis_nombre; $this->registry->template->sis_tipcarga = $sistema->obtenerSelect($row->sis_tipcarga); $this->registry->template->sis_tammax = $row->sis_tammax; $this->registry->template->sis_ruta = $row->sis_ruta; $this->registry->template->titulo = "EDITAR DATOS DEL SISTEMA"; $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"; $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('sistema/tab_sistema.tpl'); $this->registry->template->show('footer'); }