commit
871a40353b
Binary file not shown.
|
@ -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>
|
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
|
||||
$hostname = "localhost";
|
||||
$database = "alexsito";
|
||||
|
||||
|
||||
$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");
|
||||
|
||||
|
||||
?>
|
|
@ -0,0 +1,53 @@
|
|||
<?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="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<title>Lord Channel Theater</title>
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<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="https://lordchannel.com/wp-content/uploads/2018/09/matrixgif.gif">
|
||||
|
||||
<?php include 'nav.php';?>
|
||||
<div class="rectangle">
|
||||
<iframe src='<?php echo $row['link embedded']?>' scrolling="no" frameborder="0" allowfullscreen="true" webkitallowfullscreen="true" mozallowfullscreen="true"></iframe>
|
||||
</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>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -0,0 +1,44 @@
|
|||
<?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-doppiati-in-italiano/">Anime Doppiati in Italiano</a>
|
||||
<a class="dropdown-item" href="https://lordchannel.com/anime-tradotti-in-italiano/">Anime Sottotitolati in Italiano</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="#">Serie TV</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">
|
||||
Immagini
|
||||
</a>
|
||||
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
||||
<a class="dropdown-item" href="https://lordchannel.com/immagini-ecchi/">Immagini Ecchi</a>
|
||||
<a class="dropdown-item" href="https://lordchannel.com/immagini-sfondo/">Immagini Sfondo</a>
|
||||
</div>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://lordchannel.com/musica/">Musica</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://lordchannel.com/giochi-per-pc/">Giochi PC</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="https://lordchannel.com/programmi-pc/">Programmi PC</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>'; ?>
|
Loading…
Reference in New Issue