summaryrefslogtreecommitdiff
path: root/htdocs/moderate/schedule/index.php
diff options
context:
space:
mode:
authorJesse Morgan <jesse@jesterpm.net>2011-08-30 12:29:19 -0700
committerJesse Morgan <jesse@jesterpm.net>2017-09-04 11:16:53 -0700
commite121bbebe3ccd990b66a7b04289adf481a4aa2af (patch)
tree5955357921d66db47769cba75d950cea3894dd04 /htdocs/moderate/schedule/index.php
parent558684e32769d9dbd0d27a6feb3bbb9cf9aa22d7 (diff)
Working on the moderation schedule iterator
Diffstat (limited to 'htdocs/moderate/schedule/index.php')
-rw-r--r--htdocs/moderate/schedule/index.php52
1 files changed, 52 insertions, 0 deletions
diff --git a/htdocs/moderate/schedule/index.php b/htdocs/moderate/schedule/index.php
new file mode 100644
index 0000000..93dfc3a
--- /dev/null
+++ b/htdocs/moderate/schedule/index.php
@@ -0,0 +1,52 @@
+<?php
+
+/* Foursquare Community Site
+ *
+ * Copyright (C) 2011 Foursquare Church.
+ *
+ * Developers: Jesse Morgan <jmorgan@foursquarestaff.com>
+ *
+ */
+
+require_once('../../src/base.inc.php');
+
+
+require_once('../src/header.inc.php');
+
+echo "<h3>Moderation Schedule</h3>";
+
+// List out moderators in order with next moderation week
+
+
+echo "<h3>Exceptions</h3>";
+echo "<p><a href=\"exception.php\">New Exception</a></p>";
+
+// List out exceptions in order.
+
+$ui = new UserIterator();
+$ui->query();
+
+echo "<div class=\"userrow header\">"
+ . "<span class=\"name\">Name</span>"
+ . " <span class=\"email\">Email</span>"
+ . " <span class=\"admin\">Admin</span>"
+ . " <span class=\"actions\">Actions</span></div>";
+
+foreach ($ui as $user) {
+ printf("<div class=\"userrow\">"
+ . "<span class=\"name\">%s</span>"
+ . " <span class=\"email\"><a href=\"mailto:%s\">%s</a></span>"
+ . " <span class=\"admin\">%s</span>"
+ . " <span class=\"actions\">"
+ . " <a class=\"smallbutton\" href=\"editor.php?id=%s\">edit</a>"
+ . " <a class=\"smallbutton\" href=\"delete.php?id=%s\">delete</a></span></div>",
+ $user->getName(),
+ $user->getEmail(), $user->getEmail(),
+ $user->isAdmin() ? 'Yes' : 'No',
+ $user->getId(), $user->getId()
+ );
+}
+
+require_once('../src/footer.inc.php');
+
+?>