diff options
Diffstat (limited to 'htdocs')
-rw-r--r-- | htdocs/new-post.php | 37 | ||||
-rw-r--r-- | htdocs/src/header.inc.php | 3 |
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> |