session_start(); if(isset($_SESSION["userinfo"])){ $nscript = pathinfo($_SERVER['PHP_SELF'], PATHINFO_FILENAME); $mod = explode("_",$nscript); $modulo = $mod[0]."_".$mod[1]; $modfrm = $mod[2]; //$form = $modulo."/".$modfrm.".php"; $form = $nscript.".phtml"; //echo "nscript: ".$nscript." module: ".$modulo." form: ".$form; date_default_timezone_set("America/Mexico_City"); include "cnx.php"; include "util_list.php"; $conn = getConnection(); $usr = $_SESSION["userinfo"]["username"]; $cia = $_SESSION["userinfo"]["usercia"]; $aut=ValPerPag($usr,$modulo); $aut=1; //mientras lo aƱado if ($aut == 1) { include "util_frame.php"; $increg = !empty($_GET["d1"])?$_GET["d1"]:$_SESSION[$nscript]["increg"]; $incstt = !empty($_GET["d2"])?$_GET["d2"]:$_SESSION[$nscript]["incstt"]; $_SESSION[$nscript]["increg"]=$increg; $_SESSION[$nscript]["incstt"]=$incstt; if (isset($_POST["incsol"]) || isset($_POST["incidencia"])){ $incsol = $_POST["incsol"]; $incstt = $_POST["incidencia"]; $insinc = saveInfo($conn,$increg,$incstt,$incsol); } else { $sql= "select info_inc from sis_reg_inc where cve_reg='$increg'"; //echo $sql; $result = $conn->query($sql); $row = $result->fetch_assoc(); $incsol = $row["info_inc"]; } if ($incstt=="P") { $incdes="Pendiente"; } else { $incdes="Solucionado"; } $allJS=""; getHeaderFrm("Info Incidencia", $allJS); ?>