-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsulta.php
90 lines (72 loc) · 2.46 KB
/
consulta.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<?php
session_start();
$id = $_GET['id'];
if(empty($id))
header('Location: login.html ');
else {
$evento = $_GET['evento'];
?>
<!doctype html>
<head>
<meta charset="utf-8">
<title>Registro HP Indigo</title>
<link rel="stylesheet" href="registro.css">
<link rel="shortcut icon" href="images/favicon.ico">
<meta name="description" content="">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="cleartype" content="on">
<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
</head>
<body>
<!--[if lt IE 9]>
<p class="chromeframe">Estás usando una versión <strong>vieja</strong> de tu explorador. Por favor <a href="http://browsehappy.com/" target="_blank"> actualiza tu explorador</a> para tener una experiencia completa.</p>
<![endif]-->
<div class="container">
<header>
<div class="width clearfix">
<div class="columna c-7 medium-6 small-12">
<h1>HP Indigo Digital Press</h1>
</div>
<img class="columna c-2 medium-3 small-4 right" src="images/hp_logo.png" alt="">
</div><!-- width clearfix -->
</header>
<div class="main">
<div id="registros" class="width clearfix">
</div><!-- registros -->
<div class="width clearfix">
<a class="columna c-3 small-12 boton" href="php/DescargaCSV.php?evento=<?php echo $evento; ?>">Descarga archivo</a>
</div><!-- width -->
</div><!-- main -->
</div><!-- container -->
<footer>
</footer>
</body>
<script src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(e) {
<?php
$url;
if($evento == 'acoban')
$url = 'php/MuestraRegistros.php?evento=acoban';
else if($evento == 'ametiq')
$url = 'php/MuestraRegistros.php?evento=ametiq';
else if($evento == 'canagraf')
$url = 'php/MuestraRegistros.php?evento=canagraf';
else
$url = 'php/MuestraRegistros.php?evento=agc';
?>
var urlRegistros = <?php echo "'".$url."'"; ?>;
$.ajax({ //create an ajax request to load_page.php
type: "GET",
url: urlRegistros,
dataType: "html", //expect html to be returned
success: function(response){
$("#registros").html(response);
//alert(response);
}
});
});
</script>
</html>
<?php } ?>