| Current Path : /var/www/cesa.co.za/cceconvenors/ |
| Current File : /var/www/cesa.co.za/cceconvenors/assignmentinfo.php |
<?php
session_start(); // Initialize Session data
ob_start(); // Turn on output buffering
?>
<?php include "ewcfg7.php" ?>
<?php include "ewmysql7.php" ?>
<?php include "phpfn7.php" ?>
<?php include "CCEAssignmentsinfo.php" ?>
<?php include "userfn7.php" ?>
<?php
if (!isset($_SESSION[EW_SESSION_STATUS]) || ($_SESSION[EW_SESSION_STATUS] != "login")) {
header("Location: https://www.cesa.co.za/cceconvenors/login.php");
die();
}
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); // Always modified
header("Cache-Control: private, no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
?>
<?php include "header.php" ?>
<style type="text/css">
<!--
.style1 {
color: #FF3333;
font-weight: bold;
}
.style2 {
color: #FF0033;
font-weight: bold;
}
.style3 {
font-size: 14px;
font-weight: bold;
}
-->
</style>
<p><a href='assignments.php'><b><< Return to Assignments / Activities list</b></a></p>
<?php
$conn = mysqli_connect(EW_CONN_HOST, EW_CONN_USER, EW_CONN_PASS, EW_CONN_DB);
$sAllowedTags = "<p><br><br /><ul><li><h1><h2><strong><b><i><em><ol>";
$sql = "SELECT DISTINCT CCEAssignments.*, CCEModules.ModuleNum, CCEModules.ModuleName, CCEFacilitators.* FROM CCEAssignments INNER JOIN (CCEModules INNER JOIN CCEModuleSchedules USING (CCEModuleID)) USING (CCEModuleID) INNER JOIN CCEFacilitators USING (FacilitatorID)
WHERE CCEAssignmentID=" . $_GET["id"];
$rec = mysqli_query($conn, $sql);
if ($row = mysqli_fetch_assoc($rec)) {
if (false && ($_SESSION["StudentID"] != 54) && (strtotime($row["ReleaseDate"]) > mktime(0))) {
echo $row["RefNum"] . " will be available from " . $row["ReleaseDate"];
} else {
$html = '
<table width="700" border="1" cellspacing="0" cellpadding="20">
<tr>
<td valign="top" width="50%"><span style="color: #FF3333;font-weight: bold;">Ref: ' . $row["RefNum"] . '</span></td>
<td valign="top" width="50%"><span style="color: #FF0033;font-weight: bold;">Where it fits:<br />
Module ' . $row["ModuleNum"] . ': ' . $row["ModuleName"] . '</span></td>
</tr>
<tr>
<td colspan="2" valign="top"><span style="font-size: 14px;font-weight: bold;">Title: ' . $row["AssignmentName"] . '</span><br><br>';
if (!empty($row["AssignmentPDF"])) {
$html .= "<a href=\"https://www.cesa.co.za/cceadmin/assignments/" . $row["AssignmentPDF"];
$html .= '" target="_blank">Download ';
if ($row["AssigType"] == 0) {
$html .= "Assignment";
} elseif ($row["AssigType"] == 1) {
$html .= "Activity";
} elseif ($row["AssigType"] == 2) {
$html .= "Assignment / Activity";
}
$html .= ' Information File</a><br>';
}
$html .= '
</td>
</tr>
';
$html .= '
<tr>
<td colspan="2" valign="top"><strong>Module Convenor: ' . $row["FacilitatorName"] . ' (' . $row["Qualifications"] . ')</strong>
</td>
</tr>
</table>';
echo $html;
}
}
?>
<?php include("footer.php"); ?>