[#] hm X_Shell Backd00r [#]
<?php
session_start();
error_reporting(0);
$varSesion = $_SESSION['nombrePersona'];
if(empty($varSesion)){
header('Location: ../');
exit;
}
?>
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang=""> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang=""> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang=""> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js" lang=""> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/main.css">
<script src="js/vendor/modernizr-2.8.3.min.js"></script>
<style>
body{ font-family: 'lucida grande',tahoma,verdana,arial,sans-serif;}
table{ font-size: 12px;}
.container{max-width: 1024px;}
h2{ text-align: right;}
.form-group{width: 350px;display: inline-block;vertical-align: top; float: left;}
.btn-search{ background-color: #428BCA; color:#ffffff;}
caption {
display: table-caption;
text-align: center;
font-size:25px;
padding-bottom: 10px;
}
</style>
</head>
<body>
<!--[if lt IE 8]>
<p class="browserupgrade">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> to improve your experience.</p>
<![endif]-->
<!-- /container -->
<div class="container">
<img src="../../img/buen-fin-banner.jpg" class="img-responsive" alt="">
<h2>
<div class="form-group">
<div class="input-group">
<div class="input-group-btn">
<button type="button" class="btn btn-search"><span class="glyphicon glyphicon-search"></span></button>
</div>
<input type="text" name="txtSearch" id="txtSearch" value="" class="form-control" placeholder="Buscar Codigo">
</div>
</div>
<a style="font-size: 20px;margin-right: 35px;color: #0C5A9E;" href="cerrarSesion.php">Cerrar sesión <span style="margin-left:10px;" class="glyphicon glyphicon-log-out"></span></a>
<small><a href="#" id="createExc" style=" color: #0C5A9E;" data-toggle="tooltip" data-original-title="Todos los registros que fueron insertados a la base de datos se exportaran a un archivo Excel.">Descargar Excel <span class="glyphicon glyphicon-download-alt"></span></a></small>
</h2>
<div class="row">
<hr>
<ul class="nav nav-tabs">
<li class="active"><a data-toggle="tab" href="#registros">Registro de promociones</a></li>
<li><a data-toggle="tab" href="#visitas">Contador de visitas</a></li>
</ul>
<div class="tab-content">
<div id="registros" class="tab-pane fade in active">
<table class="table table-striped">
<thead>
<tr>
<th>Nombre</th>
<th>correo</th>
<th>codigo</th>
<th>promocion</th>
<th>tipo</th>
<th>asistencia</th>
</tr>
</thead>
<tbody id="t-usuarios">
</tbody>
</table>
</div>
<div id="visitas" class="tab-pane fade in">
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
?>
<h2>
Total de visitas a la pagina: <span class="label label-primary"><?php echo $con->totalvisitas(); ?></span>
<hr>
</h2>
<table class="table table-striped">
<thead>
<tr>
<th></th>
<th>Track 3x2</th>
<th>Curso 3000</th>
<th>Track 5+1</th>
<th>Track 100</th>
<th>Track Next 100</th>
<th>Arrancón 50</th>
</tr>
</thead>
<tbody id="t-usuarios">
<tr>
<td>Visitas por promocion</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 1;
echo $con->totalvisitaspromociones();
?>
</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 2;
echo $con->totalvisitaspromociones();
?>
</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 3;
echo $con->totalvisitaspromociones();
?>
</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 4;
echo $con->totalvisitaspromociones();
?>
</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 5;
echo $con->totalvisitaspromociones();
?>
</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 6;
echo $con->totalvisitaspromociones();
?>
</td>
</tr>
<tr>
<td>Numero de registros x promoción</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 'Track 3x2';
echo $con->totalregistradospromos();
?>
</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 'Curso 3000';
echo $con->totalregistradospromos();
?>
</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 'Track 5+1';
echo $con->totalregistradospromos();
?>
</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 'Track 100';
echo $con->totalregistradospromos();
?>
</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 'Track Next 100';
echo $con->totalregistradospromos();
?>
</td>
<td>
<?php
require_once '../model/CcontadorVisitas.class.php';
$con = new ContadorVisitas();
$con->promo = 'Arrancon 50';
echo $con->totalregistradospromos();
?>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- /container -->
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.11.2.min.js"><\/script>')</script>
<script src="js/vendor/bootstrap.min.js"></script>
<script src="js/jquery.fileDownload.js"></script>
<script src="js/main.js"></script>
<script>
$(document).ready(function(){
$("a").tooltip({
placement : 'bottom'
});
});
</script>
</body>
</html>
Mr.hm X_Shell Backd00r 1.0, Coded By Mr.hm X_Shell Backd00r