| Current Path : /home/bolconlineco/public_html/student/ |
| Current File : //home/bolconlineco/public_html/student/usefull_links.php |
<?php
ob_start();
session_start();
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();
}
$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());
?>
<h3 class="page-title">URL</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">URL</li>
</ul>
<?php
//$query="select * from studentassignment where AssignmentStatus=1 and rollno=$rollno";
$query="select * from courseurls 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 id="title">
<th>Name</th>
<th>Link</th>
</tr>
</thead>
<tbody>
<?php
while($row=mysql_fetch_array($result)){ ?>
<tr class="values even">
<td><?php echo $row['url_name']; ?></td>
<td><a href="http://<?php echo $row['urls']; ?>" target="_new">View</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');?>