APO-Epsilon / apo-website

Alpha Phi Omega's chapter management website
5 stars 7 forks source link

Make risk management quiz mandatory #17

Open racedale opened 9 years ago

racedale commented 9 years ago

This is the code from the old-layout:

$bother = ""; // The below code leaves a message at the top of the page for users who haven't to take the risk management quiz.

// if ($_SESSION['sessionID']) { // $user_id = $_SESSION['sessionID']; // $sql = "SELECT risk_management, status FROM contact_information WHERE id=$user_id LIMIT 1"; // $result = mysql_query($sql); // $row = mysql_fetch_array($result); // if (($row[risk_management] < "2010-10-01") and ($row[status] == "Active" OR $row[status] == "Associate")) { // $bother = "Please take the risk management quiz! TAKE TEST HERE!"; // } // }

racedale commented 9 years ago

Probably be better to check for < current_semester rather than a specific date. Also would be good to have it show as a pop-up alert.