editPostView.inc 1.1 KB

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. $humanReadableTime = new HumanReadableTime();
  3. ?>
  4. <?=$header?>
  5. <div id="contentContainer">
  6. <div id="content">
  7. <h1>
  8. <a href="?a=post&id=<?=$postData['post_id']?>&t=<?=$topicId?>"><?=$postData['name']?></a>
  9. </h1>
  10. <div id="byline">submitted <?=$humanReadableTime->formatString($postData['timestamp'])?> by <?=$username?>
  11. <?php /*<div id="parentTopics">Posted in topics:
  12. <ul>
  13. <?php foreach($postTopics as $topic) { ?>
  14. <li><a href="?a=topic&id=<?=$topic['topic_id']?>"><?=$topic['display_name']?></a></li>
  15. <?php $allTopicNames[] = $topic['display_name'];
  16. } ?>
  17. </ul>
  18. </div>
  19. */ ?>
  20. </div>
  21. <form method="POST" action="/?a=submiteditpost&id=<?=$postData['post_id']?>&t=<?=$topicId?>" enctype="multipart/form-data">
  22. <textarea id="postContent" name="postContent"><?=$postData['content']?></textarea>
  23. <br />
  24. <?php include 'attachmentsView.inc'; ?>
  25. <label for="attachment1">Upload Attachment:</label><input type="file" name="attachment1" id="attachment1" />
  26. <br />
  27. <input type="submit" value="Save Changes" />
  28. </form>
  29. </div>
  30. </div>
  31. <?php include "topicSidebarView.inc"; ?>
  32. </html>