Commit | Line | Data |
---|---|---|
cd274349 | 1 | <?PHP |
ae1c5e9a | 2 | include_once('../slack.php'); |
cd274349 | 3 | include_once('security.php'); |
ae1c5e9a PM |
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 | } | |
cd274349 | 8 | include_once('header.php'); |
1f39b6e9 | 9 | slack_general('ADMIN: petition manager Loaded ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition'); |
989fe01d | 10 | $group_id = $_COOKIE['group_id']; |
cd274349 PM |
11 | ?> |
12 | ||
989fe01d PM |
13 | <h1>Petitions</h1> |
14 | <?PHP | |
15 | $q="SELECT * FROM petitions where group_id = '$group_id'"; | |
16 | $r = $petition->query($q); | |
17 | while($d = mysqli_fetch_array($r)){ | |
18 | echo "<li>$d[petition_id] $d[web_short_name] $d[web_color] $d[group_id] $d[petition_name] $d[eligibleVoterListField] $d[eligibleVoterListEquals] $d[eligibleVoterListEnforce]</li>"; | |
19 | } | |
20 | ?> | |
cd274349 PM |
21 | |
22 | <?PHP | |
23 | include_once('footer.php'); | |
24 | ?> |