| Current Path : /var/www/cesa.co.za/cesanet/ |
| Current File : /var/www/cesa.co.za/cesanet/submittedactivities.php |
<?php
include("inc_functions.php");
if (!isset($_SESSION["StudentID"]) || empty($_SESSION["StudentID"])) header("Location: /cesanet/login.php");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>CESAnet</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<!--[if IE 5]>
<style type="text/css">
/* place css box model fixes for IE 5* in this conditional comment */
.twoColFixLtHdr #sidebar1 { width: 230px; }
</style>
<![endif]--><!--[if IE]>
<style type="text/css">
/* place css fixes for all versions of IE in this conditional comment */
.twoColFixLtHdr #sidebar1 { padding-top: 30px; }
.twoColFixLtHdr #mainContent { zoom: 1; }
/* the above proprietary zoom property gives IE the hasLayout it needs to avoid several bugs */
</style>
<![endif]-->
<style type="text/css">
<!--
.style2 {color: #FFFFFF}
-->
</style></head>
<body class="twoColFixLtHdr">
<div id="container">
<?php include("inc_header.php"); ?>
<?php include("inc_sidebar.php"); ?>
<div id="mainContent">
<h1>Activity Workbooks</h1>
<p><strong><a href="activityadd.php">Click here to upload a scanned activity workbook</a></strong></p>
<?php
$sql = "SELECT CCEStudentActivities.*, CCEActivities.WorkbookName, CCEActivities.RefNum
FROM (CCEActivities INNER JOIN CCEStudentActivities USING (CCEActivityID))
WHERE CCEStudentActivities.CCEStudentID=".$_SESSION["StudentID"]."
ORDER BY WorkbookName";
// echo $sql;
$rec = mysql_query($sql);
if (mysql_num_rows($rec) > 0) {
?>
<table border="1" cellpadding="2" cellspacing="0" width="700">
<tr><td width="250"><b>Module</b></td><td width="250"><b>Reference</b></td><td><b>File/s</b></td></tr>
<?php
while ($row = mysql_fetch_assoc($rec)) {
?>
<tr><td><?php echo $row["WorkbookName"]; ?></td>
<td><?php echo $row["RefNum"]; ?></td>
<td><?php
$uploaddir = '../cceadmin/activitiesupload/';
if (!empty($row["AssignmentFile1"])) echo "<a href='".$uploaddir.$row["AssignmentFile1"]."' target='_blank'>File 1</a><br>";
if (!empty($row["AssignmentFile2"])) echo "<a href='".$uploaddir.$row["AssignmentFile2"]."' target='_blank'>File 2</a><br>";
if (!empty($row["AssignmentFile3"])) echo "<a href='".$uploaddir.$row["AssignmentFile3"]."' target='_blank'>File 3</a><br>";
if (!empty($row["AssignmentFile4"])) echo "<a href='".$uploaddir.$row["AssignmentFile4"]."' target='_blank'>File 4</a><br>";
if (!empty($row["AssignmentFile5"])) echo "<a href='".$uploaddir.$row["AssignmentFile5"]."' target='_blank'>File 5</a><br>";
if (!empty($row["AssignmentFile6"])) echo "<a href='".$uploaddir.$row["AssignmentFile6"]."' target='_blank'>File 6</a><br>";
?>
</td></tr>
<?php
}
?>
</table>
<?php
} else {
echo "No activities have yet been uploaded.";
}
?>
<p> </p>
<p> </p>
</div>
<?php include("inc_footer.php"); ?>
</div>
</body>
</html>