-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlistacapitulos.php
91 lines (75 loc) · 1.77 KB
/
listacapitulos.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
<?php
include 'header.php';
include 'conexion.php';
echo"<!--
v.Actual
Rurikk
Cualquier error o sugerencia envie un email a
-->";
// TorrentTrader v2.x
// $LastChangedDate: 2011-11-19 09:29:54 +0000 (Sat, 19 Nov 2011) $
// $LastChangedBy: dj-howarth1 $
//
// http://www.torrenttrader.org
//
//
require_once("backend/functions.php");
dbconn(false);
//check permissions
if ($site_config["MEMBERSONLY"]){
loggedinonly();
if($CURUSER["view_torrents"]=="no")
show_error_msg(T_("ERROR"), T_("NO_TORRENT_VIEW"), 1);
}
stdhead(T_("INDICE_ANIME"));
begin_frame(T_("INDICE_ANIME"));
//////////////////////////////////////////
//CODIGO
////////////////////////
mysql_query("SET NAMES 'utf8'");
$id = $_GET["id"];
$nombre = $_GET["nombre"];
printf("<table>
<caption>".$nombre."</caption>
<tr>
<th>Num Episode</th>
<th>Titulo</th>
<th>Fecha</th>
<th>ID</th>
</tr>");
$query = "SELECT NUM_TEMPORADA, NUM_EPISODIO, TITULO,FECHA,ID FROM episodios WHERE ID_ANIME='".$id."';";
//echo $query."<br />";
$result = $mysqli->query($query);
while($row = $result->fetch_array())
{
$rows[] = $row;
}
foreach($rows as $row)
{
echo ("
<tr>
<td>
S{$row['NUM_TEMPORADA']}E{$row['NUM_EPISODIO']}
</td>
<td>
<a href='linkscapitulo?idcap={$row['ID']}'> {$row['TITULO']} </a>
</td>
<td>
{$row['FECHA']}
</td>
<td>
{$row['ID']}
</td>
</tr>");
}
printf("</table>");
/* free result set */
$result->close();
/* close connection */
$mysqli->close();
//FIN CODIGO
//////////////////////////////////
end_frame();
stdfoot();
?>