示例#1
0
<?php

include_once "../../login/check.php";
$folder = "../../";
$codvideo = $_GET['codvideo'];
include_once "../../class/video.php";
$video = new video();
$vid = $video->mostrarTodoRegistro("codvideo=" . $codvideo, 0, "");
$vid = array_shift($vid);
include_once "../../class/tematica.php";
$tematica = new tematica();
$tem = $tematica->mostrarTodoRegistro("codtematica=" . $vid['codtematica'], 0, "nombre");
$tem = array_shift($tem);
include_once "../../class/formato.php";
$formato = new formato();
$for = $formato->mostrarTodoRegistro("codformato=" . $vid['codformato'], 0, "nombre");
$for = array_shift($for);
include_once "../../class/soporte.php";
$soporte = new soporte();
$sop = $soporte->mostrarTodoRegistro("codsoporte=" . $vid['codsoporte'], 0, "nombre");
$sop = array_shift($sop);
include_once "../../class/tipo.php";
$tipo = new tipo();
$tip = $tipo->mostrarTodoRegistro("codtipo=" . $vid['codtipo'], 0, "nombre");
$tip = array_shift($tip);
include_once "../../class/descargas.php";
$descargas = new descargas();
$des = $descargas->cantidadDescargas($codvideo);
$des = array_shift($des);
$cantidad = $des['cantidad'];
include_once "../../class/equipo.php";
示例#2
0
$descargas = new descargas();
extract($_POST);
$cabecera = array();
$descargados = array();
$subidos = array();
$Nivel = $_SESSION['Nivel'];
if ($Nivel == 1) {
    $textonivel = "";
} else {
    $textonivel = "and nivel={$Nivel}";
}
for ($i = strtotime($fechainicio); $i <= strtotime($fechafinal); $i = $i + 86400) {
    $fecha = date("Y-m-d", $i);
    //echo $i."-".$fecha."<br>";
    array_push($cabecera, "'" . fecha2Str($fecha) . "'");
    $vid = $video->mostrarTodoRegistro("fechavideo='{$fecha}' {$textonivel}");
    $cantidadsubido = count($vid);
    array_push($subidos, $cantidadsubido);
    $des = $descargas->cantidadDescargasWhere("fecha='{$fecha}' {$textonivel}");
    $des = array_shift($des);
    $cantidaddes = $des['cantidad'];
    array_push($descargados, $cantidaddes);
}
//print_r($cabecera);
?>
<div id="container"></div>
<script language="javascript" type="text/javascript">
$(function () {
    $('#container').highcharts({
        title: {
            text: 'Reporte Estadístico de Videos',