| Current Path : /var/www/cesa.co.za/cesanet/ |
| Current File : /var/www/cesa.co.za/cesanet/inc_sidebar.php |
<?php
$examObj = new CCEExam($sqlf);
$testStudentIDs = getTestStudentIDs();
if (isset($_SESSION["StudentID"]) && !empty($_SESSION["StudentID"])) {
?>
<div id="sidebar1" class="col-sm-2 sidebar1 print-hide">
<!-- <p><a href="notices.php"><img src="images/book_open.png" width="16" height="16" border="0" align="left" /> Notice Board</a></p> -->
<?php
if (CurrentStudent()) {
?>
<p><a href="/cesanet/guideline.php"><img src="images/information.png" width="16" height="16" border="0"
align="left" /> Student Guideline</a></p>
<p><a href="/cesanet/calendar.php"><img src="images/calendar.png" width="16" height="16" border="0"
align="left" /> Trimester Dashboard</a></p>
<?php
}
if ($examObj->hasUpcomingVisibleExamForStudent($_SESSION["StudentID"], $testStudentIDs)) {
?>
<p><a href="index.php"><img src="images/house.png" width="16" height="16" border="0" align="left" /> Exam</a></p>
<?php
}
?>
<p><a href="library.php"><img src="images/book_open.png" width="16" height="16" border="0" align="left" /> Library</a></p>
<!-- <p><a href="resources.php"><img src="images/book_open.png" width="16" height="16" border="0" align="left" /> Resource Centre</a></p>
<p><a href="recommended.php"><img src="images/book_open.png" width="16" height="16" border="0" align="left" /> Recommended Reading</a></p>
<p><a href="templates.php"><img src="images/application_side_boxes.png" width="16" height="16" border="0" align="left" /> Templates</a></p>
<!-- <p><a href="submittedactivities.php"><img src="images/page_copy.png" width="16" height="16" border="0" align="left" /> Activities</a></p> -->
<?php
if ($examObj->hasExamBeenMarked($_SESSION["StudentID"]) && !isTestStudent($_SESSION["StudentID"])) {
?>
<p><a href="/cesanet/examresults.php"><img src="images/page_copy.png" width="16" height="16" border="0" align="left" /> Exam Results</a></p>
<?php
}
if (CurrentStudent()) {
?>
<p><a href="assignments.php"><img src="images/page_copy.png" width="16" height="16" border="0" align="left" /> Assignments / Activities</a></p>
<p><a href="progress_report.php"><img src="images/page_copy.png" width="16" height="16" border="0" align="left" /> Progress Report</a></p>
<!-- <p><a href="evaluations.php"><img src="images/page_copy.png" width="16" height="16" border="0" align="left" /> Evaluation Forms</a></p> -->
<!-- <p><a href="assigsummary.php"><img src="images/page_copy.png" width="16" height="16" border="0" align="left" /> Assignments Uploaded</a></p> -->
<p><a href="/cesanet/timetable.php"><img src="images/calendar.png" width="16" height="16" border="0"
align="left" /> Timetable</a></p>
<p><a href="contacts_students.php"><img src="images/group.png" width="16" height="16" border="0" align="left" /> Students</a></p>
<p><a href="contacts.php"><img src="images/group.png" width="16" height="16" border="0" align="left" /> Convenors, Facilitators<br> & Subject Experts</a></p>
<p><a href="messages.php"><img src="images/comment.png" width="16" height="16" border="0" align="left" /> Messages</a></p>
<!-- <p><a href="popups.php"><img src="images/comment.png" width="16" height="16" border="0" align="left" /> Past Popups</a></p>-->
<p><a href="profile.php"><img src="images/group.png" width="16" height="16" border="0" align="left" /> Your Details</a></p>
<p><a href="gallery.php"><img src="images/image.png" width="16" height="16" border="0" align="left" /> Photo Gallery</a></p>
<!-- -- >
<?php
$_SESSION["CESA_283_RespondeeName"] = $_SESSION["StudentFullName"];
$_SESSION["CESA_283_RespondeeEmail"] = $_SESSION["StudentEmail"];
?>
<p><a href="/questionnaire.php?id=9&qid=283" target="_blank"><img src="images/comment.png" width="16" height="16" border="0" align="left" /> BCE Evaluation</a></p>
<!-- -->
<?php
} else {
?>
<p><a href="feedbackmsgs.php"><img src="images/comment.png" width="16" height="16" border="0" align="left" /> Assignment Feedback</a></p>
<p><a href="submittedassignments.php"><img src="images/page_copy.png" width="16" height="16" border="0" align="left" /> Your Assignments</a></p>
<?php
}
?>
<p><a href="password.php"><img src="images/lock.png" width="16" height="16" border="0" align="left" /> Change Password</a></p>
<p><a href="logout.php"><img src="images/arrow_undo.png" width="16" height="16" border="0" align="left"> Logout</a></p>
</div>
<!-- <p class="boldblue">New Messages</p>-->
<?php
}
/*
$sql = "SELECT CCEMessages.* FROM CCEMessages, CCEMessagesSentTo
WHERE CCEMessages.CCEMessageID=CCEMessagesSentTo.CCEMessageID
AND CCEMessagesSentTo.SentType='Student'
AND CCEMessagesSentTo.SentID=" . $_SESSION["StudentID"] . "
AND CCEMessages.CCEMessageID NOT IN (SELECT CCEMessageID FROM CCEMessageLog WHERE ReadByType='Student' AND ReadByID=" . $_SESSION["StudentID"] . ")
AND CCEMessages.CCEMessageID NOT IN (SELECT CCEMessageID FROM CCEAssignmentFeedback)
ORDER BY SentDateTime DESC";
$rec = mysql_query($sql);
if (mysql_num_rows($rec) == 0) {
echo "<p>You have no new messages.</p>";
} else {
while ($row = mysql_fetch_assoc($rec)) {
?>
<tr><td>· <?php echo date("Y-m-d", strtotime($row["SentDateTime"])); ?>: <?php echo $row["MessageSubject"]; ?><br />
<a href="readmessage.php?id=<?php echo $row["CCEMessageID"]; ?>"><strong>Read Now</strong></a><br />
<br />
<?php
}
}
mysql_free_result($rec);
?>
<p class="boldblue">New Feedback</p>
<?php
$sql = "SELECT CCEMessages.*, CCEAssignments.RefNum, CCEAssignments.AssignmentName
FROM CCEMessages, CCEMessagesSentTo, CCEAssignmentFeedback, CCEStudentAssignments, CCEAssignments
WHERE CCEMessages.CCEMessageID=CCEMessagesSentTo.CCEMessageID
AND CCEMessages.CCEMessageID=CCEAssignmentFeedback.CCEMessageID
AND CCEAssignmentFeedback.CCEStudentAssigID=CCEStudentAssignments.CCEStudentAssigID
AND CCEStudentAssignments.CCEAssignmentID=CCEAssignments.CCEAssignmentID
AND CCEMessagesSentTo.SentType='Student'
AND CCEMessagesSentTo.SentID=" . $_SESSION["StudentID"] . "
AND CCEMessages.CCEMessageID NOT IN (SELECT CCEMessageID FROM CCEMessageLog WHERE ReadByType='Student' AND ReadByID=" . $_SESSION["StudentID"] . ")
ORDER BY SentDateTime DESC";
$rec = mysql_query($sql);
if (mysql_num_rows($rec) == 0) {
echo "<p>You have no new feedback.</p>";
} else {
while ($row = mysql_fetch_assoc($rec)) {
?>
<tr><td>· <?php echo date("Y-m-d", strtotime($row["SentDateTime"])); ?>: <?php echo $row["MessageSubject"]; ?><br />
<a href="readmessage.php?id=<?php echo $row["CCEMessageID"]; ?>"><strong>Read Now</strong></a><br />
<br />
<?php
}
}
mysql_free_result($rec);
?>
<p class="boldblue">Upcoming Important Dates</p>
<?php
if (CurrentStudent()) {
$sql = "SELECT CCESessions.CCESessionName, CCESessionSchedules.StartDate, CCESessionSchedules.EndDate
FROM CCESessions, CCESessionSchedules WHERE CCESessions.CCESessionID=CCESessionSchedules.CCESessionID
AND CCESessionSchedules.StartDate >= '" . date("Y-m-d") . "' ORDER BY StartDate ASC LIMIT 0,1";
$rec = mysql_query($sql);
if ($row = mysql_fetch_assoc($rec)) {
echo "<p>" . date("j M", strtotime($row["StartDate"])) . " - " . date("j M", strtotime($row["EndDate"])) . ": " . $row["CCESessionName"] . "</p>";
}
mysql_free_result($rec);
?>
<?php
$sql = "SELECT CCEAssignmentID, RefNum, AssignmentName, DueDate
FROM CCEAssignments WHERE DueDate >= '" . date("Y-m-d") . "' AND YEAR(DueDate)=YEAR(NOW())
AND ReleaseDate<='" . date("Y-m-d") . "'
AND CCEAssignments.Archived=0 ORDER BY DueDate ASC LIMIT 0,2";
$rec = mysql_query($sql);
while ($row = mysql_fetch_assoc($rec)) {
echo "<p>" . date("j M", strtotime($row["DueDate"])) . ": <a href='assignmentinfo.php?id=" . $row["CCEAssignmentID"] . "'>Assignment " . $row["RefNum"] . "</a> (" . $row["AssignmentName"] . ")</p>";
}
mysql_free_result($rec);
}
?>
<!-- end #sidebar1 -->
</div>
<?php
}
*
*/