| Current Path : /home/bolconlineco/www/aaaaaa/demo/admin/ |
| Current File : /home/bolconlineco/www/aaaaaa/demo/admin/get_url.php |
<?php
include("../includes/connection/connection.php");
$id=$_POST['id'];
?>
<div class="right_url">
<h3>Course Url Management</h3>
<?php
//$result=assignment_by_topic_id($topicId);
$query1 = "select * from courseurls where course_id='$id'";
$result1 = mysql_query($query1) or die(mysql_error());
if(mysql_num_rows($result1) > 0 )
{
?>
<table width="" border="0" cellspacing="0" cellpadding="0" style="margin:0 auto;width:1150px;" class="tablestyle">
<tr id="title">
<th class="small" style="text-align:left; padding-left:15px;" width="200"> Name</th>
<th class="small" width="500"> Url</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($result1))
{
?>
<tr class="values even">
<td class="small"><?php echo $rowSet['url_name'];?></td>
<td class="small-x"><?php echo $rowSet['urls'];?></td>
<td class="action-xxxx" style="width:10px; text-align:center;">
<a href="edit_url.php?id=<?php echo $rowSet['id']?>"> <img src="../images/edit-icon.png" alt="Edit" /> </a>
<a href="delete_urls.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 Urls Found";
}
?>
</table>
</div>