include '../config.php'; include '../Classes/DB.php'; include '../Classes/CategoriesActions.php'; include '../Classes/ActorsActions.php'; include '../Classes/VideosActions.php'; session_start(); if (empty($_SESSION['username'])) { header('Location:Auth.php'); } $msg = $_GET['msg']; echo $msg; $actoractions = new ActorsActions(); $actors = $actoractions->getAllActors(); $idd = $_GET['id']; $catactions = new CategoriesActions(); $categories = $catactions->getAllCategories(); $vidactions = new VideosActions(); $videos = $vidactions->getVideosForSpecificCategorie($idd); var_dump($videos); $upit = $catactions->getCategorieBySpecificID($idd); $specificcategorie = $upit->fetch(PDO::FETCH_ASSOC); ?> <!DOCTYPE html> <html lang="en"> <head> <style>
<?php error_reporting(E_ALL); ini_set("display_errors", 1); include '../Classes/CategoriesActions.php'; include '../Classes/DB.php'; include '../config.php'; if (isset($_POST['submit'])) { echo "submit"; $name = $_POST['categoriename']; $category = new CategoriesActions(); $category->InsertCategorie($name); } else { echo "not submit"; }
<?php error_reporting(-1); ini_set('display_errors', 'On'); include '../Classes/CategoriesActions.php'; include '../Classes/DB.php'; include '../config.php'; $categories = new CategoriesActions(); $allCategories = $categories->getAllCategories(); $data = array(); while ($row = $allCategories->fetch(PDO::FETCH_ASSOC)) { $data[] = $row; } echo json_encode($data);
<?php include '../config.php'; include '../Classes/DB.php'; include '../Classes/CategoriesActions.php'; include '../Classes/ActorsActions.php'; include '../Classes/VideosActions.php'; session_start(); if (empty($_SESSION['username'])) { header('Location:Auth.php'); } $msg = $_GET['msg']; echo $msg; $actoractions = new ActorsActions(); $actors = $actoractions->getAllActors(); $catactions = new CategoriesActions(); $categories = $catactions->getAllCategories(); $vidactions = new VideosActions(); $videos = $vidactions->getAllvideos(); ?> <!DOCTYPE html> <html lang="en"> <head> <style> .video-js{ width: 100%;!important; } </style> <link href="http://vjs.zencdn.net/5.4.4/video-js.css" rel="stylesheet"> <!-- If you'd like to support IE8 --> <script src="http://vjs.zencdn.net/ie8/1.1.1/videojs-ie8.min.js"></script>
error_reporting(E_ALL); include '../config.php'; include '../Classes/DB.php'; include '../Classes/CategoriesActions.php'; include '../Classes/ActorsActions.php'; include '../Classes/VideosActions.php'; session_start(); if (empty($_SESSION['username'])) { header('Location:../Views-client/Auth.php'); } $msg = $_GET['msg']; $id = $_GET['id']; $actorsactions = new ActorsActions(); $actors = $actorsactions->getAllActors(); $actorsbyid = $actorsactions->getActorsById($id); $categoriesactions = new CategoriesActions(); $categories = $categoriesactions->getAllCategories(); $categoriesbyid = $categoriesactions->getCategorieForSpecificVideo($id); $videoactions = new VideosActions(); $video = $videoactions->getVideoById($id); ?> <!DOCTYPE html> <html lang="en"> <head> <link rel="stylesheet" href="../css/bootstrap.css"> <meta charset="UTF-8"> <title>Title</title> <style> body{ background-image: url("../Images/background2.jpg");
<?php include '../config.php'; include '../Classes/DB.php'; include '../Classes/CategoriesActions.php'; session_start(); if (empty($_SESSION['username'])) { header('Location:Auth.php'); } $cat = new CategoriesActions(); $all = $cat->getAllCategories(); $msg = $_GET['msg']; ?> <!DOCTYPE html> <html lang="en"> <head> <style> .video-js { width: 100%;!important; } </style> <link rel="stylesheet" href="../css/bootstrap.min.css"> <meta charset="UTF-8"> <title>Title</title> </head> <body> <div class="container-fluid"> <div class="row"> <nav class="navbar navbar-default"> <div class="container-fluid">
<?php error_reporting(E_ALL); ini_set("display_errors", 1); include '../Classes/CategoriesActions.php'; include '../Classes/DB.php'; include '../config.php'; if (isset($_GET['id'])) { $id = $_GET['id']; $categorie = new CategoriesActions(); $categorie->DeleteCategorie($id); }
<?php error_reporting(E_ALL); ini_set("display_errors", 1); include '../Classes/CategoriesActions.php'; include '../Classes/DB.php'; include '../config.php'; $id = $_GET['id']; if (isset($_POST['update'])) { var_dump($_POST); $naziv = $_POST['naziv']; $catactions = new CategoriesActions(); $catactions->UpdateCategorie($naziv, $id); $msg = 'Actor updated'; header('Location:../Views-client/Kategorije.php?msg=' . $msg); }
include '../Classes/DB.php'; include '../Classes/CategoriesActions.php'; include '../Classes/ActorsActions.php'; include '../Classes/VideosActions.php'; session_start(); if (empty($_SESSION['username'])) { header('Location:Auth.php'); } $idd = $_GET['id']; $msg = $_GET['msg']; echo $msg; $actoractions = new ActorsActions(); $actors = $actoractions->getAllActors(); $query = $actoractions->getSpecificActor($idd); $specificactor = $query->fetch(PDO::FETCH_ASSOC); $catactions = new CategoriesActions(); $categories = $catactions->getAllCategories(); $vidactions = new VideosActions(); $videos = $vidactions->getVideosForSpecificCategorie($idd); $upit = $vidactions->GetAllVideosOfSpecificActor($idd); $videosofactor = $upit->fetch(PDO::FETCH_ASSOC); ?> <!DOCTYPE html> <html lang="en"> <head> <style> body{ background-image: url("../Images/background2.jpg"); background-repeat: no-repeat; background-size:100% 100%; }