sign_form.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. <?php
  2. if (!defined('IN_SCRIPT')) {
  3. die('Invalid attempt');
  4. }
  5. ?>
  6. <div id="gbook_guestbook" align="center">
  7. <span class="gbook_guestbook"><?php echo $lang['t48']; ?></span><br class="clear" />
  8. <span class="gbook_required"><?php echo $lang['t49']; ?></span>
  9. </div>
  10. <form action="gbook.php" method="post">
  11. <!--SIGN FORM -->
  12. <div id="gbook_entries">
  13. <?php
  14. if ($error)
  15. {
  16. echo '<div class="gbook_sign_error">'.$error.'</div>';
  17. }
  18. ?>
  19. <div class="gbook_left"><span class="gbook_entries"><b><?php echo $lang['t50']; ?></b></span></div>
  20. <div class="gbook_right"><input type="text" name="<?php echo $myfield['name']; ?>" value="<?php echo $name; ?>" size="45" /></div>
  21. <div class="clear"></div>
  22. <div class="gbook_left"><span class="gbook_entries"><?php echo $lang['t51']; ?></span></div>
  23. <div class="gbook_right"><input type="text" name="from" value="<?php echo $from; ?>" size="45" /></div>
  24. <div class="clear"></div>
  25. <?php
  26. if ($settings['use_url'])
  27. {
  28. ?>
  29. <div class="gbook_left"><span class="gbook_entries"><?php echo $lang['t53']; ?></span></div>
  30. <div class="gbook_right"><input type="text" name="url" value="<?php echo $url; ?>" size="45" maxlength="80" /></div>
  31. <div class="clear"></div>
  32. <?php
  33. }
  34. ?>
  35. <div class="gbook_left"><span class="gbook_entries"><?php echo $lang['t52']; ?></span></div>
  36. <div class="gbook_right"><input type="text" name="email" value="<?php echo $email; ?>" size="45" />
  37. <?php
  38. if ($settings['hide_emails'])
  39. {
  40. ?>
  41. <br class="clear" /><span class="gbook_entries"><i><?php echo $lang['t66']; ?></i></span>
  42. <?php
  43. }
  44. ?>
  45. </div>
  46. <div class="clear"></div>
  47. <div class="gbook_left"><span class="gbook_entries"><b><?php echo $lang['t16']; ?></b></span></div>
  48. <div class="gbook_right"><span class="gbook_entries"><i><?php echo $lang['t54']; ?></i></span></div>
  49. <textarea name="<?php echo $myfield['cmnt']; ?>" rows="12" cols="57" id="cmnt"><?php echo $comments; ?></textarea>
  50. <!--BOTTOM IMAGES -->
  51. <div id="gbook_bottom_images" class="gbook_bottom_images">
  52. <?php
  53. // Show smileys?
  54. if ($settings['smileys'])
  55. {
  56. ?>
  57. <a href="#" onclick="document.getElementById('cmnt').value += ' :D ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/bigsmile.gif" alt=":D" title=":D" width="19" height="19" /></a>&nbsp;
  58. <a href="#" onclick="document.getElementById('cmnt').value += ' :!cool: ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/cool.gif" alt=":!cool:" title=":!cool:" width="19" height="19" /></a>&nbsp;
  59. <a href="#" onclick="document.getElementById('cmnt').value += ' :!cry: ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/crying.gif" alt=":!cry:" title=":!cry:" width="19" height="19" /></a>&nbsp;
  60. <a href="#" onclick="document.getElementById('cmnt').value += ' :!devil: ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/devil.gif" alt=":!devil:" title=":!devil:" width="19" height="19" /></a>&nbsp;
  61. <a href="#" onclick="document.getElementById('cmnt').value += ' :) ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/smile.gif" alt=":)" title=":)" width="19" height="19" /></a>&nbsp;
  62. <a href="#" onclick="document.getElementById('cmnt').value += ' :!mad: ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/mad.gif" alt=":!mad:" title=":!mad:" width="19" height="19" /></a>&nbsp;
  63. <a href="#" onclick="document.getElementById('cmnt').value += ' :!thinking: ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/thinking.gif" alt=":!thinking:" title=":!thinking:" width="19" height="19" /></a>&nbsp;
  64. <a href="#" onclick="document.getElementById('cmnt').value += ' :p ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/tongueout.gif" alt=":p" title=":p" width="19" height="19" /></a>&nbsp;
  65. <a href="#" onclick="document.getElementById('cmnt').value += ' ;) ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/wink.gif" alt=";)" title=";)" width="19" height="19" /></a>&nbsp;
  66. <a href="#" onclick="document.getElementById('cmnt').value += ' :o ';return false;"><img src="<?php echo $settings['tpl_path']; ?>images/emoticons/blush.gif" alt=":o" title=":o" width="19" height="19" /></a>&nbsp;
  67. <a href="javascript:openSmiley()" class="gbook_submitted"><?php echo $lang['t26']; ?></a><br />
  68. <label><input type="checkbox" name="nosmileys" value="Y" class="gbook_checkbox" <?php echo $nosmileys; ?> /><span class="gbook_entries"><?php echo $lang['t28']; ?></span></label><br class="clear" />
  69. <?php
  70. }
  71. /* Private mesasges */
  72. if ($settings['use_private'])
  73. {
  74. ?>
  75. <label><input type="checkbox" name="private" value="Y" class="gbook_checkbox" <?php echo $isprivate; ?> /><span class="gbook_entries"><?php echo $lang['t55']; ?></span></label><br class="clear" />
  76. <?php
  77. }
  78. /* Print anti-SPAM features */
  79. echo $settings['antispam'];
  80. ?>
  81. </div>
  82. <!--BOTTOM IMAGES END -->
  83. <div align="center">
  84. <div class="clear">&nbsp;</div>
  85. <!--SPAM TRAPS -->
  86. <!-- DON'T DELETE THESE HIDDEN FIELDS AND COMMENTS, THEY HELP CATCH STUPID SPAMBOTS! -->
  87. <input type="hidden" name="name" />
  88. <input type="hidden" name="<?php echo $myfield['bait']; ?>" />
  89. <!-- >
  90. <input type="text" name="comments" value="1" />
  91. < -->
  92. <!--SPAM TRAPS END-->
  93. <input type="hidden" name="a" value="add" />
  94. <input type="submit" value="<?php echo $lang['t88']; ?>" class="submit" />
  95. </div>
  96. <p>&nbsp;</p>
  97. </div>
  98. <!--SIGN FORM END -->
  99. </form>