require_once "../shared/common.php"; $tab = "circulation"; $restrictToMbrAuth = TRUE; $nav = "schoolDelete"; require_once "../shared/logincheck.php"; require_once "../classes/School.php"; require_once "../classes/SchoolQuery.php"; require_once "../classes/Localize.php"; $loc = new Localize(OBIB_LOCALE, $tab); $sclid = $_GET["sclid"]; #**************************************************************************** #* Getting school name #**************************************************************************** $sclQ = new SchoolQuery(); $sclQ->connect(); $scl = $sclQ->get($sclid); $sclQ->close(); $sclName = $scl->getSchoolName(); #**************************************************************************** #* Getting checkout count #**************************************************************************** $sclQ = new SchoolQuery(); $sclQ->connect(); $deleteConfirm = $sclQ->deleteConfirm($sclid); $sclQ->close(); #************************************************************************** #* Show confirm page #************************************************************************** require_once "../shared/header.php"; if (!$deleteConfirm) { ?>
function getSchoolCode($schoolid) { $sclq = new SchoolQuery(); $sclq->connect(); $school = $sclq->get($schoolid); return $school->getSchoolCode(); }