Create follow_up_success.php
authorPatrick McGuire <insidenothing@gmail.com>
Fri, 19 Jun 2020 16:38:36 +0000 (12:38 -0400)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2020 16:38:36 +0000 (12:38 -0400)
admin/follow_up_success.php [new file with mode: 0644]

diff --git a/admin/follow_up_success.php b/admin/follow_up_success.php
new file mode 100644 (file)
index 0000000..932d42d
--- /dev/null
@@ -0,0 +1,20 @@
+<?PHP 
+include_once('../slack.php');
+include_once('security.php');
+if ($_COOKIE['level'] == 'user'){
+  slack_general('ADMIN: Redirect User Home ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition');
+  header('Location: user_home.php');
+}
+if ($_COOKIE['level'] == 'manager'){
+  slack_general('ADMIN: Redirect Manager Home ('.$_COOKIE['name'].') ('.$_COOKIE['level'].')','md-petition');
+  header('Location: manager_home.php');
+}
+include_once('header.php');
+echo "<ol>";
+$q="SELECT * FROM follow_up where status <> 'NEW'";
+$r = $petition->query($q);
+while($d = mysqli_fetch_array($r)){
+  echo "<li>$d[name] $d[email]</li>";
+}
+echo "</ol>";
+include_once('footer.php');