Ejemplo n.º 1
0
$lt = 5;
if (isset($_GET['s'])) {
    $val = $_GET['s'];
} else {
    $val = "";
}
$k = 'title';
if (isset($_GET['k'])) {
    $k = $_GET['k'];
}
$cur = isset($_GET['p']) ? $_GET['p'] : 1;
$ob = isset($_GET['ob']) ? $_GET['ob'] : 'latest';
if (isset($val) && $val != '') {
    $data = searchVideo(($cur - 1) * $lt, $lt, $val, $ob, $k);
} else {
    $data = videoList(($cur - 1) * $lt, $lt);
}
$recent = recentVideo();
//print_r($recent); 
//$recent = recentVideo(0, 4);
$pagination = range(1, $data->tr, $lt);
$totalPage = floor($data->tr / $lt) + 1;
//echo "<pre>"; print_r($data);
?>
<div class="container row">
    <div class="two-thirds column left">
        <h1 class="heading">Videos</h1>
        <!-- Blog Post Start -->
        <?php
        foreach ($data->result as $value) {
            //echo "<pre>";print_r($value); 
Ejemplo n.º 2
0
<?php
require_once('header.php');
$VideoList = videoList(0,18);
$featuredList = featuredList();
$viewed = viewedVideo(0, 18);
$liked = likedVideo(0, 6);

if(count($featuredList->result) > 0){
    $feature_data = array_chunk($featuredList->result,3);
}

if(count($VideoList->result) > 0){
    $video_list = array_chunk($VideoList->result,9);
}
if(count($VideoList->result) > 0){
    $viewed_list = array_chunk($viewed->result,6);
}
//echo '<pre>';print_r($viewed_list);echo '</pre>';
?>
<div id="carousel-featured-mars-featuredvideo-widgets-2" class="carousel carousel-mars-featuredvideo-widgets-2 slide" data-ride="carousel">
            <div class="container section-header">
                <h3><i class="fa fa-star"></i> Featured Videos</h3>
                <ol class="carousel-indicators section-nav">
                    <li data-target="#carousel-featured-mars-featuredvideo-widgets-2" data-slide-to="0" class="bullet active"></li>
                    <li data-target="#carousel-featured-mars-featuredvideo-widgets-2" data-slide-to="1" class="bullet"></li>
                    <li data-target="#carousel-featured-mars-featuredvideo-widgets-2" data-slide-to="2" class="bullet"></li>
                </ol>
            </div>
            <div class="featured-wrapper">
                <div class="container">
                    <div class="row">
Ejemplo n.º 3
0
<body>
<div class="row">
    <div class="col-md-1"></div>
    <div class="col-md-10">
        <table class="table table-hover">
            <thead>
            <tr>
                <th>Id</th>
                <th>Link</th>
                <th>Tags</th>
                <th>Actions</th>
            </tr>
            </thead>
            <tbody>
            <?php 
$rows = videoList($pdo);
foreach ($rows as $row) {
    ?>
            <tr>
                <td><?php 
    echo $row['id'];
    ?>
</td>
                <td><a href="<?php 
    echo $row['link'];
    ?>
" target="_blank"><?php 
    echo $row['link'];
    ?>
</a></td>
                <td><?php