<?php require_once "header.php"; $pathinfo = pathinfo($_SERVER["PHP_SELF"]); $basename = $pathinfo["basename"]; $currentFile = str_replace(".php", "", $basename); $sound = isset($_GET['positive']) ? "positive" : ""; $sound = isset($_GET['negative']) ? "negative" : $sound; $batchsInSchool = BatchUser::getBatchsInSchool(CSNTRID); $usersinbatch = array(); $batchsIds = array(); if (count($batchsInSchool) > 0) { foreach ($batchsInSchool as $batchuser) { array_push($batchsIds, $batchuser->batchid); } } if (isset($_GET['sectionid'])) { $theusers = SectionUser::getUsersInSection($_GET['sectionid']); } else { if (isset($_GET['batchid'])) { $theusers = BatchUser::getUsersInBatch($_GET['batchid']); } else { if (isset($_GET['schoolid'])) { $theusers = SchoolUser::getUsersInSchool($_GET['schoolid']); } else { $theusers = SchoolUser::getUsersInSchool(CSNTRID); } } } ?>