A new, object-oriented, better vesion of μForum
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

125 lines
5.5 KiB

  1. <?php require_once('./templates/overall_header.tpl.php'); ?>
  2. <script type="text/javascript" src="templates/scripts/posting.js">
  3. </script>
  4. <div id="content">
  5. <?php if ($this->TPL['error_msg'] != '') { ?>
  6. <div class="error_form">
  7. <?php echo $this->TPL['error_msg']; ?>
  8. </div>
  9. <?php } ?>
  10. <?php if (isset($this->TPL['preview'])) { ?>
  11. <div class="forum_table">
  12. <div class="row">
  13. <div class="hc1 hc4">Post preview</div>
  14. </div>
  15. <div class="row">
  16. <div class="tc1 post_content tc4" style="height: 150px">
  17. <?php echo BBCode($this->TPL['post']); ?>
  18. </div>
  19. </div>
  20. </div>
  21. <br>
  22. <?php } ?>
  23. <br><form action="<?php echo $_SERVER['REQUEST_URI']; ?>" method="post">
  24. <?php if (isset($this->TPL['topic'])) { ?>
  25. <div class="forum_table">
  26. <div class="row">
  27. <div class="hc1">Topic information</div>
  28. <div class="hc4">&nbsp;</div>
  29. </div>
  30. <div class="row">
  31. <div class="tc1 lc">
  32. Title:
  33. </div>
  34. <div class="tc4 rc">
  35. <input type="text" maxlength="100" name="topic" id="topic" value="<?php echo $this->TPL['topic']; ?>" required pattern=".{3,}" required title="3 characters minimum" style="width: 490px">
  36. </div>
  37. </div>
  38. </div>
  39. <br>
  40. <?php } ?>
  41. <div class="forum_table">
  42. <div class="row">
  43. <div class="hc1">Post information</div>
  44. <div class="hc4">&nbsp;</div>
  45. </div>
  46. <div class="row">
  47. <div class="tc1 tc2">
  48. Emoticons:
  49. </div>
  50. <div class="tc4 rc">
  51. <p id="js_msg" style="color: red; font-weight: bold">
  52. Turn on JavaScript to enable BBCode and emoticons buttons.
  53. </p>
  54. <div id="bbcode_buttons" style="display:none">
  55. <input type="button" style="font-weight: bold" onClick="bbTag(0)" value="B">
  56. <input type="button" style="font-style: italic"onClick="bbTag(2)" value="I">
  57. <input type="button" style="text-decoration: underline"onClick="bbTag(4)" value="U">
  58. <input type="button" style="text-decoration: line-through" onClick="bbTag(6)" value="S">
  59. <input type="button" onClick="bbTag(8)" value="URL">
  60. <input type="button" onClick="bbTag(10)" value="Center">
  61. <input type="button" onClick="bbTag(12)" value="Quote">
  62. <input type="button" onClick="bbTag(14)" value="Code">
  63. <input type="button" onClick="bbTag(16)" value="List">
  64. <input type="button" onClick="bbTag(18)" value="Color">
  65. <input type="color" id="text_color">
  66. </div>
  67. </div>
  68. </div>
  69. <div class="row">
  70. <div class="tc1 tc2">
  71. <div id="emoticons_buttons" style="display: none">
  72. <img src="images/smiles/smile.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':)')" alt=":)">&nbsp;
  73. <img src="images/smiles/cry.png" onmouseover="this.style.cursor='hand';" onclick="insertSmile(';(')" alt=";(">&nbsp;
  74. <img src="images/smiles/sad.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':(')" alt=":(">&nbsp;
  75. <img src="images/smiles/curve.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':curve:')" alt=":/">&nbsp;
  76. <br>
  77. <img src="images/smiles/neutral.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':|')" alt=":|">&nbsp;
  78. <img src="images/smiles/lol.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':lol:')" alt=":lol:">&nbsp;
  79. <img src="images/smiles/wink.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(';)')" alt=";)">&nbsp;
  80. <img src="images/smiles/cool.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':cool:')" alt=":cool:">&nbsp;
  81. <br>
  82. <img src="images/smiles/exclaim.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':!:')" alt=":!:">&nbsp;
  83. <img src="images/smiles/tongue.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':P')" alt=":P">&nbsp;
  84. <img src="images/smiles/roll.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':roll:')" alt=":roll:">&nbsp;
  85. <img src="images/smiles/big_smile.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':D')" alt=":>">&nbsp;
  86. <br>
  87. <img src="images/smiles/evil.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':evil:')" alt=":evil:">&nbsp;
  88. <img src="images/smiles/yikes.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':o')" alt=":o">&nbsp;
  89. <img src="images/smiles/mad.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':mad:')" alt=":mad:">&nbsp;
  90. <img src="images/smiles/redface.gif" onmouseover="this.style.cursor='hand';" onclick="insertSmile(':redface:')" alt=":redface:">&nbsp;
  91. </div>
  92. </div>
  93. <div class="tc4 rc">
  94. <textarea name="post" id="post" maxlength="5000" required title="3 characters minimum"><?php echo $this->TPL['post']; ?></textarea>
  95. </div>
  96. </div>
  97. <div class="row">
  98. <div class="tc1 lc">
  99. &nbsp;
  100. </div>
  101. <div class="tc4 rc">
  102. <input type="reset" value="Reset">
  103. <input type="submit" name="preview" value="Preview">
  104. <input type="submit" value="Submit">
  105. </div>
  106. </div>
  107. </div>
  108. </form>
  109. </div>
  110. <script type="text/javascript">
  111. document.getElementById('js_msg').style.display = 'none';
  112. document.getElementById('bbcode_buttons').style.display = 'block';
  113. document.getElementById('emoticons_buttons').style.display = 'block';
  114. </script>
  115. <?php require_once('./templates/overall_footer.tpl.php'); ?>