-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
104 lines (95 loc) · 3.94 KB
/
index.html
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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- <script type="text/javascript" src="cordova.js"></script> -->
<link rel="stylesheet" href="css/bootstrap.css" />
<style>
.container-fluid {
background-image: -webkit-gradient(
linear,
left top,
left bottom,
color-stop(0, #1E5799),
color-stop(1, #7BB9E8)
);
background-image: linear-gradient(to bottom, #1E5799 0%, #7BB9E8 100%);
}
</style>
<script src="js/jquery.js"></script>
<script src="js/bootstrap.js"></script>
</head>
<body>
<div class="container-fluid">
<div class="clearfix" style="text-align: center;"><img src="img/LOGO-01.png" style="height: 114px; width: 300px;"></div>
<div class="clearfix" style="text-align: center;padding-top: 30px;">
<a href="http://fb.com/lintek" class="btn btn-primary">Agreganos en FB</a>
<a href="http://www.lintek.cl/" class="btn btn-default">Pagina Web</a>
</div>
<div class="clearfix" style="text-align: center;padding-top: 30px;">
<div class="btn-group" data-toggle="buttons" id="select">
<label class="btn btn-default">
<input type="radio" name="tipo" value="cancion"> Cancion
</label>
<label class="btn btn-default">
<input type="radio" name="tipo" value="artista"> Artista
</label>
</div>
</div>
<div class="form-group" style="padding-top: 10px;">
<div class="input-group">
<input class="form-control" type="text" placeholder="Buscar" id="buscar">
<div class="input-group-addon"><a href="#" id=""><span class="glyphicon glyphicon-search"></span> Buscar</a></div>
</div>
</div>
<div class="list-group">
<ul id="busqueda">
<li class="list-group-item"></li>
</ul>
</div>
<div class="clearfix">
<table class="table table-responsive table-bordered" style="background-color: #f5f5f5;">
<thead>
<tr>
<th><strong>Nombre</strong></th>
<th><strong>Artista</strong></th>
<th><strong>Votos</strong></th>
</tr>
</thead>
<tbody id="data">
</tbody>
<script>
</script>
</table>
</div>
<footer style="padding-bottom: 1px;background-color: #f5f5f5;position: fixed;">hola</footer>
</div>
<script>
$("#guardardatos").click(function() {
var fNombre = $("#Nombre").val();
$("#Nombre").val("");
$.ajax({type: "POST",
url: "http://192.168.11.52/agregar.php",
data: ({'Nombre': fNombre}),
success: function(data) {
alert("Reporte enviado");
$('table#resultTable tbody').html(data);
}
});
});
$("#enviarvotacion").click(function() {
var fIdVotos = $("#IdVotos").val();
$("#IdVotos").val("");
$.ajax({type: "POST",
url: "http://192.168.11.52/votar.php",
data: ({IdVotos: fIdVotos}),
success: function(data){
alert("Votacion Realizada");
}
})
});
</script>
</body>
</html>