it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); //Module includes include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php"; if (isActionAccessible($guid, $connection2, "/modules/Planner/planner_view_full_submit_edit.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Get action with highest precendence $highestAction = getHighestGroupedAction($guid, $_GET["q"], $connection2); if ($highestAction == FALSE) { print "<div class='error'>"; print _("The highest grouped action cannot be determined."); print "</div>"; } else { $viewBy = $_GET["viewBy"]; $subView = $_GET["subView"]; if ($viewBy != "date" and $viewBy != "class") {
include '../../functions.php'; include '../../config.php'; //New PDO DB connection try { $connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword); $connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } @session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]['timezone']); $gibbonSchoolYearID = $_POST['gibbonSchoolYearID']; $URL = $_SESSION[$guid]['absoluteURL'] . '/index.php?q=/modules/' . getModuleName($_POST['address']) . '/badges_grant_add.php&gibbonPersonID2=' . $_GET['gibbonPersonID2'] . '&badgesBadgeID2=' . $_GET['badgesBadgeID2'] . "&gibbonSchoolYearID={$gibbonSchoolYearID}"; if (isActionAccessible($guid, $connection2, '/modules/Badges/badges_grant_add.php') == false) { //Fail 0 $URL .= '&return=error0'; header("Location: {$URL}"); } else { //Proceed! if (isset($_POST['gibbonPersonIDMulti'])) { $gibbonPersonIDMulti = $_POST['gibbonPersonIDMulti']; } else { $gibbonPersonIDMulti = null; } $badgesBadgeID = $_POST['badgesBadgeID']; $date = $_POST['date']; $comment = $_POST['comment']; if ($gibbonPersonIDMulti == null or $date == '' or $badgesBadgeID == '' or $gibbonSchoolYearID == '') { //Fail 3
the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); $_SESSION[$guid]["report_student_emergencySummary.php_choices"] = ""; //Module includes include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php"; if (isActionAccessible($guid, $connection2, "/modules/Library/report_catalogSummary.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > </div><div class='trailEnd'>" . _('Catalog Summary') . "</div>"; print "</div>"; print "<h3>"; print _("Search & Filter"); print "</h3>"; //Get current filter values $ownershipType = NULL; if (isset($_POST["ownershipType"])) {
@session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]['timezone']); //Search & Filters $search = null; if (isset($_GET['search'])) { $search = $_GET['search']; } $filter2 = null; if (isset($_GET['filter2'])) { $filter2 = $_GET['filter2']; } $visualAssessmentGuideID = $_POST['visualAssessmentGuideID']; $URL = $_SESSION[$guid]['absoluteURL'] . '/index.php?q=/modules/' . getModuleName($_POST['address']) . "/guides_manage_delete.php&visualAssessmentGuideID={$visualAssessmentGuideID}&search={$search}&filter2={$filter2}"; $URLDelete = $_SESSION[$guid]['absoluteURL'] . '/index.php?q=/modules/' . getModuleName($_POST['address']) . "/guides_manage.php&search={$search}&filter2={$filter2}"; if (isActionAccessible($guid, $connection2, '/modules/Visual Assessment/guides_manage_delete.php') == false) { //Fail 0 $URL .= '&return=error0'; header("Location: {$URL}"); } else { //Get action with highest precendence $highestAction = getHighestGroupedAction($guid, $_POST['address'], $connection2); if ($highestAction == false) { //Fail2 $URL .= '&return=error2'; header("Location: {$URL}"); } else { if ($highestAction != 'Manage Assessment Guides_all' and $highestAction != 'Manage Assessment Guides_myDepartments') { //Fail 0 $URL .= '&return=error0'; header("Location: {$URL}");
it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); //Module includes include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php"; if (isActionAccessible($guid, $connection2, "/modules/School Admin/externalAssessments_manage_edit.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/externalAssessments_manage.php'>" . _('Manage External Assessments') . "</a> > </div><div class='trailEnd'>" . _('Edit External Assessment') . "</div>"; print "</div>"; if (isset($_GET["updateReturn"])) { $updateReturn = $_GET["updateReturn"]; } else { $updateReturn = ""; } $updateReturnMessage = "";
try { $connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword); $connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } @session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]["timezone"]); $value = $_POST["value"]; $descriptor = $_POST["descriptor"]; $sequenceNumber = $_POST["sequenceNumber"]; $gibbonScaleID = $_POST["gibbonScaleID"]; $URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/gradeScales_manage_edit_grade_add.php&gibbonScaleID={$gibbonScaleID}"; if (isActionAccessible($guid, $connection2, "/modules/School Admin/gradeScales_manage_edit_grade_add.php") == FALSE) { //Fail 0 $URL .= "&addReturn=fail0"; header("Location: {$URL}"); } else { //Proceed! //Validate Inputs if ($gibbonScaleID == "" or $value == "" or $descriptor == "" or $sequenceNumber == "") { //Fail 3 $URL .= "&addReturn=fail3"; header("Location: {$URL}"); } else { //Check unique inputs for uniquness try { $data = array("value" => $value, "sequenceNumber" => $sequenceNumber, "gibbonScaleID" => $gibbonScaleID); $sql = "SELECT * FROM gibbonScaleGrade WHERE ((value=:value) OR (sequenceNumber=:sequenceNumber)) AND gibbonScaleID=:gibbonScaleID";
it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); //Module includes include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php"; if (isActionAccessible($guid, $connection2, "/modules/Timetable/report_viewAvailableSpaces.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > </div><div class='trailEnd'>" . _('View Available Spaces') . "</div>"; print "</div>"; print "<h2>"; print _("Choose Options"); print "</h2>"; $gibbonTTID = NULL; if (isset($_GET["gibbonTTID"])) { $gibbonTTID = $_GET["gibbonTTID"]; }
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); if (isActionAccessible($guid, $connection2, "/modules/User Admin/userFields_delete.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/User Admin/userFields.php'>" . _('Manage Custom Fields') . "</a> > </div><div class='trailEnd'>" . _('Delete Custom Field') . "</div>"; print "</div>"; if (isset($_GET["deleteReturn"])) { $deleteReturn = $_GET["deleteReturn"]; } else { $deleteReturn = ""; } $deleteReturnMessage = "";
it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); //Module includes include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php"; if (isActionAccessible($guid, $connection2, "/modules/Markbook/markbook_edit_targets.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { $highestAction = getHighestGroupedAction($guid, $_GET["q"], $connection2); if ($highestAction == FALSE) { print "<div class='error'>"; print _("The highest grouped action cannot be determined."); print "</div>"; } else { //Check if school year specified $gibbonCourseClassID = $_GET["gibbonCourseClassID"]; if ($gibbonCourseClassID == "") { print "<div class='error'>";
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); if (isActionAccessible($guid, $connection2, "/modules/User Admin/family_manage_edit_editChild.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/User Admin/family_manage.php'>" . _('Manage Families') . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/User Admin/family_manage_edit.php&gibbonFamilyID=" . $_GET["gibbonFamilyID"] . "'>" . _('Edit Family') . "</a> > </div><div class='trailEnd'>" . _('Edit Child') . "</div>"; print "</div>"; if (isset($_GET["updateReturn"])) { $updateReturn = $_GET["updateReturn"]; } else { $updateReturn = ""; } $updateReturnMessage = "";
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); if (isActionAccessible($guid, $connection2, "/modules/School Admin/schoolYearTerm_manage_add.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/schoolYearTerm_manage.php'>" . _('Manage Terms') . "</a> > </div><div class='trailEnd'>" . _('Add Term') . "</div>"; print "</div>"; if (isset($_GET["addReturn"])) { $addReturn = $_GET["addReturn"]; } else { $addReturn = ""; } $addReturnMessage = "";
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); if (isActionAccessible($guid, $connection2, "/modules/Timetable Admin/course_manage_class_add.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/course_manage.php&gibbonSchoolYearID=" . $_GET["gibbonSchoolYearID"] . "'>" . _('Manage Courses & Classes') . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/course_manage_edit.php&gibbonCourseID=" . $_GET["gibbonCourseID"] . "&gibbonSchoolYearID=" . $_GET["gibbonSchoolYearID"] . "'>" . _('Edit Course & Classes') . "</a> > </div><div class='trailEnd'>" . _('Add Class') . "</div>"; print "</div>"; if (isset($_GET["addReturn"])) { $addReturn = $_GET["addReturn"]; } else { $addReturn = ""; } $addReturnMessage = "";
*/ include "../../functions.php"; include "../../config.php"; //New PDO DB connection try { $connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword); $connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } @session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]["timezone"]); $URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/externalAssessmentSettings.php"; if (isActionAccessible($guid, $connection2, "/modules/School Admin/alertLevelSettings.php") == FALSE) { //Fail 0 $URL .= "&updateReturn=fail0"; header("Location: {$URL}"); } else { $gibbonYearGroupID = $_POST["gibbonYearGroupID"]; $gibbonExternalAssessmentID = $_POST["gibbonExternalAssessmentID"]; if (isset($_POST["category"])) { $category = $_POST["category"]; } $count = 0; $primaryExternalAssessmentByYearGroup = array(); foreach ($gibbonYearGroupID as $year) { if (isset($gibbonExternalAssessmentID[$count]) and isset($category[$count]) and $category[$count] != "") { $primaryExternalAssessmentByYearGroup[$year] = $gibbonExternalAssessmentID[$count] . "-" . $category[$count]; } else {
it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); //Module includes include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php"; if (isActionAccessible($guid, $connection2, "/modules/Students/report_rollGroupSummary.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > </div><div class='trailEnd'>" . _('Roll Group Summary') . "</div>"; print "</div>"; $today = time(); //Get roll groups in current school year try { $data = array("gibbonSchoolYearID" => $_SESSION[$guid]["gibbonSchoolYearID"]); $sql = "SELECT * FROM gibbonRollGroup WHERE gibbonSchoolYearID=:gibbonSchoolYearID ORDER BY name"; $result = $connection2->prepare($sql);
$connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } @session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]["timezone"]); $name = $_POST["name"]; $nameShort = $_POST["nameShort"]; $timeStart = $_POST["timeStart"]; $timeEnd = $_POST["timeEnd"]; $type = $_POST["type"]; $gibbonTTColumnID = $_POST["gibbonTTColumnID"]; $URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/ttColumn_edit_row_add.php&gibbonTTColumnID={$gibbonTTColumnID}"; if (isActionAccessible($guid, $connection2, "/modules/Timetable Admin/ttColumn_edit_row_add.php") == FALSE) { //Fail 0 $URL .= "&addReturn=fail0"; header("Location: {$URL}"); } else { //Proceed! //Validate Inputs if ($gibbonTTColumnID == "" or $name == "" or $nameShort == "" or $timeStart == "" or $timeEnd == "" or $type == "") { //Fail 3 $URL .= "&addReturn=fail3"; header("Location: {$URL}"); } else { //Check unique inputs for uniquness try { $data = array("name" => $name, "nameShort" => $nameShort, "gibbonTTColumnID" => $gibbonTTColumnID); $sql = "SELECT * FROM gibbonTTColumnRow WHERE ((name=:name) OR (nameShort=:nameShort)) AND gibbonTTColumnID=:gibbonTTColumnID";
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); if (isActionAccessible($guid, $connection2, "/modules/Timetable Admin/courseEnrolment_manage_byPerson_edit.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! //Check if school year specified $gibbonPersonID = $_GET["gibbonPersonID"]; $gibbonSchoolYearID = $_GET["gibbonSchoolYearID"]; $type = $_GET["type"]; $allUsers = ""; if (isset($_GET["allUsers"])) { $allUsers = $_GET["allUsers"]; } $search = "";
it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); //Module includes include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php"; if (isActionAccessible($guid, $connection2, "/modules/Activities/report_activityChoices_byStudent.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > </div><div class='trailEnd'>" . _('Activity Choices By Student') . "</div>"; print "</div>"; print "<h2>"; print _("Choose Student"); print "</h2>"; $gibbonPersonID = NULL; if (isset($_GET["gibbonPersonID"])) { $gibbonPersonID = $_GET["gibbonPersonID"];
include "../../functions.php"; include "../../config.php"; //New PDO DB connection try { $connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword); $connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } @session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]["timezone"]); $gibbonFinanceExpenseApproverID = $_GET["gibbonFinanceExpenseApproverID"]; $URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/expenseApprovers_manage_edit.php&gibbonFinanceExpenseApproverID=" . $gibbonFinanceExpenseApproverID; if (isActionAccessible($guid, $connection2, "/modules/Finance/expenseApprovers_manage_edit.php") == FALSE) { //Fail 0 $URL .= "&updateReturn=fail0"; header("Location: {$URL}"); } else { //Proceed! //Check if school year specified if ($gibbonFinanceExpenseApproverID == "") { //Fail1 $URL .= "&updateReturn=fail1"; header("Location: {$URL}"); } else { try { $data = array("gibbonFinanceExpenseApproverID" => $gibbonFinanceExpenseApproverID); $sql = "SELECT * FROM gibbonFinanceExpenseApprover WHERE gibbonFinanceExpenseApproverID=:gibbonFinanceExpenseApproverID"; $result = $connection2->prepare($sql);
*/ include "../../functions.php"; include "../../config.php"; //New PDO DB connection try { $connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword); $connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } @session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]["timezone"]); $URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/userSettings.php"; if (isActionAccessible($guid, $connection2, "/modules/User Admin/userSettings.php") == FALSE) { //Fail 0 $URL .= "&updateReturn=fail0"; header("Location: {$URL}"); } else { //Proceed! $ethnicity = $_POST["ethnicity"]; $nationality = $_POST["nationality"]; $residencyStatus = $_POST["residencyStatus"]; $departureReasons = $_POST["departureReasons"]; $privacy = $_POST["privacy"]; $privacyBlurb = $_POST["privacyBlurb"]; $privacyOptions = $_POST["privacyOptions"]; $personalBackground = $_POST["personalBackground"]; $dayTypeOptions = $_POST["dayTypeOptions"]; $dayTypeText = $_POST["dayTypeText"];
include "../../functions.php"; include "../../config.php"; //New PDO DB connection try { $connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword); $connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } @session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]["timezone"]); $gibbonPersonID = $_GET["gibbonPersonID"]; $URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/data_medical.php&gibbonPersonID={$gibbonPersonID}"; if (isActionAccessible($guid, $connection2, "/modules/Data Updater/data_medical.php") == FALSE) { //Fail 0 $URL .= "&updateReturn=fail0"; header("Location: {$URL}"); } else { $highestAction = getHighestGroupedAction($guid, $_POST["address"], $connection2); if ($highestAction == FALSE) { //Fail 0 $URL .= "&updateReturn=fail0{$params}"; header("Location: {$URL}"); } else { //Proceed! //Check if school year specified if ($gibbonPersonID == "") { //Fail1 $URL .= "&updateReturn=fail1";
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); if (isActionAccessible($guid, $connection2, "/modules/School Admin/daysOfWeek_manage.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > </div><div class='trailEnd'>" . _('Manage Alert Levels') . "</div>"; print "</div>"; if (isset($_GET["updateReturn"])) { $updateReturn = $_GET["updateReturn"]; } else { $updateReturn = ""; } $updateReturnMessage = "";
include "../../functions.php"; include "../../config.php"; //New PDO DB connection try { $connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword); $connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } //Module includes include $_SESSION[$guid]["absolutePath"] . "/modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php"; //Setup variables $output = ""; $id = $_GET["id"]; if (isActionAccessible($guid, $connection2, "/modules/Library/library_manage_catalog_add.php") == FALSE) { //Acess denied $output .= "<div class='error'>"; $output .= _("Your request failed because you do not have access to this action."); $output .= "</div>"; } else { try { $data = array("gibbonLibraryTypeID" => $id); $sql = "SELECT * FROM gibbonLibraryType WHERE gibbonLibraryTypeID=:gibbonLibraryTypeID AND active='Y' ORDER BY name"; $result = $connection2->prepare($sql); $result->execute($data); } catch (PDOException $e) { } if ($result->rowCount() != 1) { $output .= "<div class='error'>"; $output .= _("The specified recod cannot be found.");
*/ include "../../functions.php"; include "../../config.php"; //New PDO DB connection try { $connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword); $connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } @session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]["timezone"]); $URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/alarm.php"; if (isActionAccessible($guid, $connection2, "/modules/System Admin/alarm.php") == FALSE) { //Fail 0 $URL .= "&updateReturn=fail0"; header("Location: {$URL}"); } else { //Proceed! $alarm = $_POST["alarm"]; $attachmentCurrent = $_POST["attachmentCurrent"]; $alarmCurrent = $_POST["alarmCurrent"]; //Validate Inputs if ($alarm != "None" and $alarm != "General" and $alarm != "Lockdown" and $alarm != "Custom" and $alarmCurrent != "") { //Fail 3 $URL .= "&updateReturn=fail3"; header("Location: {$URL}"); } else { $fail = FALSE;
} @session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]["timezone"]); //Search & Filters $search = NULL; if (isset($_GET["search"])) { $search = $_GET["search"]; } $filter2 = NULL; if (isset($_GET["filter2"])) { $filter2 = $_GET["filter2"]; } $gibbonRubricID = $_GET["gibbonRubricID"]; $URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/rubrics_duplicate.php&gibbonRubricID={$gibbonRubricID}&search={$search}&filter2={$filter2}"; if (isActionAccessible($guid, $connection2, "/modules/Rubrics/rubrics_duplicate.php") == FALSE) { //Fail 0 $URL .= "&updateReturn=fail0"; header("Location: {$URL}"); } else { $highestAction = getHighestGroupedAction($guid, $_POST["address"], $connection2); if ($highestAction == FALSE) { //Fail2 $URL .= "&updateReturn=fail2"; header("Location: {$URL}"); } else { if ($highestAction != "Manage Rubrics_viewEditAll" and $highestAction != "Manage Rubrics_viewAllEditLearningArea") { //Fail 0 $URL .= "&updateReturn=fail0"; header("Location: {$URL}"); } else {
include "../../config.php"; //New PDO DB connection try { $connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword); $connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } @session_start(); $enableDescriptors = getSettingByScope($connection2, "Behaviour", "enableDescriptors"); $enableLevels = getSettingByScope($connection2, "Behaviour", "enableLevels"); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]["timezone"]); $URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/behaviour_manage_addMulti.php&gibbonPersonID=" . $_GET["gibbonPersonID"] . "&gibbonRollGroupID=" . $_GET["gibbonRollGroupID"] . "&gibbonYearGroupID=" . $_GET["gibbonYearGroupID"] . "&type=" . $_GET["type"]; if (isActionAccessible($guid, $connection2, "/modules/Behaviour/behaviour_manage_add.php") == FALSE) { //Fail 0 $URL .= "&addReturn=fail0"; header("Location: {$URL}"); } else { //Proceed! if (isset($_POST["gibbonPersonIDMulti"])) { $gibbonPersonIDMulti = $_POST["gibbonPersonIDMulti"]; } else { $gibbonPersonIDMulti = NULL; } $date = $_POST["date"]; $type = $_POST["type"]; $descriptor = NULL; if (isset($_POST["descriptor"])) { $descriptor = $_POST["descriptor"];
include "../../functions.php"; include "../../config.php"; //New PDO DB connection try { $connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword); $connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } @session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]["timezone"]); $URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/resources_manage_add.php&search=" . $_GET["search"]; $time = time(); if (isActionAccessible($guid, $connection2, "/modules/Resources/resources_manage_add.php") == FALSE) { //Fail 0 $URL .= "&addReturn=fail0"; header("Location: {$URL}"); } else { if (empty($_POST)) { //Fail 5 $URL .= "&addReturn=fail5"; header("Location: {$URL}"); } else { $highestAction = getHighestGroupedAction($guid, $_POST["address"], $connection2); if ($highestAction == FALSE) { //Fail 0 $URL .= "&updateReturn=fail0"; header("Location: {$URL}"); } else {
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); if (isActionAccessible($guid, $connection2, "/modules/User Admin/medicalForm_manage_add.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/User Admin/medicalForm_manage.php'>" . _('Manage Medical Forms') . "</a> > </div><div class='trailEnd'>" . _('Add Medical Form') . "</div>"; print "</div>"; if (isset($_GET["addReturn"])) { $addReturn = $_GET["addReturn"]; } else { $addReturn = ""; } $addReturnMessage = "";
it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); //Module includes include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php"; if (isActionAccessible($guid, $connection2, "/modules/Finance/invoices_manage_add.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/Finance/invoices_manage.php&gibbonSchoolYearID=" . $_GET["gibbonSchoolYearID"] . "'>" . _('Manage Invoices') . "</a> > </div><div class='trailEnd'>" . _('Add Fees & Invoices') . "</div>"; print "</div>"; if (isset($_GET["addReturn"])) { $addReturn = $_GET["addReturn"]; } else { $addReturn = ""; } $addReturnMessage = "";
include "../../functions.php"; include "../../config.php"; //New PDO DB connection try { $connection2 = new PDO("mysql:host={$databaseServer};dbname={$databaseName};charset=utf8", $databaseUsername, $databasePassword); $connection2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $connection2->setAttribute(PDO::ATTR_DEFAULT_FETCH_MODE, PDO::FETCH_ASSOC); } catch (PDOException $e) { echo $e->getMessage(); } @session_start(); //Set timezone from session variable date_default_timezone_set($_SESSION[$guid]["timezone"]); $gibbonModuleID = $_GET["gibbonModuleID"]; $URL = $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_POST["address"]) . "/module_manage_edit.php&gibbonModuleID=" . $gibbonModuleID; if (isActionAccessible($guid, $connection2, "/modules/System Admin/module_manage_edit.php") == FALSE) { //Fail 0 $URL .= "&updateReturn=fail0"; header("Location: {$URL}"); } else { //Proceed! //Check if role specified if ($gibbonModuleID == "") { //Fail1 $URL .= "&updateReturn=fail1"; header("Location: {$URL}"); } else { try { $data = array("gibbonModuleID" => $gibbonModuleID); $sql = "SELECT * FROM gibbonModule WHERE gibbonModuleID=:gibbonModuleID"; $result = $connection2->prepare($sql);
the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ @session_start(); $_SESSION[$guid]["report_student_emergencySummary.php_choices"] = ""; //Module includes include "./modules/" . $_SESSION[$guid]["module"] . "/moduleFunctions.php"; if (isActionAccessible($guid, $connection2, "/modules/Students/report_student_emergencySummary.php") == FALSE) { //Acess denied print "<div class='error'>"; print _("You do not have access to this action."); print "</div>"; } else { //Proceed! print "<div class='trail'>"; print "<div class='trailHead'><a href='" . $_SESSION[$guid]["absoluteURL"] . "'>" . _("Home") . "</a> > <a href='" . $_SESSION[$guid]["absoluteURL"] . "/index.php?q=/modules/" . getModuleName($_GET["q"]) . "/" . getModuleEntry($_GET["q"], $connection2, $guid) . "'>" . _(getModuleName($_GET["q"])) . "</a> > </div><div class='trailEnd'>" . _('Student Emergency Data Summary') . "</div>"; print "</div>"; print "<p>"; print _("This report prints a summary of emergency data for the selected students. In case of emergency, please try to contact parents first, and if they cannot be reached then contact the listed emergency contacts."); print "</p>"; print "<h2>"; print _("Choose Students"); print "</h2>";