Your IP : 216.73.217.79


Current Path : /var/www/cesa.co.za/cesanet/
Upload File :
Current File : /var/www/cesa.co.za/cesanet/assignmentinfo.php

<?php
include("inc_functions.php");

//ini_set('display_errors', 1);
//error_reporting(E_ALL);

if (!isset($_SESSION["StudentID"]) || empty($_SESSION["StudentID"]) || $_SESSION["StudentID"] == null)
    header("Location: /cesanet/login.php");

include_once($_SERVER['DOCUMENT_ROOT'] . "/cesanet/includes/html_begin.php");
?>
<p><a href='assignments.php'><b>&lt;&lt;&nbsp;Return to Assignments / Activities list</b></a></p>
<?php
$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"];

// echo 'Please ignore debug info: ' . $sql . '<br />';

$rec = mysql_query($sql);
if ($row = mysql_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>';
        }
        if (($row["AssigType"] == 0) || ($row["AssigType"] == 2))
            $html .= '<a href="assignmentadd.php?id=' . $_GET["id"] . '">Upload Your Assignment</a><br />';

        $html .= '
        </td>
      </tr>
	  ';
        $html .= '
      <tr>
        <td colspan="2" valign="top"><strong>Module Convenor: ' . $row["FacilitatorName"] . ' (' . $row["Qualifications"] . ')</strong><br />
    <a href="modcontact.php?id=' . $row["CCEModuleID"] . '&amp;facilitator=' . $row["FacilitatorID"] . '">send ' . $row["FacilitatorName"] . ' a message</a>
</td>
      </tr>
    </table>';

        echo $html;
    }
}
?>
<p>&nbsp;</p>
<p>&nbsp;</p>
</div>
<?php include("inc_footer.php"); ?>
</div>
</body>
</html>