diff options
author | jesse <jesse@jesterpm.net> | 2011-05-19 16:51:06 -0700 |
---|---|---|
committer | Jesse Morgan <jesse@jesterpm.net ; true> | 2011-05-19 16:51:06 -0700 |
commit | 2d74c1bc6394b68edfed3c75cca157b5ef938f54 (patch) | |
tree | 1d6d9b6a113f8629b1660a9d0ae6af4cfa2307d3 /htdocs/new-post.php | |
parent | 6f5eb97a5d2129427e831a9a4eb1fec318401356 (diff) |
Initial commit of the new posting page.
Diffstat (limited to 'htdocs/new-post.php')
-rw-r--r-- | htdocs/new-post.php | 37 |
1 files changed, 37 insertions, 0 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"; + +?> |