summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjesse <jesse@jesterpm.net>2011-05-19 16:51:06 -0700
committerJesse Morgan <jesse@jesterpm.net ; true>2011-05-19 16:51:06 -0700
commit2d74c1bc6394b68edfed3c75cca157b5ef938f54 (patch)
tree1d6d9b6a113f8629b1660a9d0ae6af4cfa2307d3
parent6f5eb97a5d2129427e831a9a4eb1fec318401356 (diff)
Initial commit of the new posting page.
-rw-r--r--htdocs/new-post.php37
-rw-r--r--htdocs/src/header.inc.php3
2 files changed, 39 insertions, 1 deletions
diff --git a/htdocs/new-post.php b/htdocs/new-post.php
new file mode 100644
index 0000000..e6f4035
--- /dev/null
+++ b/htdocs/new-post.php
@@ -0,0 +1,37 @@
+<?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 "<h2>Submit Post</h2>";
+
+echo "<form action=\"submit-post.php\" method=\"post\">";
+echo "<p><label>Category: <select name=\"category\">";
+foreach (Category::getCategories() as $short => $name) {
+ echo "<option name=\"$short\">$name</option>";
+}
+echo "</select></label</p>";
+
+echo "<p><label>Title: <input type=\"text\" name=\"title\" /></label></p>";
+
+echo "<p><label for=\"desc\">Description:</label></p>";
+echo "<p><textarea name=\"description\" id=\"desc\" rows=\"10\""
+ . " cols=\"80\"></textarea></p>";
+
+// TODO: Link to terms of service.
+echo "<p><label><input type=\"checkbox\" name=\"tos\" value=\"1\" /> I agree to the terms of service.</label></p>";
+
+echo "<p><input type=\"submit\" value=\"Submit\" /></p></form>";
+
+require_once "src/footer.inc.php";
+
+?>
diff --git a/htdocs/src/header.inc.php b/htdocs/src/header.inc.php
index 1396bf2..f6c5eb8 100644
--- a/htdocs/src/header.inc.php
+++ b/htdocs/src/header.inc.php
@@ -20,7 +20,8 @@
<div id="nav">
<ul>
- <li><a href="" class="bigbutton">Create Post</a></li>
+ <li><a href="<?= $CONFIG['urlroot'] ?>/new-post" class="bigbutton">
+ Create Post</a></li>
<li><a href="" class="bigbutton">Safety Tips</a></li>
<li><a href="" class="bigbutton">Contact Us</a></li>
</ul>