-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvistaResultados.php
166 lines (140 loc) · 4.13 KB
/
vistaResultados.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!DOCTYPE html>
<html lang="en">
<head>
<title>Alta Votantes</title>
<?php session_start();
include 'Extras/css.php' ?>
</head>
<body>
<?php include 'Extras/menu.php';
if (isset($_SESSION['listaPartidos'])) { ?>
<div class="container-contact100">
<?php include 'conexionBD.php';
$votView = $_SESSION['listaPartidos'];
unset($_SESSION['listaPartidos']);
$counterT = 0;
$cont = 1;
foreach ($votView as $logo => $value1) {
foreach ($value1 as $index => $value) {
if ($counterT == 0) { ?>
<div class="table100 ver1 m-b-110">
<br>
<h1 class="center">
Resultado
<b>
<?php echo $_SESSION['denomin'] ?>
</b>
</h1>
<br><br>
<div class="wrap-input100 validate-input">
<table data-vertable="ver1">
<thead>
<tr class="row100 head">
<th class="column100 column2" data-column="column2"></th>
<th class="column100 column1" data-column="column1"></th>
<th class="column100 column2" data-column="column2">Votos</th>
</tr>
</thead>
<tbody>
<?php }
if ($index == 0) { ?>
<tr class="row100">
<td class="column100 column1" data-column="column1">
<?php if ($cont == 1) { ?>
<div class="center-column">
<img style="width:100px;height:100px;" src="images/1.png">
</div>
<?php }
if ($cont > 1) { ?>
<b class="center">
<h1>
<?php echo $cont ?>º
</h1>
</b>
<?php }
$cont++ ?>
</td>
<td class="column100 column1" data-column="column1">
<img style="width:100px;height:100px;" src="<?php echo $logo ?>">
<div>
<br>
<i>
<?php echo $value ?>
</i>
</div>
</td>
<?php }
if ($index == 1) { ?>
<td class="column100 column2" data-column="column2"><b>
<?php echo $value ?>
</b>
</td>
</tr>
<?php }
$counterT = 1;
}
} ?>
</tbody>
</table>
</div>
</div>
</div>
<div>
<br>
<div class="center-column">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<a href="menuEntrada.php" class="btn btn-success">Atras</a>
</div>
</div>
<?php } else { ?>
<div class="container-contact100">
<div class="wrap-contact100">
<form class="contact100-form validate-form" action="controladorResultados.php" method="POST">
<span class="contact100-form-title">
Lista de convocatorias finalizadas
</span>
<div class="center center-column">
<div class="styled-select slate" data-validate="Pon tu DNI">
<select name="resultado">
<?php $array = array();
foreach ($_SESSION['resultados'] as $key => $value) {
foreach ($value as $key1 => $value1) {
if ($key1 == 'denominacion')
$array['denominacion'] = $value1;
if ($key1 == 'fecha')
$array['fecha'] = $value1;
if ($key1 == 'circunscripcion')
$array['circunscripcion'] = $value1;
} ?>
<option value="<?php echo $array['denominacion'] ?>">
<?php echo $array['denominacion'] ?> -
<?php echo $array['circunscripcion'] ?> -
<?php echo $array['fecha'] ?>
</option>
<?php } ?>
</select>
<br>
</div>
</div>
<div class="container-contact100-form-btn">
<button class="contact100-form-btn">
<span>
<i class="fa fa-paper-plane-o m-r-6" aria-hidden="true"></i>
Confirmar
</span>
</button>
</div>
</div>
</div>
<div><br>
<div class="center-column">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" />
<a href="menuEntrada.php" class="btn btn-success">Atras</a>
</div>
</div>
</form>
<div id="dropDownSelect1"></div>
<?php }
include 'Extras/scripts.php' ?>
</body>
</html>