Exemple #1
0
<?php

require '_login.php';
require_once '../conn.php';
$filters = array();
$filters["id_vendedor"] = isset($_POST["filtro-vendedor"]) ? $_POST["filtro-vendedor"] : "";
$filters["type"] = "POSTVENTA";
$oE = new Encuesta();
if (isset($_POST["delete_encuesta"])) {
    $oE->delete($_POST["delete_encuesta"]);
}
$oV = new Vendedor();
$aVendedores = $oV->getVendedores();
$temp = $oE->getAll($filters);
$oE->processStats($filters);
$data = get_stats();
$data_1 = get_stats("resp0001");
$data_7 = get_stats("resp0007");
?>

<!DOCTYPE HTML>
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>Estadísticas</title>

		<script type="text/javascript" src="external/js/jquery.min.js"></script>
		<script type="text/javascript" src="../assets/js/bootstrap.js"></script>
		<style type="text/css">
${demo.css}
		</style>