| Current Path : /home/bolconlineco/public_html/student/ |
| Current File : /home/bolconlineco/public_html/student/courseurl.php |
<?php
ob_start();
session_start();
?>
<?php include('header.php');?>
<?php
if(!isset($_SESSION['studentname']) || $_SESSION['studentrole'] != 4)
{
header("location:../index.php");
exit();
}
?>
<div id="content">
<div id="frm" style="width: 615px;float: left;">
<h3>Support Materials</h3>
<?php
$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());
if(mysql_num_rows($result) > 0)
{
?>
<table width="98%" border="0" cellspacing="0" style="margin:0 auto" cellpadding="0" class="tablestyle">
<tr id="title">
<th class="small">Name</th>
<th class="small-xx">Download</th>
</tr>
<?php
while($row=mysql_fetch_array($result))
{
?>
<tr class="values even">
<td class="small"><?php echo $row['material_name']; ?></td>
<td class="small-xx"><a href="download.php?uid=<?php echo $row['meterial_path']; ?>">Download</a></td>
</tr>
<?php
}
?>
</table>
<?php
}
?>
</div><!-- end row -->
<div id="frm" style="width: 524px;float: right;">
<h3>Url</h3>
<?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 width="98%" border="0" cellspacing="0" style="margin:0 auto" cellpadding="0" class="tablestyle">
<tr id="title">
<th class="small">Name</th>
<th class="small-xx">Link</th>
</tr>
<?php
while($row=mysql_fetch_array($result))
{
?>
<tr class="values even">
<td class="small"><?php echo $row['url_name']; ?></td>
<td class="small-xx"><a href="http://<?php echo $row['urls']; ?>" target="_new">View</a></td>
</tr>
<?php
}
?>
</table>
<?php
}
?>
</div><!-- end row -->
</div> <!-- end content -->
</div><!-- end wrapper -->
<?php include('../includes/footer.php');?>