-
Notifications
You must be signed in to change notification settings - Fork 0
/
category_list.php
92 lines (79 loc) · 3.54 KB
/
category_list.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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" type="text/css" href="css/myCSS.css">
<link rel="stylesheet" href="css/bootstrap.min.css">
<!-- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> -->
<link rel="icon" href="images/logobar.png">
<title>Animation C | Xem anime | Xem phim hoạt hình | Chất lượng cao</title>
<style>
body {
background-color: black;
}
<!-- -->
<!-- -->
</style>
</head>
<body>
<div class="container">
<?php
include 'header.php';
require_once('connFilm.php');
$sql = "SELECT * From Film Where Id_Film in (SELECT Id_Film From Detail_Category Where Id_Category = '" . $_REQUEST['Id_Category'] ."')";
$result = $connFilm->query($sql);
$Name_Category = $connFilm->query("SELECT * From Category Where Id_Category = '" . $_REQUEST['Id_Category'] . "'");
$Name_Category = $Name_Category->fetch_assoc();
$Name_Category = $Name_Category['Name_Category'];
?>
<main class="container">
<div class="tray-title" style="color: white; background-color: #1C1C1C; border-right: 4px solid #2B2B2B; border-top: 4px solid #2B2B2B; border-bottom: 4px solid #2B2B2B;">
<h5 style="color: #d14002;">Kết quả của: <span style="color: #44b2e5;"><?= $Name_Category ?></span></h5>
</div>
<div align="center" class="wrap-cover-list row mr-auto ml-auto" style="background-color: #1C1C1C; border-left: 4px solid #2B2B2B; border-right: 4px solid #2B2B2B; border-bottom: 4px double #2B2B2B; padding-top: 5px;">
<?php
if ($result->num_rows > 0) {
while ($row = $result->fetch_assoc()) {
$sql = "SELECT count(Eps) as Number_Eps From Film_Eps Where Id_Film = " . $row['Id_Film'];
$Eps_Number = $connFilm->query($sql);
$Eps = $Eps_Number->fetch_assoc();
$Eps = $Eps['Number_Eps'];
?>
<div class="col-6 col-sm-6 col-md-4 col-lg-3 col-xl-2 mb-4">
<div class="ls-cover">
<a href="infor.php?Id_Film=<?= $row['Id_Film']?>"><img src="<?= $row['Cover_address']?>"></a>
<div class="eps-cover">
<p><?= $Eps ?>/<?= $row['Eps_Number']?></p>
</div>
<div align="left" class="f-title">
<p class="ml-1"><?= $row['Name_Film']?></p>
</div>
</div>
</div>
<?php }}?>
</div>
<div align="center" style="background-color: #282828; border-right: 4px solid #2B2B2B; border-left: 4px solid #2B2B2B; border-bottom: 4px solid #2B2B2B;">
<a href=""><div class="ls-number"><strong>1</strong></div></a>
<a href=""><div class="ls-number"><strong>2</strong></div></a>
<a href=""><div class="ls-number"><strong>3</strong></div></a>
<a href=""><div class="ls-number"><strong>4</strong></div></a>
<a href=""><div class="ls-number"><strong>5</strong></div></a>
</div>
</main>
<div class="footer">
Trang web này thuộc quyền sở hữu: Trần Quốc Lĩnh
</div>
</body>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<!-- My js -->
<!-- From bootstrap -->
<script type="text/javascript" src="js/jquery-3.3.1.slim.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/popper.min.js"></script>
<!-- My javascript below -->
<script type="text/javascript" src="js/myJS.js"></script>
</html>