Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $thePage='audio';
- include 'inc/headSec.php';
- $class="";
- $p=!empty($_GET['p'])?$_GET['p']:1;
- $perpage=!empty($_GET['per'])? $_GET['per']:20;
- if(isset($_GET['aId']) && (int) $_GET['aId']!=""){
- $aid = (int)$_GET['aId'];
- $category = $obj->getResource($aid);
- $sql="SELECT * from tbl_audio where type='$aid'";
- }else{
- $sql="SELECT * from tbl_audio";
- }
- $order = "order by r_id desc";
- $url = '?page=audio-archive.php';
- $row_archive = $obj->PageMe1( $url, $order, $perpage, $sql, $class, $p);
- ?>
- <body>
- <div id="fb-root"></div>
- <script>(function(d, s, id) {
- var js, fjs = d.getElementsByTagName(s)[0];
- if (d.getElementById(id)) return;
- js = d.createElement(s); js.id = id;
- js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.4";
- fjs.parentNode.insertBefore(js, fjs);
- }(document, 'script', 'facebook-jssdk'));</script>
- <?php include 'inc/header.php'; ?>
- <div class="container">
- <div class="row ">
- <div class="col-md-8 col-sm-12">
- <div class="HeadBG clearfix">
- <span class="fa fa-newspaper-o"></span>
- <h4>Archive</h4>
- </div>
- <div class="main-News">
- <div class="archive">
- <?php
- if(!empty($row_archive[1])){
- while($archive=$obj->fetch($row_archive[0])){
- // $date = substr($archve['posted_on'],0,10);
- echo '<div class="audi-title">
- <h5>'.stripslashes($archive['title']).'</h5>
- <audio src="uploads/audio/'.$archive['file'].'" controls preload=""></audio>
- <a href="download.php?f='.$archive['file'].'"><button type="button" class="btn btn-primary">Download</button> </a>
- </div>';
- }
- }
- ?>
- </div>
- </div>
- </div>
- <?php include 'inc/Sidebar.php'; ?>
- </div>
- </div>
- <?php include 'inc/Footer.php'; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement