// ******************************* // INCLUDE required.php // ******************************* include("/home/users/web/b2204/ipg.claudd03978/shared/required.php"); // ******************************* // PAGE VARS HERE $PAGE_TITLE = "home"; $SITE_SECTION = ""; // ******************************* // ******************************* // PAGE FUNCTIONS HERE // ******************************* // PAGE CONFIG END if ($setenglish != "") { $_SESSION['sessenglish'] = $setenglish; } ?> include("$SHARED_DIR/header.php"); ?>
if ($_SESSION['ouserlevel']!="unituser") { $sql = "SELECT * FROM officer"; switch ($_SESSION['ouserlevel']) { case "unitadmin": $sql .= " WHERE officerunitid='" . $_SESSION['ounitid'] . "' and officeruserlevelname='unituser' and officerofficeridwhoapproved=0"; break; case "fulladmin": $sql .= " WHERE officerofficeridwhoapproved=0"; break; } //print $sql; $db->query($sql); if ($db->nf()!=0) { print ""; translate('officers'); space(); translate('awaitingapproval'); print ""; } } ?> |