| Current Path : /home/bolconlineco/public_html/admin/ |
| Current File : //home/bolconlineco/public_html/admin/get_pdf.php |
<?php
include("../includes/connection/connection.php");
$id=$_POST['id'];
?>
<div class="left_url">
<h3>Course Materials Management</h3>
<?php
$query = "select * from coursematerials where course_id='$id' ";
$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> View Assignment</th>
<th>Action</th>
</tr><!-- end title -->
</thead>
<tbody>
<?php
//$result=assignment_by_topic_id($topicId);
while($rowSet=mysql_fetch_array($result)) { ?>
<tr>
<td><?php echo $rowSet['material_name'];?></td>
<td><a href="download.php?ed=<?php echo urlencode($rowSet['meterial_path']);?>">View </a></td>
<td>
<a href="delete_cm.php?id=<?php echo $rowSet['id']?>" onclick='return confirm("Are you Sure to delete ?") ' ;> <img src="../images/delete-icon.png" alt="Delete" /> </a>
</td>
</tr><!-- end values -->
<?php
}
}else
{
echo "No Materials for this Course";
}
?>
</tbody>
</table>
</div>