예제 #1
0
    define(RAIZ, "../../");
    $idiomaarchivo = $_SESSION['Idioma'] != "" ? $_SESSION['Idioma'] : "es";
    if (!file_exists(RAIZ . "idioma/" . $idiomaarchivo . ".php")) {
        $idiomaarchivo = "es";
    }
    include_once RAIZ . "idioma/" . $idiomaarchivo . ".php";
    $Tiempo = $_POST['Tiempo'];
    $Nivel = $_POST['Nivel'];
    if ($Nivel == "" && $_SESSION['Nivel'] == 2) {
        $Nivel = "2,3,4,5,6,7";
    }
    include_once "../../class/lograstreo.php";
    include_once "../../class/alumno.php";
    include_once "../../class/docente.php";
    include_once "../../class/usuario.php";
    $lograstreo = new lograstreo();
    $usuariolog = new usuario();
    $alumnolog = new alumno();
    $docentelog = new docente();
    $Fecha = date("Y-m-d", strtotime($_POST['Fecha']));
    $logr = $lograstreo->mostrarNivelFecha($Nivel, $Fecha);
    //print_r($lograstreo->mostrarNivelFecha("",""));
    $cantidad = count($logr);
    $i = $cantidad;
    if ($cantidad) {
        ?>
        <a href="#" id="exportarexcel" class="btn btn-mini btn-success"><?php 
        echo $idioma['ExportarExcel'];
        ?>
</a>
        <table class="table table-hover table-bordered table-striped table-condensed">
예제 #2
0
<?php

$Archivo = $_SERVER['SCRIPT_NAME'];
$Get = "";
$Post = "";
$Session = "";
$Ip = $_SERVER['REMOTE_ADDR'];
@($Referencia = $_SERVER['HTTP_REFERER']);
foreach ($_GET as $k => $v) {
    $Get .= "{$k}={$v}|";
}
foreach ($_POST as $k => $v) {
    $Post .= "{$k}={$v}|";
}
foreach ($_SESSION as $k => $v) {
    $Session .= "{$k}={$v}|";
}
//$Ip=ip2long($Ip);
include_once RAIZ . "class/lograstreo.php";
$lograstreo = new lograstreo();
$valores = array("Archivo" => "'{$Archivo}'", "Post" => "'{$Post}'", "Get" => "'{$Get}'", "Session" => "'{$Session}'", "Ip" => "'{$Ip}'", "Referencia" => "'{$Referencia}'");
$lograstreo->insertarRegistro($valores);