Commit | Line | Data |
---|---|---|
ab9579ec | 1 | <?PHP |
e18f6dbc PM |
2 | include_once('../slack.php'); |
3 | include_once('security.php'); | |
4 | if ($_COOKIE['level'] == 'user'){ | |
5 | slack_general('ADMIN: Redirect User Home ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition'); | |
6 | header('Location: user_home.php'); | |
7 | } | |
8 | include_once('header.php'); | |
9 | slack_general('ADMIN: Manager Home Page Loaded ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition'); | |
4c528808 PM |
10 | $group_id = $_COOKIE['group_id']; |
11 | ?> | |
12 | <h1>Managers</h1> | |
13 | <?PHP | |
14 | $q="SELECT * FROM users where sec_level = 'manager' and group_id = '$group_id'"; | |
15 | $r = $petition->query($q); | |
16 | while($d = mysqli_fetch_array($r)){ | |
297ce7cc | 17 | echo "<li>$d[email] $d[name]</li>"; |
4c528808 PM |
18 | } |
19 | ?> | |
20 | <h1>Users</h1> | |
21 | <?PHP | |
22 | $q="SELECT * FROM users where sec_level = 'user' and group_id = '$group_id'"; | |
23 | $r = $petition->query($q); | |
24 | while($d = mysqli_fetch_array($r)){ | |
297ce7cc | 25 | echo "<li>$d[email] $d[name]</li>"; |
4c528808 PM |
26 | } |
27 | ?> | |
28 | ||
29 | <h1>Petitions</h1> | |
30 | <?PHP | |
31 | $q="SELECT * FROM petitions where group_id = '$group_id'"; | |
32 | $r = $petition->query($q); | |
33 | while($d = mysqli_fetch_array($r)){ | |
297ce7cc | 34 | echo "<li>$d[web_short_name] $d[web_color] $d[group_id] $d[petition_name] $d[eligibleVoterListField] $d[eligibleVoterListEquals] $d[eligibleVoterListEnforce]</li>"; |
4c528808 | 35 | } |
4c528808 | 36 | |
e18f6dbc PM |
37 | |
38 | include_once('footer.php'); |