style adjustments
[dylansserver.git] / view / comment-form.php
1 <script type="text/javascript">
2 Recaptcha.create("$publickey",
3 "recaptcha_div",
4 {
5 theme : 'custom',
6 custom_theme_widget: 'recaptcha_widget',
7 callback: Recaptcha.focus_response_field
8 });
9 </script>
10 <?php
11 require_once('/srv/http/dylansserver.com/includes/recaptchalib.php');
12 $url = $this->url . "verify";
13 ?>
14 <form id='comment_form' method='post' action='$url'>
15 <div id="comment">
16 <h3>comment:</h3>
17 <textarea rows="10" cols="70" name="text" id="comment_text"></textarea>
18 <h3>name:</h3>
19 <input type=text name="name" id="comment_name">
20
21 <nowiki>
22 <div id="recaptcha_widget">
23 <br>
24 <h3><b>what's this say</b>?</h3>
25 <br>
26 <div id="recaptcha_image"></div>
27 <br><br><br>
28 <span class="recaptcha_only_if_image"><br><br><br></span>
29 <input type="text" id="recaptcha_response_field" name="recaptcha_response_field" />
30 <br><br>
31 <h3 class="recaptcha_only_if_audio"><b>enter the numbers you hear</b>:</h3>
32 <span class="recaptcha_help">
33 <a href="javascript:Recaptcha.reload()">another?</a> /
34 <span class="recaptcha_only_if_image"><a href="javascript:Recaptcha.switch_type('audio')">audio?</a> /</span>
35 <span class="recaptcha_only_if_audio"><a href="javascript:Recaptcha.switch_type('image')">image?</a></span><a href="javascript:Recaptcha.showhelp()">help?</a>
36 </span>
37 </div>
38 <?php recaptcha_get_html($this->recaptcha_publickey);
39 if ($this->failed_captcha) {
40 echo "<div id=\"not_human\">";
41 echo " reCAPTCHA said you're not human, <br>";
42 echo " try again?";
43 echo "</div>";
44 } else {
45 echo "<div id=\"blank_comment\">";
46 echo " but you didn't write anything! <br>";
47 echo "</div>";
48 } ?>
49 <input id="submit" class="submit" type="submit" value="post comment">
50 </div>
51 </form>
52 <br><br><br><br>