| Current Path : /home/bolconlineco/www/aaaaaa/demo/admin/ |
| Current File : /home/bolconlineco/www/aaaaaa/demo/admin/show_videos.php |
<?php
include("../includes/connection/connection.php");
$id=$_POST['id'];
?>
<div class="video_managments">
<h2>Videos Management</h2>
<?php
//$result=assignment_by_topic_id($topicId);
$query="select * from coursevideo where course_id='$id'";
$result= mysql_query($query) or die(mysql_error());
if(mysql_num_rows($result) > 0 )
{
?>
<table width="650" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto;" class="tablestyle">
<tr id="title">
<th class="small" style="text-align:left; padding-left:15px;"> Name</th>
<th class="small-x">Video</th>
<th class="small-xxxx" style="padding-left:3px; padding-right:3px;">Action</th>
</tr><!-- end title -->
<?php
while($rowSet=mysql_fetch_array($result))
{
?>
<tr class="values even">
<td class="small"><?php echo $rowSet['name'];?></td>
<td class="small-x"><a href="../combine/coursevideos/<?php echo $rowSet['videopath'];?>" class="vimeo">View Course Video</a></td>
<td class="action-xxxx" style="width:10px; text-align:center;">
<a href="delete_videos.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 Videos Found for this course";
}
?>
</table>
</div>