| Current Path : /home/bolconlineco/www/student/ |
| Current File : //home/bolconlineco/www/student/course_pdf.php |
<?php
ob_start();
session_start();
?>
<?php include('header.php');?>
<script src="//cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="//cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css">
<?php
if(!isset($_SESSION['studentname']) || $_SESSION['studentrole'] != 4)
{
header("location:../index.php");
exit();
}
?>
<h3 class="page-title">Support Materials</h3>
<ul class="page-breadcrumb breadcrumb">
<li><i class="fa fa-home"></i> <a href="dashbord.php"> Home </a> <i class="fa fa-angle-right"></i></li>
<li class="active">Support Materials</li>
</ul>
<?php
$qq="select courseid from assigncourse where rollno='$rollno'";
$rr=mysql_query($qq) or die(mysql_error());
$fetch=mysql_fetch_array($rr);
//$query="select * from studentassignment where AssignmentStatus=1 and rollno=$rollno";
$query="select * from coursematerials where course_id=".$fetch['courseid'];
$result=mysql_query($query) or die(mysql_error());
if(mysql_num_rows($result) > 0) { ?>
<table class="tablestyle table table-striped table-bordered table-hover" id="sample_2">
<thead>
<tr>
<th>Name</th>
<th>Download</th>
</tr>
</thead>
<tbody>
<?php
while($row=mysql_fetch_array($result))
{ ?>
<tr>
<td><?php echo $row['material_name']; ?></td>
<td><a href="download.php?zc=<?php echo urlencode($row['meterial_path']); ?>">Download</a></td>
</tr>
<?php
}
?>
</tbody>
</table>
<script>
$(document).ready(function(){
$('#mytable2').dataTable({bFilter: false, bInfo: false, "bLengthChange": false});
});
</script>
<?php
}
?>
</div><!-- end row -->
</div>
</div>
</div>
</div>
</div> <!-- end content -->
</div><!-- end wrapper -->
<?php include('../includes/footer.php');?>