aboutsummaryrefslogtreecommitdiff
path: root/www/inc/comment.inc.php
blob: 627a74791d9e17e8a33565b909888dee3385c4e4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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"> 
	[&nbsp;
	<?php echo"<a href=\"javascript:toggle_comment()\"><span id=\"showlink\">" . __('Show Form') . "</span><span id=\"hidelink\" style=\"display:none;\">" . __('Hide Form') . "</span></a>"; ?>
	&nbsp;]
	</span>
	</div>
	
	<div id="comment_form" style="display: none;">
<?php
$page->form_start($ThisUrl, "post", NULL);
$page->input("text", "commentname", $username, __('Name:'), NULL, _('Enter your name.') );
$page->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";
$page->input("hidden", "commentkolacek", md5($magic_number), NULL, NULL, NULL);
$page->input("text", "commentspamcheck", "", __('Retype PIN Above:'), NULL, __('Enter the number shown above.'));
$page->input("textarea", "commentdata", "", __('Comment') . " :" , NULL, __('Allowed HTML tags: a,b,i,ul,li,blockquote,br.') );
$page->input("submit", "", __('Send') , NULL, NULL, NULL);
$page->form_end();
?>
	</div>
</div>