ryxeo-webphotoalbum-git / data / www / inc / comment_form.inc.php @ 7938c308
Historique | Voir | Annoter | Télécharger (1,34 ko)
1 |
<?php
|
---|---|
2 |
/*
|
3 |
* The HTML contained in this file is valid XHTML 1.0 Strict
|
4 |
*/
|
5 |
|
6 |
echo "<div id=\"comment_block\">\n"; |
7 |
|
8 |
?>
|
9 |
<?php echo"<div id=\"showhideform\"><strong> " . __('Post a Comment') . "</strong>:"; ?> |
10 |
<span class="comment_toggle"> |
11 |
[
|
12 |
<?php echo"<a href=\"javascript:toggle_comment()\"><span id=\"showlink\">" . __('Show Form') . "</span><span id=\"hidelink\" style=\"display:none;\">" . __('Hide Form') . "</span></a>"; ?> |
13 |
]
|
14 |
</span>
|
15 |
</div>
|
16 |
|
17 |
<div id="comment_form" style="display: none;"> |
18 |
<?php
|
19 |
$this->form_start($ThisUrl, "post", NULL); |
20 |
$this->input("text", "commentname", $username, __('Name:'), NULL, __('Enter your name.') ); |
21 |
$this->input("checkbox", "savecommentname", "1", __('Remember Name:'), "yes", |
22 |
__('Should the browser remember your name?'));
|
23 |
$magic_number = random_digits(4); |
24 |
//temporary. should generate an image instead
|
25 |
echo "<div class=\"row\"><div class=\"control\">$magic_number</div></div>\n"; |
26 |
$this->input("hidden", "commentkolacek", md5($magic_number), NULL, NULL, NULL); |
27 |
$this->input("text", "commentspamcheck", "", __('Retype PIN Above:'), NULL, __('Enter the number shown above.')); |
28 |
$this->input("textarea", "commentdata", "", __('Comment') . " :" , NULL, __('Allowed HTML tags: a,b,i,ul,li,blockquote,br.') ); |
29 |
$this->input("submit", "", __('Send') , NULL, NULL, NULL); |
30 |
$this->form_end();
|
31 |
?>
|
32 |
</div>
|
33 |
</div>
|