Your IP : 10.3.227.210


Current Path : /home/bolconlineco/public_html/student/
Upload File :
Current File : /home/bolconlineco/public_html/student/videos.php

<?php 
  ob_start();
  session_start();
  ?>
  <?php //include('header.php');?> 
  <?php include('../includes/connection/func.inc.php')?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Brentwood </title>

    <link href="http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700&subset=all" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/uniform/css/uniform.default.css" rel="stylesheet" type="text/css"/>
    <!-- END GLOBAL MANDATORY STYLES -->
    <!-- BEGIN PAGE LEVEL PLUGIN STYLES -->
    <link href="../assets/plugins/gritter/css/jquery.gritter.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/bootstrap-daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/fullcalendar/fullcalendar/fullcalendar.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/jqvmap/jqvmap/jqvmap.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/plugins/jquery-easy-pie-chart/jquery.easy-pie-chart.css" rel="stylesheet" type="text/css"/>
    <!-- END PAGE LEVEL PLUGIN STYLES -->
    <!-- BEGIN THEME STYLES -->
    <link href="../assets/css/style-metronic.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/css/style-responsive.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/css/plugins.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/css/pages/tasks.css" rel="stylesheet" type="text/css"/>
    <link href="../assets/css/themes/default.css" rel="stylesheet" type="text/css" id="style_color"/>
    <link href="../assets/css/print.css" rel="stylesheet" type="text/css" media="print"/>
    <link href="../assets/css/custom.css" rel="stylesheet" type="text/css"/>

    
<link rel="stylesheet" href="../css/main.css" type="text/css" />


<script src="../js/jquery-1.10.2.min.js"></script>


<!--<script src="../tabs/jquery-1.js" type="text/javascript"></script>-->

</head>
<body>
<?php 
$co=$_SESSION['studentname'];
$r=mysql_query("select * from student where email='$co'");
$rr=mysql_fetch_array($r);
$t=$rr['title'];
$fname=$rr['fname'];
$lname=$rr['lname'];

$fullname=$fname.' '.$lname;
?>

<body class="page-header-fixed">
    <!-- BEGIN HEADER -->
    <div class="header navbar navbar-fixed-top">
        <!-- BEGIN TOP NAVIGATION BAR -->
        <div class="header-inner">
            <!-- BEGIN LOGO -->
            <a class="navbar-brand" href="dashboard.php" class="logo_admin">
                <span class="logo_first" style="color: #fff;">Brentwood</span>
            </a>
            <!-- END LOGO -->
            <!-- BEGIN RESPONSIVE MENU TOGGLER -->
            <a href="javascript:;" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                <img src="../assets/img/menu-toggler.png" alt=""/>
            </a>
            <ul class="nav navbar-nav pull-right">
                <li class="dropdown user">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-Hover="dropdown" data-close-others="true">


                        <i class="fa fa-angle-down"></i>
                    </a>
                    <ul class="dropdown-menu">



                        <li>
                            <a href="javascript:;" id="trigger_fullscreen">
                                <i class="fa fa-arrows"></i> Full Screen
                            </a>
                        </li>

                        <li>
                            <a href="logout.php">
                                <i class="fa fa-key"></i> Log Out
                            </a>
                        </li>

                    </ul>
                </li>
            </ul>
            <!-- END RESPONSIVE MENU TOGGLER -->
        </div>
        <!-- END TOP NAVIGATION BAR -->
    </div>
    <!-- END HEADER -->
    <div class="clearfix">
    </div>
    <!-- BEGIN CONTAINER -->
<div class="page-container">
    <!-- BEGIN SIDEBAR -->
<?php include ("sidebar.php"); ?>
    <!-- END SIDEBAR -->
    <!-- BEGIN CONTENT -->
    <div class="page-content-wrapper">
    <div class="page-content">


        
  
<?php
if(!isset($_SESSION['studentname']) || $_SESSION['studentrole'] != 4)
 {
	header("location:../index.php");
	exit(); 
 }
 $rollno=$_SESSION['rollno'];
?>  
 <script type="text/javascript">
    var html5lightbox_options = {
        watermark: "http://html5box.com/images/html5boxlogo.png",
        watermarklink: ""
    };
</script>         
<script src="../combine/html5lightbox/html5lightbox.js"></script>
    <div class="row">
    <div class="col-md-12">
    <!-- BEGIN EXAMPLE TABLE PORTLET-->
    <div class="portlet box blue">
    <div class="portlet-title clearfix" style="overflow: hidden;">
        <div class="caption">Videos</div>
    </div>
    <div class="portlet-body">


 
			    <?php
				  /*$q="select courseid from assigncourse where rollno='$rollno'";
				  $r=mysql_query($q) or die(mysql_error());
				  $f=mysql_fetch_array($r);*/
				 //$query="select * from studentassignment where AssignmentStatus=1 and rollno=$rollno";
				 $query="select * from tbl_studentvideos where rollno='$rollno'";
				 $result=mysql_query($query) or die(mysql_error());
				 if(mysql_num_rows($result) > 0)
				  {
					  
				 ?>
                 
               <table width="98%" border="0" cellspacing="0" style="margin:0 auto" cellpadding="0" class="tablestyle">                
						<tr id="title">
                            <th class="small">Name</th>
                           <th class="small-xx">View</th>
                           <th class="small-xx">Download</th>
	                 </tr>
                 <?php 
				  while($row=mysql_fetch_array($result))
				   {
					   
					   $videoQuery="select * from coursevideo where id=".$row['videoId'];
					   
					   $videoResult=mysql_query($videoQuery) or die(mysql_error());
					   
					   $fetch=mysql_fetch_array($videoResult);
					
				 ?>
						<tr class="values even">
							<td class="small"><?php echo $fetch['name']; ?></td>
<td class="small"><a href="../combine/coursevideos/<?php echo $fetch['videopath'];?>" class="html5lightbox">View Course Video</a></td>
							<td class="small-xx"><a href="download.php?vp=<?php echo $fetch['videopath']; ?>">Download</a></td>
			</tr>
            <?php
				   }
			?>
              </table>
      
			  <?php
				  }else
				  {
					  echo "No Videos ";  
				  }
			  ?>
                  </div><!-- end row  -->  
                        
                
                                                   
           </div> <!-- end content  -->
          
        </div><!-- end wrapper -->   

</div>
</div>
</div>
</div>
<?php include('../includes/footer-old.php');?>