diff options
author | jimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003> | 2006-02-14 20:52:54 +0000 |
---|---|---|
committer | jimmacfx <jimmacfx@4fa712ea-3c06-0410-9261-c11b4c06c003> | 2006-02-14 20:52:54 +0000 |
commit | b50897cb0fdf0d42d306b20b8e38f19f8e2832e3 (patch) | |
tree | 101066455a67bc4c1be5244f6fbdf608df5f021e /www/inc/comment_form.inc.php | |
parent | 20407702b92cb93970eaa4a71e659f383d2f92a5 (diff) | |
download | original-b50897cb0fdf0d42d306b20b8e38f19f8e2832e3.tar.gz original-b50897cb0fdf0d42d306b20b8e38f19f8e2832e3.tar.bz2 |
add sqlite hooks
git-svn-id: https://forgesvn1.novell.com/svn/original/trunk@9 4fa712ea-3c06-0410-9261-c11b4c06c003
Diffstat (limited to 'www/inc/comment_form.inc.php')
-rw-r--r-- | www/inc/comment_form.inc.php | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/www/inc/comment_form.inc.php b/www/inc/comment_form.inc.php new file mode 100644 index 0000000..5ac8348 --- /dev/null +++ b/www/inc/comment_form.inc.php @@ -0,0 +1,33 @@ +<?php +/* + * The HTML contained in this file is valid XHTML 1.0 Strict + */ + +echo "<div id=\"comment_block\">\n"; + +?> + <?php echo"<div id=\"showhideform\"><strong> " . __('Post a Comment') . "</strong>:"; ?> + <span class="comment_toggle"> + [ + <?php echo"<a href=\"javascript:toggle_comment()\"><span id=\"showlink\">" . __('Show Form') . "</span><span id=\"hidelink\" style=\"display:none;\">" . __('Hide Form') . "</span></a>"; ?> + ] + </span> + </div> + + <div id="comment_form" style="display: none;"> +<?php +$this->form_start($ThisUrl, "post", NULL); +$this->input("text", "commentname", $username, __('Name:'), NULL, _('Enter your name.') ); +$this->input("checkbox", "savecommentname", "1", __('Remember Name:'), "yes", + __('Should the browser remember your name?')); +$magic_number = random_digits(4); +//temporary. should generate an image instead +echo "<div class=\"row\"><div class=\"control\">$magic_number</div></div>\n"; +$this->input("hidden", "commentkolacek", md5($magic_number), NULL, NULL, NULL); +$this->input("text", "commentspamcheck", "", __('Retype PIN Above:'), NULL, __('Enter the number shown above.')); +$this->input("textarea", "commentdata", "", __('Comment') . " :" , NULL, __('Allowed HTML tags: a,b,i,ul,li,blockquote,br.') ); +$this->input("submit", "", __('Send') , NULL, NULL, NULL); +$this->form_end(); +?> + </div> +</div> |