Example #1
0
         }
     }
 } else {
     if ($subpage == "External Assessment") {
         if (isActionAccessible($guid, $connection2, "/modules/External Assessment/externalAssessment_details.php") == FALSE) {
             print "<div class='error'>";
             print _("Your request failed because you do not have access to this action.");
             print "</div>";
         } else {
             include "./modules/External Assessment/moduleFunctions.php";
             //Print assessments
             $gibbonYearGroupID = "";
             if (isset($row["gibbonYearGroupID"])) {
                 $gibbonYearGroupID = $row["gibbonYearGroupID"];
             }
             externalAssessmentDetails($guid, $gibbonPersonID, $connection2, $gibbonYearGroupID);
         }
     } else {
         if ($subpage == "Activities") {
             if (!isActionAccessible($guid, $connection2, "/modules/Activities/report_activityChoices_byStudent")) {
                 print "<div class='error'>";
                 print _("Your request failed because you do not have access to this action.");
                 print "</div>";
             } else {
                 print "<p>";
                 print _("This report shows the current and historical activities that a student has enroled in.");
                 print "</p>";
                 $dateType = getSettingByScope($connection2, 'Activities', 'dateType');
                 if ($dateType == "Term") {
                     $maxPerTerm = getSettingByScope($connection2, 'Activities', 'maxPerTerm');
                 }
            print "<span style='font-size: 115%; font-weight: bold'>" . _('Name') . "</span><br/>";
            print formatName("", $row["preferredName"], $row["surname"], "Student");
            print "</td>";
            print "<td style='width: 33%; vertical-align: top'>";
            print "<span style='font-size: 115%; font-weight: bold'>" . _('Year Group') . "</span><br/>";
            if ($row["yearGroup"] != "") {
                print _($row["yearGroup"]);
            }
            print "</td>";
            print "<td style='width: 34%; vertical-align: top'>";
            print "<span style='font-size: 115%; font-weight: bold'>" . _('Roll Group') . "</span><br/>";
            print $row["rollGroup"];
            print "</td>";
            print "</tr>";
            print "</table>";
            if ($highestAction == "External Assessment Data_manage") {
                print "<div class='linkTop'>";
                print "<a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . $_SESSION[$guid]["module"] . "/externalAssessment_manage_details_add.php&gibbonPersonID={$gibbonPersonID}&search={$search}&allStudents={$allStudents}'>" . _('Add') . "<img style='margin-left: 5px' title='" . _('Add') . "' src='./themes/" . $_SESSION[$guid]["gibbonThemeName"] . "/img/page_new.png'/></a>";
                print "</div>";
            }
            //Print assessments
            $manage = FALSE;
            if ($highestAction == "External Assessment Data_manage") {
                $manage = TRUE;
            }
            externalAssessmentDetails($guid, $gibbonPersonID, $connection2, "", $manage, $search, $allStudents);
            //Set sidebar
            $_SESSION[$guid]["sidebarExtra"] = getUserPhoto($guid, $row["image_240"], 240);
        }
    }
}