<?php include_once "../../login/check.php"; if (!empty($_POST)) { extract($_POST); include_once "../../class/notificaciones.php"; $notificaciones = new notificaciones(); $Usuarios = implode(",", $Usuarios); $valores = array("Mensaje" => "'{$Mensaje}'", "Tipo" => "'{$Tipo}'", "Usuarios" => "'{$Usuarios}'"); if ($notificaciones->insertarRegistro($valores)) { ?> <div class="alert alert-success"><?php echo $idioma['DatosGuardadosCorrectamente']; ?> </div> <?php } else { ?> <div class="alert alert-error"><?php echo $idioma['DatosGuardadosError']; ?> </div> <?php } } ?> <script language="javascript">mostrar();</script>
<?php include_once "../../login/check.php"; if (!empty($_POST)) { extract($_POST); include_once "../../class/notificaciones.php"; $notificaciones = new notificaciones(); $Usuarios = implode(",", $Usuarios); $valores = array("Mensaje" => "'{$Mensaje}'", "Tipo" => "'{$Tipo}'", "Usuarios" => "'{$Usuarios}'"); if ($notificaciones->actualizarRegistro($valores, "CodNotificaciones={$CodNotificaciones}")) { ?> <div class="alert alert-success"><?php echo $idioma['DatosGuardadosCorrectamente']; ?> </div> <?php } else { ?> <div class="alert alert-error"><?php echo $idioma['DatosGuardadosError']; ?> </div> <?php } } ?> <script language="javascript">mostrar();</script>
<?php include_once "../../login/check.php"; if (!empty($_POST['CodNotificaciones'])) { $CodNotificaciones = $_POST['CodNotificaciones']; include_once "../../class/notificaciones.php"; $notificaciones = new notificaciones(); $men = $notificaciones->mostrarNotificacion($CodNotificaciones); $men = array_shift($men); $paraquien = array(1 => $idioma['TodoAdministradores'], 2 => $idioma['TodoDirectores'], 3 => $idioma['TodoDocentes'], 4 => $idioma['TodosSecretarias'], 5 => $idioma['TodoRegentes'], 6 => $idioma['TodoPadresFamilia'], 7 => $idioma['TodoAlumnos']); //$curarea=array_shift($curarea); ?> <h2><?php echo $idioma['Modificar']; ?> </h2> <form action="actualizar.php" method="post" class="formulario"> <input type="hidden" name="CodNotificaciones" value="<?php echo $CodNotificaciones; ?> "> <table class="table table-bordered table-striped"> <tr> <td><?php echo $idioma['Mensaje']; ?> <br> <textarea value="" name="Mensaje" class="span12" placeholder="" rows="5"><?php echo $men['Mensaje']; ?> </textarea></td>
if ($mv['SubMenu']) { if (!count($submenu->verificar($url_separada, $_SESSION['Nivel']))) { header("Location:" . url_base() . $directory . "login/?u=" . $_SERVER['PHP_SELF']); } } } } /*Agenda de Actividades*/ include_once "class/agendaactividades.php"; $agendaac = new agendaactividades(); $cant = $agendaac->cantidadActividades(); $cantagendaactividades = array_shift($cant); /*Fin de Cantidad de Actividades*/ /*Notitifaciones*/ include_once "class/notificaciones.php"; $notificacionesi = new notificaciones(); $noti1 = $notificacionesi->listarmensajes($_SESSION['Nivel'], 1); $noti2 = $notificacionesi->listarmensajes($_SESSION['Nivel'], 2); $noti3 = $notificacionesi->listarmensajes($_SESSION['Nivel'], 3); /*Fin de Notificaciones*/ /*Codigo para ver qen que menu nos encontramos*/ $rurl = str_replace("index.php", "", $_SERVER['SCRIPT_NAME']); $rurl = str_replace("/" . $directory, "", $rurl); $rurl = explode("/", $rurl); $rmenu = array_shift($rurl) . "/"; $rsubmenu = implode("/", $rurl); //echo $rmenu; $textomenu = ""; $textosubmenu = ""; $urlSubMenu = explode("/", $rsubmenu); $urlSubMenu = $urlSubMenu[0] . "/";
require_once "../email/notificaciones.php"; require_once "../ClassesExcel/PHPExcel.php"; require_once "../ClassesExcel/PHPExcel/Reader/Excel2007.php"; ///para imprimier los reportes $objReader = new PHPExcel_Reader_Excel2007(); //creamos objeto para leer del excel $objPHPExcel = $objReader->load("../filesReports/template2.xlsx"); $objWriter = new PHPExcel_Writer_Excel2007($objPHPExcel); //obj $i = 9; // inicia a imprimir archivo excel date_default_timezone_set('America/Los_Angeles'); // Uso horario $date = date("d-m-Y-Hi"); // fecha y hora para adjuntar al archivo excel $noti = new notificaciones(); $rep = new Representante(); session_start(); $tipo_usuario = $rep->getUserType($_SESSION['login_user']); $tipo2 = $tipo_usuario->fetch_array(MYSQLI_ASSOC); //Obtenemos el id del representante $repId = $rep->obtenerOfficeId($_SESSION['login_user']); $repId = $repId->fetch_array(MYSQLI_ASSOC); $repId = $repId['id_rep']; //Variables $prefijo = ''; $nombre = ''; $apellido = ''; $nomOficina = ""; //$calle = ''; //$numero = '';
<?php include_once "../../login/check.php"; if (!empty($_POST['CodNotificaciones'])) { include_once "../../class/notificaciones.php"; $notificaciones = new notificaciones(); $CodNotificaciones = $_POST['CodNotificaciones']; $notificaciones->eliminarRegistro("CodNotificaciones={$CodNotificaciones}"); }
<?php include_once "../../login/check.php"; include_once "../../class/notificaciones.php"; $notificaciones = new notificaciones(); $men = $notificaciones->mostrarNotificaciones(); if (count($men)) { ?> <a href="#" class="btn btn-mini btn-success" id="exportarexcel"><?php echo $idioma['ExportarExcel']; ?> </a> <table class="table table-bordered table-striped table-hover table-condensed"> <thead><tr><th>N</th><th><?php echo $idioma['Mensaje']; ?> </th><th><?php echo $idioma['Tipo']; ?> </th><th><?php echo $idioma['NivelUsuario']; ?> </th><th></th></tr></thead> <?php foreach ($men as $m) { $i++; switch ($m['Tipo']) { case "1": $Tipo = $idioma['Error']; break; case "2":