#Aggiunta Nuova Versione di EpisodeLC con Plyr

master
MickSlash 2020-12-20 16:18:11 +01:00
commit 14e9bfc3b9
5 changed files with 158 additions and 0 deletions

53
boxtitoli.php Normal file
View File

@ -0,0 +1,53 @@
<?php include_once("conn/conn.php")
?>
<html>
<head><title>Lista Film,Anime & Serie TV</title>
<style>
div.img {
margin: 5px;
border: 1px solid #ccc;
float: left;
width: 180px;
}
div.img:hover {
border: 1px solid #777;
}
div.img img {
width: 100%;
height: auto;
}
div.desc {
text-align: center;
overflow:hidden;
word-wrap: break-word;
}
</style>
</head>
<body>
<?php
$listaimglist="";
$queryepisode="SELECT * FROM tbl_episode ORDER BY titolo ASC";
$resultOfferte=mysqli_query($alexsito, $queryepisode) or die("Errore Durante il caricamento dei link".mysqli_error($alexsito));
if (mysqli_num_rows($resultOfferte) > 0){
while($row = mysqli_fetch_array($resultOfferte)){
$listaimglist.="
<div class='img desc'>
<a href='guarda.php?id={$row['id']}'>{$row['titolo']}<br> \n
<img src=".$row['foto'].">
</div>";
// Nel caso si volessero usare immagini direttamente da una cartella basterà sostituire il tag html img con <img src='img/".$row['foto']."'>
}
echo "$listaimglist";
}
else {
echo "<h2>Non c'è niente</h2>";
}
?>
</div>
</body>
</html>

19
conn/conn.php Normal file
View File

@ -0,0 +1,19 @@
<?php
$hostname = "localhost";
$database = "lordb";
$username = "root";
$password = "";
//PHP 5.4
// $alexsito = mysql_connect($hostname, $username, $password) or trigger_error(mysql_error(),E_USER_ERROR);
// mysql_select_db($database) or die("Selezione del database non riuscita ".mysql_error());
//PHP 5.4 - 7
$alexsito = mysqli_connect($hostname, $username, $password);
mysqli_select_db($alexsito, $database) or die("Selezione del database non riuscita");
?>

BIN
filmserietv.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 KiB

60
guarda.php Normal file
View File

@ -0,0 +1,60 @@
<?php include_once("conn/conn.php") ?>
<?php
if(isset($_GET['id']))
{
$id = mysqli_real_escape_string ($alexsito, $_GET['id']);
$queryepisode="SELECT * FROM tbl_episode WHERE id ='$id'";
$resultList=mysqli_query($alexsito, $queryepisode) or die("Errore db ".mysqli_error($alexsito));
$row = mysqli_fetch_array($resultList);
}
?>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="LORD CHANNEL THEATER">
<meta name="author" content="MICKSLASH">
<title><?php echo $row['titolo']?></title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.plyr.io/3.6.2/plyr.css" />
<style>
.rectangle {
width:70%;
height:70%;
background-color: black;
border: 3px solid red;
position: absolute;
top: 15%;
left: 15%;
}
.rectangle>iframe {
display:block;
width:100%;
height:100%;
}
</style>
</head>
<body background="filmserietv.jpg">
<?php include 'nav.php';?>
<div class="rectangle">
<video id="player" playsinline controls>
<source src='<?php echo $row['link embedded']?>'></source>
</video>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<script src="https://cdn.plyr.io/3.6.2/plyr.js"></script>
<script>
const player = new Plyr('#player');
</script>
</body>
</html>

26
nav.php Normal file
View File

@ -0,0 +1,26 @@
<?php
echo '<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="http://lordchannel.com">LORD//CHANNEL</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="https://lordchannel.com/film/">Film</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
Anime
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<a class="dropdown-item" href="https://lordchannel.com/anime/anime-ita/">Anime ITA</a>
<a class="dropdown-item" href="https://lordchannel.com/anime/anime-sub-ita/">Anime SUB-ITA</a>
</div>
</li>
<li class="nav-item">
<a class="nav-link" href="https://lordchannel.com/serietv/">Serie TV</a>
</li>
</ul>
</div>
</nav>'; ?>