| Current Path : /home/bolconlineco/public_html/aaaaaa/demo/student/ |
| Current File : /home/bolconlineco/public_html/aaaaaa/demo/student/dashboard.php |
<?php
ob_start();
session_start();
?>
<script src="//cdn.datatables.net/1.10.9/js/jquery.dataTables.min.js" type="text/javascript" charset="utf-8"></script>
<link rel="stylesheet" href="//cdn.datatables.net/1.10.9/css/jquery.dataTables.min.css">
<?php include('header.php');?>
<?php
if(!isset($_SESSION['studentname'])&& $_SESSION['studentrole'] != 4)
{
header("location:../index.php");
exit();
}
?>
<?php
if(isset($_GET['msg']))
{
echo "<div class='errors'>". $_GET['msg']."</div>";
}
if(isset($_GET['err']))
{
?>
<div class="errors">Select A valid type</div>
<?php
}
?>
<div id="content">
<div id="frm">
<h3>Student Assignemnts</h3>
<?php
$rollno=$_SESSION['rollno'];
?>
<?php
//$query="select * from studentassignment where AssignmentStatus=1 and rollno=$rollno";
$query="select * from studentassignment where rollno=$rollno";
$result=mysql_query($query) or die(mysql_error());
if(mysql_num_rows($result) > 0)
{
?>
<p style="font-family:Georgia, 'Times New Roman', Times, serif; color:#666; font-size:15px; padding-bottom:5px;">Download study materials and assignments here. Upload the solved assignments.</p>
<table width="98%" border="0" cellspacing="0" cellpadding="0" id="mytable1" class="tablestyle" style="margin:0 auto;" > <thead>
<tr id="title">
<th class="small" style="padding-left:10px;">Topic Name</th>
<th class="small-xx" style="padding-left:10px;">Issue Date</th>
<th class="small-xx" style="padding-left:10px;">Study Materials</th>
<th class="small-x" style="padding-left:10px;">Download Assignment</th>
<th class="small-xx" style="padding-left:10px;">Upload Assignment </th>
</tr>
</thead>
<tbody>
<?php
while($row=mysql_fetch_array($result))
{
$query3="select topicName from topic where topicid=".$row['topicId'];
$result3=mysql_query($query3) or die(mysql_error());
$rSet=mysql_fetch_array($result3);
$date1=strtotime($row['issuedate']);
$q2="select * from topicstudy where topicId=".$row['topicId']." and courseId=".$row['courseId'];
$result1=mysql_query($q2) or die(mysql_error());
$res=mysql_query("select * from topicassignment where courseId=".$row['courseId']." and topicId=".$row['topicId']) or die(mysql_error());
$rowSet=mysql_fetch_array($res);
?>
<tr class="values even">
<td class="small"><?php echo $rSet['topicName']; ?></td>
<td class="small-xx"><?php echo date('d/m/Y',strtotime($row['issuedate']));?></td>
<td class="small-xx"><?php
if(mysql_num_rows($result1) > 0)
{
$fet=mysql_fetch_array($result1);
?>
<a href="download.php?sm=<?php echo $fet['path'];?>"><img src="../images/btn_03_02.png" /></a>
<?php
}
?></td>
<td class="small-xx">
<a href="download.php?download_file=<?php echo $rowSet['path'];?>"><img src="../images/btn_03_02.png" /></a></td>
<td class="small-xx">
<?php
if($row['AssignmentStatus']==1)
{
?>
<a href="upload.php?courseId=<?php echo $row['courseId'];?>&topicId=<?php echo $row['topicId'];?>&id=<?php echo $row['SAid']; ?> & rollno=<?php echo $rollno; ?>">Upload</a>
<?php
}
?>
</td>
</tr>
<?php
}
}
else
{
echo "No New Assignment";
}
?>
<hr />
</tbody>
</table>
<script>
$(document).ready(function(){
$('#mytable1').dataTable({bFilter: false, bInfo: false, "bLengthChange": false});
});
</script>
</div><!-- end row -->
</div> <!-- end content -->
</div><!-- end wrapper -->
<?php include('../includes/footer.php');?>