-
Notifications
You must be signed in to change notification settings - Fork 29
/
historia.php
executable file
·97 lines (71 loc) · 2.78 KB
/
historia.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
<?php # POL.VirtualPol.com — Copyright (c) 2008 Javier González González <gonzo@virtualpol.com> — MIT License
$txt_nav = array('/historia'=>'Historia de VirtualPol');
echo '<h1 class="quitar">Historia de VirtualPol</h1>';
$sc = get_supervisores_del_censo();
if (isset($sc[$pol['user_ID']])) {
echo '
<!--<p style="color:#AAA">Solo hechos importantes a nivel general y explicados de forma tan sencilla que cualquiera de fuera lo comprenda. De forma breve y concisa. <a href="/buscar/">buscador</a>. Etiquetas permitidas <b> y <a href=""></a></p>-->
<p><form action="/accion/historia/add" method="POST">
<select name="year">
<option value="2004">2004</option>
<option value="2005">2005</option>
<option value="2006">2006</option>
<option value="2007">2007</option>
<option value="2008">2008</option>
<option value="2009">2009</option>
<option value="2010">2010</option>
<option value="2011">2011</option>
<option value="2012" selected="selected">2012</option>
<option value="2013">2013</option>
</select>/
<select name="mes">
<option value="01" selected="selected">01</option>
<option value="02">02</option>
<option value="03">03</option>
<option value="04">04</option>
<option value="05">05</option>
<option value="06">06</option>
<option value="07">07</option>
<option value="08">08</option>
<option value="09">09</option>
<option value="10">10</option>
<option value="11">11</option>
<option value="12">12</option>
</select>/
<input name="dia" size="1" maxlength="2" type="text" value="01" />
<input name="hecho" size="60" maxlength="250" type="text" value="" />
<select name="pais">
<option value="VirtualPol">VirtualPol</option>
<option value="Desarrollo">Desarrollo</option>';
foreach ($vp['paises'] AS $pais) {
echo '<option value="'.$pais.'">'.$pais.'</option>';
}
echo '
</select>
<input value="Añadir" type="submit">
</form>
</p>';
}
echo '<table border="0" cellspacing="0" cellpadding="1">
<tr>
<th>Fecha</th>
<th>Hecho histórico</th>
<th></th>
</tr>
<tr><td valign="top" style="color:#999;">'.explodear(' ', $date, 0).'</td><td valign="top"><em><b>Hoy</b>...</em></td><td valign="top"></td></tr>
';
$result = mysql_query_old("SELECT *
FROM hechos
WHERE estado = 'ok'
ORDER BY time DESC", $link);
while($r = mysqli_fetch_array($result)) {
if (($r['nick'] == $pol['nick']) OR (nucleo_acceso('supervisores_censo')) OR ($pol['nivel'] >= 97)) {
$boton = boton('x', '/accion/historia/del?ID='.$r['ID'], false, 'small');
} else { $boton = ''; }
// <td valign="top" style="font-size:14px;" align="right">'.$r['nick'].'</td>
echo '<tr><td valign="top" style="color:#999;" nowrap="nowrap">'.$r['time'].'</td><td valign="top">'.$r['texto'].'</td><td valign="top">'.$boton.'</td></tr>';
}
echo '</table>';
//THEME
$txt_title = 'Historia de VirtualPol';
$txt_menu = 'info';