<?php $videoid = $_REQUEST['i']; $d = $_REQUEST['d']; require_once 'classes/connexio.php'; require_once 'classes/videos.php'; require_once './lang.php'; $v = new video(); $v->seleccionar($videoid); $bd = new connexio(); $dades = $bd->query("SELECT nom FROM empresa LIMIT 1"); $empresa = $dades->fetch_array(MYSQLI_ASSOC); $bd->close(); ?> <script> function tancar(){ $(".desc").hide("slow",function(){ $(".desc").remove(); }); $(".descexistent").hide("slow",function(){ $(".descexistent").remove(); }); history.pushState('', document.title, window.location.pathname); document.title = "<?php
<?php ob_start(); session_start(); require_once '../classes/connexio.php'; require_once '../classes/videos.php'; if (isset($_SESSION['id'])) { $id = $_REQUEST['id']; $bd = new connexio(); $dades = $bd->query("SELECT nom FROM empresa LIMIT 1"); $empresa = $dades->fetch_array(MYSQLI_ASSOC); $v = new video(); $v->seleccionar($id); require_once '../lang.php'; ?> <!DOCTYPE html> <html> <head> <title><?php echo $empresa['nom']; ?> </title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="css/bootstrap.min.css"> <link rel="stylesheet" href="css/style.css"> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> <script src="js/scripts.js" type="text/javascript"></script> <script>
<?php include_once 'classes/videos.php'; $v = new video(); $i = 1; if (count($elements) > 9) { $limit = 9; } else { $limit = count($elements); } for ($r = 0; $r < $limit; $r++) { $v->seleccionar($elements[$r]); if ($i == 1 || $i == 4 || $i == 7) { $_SESSION['j']++; ?> <div id="row<?php echo $_SESSION['j']; ?> "><?php } if ($i == 7) { ?> <div class="col-md-4 "><?php } ?> <div class="video <?php if ($i == 7 || $i == 8) { echo 'col-md-12 petit'; } if ($i == 1 || $i == 9) {