| Current Path : /home/bolconlineco/public_html/aaaaaa/demo/admin/ |
| Current File : /home/bolconlineco/public_html/aaaaaa/demo/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 width="" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto;width:780px;" class="tablestyle">
<tr id="title">
<th class="small" style="text-align:left; padding-left:15px;"> Name</th>
<th class="small-x"> View Assignment</th>
<th class="small-xxxx" style="padding-left:3px; padding-right:3px;">Action</th>
</tr><!-- end title -->
<?php
//$result=assignment_by_topic_id($topicId);
while($rowSet=mysql_fetch_array($result))
{
?>
<tr class="values even">
<td class="small" width="300"><?php echo $rowSet['material_name'];?></td>
<td class="small" width="200"><a href="download.php?ed=<?php echo $rowSet['meterial_path'];?>">View </a></td>
<td class="action-xxxx" style="width:10px; text-align:center;">
<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";
}
?>
</table>
</div>