Update petitions.php
[clinton/MarylandElectronicPetitionSignature.git] / admin / petitions.php
1 <?PHP
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: petition manager Loaded ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition');
10 $group_id = $_COOKIE['group_id'];
11 ?>
12
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 ?>
21
22 <?PHP
23 include_once('footer.php');
24 ?>