Skip to content

Commit

Permalink
Fix issues
Browse files Browse the repository at this point in the history
  • Loading branch information
billzyj committed Nov 21, 2021
1 parent fea5143 commit 7b08f7a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 19 deletions.
10 changes: 5 additions & 5 deletions files/CategoryBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
<div style="display:flex; font-size: 20px; justify-content: flex-start">
<span style="display:flex">Showing media for <?php echo $category?> Category: &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
<div>
<a class="btn btn-primary" href='http://localhost/MeTube/index.php?page=Home'>All</a>
<a class="btn btn-primary" href='http://localhost/MeTube/index.php?page=Home&category=Human'>Human</a>
<a class="btn btn-primary" href='http://localhost/MeTube/index.php?page=Home&category=Animal'>Animal</a>
<a class="btn btn-primary" href='http://localhost/MeTube/index.php?page=Home&category=Sports'>Sports</a>
<a class="btn btn-primary" href='http://localhost/MeTube/index.php?page=Home&category=Other'>Other</a>
<a class="btn btn-primary" href='index.php?page=Home'>All</a>
<a class="btn btn-primary" href='index.php?page=Home&category=Human'>Human</a>
<a class="btn btn-primary" href='index.php?page=Home&category=Animal'>Animal</a>
<a class="btn btn-primary" href='index.php?page=Home&category=Sports'>Sports</a>
<a class="btn btn-primary" href='index.php?page=Home&category=Other'>Other</a>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions files/Classes/MediaItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ public function __construct($media){
}

public function create(){
$thumbnail_path = '/MeTube/'.$this->media->getThumbnailpath();

//$thumbnail_path = '/MeTube/'.$this->media->getThumbnailpath();
$thumbnail_path = $this->media->getThumbnailpath();
$thumbnail="<div class='thumbnail'>
<img src='$thumbnail_path'></div>";
$details= $this->createDetails();
Expand Down
14 changes: 4 additions & 10 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,9 @@
<!--<div class='videoSection'>-->
<!---->
<!-- --><?php
// if($loggedInUserName==""){
// $mediaGrid= new MediaGrid($con);
// echo $mediaGrid->create(null, "All Media", $loggedInUserName);
// }
// else{
// $mediaGrid= new MediaGrid($con);
// echo $mediaGrid->create(null, "Recommended", $loggedInUserName);
// echo $mediaGrid->create(null, "Shared Media", $loggedInUserName);
// }
// ?>
if (!isset($_GET['page'])) {
header("location:index.php?page=Home");
}
?>
<!--</div>-->

File renamed without changes.
3 changes: 1 addition & 2 deletions updateVideoInfo.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
require_once("files/main.php");

$vedioId = (int)$_GET['Id'];
echo "$vedioId";
$query = $con->prepare("SELECT * FROM media where id = '$vedioId'");
$query->execute();
$row = $query->fetch(PDO::FETCH_ASSOC);
Expand Down Expand Up @@ -33,7 +32,7 @@
$keywords = rtrim($keywords, ';');

$actionString = "updateVideoProcess.php?Id=".$vedioId;
echo "$actionString";
//echo "$actionString";
?>

<form action=<?php echo "$actionString" ?> method="POST" enctype="multipart/form-data">
Expand Down

0 comments on commit 7b08f7a

Please sign in to comment.