topicManagementView.inc 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?=$header?>
  2. <div id="contentContainer">
  3. <div id="content">
  4. <form method="POST" action="/?a=submittopicsettings&id=<?=$topicData['topic_id']?>">
  5. <label for="topicDescription">Topic Description:</label><textarea id="topicDescription" name="topicDescription"><?=$topicData['description']?></textarea>
  6. <br />
  7. <label for="topicSidebar">Topic Sidebar:</label><textarea id="topicSidebar" name="topicSidebar"><?=$topicData['sidebar']?></textarea><br />
  8. <input type="submit" value="Save Changes" />
  9. </form>
  10. Owner: <?=$owner['display_name']?>
  11. <form method="POST" action="/?a=submittopicsettings&id=<?=$topicData['topic_id']?>">
  12. Moderators:
  13. <?php if (count($moderators) == 0) { ?>
  14. No moderators
  15. <? } else { ?>
  16. <ul>
  17. <?php foreach($moderators as $moderatorData) { ?>
  18. <li><?=$moderatorData['display_name']?></li>
  19. <?php } ?>
  20. </ul>
  21. <?php }?>
  22. <br />
  23. <label for="addTopicModerator">New Moderator:</label><input type="text" id="addTopicModerator" name="addTopicModerator"/><br />
  24. <input type="submit" value="Add moderator" />
  25. </form>
  26. Topic subscriptions:
  27. <?php if (count($subtopics) == 0) { ?>
  28. No topics
  29. <? } else { ?>
  30. <ul>
  31. <?php foreach($subtopics as $subtopic) { ?>
  32. <li><a href="?a=removesubtopic&id=<?=$topicData['topic_id']?>&subtopic=<?=$subtopic['topic_id']?>">X</a> | <a href="?a=topic&id=<?=$subtopic['topic_id']?>"><?=$subtopic['display_name']?></a></li>
  33. <?php } ?>
  34. </ul>
  35. <?php }?>
  36. <br />
  37. <form method="POST" action="/?a=addsubtopic&id=<?=$topicData['topic_id']?>">
  38. <label for="addSubtopic">New Topic:</label><input type="text" id="addSubtopic" name="addSubtopic"/><br />
  39. <input type="submit" value="Add Topic" />
  40. </form>
  41. </div>
  42. </div>
  43. <?php include "topicSidebarView.inc"; ?>
  44. </html>