<?php include ("php/connect.php");?>
<?php include ("php/popup.php");?>
<?php include ("php/content.php");?>
<?php include ("php/nav.php");?>
<?php include ("php/cart.php");?>
<?php include ("php/sections.php");?>
<?php
date_default_timezone_set("America/Chicago");
$Now = date('Y-m-d H:i:s');
$GetIP = $_SERVER['REMOTE_ADDR'];
$ip = $GetIP;
$Page = 'general-video.php';
// Connects to your Database
//Writes the information to the database
mysqli_query($SMB, "INSERT INTO SMBDU_Tracker (date, IP, page) VALUES ('$Now', '$GetIP','$Page')");
if (isset($_GET['id'])) {
$colname_Details = $_GET['id'];
}
$query_Session = "SELECT * FROM SMBDU_Teasers WHERE id = '$colname_Details'";
$Session = mysqli_query($SMB, $query_Session);
$row_Session = mysqli_fetch_assoc($Session);
$totalRows_Session = mysqli_num_rows($Session);
$Session_ID = $row_Session['id'];
$Session_VID = $row_Session['vid'];
$query_Get_Session_Videos = "SELECT * FROM School_Media WHERE id='$Session_VID'";
$Get_Session_Videos = mysqli_query($SMB, $query_Get_Session_Videos);
$row_Get_Session_Videos = mysqli_fetch_assoc($Get_Session_Videos);
$totalRows_Get_Session_Videos = mysqli_num_rows($Get_Session_Videos);
$Get_Session_Videos_ID = $row_Get_Session_Videos['id'];
$Get_Session_Videos_Name = $row_Get_Session_Videos['name'];
$Get_Session_Videos_Description = $row_Get_Session_Videos['description'];
$Get_Session_Videos_Video = $row_Get_Session_Videos['video'];
$UserID = 0;
$Video_Output = '<video controls id="myVideo" width="100%" height="auto" autoplay preload onplay="PlayRecord('.$Session_VID.', '.$UserID.')" onpause="PauseRecord('.$Session_VID.', '.$UserID.')" onended="EndRecord('.$Session_VID.', '.$UserID.')">
<source src="https://www.successfulmedicalbilling.com/admin/school/videos/'.$Get_Session_Videos_Video.'" type="video/mp4"/>
</video>';
// Other Teaser Videos
$query_Other_Teaser = "SELECT * FROM SMBDU_Teasers WHERE site='main' AND id != '$colname_Details' ORDER BY sort ASC";
$Other_Teaser = mysqli_query($SMB, $query_Other_Teaser);
$totalRows_Other_Teaser = mysqli_num_rows($Other_Teaser);
if($totalRows_Other_Teaser > 0){
$Other_Teaser_Section_Output .= '<section class="bkgLine">
<div class="well-03 bkg-01">
<div class="container">
<div class="row">
<div class="grid_11">
<h3>More Free General Content Videos</h3>
</div>';
while($row_Other_Teaser = mysqli_fetch_assoc($Other_Teaser)){
$Other_Teaser_ID = $row_Other_Teaser['id'];
$Other_Teaser_VID = $row_Other_Teaser['vid'];
$Other_Teaser_Require = $row_Other_Teaser['register_only'];
$query_Get_Other_Teaser_Videos = "SELECT * FROM School_Media WHERE id='$Other_Teaser_VID'";
$Get_Other_Teaser_Videos = mysqli_query($SMB, $query_Get_Other_Teaser_Videos);
$totalRows_Get_Other_Teaser_Videos = mysqli_num_rows($Get_Other_Teaser_Videos);
if($totalRows_Get_Other_Teaser_Videos > 0){
while($row_Get_Other_Teaser_Videos = mysqli_fetch_assoc($Get_Other_Teaser_Videos)){
$Get_Other_Teaser_Videos_ID = $row_Get_Other_Teaser_Videos['id'];
$Get_Other_Teaser_Videos_Name = $row_Get_Other_Teaser_Videos['name'];
$Get_Other_Teaser_Videos_Description = $row_Get_Other_Teaser_Videos['description'];
$Count_Description = strlen($Get_Other_Teaser_Videos_Description);
if($Count_Description > 100){
$ShowMore = '...';
}
else {
$ShowMore = '';
}
if($Other_Teaser_Require > 0){
$Other_Teaser_Link = 'register.php';
}
else {
$Other_Teaser_Link = 'general-video.php?id='.$Other_Teaser_ID;
}
$Other_Teaser_Section_Output .='<div class="grid_4 wow fadeInLeft">
<div class="box-02">
<a class="thumb" href="'.$Other_Teaser_Link.'">
<img src="https://www.smbdu.com/assets/teaser-cover.jpg" alt=""/>
<span class="thumb_overlay"></span>
</a>
<div class="box-02_cnt">
<h6>'.$Get_Other_Teaser_Videos_Name.'</h6>
<p>'.substr($Get_Other_Teaser_Videos_Description, 0, 100).''.$ShowMore.'</p>
</div>
</div>
</div>';
}}}
$Other_Teaser_Section_Output .= '</div></div></div></section>';
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>SMBDU - Successful Medical Billing and Digital University</title>
<meta charset="utf-8">
<meta name="format-detection" content="telephone=no"/>
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/grid.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/search.css">
<link rel="stylesheet" href="css/camera.css">
<link rel="stylesheet" href="css/contact-form.css">
<link rel="stylesheet" href="css/jquery.fancybox.css">
<script src="js/jquery-1.8.1.min.js"></script>
<script src="js/jquery.js"></script>
<script src="js/jquery-migrate-1.2.1.js"></script>
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback" async defer></script>
<script>
var onloadCallback = function() {
grecaptcha.execute();
};
function setResponse(response) {
document.getElementById('captcha-response').value = response;
}
</script>
<!--[if lt IE 9]>
<html class="lt-ie9">
<div style=' clear: both; text-align:center; position: relative;'>
<a href="http://windows.microsoft.com/en-US/internet-explorer/..">
<img src="images/ie8-panel/warning_bar_0000_us.jpg" border="0" height="42" width="820"
alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today."/>
</a>
</div>
<script src="js/html5shiv.js"></script>
<![endif]-->
<script src='js/device.min.js'></script>
</head>
<body>
<div class="page">
<!--========================================================
HEADER
=========================================================-->
<header>
<div id="stuck_container" class="stuck_container">
<div class="container">
<div class="row">
<div class="grid_8">
<div class="brand">
<a href="./">
<img src="img/SMB_DigitalUniversity.jpg" alt="SMBDU" height="75"/>
</a>
</div>
</div>
<div class="grid_4">
<ul class="list01">
<li><a class="fa-user" href="signin.php">SIGN IN</a>
</li>
<li><a class="fa-user-plus" href="register-now.php">REGISTER</a>
</li>
<li><a class="fa-shopping-cart" href="cart.php"><span><?php echo $totalRows_ShoppingCart; ?> ITEMS</span></a></li>
</ul>
</div>
</div>
<?php echo $HomeNav; ?>
</div>
</div>
</header>
<!--========================================================
CONTENT
=========================================================-->
<main>
<section>
<div class="well-03">
<div class="container">
<div class="grid_11">
<h4><?php echo $Get_Session_Videos_Name; ?></h4>
<?php echo $Video_Output; ?>
<h5>Description:</h5>
<?php echo $Get_Session_Videos_Description; ?>
</div>
</div>
</div>
</section>
<?php echo $Other_Teaser_Section_Output; ?>
</main>
<!--========================================================
FOOTER
=========================================================-->
<footer>
<div class="bkg-02">
<div class="footer-well">
<div class="container">
<div class="row">
<div class="grid_4">
<div class="copyright">
<h6>Copyright</h6>
<a class="footer-brand" href="./"><img src="images/logo.png" alt="SMBDU" height="50"/></a>
<p>© <span id="copyright-year"></span>
<a href="#">Privacy policy</a></p>
Website: <a rel="nofollow" href="http://www.savvysitedesigns.com" target="_blank">Savvy Site Designs</a>
</div>
</div>
<div class="grid_4">
<div class="about-us">
<h6><?php echo $Footer_MainHdr; ?></h6>
<?php echo $Footer_MainContent; ?>
</div>
</div>
<div class="grid_4">
<div class="contact-us">
<h6>Contact Us</h6>
<p><a href="mailto:info@smbdu.com">info@smbdu.com</a></p>
</div>
</div>
</div>
</div>
</div>
</div>
</footer>
</div>
<script src="js/popup.js"></script>
<script>
$(document).ready(function() {
// Initialize the plugin
$('#my_register').popup();
});
</script>
<script>
$(document).ready(function() {
$('#my_signin').popup({
outline: true, // optional
focusdelay: 400, // optional
vertical: 'top' //optional
});
});
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script>
var vid = document.getElementById("myVideo");
var canvas = document.getElementById('c');
var context = canvas.getContext('2d');
var cw = Math.floor(canvas.clientWidth / 100);
var ch = Math.floor(canvas.clientHeight / 100);
canvas.width = cw;
canvas.height = ch;
</script>
<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
function disableclick(e)
{
if(event.button==2)
{
alert(status);
return false;
}
}
</script>
<script src="js/script.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.15.0/jquery.validate.min.js"></script>
<script src="https://cdn.jsdelivr.net/jquery.validation/1.15.0/additional-methods.min.js"></script>
<script src="js/register.js"></script>
</body>
</html> |