last update: Mon, 05 Sep 2011 17:18:51 +0000
  1. <div>
  2. <div id="comments_form">
  3. {if $draw_comments_form}
  4. <form id="addcommentform" action="index.php" method="post">
  5. <h1>Kommentar schreiben:</h1>
  6. <fieldset>
  7. <legend>Kommentar schreiben:</legend>
  8. {if $session_is_logged_in == false}<label id="labelforusername" for="username" class="label">Name:</label><input type="text" name="username" id="username" accesskey="n" value="Gast" /><br />{/if}
  9. <label id="labelfortext" for="text" class="label">Text:</label>
  10. <textarea cols="35" rows="5" name="text" id="text" accesskey="t">
  11. </textarea><br />
  12. <input type="checkbox" name="wysiwyg" id="wysiwyg" value="1"/> <label id="labelforwysiwyg" for="wysiwyg" class="label"><a href="http://tinymce.moxiecode.com?id=powered_by_tinymce_mini"><img src="tinymce_button.png" border="0" width="80" height="15" alt="Powered by TinyMCE" /></a>-Editor anschalten.</label>
  13. <br />
  14. {if $session_is_logged_in == false}
  15. <img src="captcha.php" alt="captcha" width="81" height="34" /> <label id="labelforcaptcha" for="captcha" class="label">Buchstaben-Code:</label><input type="text" name="captcha" id="captcha" accesskey="c" value="" />
  16. {/if}
  17. <span><input type="submit" value="Kommentar posten" id="submit" name="submit" accesskey="k" /></span>
  18. <input type="hidden" id="method" name="method" value="html" />
  19. <input type="hidden" id="ajax" name="ajax" value="addcomments" />
  20. <input type="hidden" id="topic" name="topic" value="0" />
  21. <input type="hidden" id="from" name="from" value="0" />
  22. <input type="hidden" id="count" name="count" value="10" />
  23. </fieldset>
  24. </form>
  25. {/if}
  26. </div>
  27. <div id="comments_comments">
  28. {foreach from=$comments item=comment}
  29. <div class="comment">
  30. {if $comment.spam < 10}
  31. <div class="commenthead">
  32. <strong>{$comment.username}</strong> (vor {$comment.ago_time})
  33. {if $admin}
  34. <form action="index.php" method="post" class="markspam">
  35. <input type="hidden" name="id" value="{$comment.id}">
  36. <input type="hidden" name="action" value="markspam">
  37. <input type="submit" value="als Spam markieren">
  38. </form>
  39. {/if}
  40. </div>
  41. <div class="commenttext">
  42. {$comment.parsed_text}
  43. </div>
  44. {else}
  45. {if $admin}
  46. Als Spam markierter Kommentar. (<a href="">zeigen</a>)
  47. {/if}
  48. {/if}
  49. </div>
  50. {/foreach}
  51. Seite:
  52. <ul id="comments_pages">
  53. {foreach from=$comment_pages item=comment_page}
  54. {if $comment_page.current}
  55. <li>{$comment_page.i}</li>
  56. {else}
  57. <li><a onclick='return change_page({$comment_page.from}, {$comment_page.count});' href="index.php?from={$comment_page.from}&count={$comment_page.count}">{$comment_page.i}</a></li>
  58. {/if}
  59. {/foreach}
  60. </ul>
  61. </div>
  62. </div>

goto line:
Compare with:
text copy window edit this code post new code