-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvue.php
123 lines (96 loc) · 3.58 KB
/
vue.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title> RuFy </title>
<?php include('include/header.html') ?>
</head>
<body>
<!-- Menu TOP liens vers les différentes applications -->
<?php include('include/menu-top.html') ?>
<!-- FIN Menu TOP liens vers les différentes applications -->
<div class="container">
<!-- Menu de navigation de l'application -->
<?php include('include/menu-app.php') ?>
<!-- FIN Menu de navigation de l'application -->
<!-- CATEGORIE RECHERCHE -->
<?php include('include/bloc-recherche.php') ?>
<!-- FIN CATEGORIE RECHERCHE -->
<!-- Debut TOP MOVIE UPCOMING OU POPULAR -->
<div class="panel panel-primary">
<div class="panel-heading"><span class="glyphicon glyphicon-time"></span> Films à venir</div>
<div class="panel-body">
<div class="row" id="top-movies">
<?php $i = 0;
$nb_affichage = 4;
foreach($avenir->data->upcoming_movies->upcoming_movie as $movie){ ?>
<div class="col-md-3 col-xs-6 pull-down">
<img src="<?php echo $movie->medium_cover_image ?>" alt="...">
<div class="caption">
<h4><?php echo $movie->title ?></h4>
</div>
</div>
<?php
if(++$i>=$nb_affichage)
break;
}
?>
</div>
</div>
</div>
<!-- FIN TOP MOVIE UPCOMING OU POPULAR -->
<div class="modal fade" id="infos" data-backdrop="true">
<div class="modal-dialog">
<div class="modal-content"></div>
</div>
</div>
<div class="row resultat">
<?php $i = 0;
$nb_affichage = 12;
foreach($xml->data->movies->movie as $movie){
$urls = "";
$qualities = "" ;
$i = 0 ;
foreach($movie->torrents->torrent as $torrent)
{
if($i > 0)
{
$urls.= "%20".$torrent->url ;
$qualities .= "%20".$torrent->quality ;
}
else
{
$urls.= $torrent->url ;
$qualities .= $torrent->quality ;
}
$i +=1;
}
?>
<div class="col-md-3 col-sm-4 col-xs-12 pull-down">
<div class="thumbnail">
<img src="<?php echo $movie->medium_cover_image ; ?>" alt="...">
<div class="caption">
<p class="film"><?php echo $movie->title ; ?></p>
<div class="row year-genre-note">
<p class="col-xs-3 year "><?php echo $movie->year ; ?></p> <p class="col-xs-6 genre"><?php echo $movie->genres->genre ?></p> <p class="col-xs-3 note"><?php echo $movie->rating ; ?></p>
</div>
<p><a value="<?php echo $movie->torrents->torrent->url ?>" type="button" class="btn download"><span class="glyphicon glyphicon-download-alt"></span> <?php echo $movie->torrents->torrent->quality ?></a><button name="<?php echo strval($movie->title) ; ?>" year="<?php echo strval($movie->year) ; ?>" id="<?php echo strval($movie->id) ; ?>" urls="<?php echo $urls ; ?>" qualities="<?php echo $qualities ; ?>" type="button" class="btn btn-primary detail-movie">Détails <span class="glyphicon glyphicon-chevron-right"></span></button> </p>
</div>
</div>
</div>
<?php
if(++$i>=$nb_affichage)
break;
}
?>
</div>
<div class="row" style="text-align:center">
<?php include('include/pagination.php') ?>
</div>
<?php include('include/alertes.html') ?>
</body>
<script src="bootstrap/js/jquery.js"></script>
<script src="bootstrap/js/bootstrap.min.js"></script>
<script src="bootstrap/js/rufy.js"> </script>
<script src="bootstrap/js/telechargement.js"> </script>
</html>