Ejemplo n.º 1
0
<?php

$activo = true;
require "admin/clases/clase.controlclases.php";
require "admin/clases/constantes.base.php";
$cc = new control_clases();
$cc->prepara("bd");
include "arreglos.php";
$totales_xact_arr = $bd->query_arr("Select id_act, count(*) as total from evento_fime_seleccion group by id_act");
$totales_xrally_arr = $bd->query_arr("Select extra_sel, count(*) as total from evento_fime_seleccion where id_act=31 group by extra_sel");
foreach ($totales_xact_arr as $info_tmp) {
    $total_xact[$info_tmp["id_act"]] = $info_tmp["total"];
}
foreach ($totales_xrally_arr as $info_tmp) {
    $total_xrally[$info_tmp["extra_sel"]] = $info_tmp["total"];
}
if (!empty($_POST["envia_info"])) {
    $campos_obg = "matricula,nombre,carrera,email";
    $alias_campos = "Matrícula,Nombre Completo,Carrera,Correo Electrónico";
    $error_texto = "";
    $campos_obg_arr = explode(",", $campos_obg);
    $alias_obg_arr = explode(",", $alias_campos);
    $ctd = 0;
    foreach ($campos_obg_arr as $campo) {
        if (empty($_POST[$campo . "_form"])) {
            $error[$campo . "_form"] = "error";
            $error_texto .= "El campo " . $alias_obg_arr[$ctd] . " no puede estar vacio \\n";
            $error_aviso = True;
        }
        $ctd++;
    }
Ejemplo n.º 2
0
<?php

ini_set("display_startup_errors", 1);
ini_set("display_errors", 1);
require "clases/clase.controlclases.php";
require "clases/constantes.base.php";
include "../arreglos.php";
$cc = new control_clases();
$cc->prepara("bd,encripta");
$cc->imprime_errores();
$info_qs_evarios = base64_decode($_SERVER["QUERY_STRING"]);
$info_qs_evarios = explode("&", $info_qs_evarios);
foreach ($info_qs_evarios as $campo => $contenido) {
    $contenido_temp = explode("=", $contenido);
    ${$contenido_temp}[0] = $contenido_temp[1];
}
if (!empty($_COOKIE["evarios_admin_us"])) {
    /* Si la cookie existe realiza la verificación del password	*/
    $info_evarios_admin_us = explode("|", base64_decode($_COOKIE["evarios_admin_us"]));
    $verifica = $bd->query_uno("Select password_us from usuarios_stm where id_us=" . $info_evarios_admin_us[0]);
    $verifica = $encripta->paraweb($verifica);
    if ($verifica == $info_evarios_admin_us[1]) {
        switch ($seccion_evarios) {
            case "excel_stm":
                $cargar_modulo = "excel.php";
                break;
            case "asistente_stm":
                $cargar_modulo = "mod_asistente/index.php";
                break;
            case "precarga_stm":
                $cargar_modulo = "mod_precarga/index.php";
Ejemplo n.º 3
0
<?php

if (isset($_COOKIE["cfm_reg_fime"])) {
    $id = explode(",", base64_decode($_COOKIE["cfm_reg_fime"]));
    require "admin/clases/clase.controlclases.php";
    require "admin/clases/constantes.base.php";
    $cc = new control_clases();
    $cc->prepara("bd,correo");
    include "arreglos.php";
    $info_reg = $bd->query_row("Select * from evento_fime_registro where id_reg=" . $id[1]);
} else {
    header("location: index.html");
    exit;
}
$mensaje .= "\n\t\t<div style=\"width: 600px;\">\n\t\t\n\t\t\t<table width=\"600\" cellspacing=\"1\" cellpadding=\"7\" style=\"font-family: Arial; font-size: 12px;\">\n\t\t\t\t<tr><th width=\"25%\" style=\"background-color: #F6F6F6; text-align: left;\">Matrícula: </th><td style=\"background-color: #FFFFFF; text-align: left;\">" . $info_reg["matricula_reg"] . "</td></tr>\n\t\t\t\t<tr><th style=\"background-color: #F6F6F6; text-align: left;\">Nombre Completo: </th><td style=\"background-color: #FFFFFF; text-align: left;\">" . $info_reg["nombre_reg"] . "</td></tr>\n\t\t\t\t<tr><th style=\"background-color: #F6F6F6; text-align: left;\">Carrera: </th><td style=\"background-color: #FFFFFF; text-align: left;\">" . $info_reg["carrera_reg"] . "</td></tr>\n\t\t\t\t<tr><th style=\"background-color: #F6F6F6; text-align: left;\">Semestre: </th><td style=\"background-color: #FFFFFF; text-align: left;\">" . $info_reg["semestre_reg"] . "</td></tr>\n\t\t\t\t<tr><th style=\"background-color: #F6F6F6; text-align: left;\">Correo Electrónico: </th><td style=\"background-color: #FFFFFF; text-align: left;\">" . $info_reg["email_reg"] . "</td></tr>\n\t\t\t</table><br />\n\t\t";
$info_act_arr = $bd->query_arr("Select evento_fime_seleccion.*, evento_fime_actividades.* from evento_fime_seleccion, evento_fime_actividades where evento_fime_actividades.id_act=evento_fime_seleccion.id_act and evento_fime_seleccion.id_reg=" . $id[1] . " order by evento_fime_actividades.dia_act, evento_fime_actividades.orden_act");
$mensaje .= "\n\t\t<h4 style=\"font-family: Arial; font-size: 12px;\">Actividades Seleccionadas</h4>\n\t\t<table width=\"600\" cellspacing=\"1\" cellpadding=\"7\" style=\"font-family: Arial; font-size: 12px;\">\n\t\t<tr><th style=\"background-color: #F6F6F6; text-align: left;\">Día</th><th style=\"background-color: #F6F6F6; text-align: left;\" width=\"13%\">Hora</th><th style=\"background-color: #F6F6F6; text-align: left;\">Actividad</th><th style=\"background-color: #F6F6F6; text-align: left;\">Información</th></tr>\n\t";
foreach ($info_act_arr as $info_act) {
    $mensaje .= "<tr>\n\t\t\t<td style=\"background-color: #FFFFFF; text-align: left;\">" . $info_act["dia_act"] . "</td>\n\t\t\t<td style=\"background-color: #FFFFFF; text-align: left;\">" . $info_act["hora_act"] . "</td>\n\t\t\t<td style=\"background-color: #FFFFFF; text-align: left;\">" . $tipo_arr[$info_act["tipo_act"]] . "</td>\n\t\t\t<td style=\"background-color: #FFFFFF; text-align: left;\">" . $info_act["tema_act"] . " " . $info_act["expositor_act"] . " " . $info_act["lugar_act"] . " " . (!empty($info_act["extra_sel"]) ? " &nbsp; &nbsp; Equipo: " . $equipos_arr[$info_act["extra_sel"]] : "") . "</td>\n\t\t</tr>";
}
$mensaje .= "</table>";
$mensaje .= "</div>";
//$mensaje2="<center><div style=\"text-align: center; width: 600px; padding-bottom: 5px;\"><img src=\"http://eventos.uanl.mx/registro_alconpat/imagenes/correo_enc.jpg\" /><br /><h4 style=\"font-family: Arial; font-size: 12px;\">Le agradecemos que haya completado el pre-registro para asistir al Congreso ALCONPAT  2014. <br />Esta inscripción tendrá plena validez al efectuar el pago respectivo. <br />Favor de revisar los datos que aquí  se mencionan.</h4></div>". $mensaje ."</center>";
$correo->actualiza_config("From", "*****@*****.**");
$correo->enviar_correo($info_reg["email_reg"], "Pre-registro - 1er. Congreso de Responsabilidad Social", $mensaje, false);
setcookie("cfm_reg_fime", "", time() - 7200);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="es-ES">
	<head>
		<title>1er. CONGRESO  DE RESPONSABILIDAD SOCIAL</title>