Example #1
0
<p>Sorry, due to a technical problem, your message couldn't be sent.  Please try later, or email us directly.</p>
</div>
<?php 
}
?>

<form class="mainform" id="theform" method="post" action="/contact"> 
 
	<?php 
jabHtmlInput("Your Name:", "Name", $model["name"], "stdfield");
?>
	<?php 
jabHtmlInput("Your Email Address:", "Email", $model["email"], "stdfield");
?>
	<?php 
jabHtmlTextArea("Your Message: (supports some <a href=\"http://michelf.com/projects/php-markdown/extra/\">Markdown Extra</a>)", "Message", $model["message"], $class = "stdtextareafield");
?>

	<div class="clearer"></div>
    
    <?php 
jabRenderCaptcha();
?>
	
	<?php 
jabHtmlSubmitButton("Send", "submit");
?>

</form> 
<script type="text/javascript">document.getElementById("Name").focus();</script>
Example #2
0
<form class="mainform" id="theform" method="post" action="<?php echo $_SERVER["REQUEST_URI_CLEAN"]?>"> 
 
	<?php jabHtmlHidden("ID", $model['article']->ID) ?>
<?php if (!jabCanUser("author")): ?>
	<?php jabHtmlInput("Your Name:", "Name", $model['comment']->Name, "stdfield") ?>
	<?php jabHtmlInput("Email Address: <small>(optional, not shown, used for <a href=\"http://www.gravatar.com\" target=\"_blank\">Gravatar</a>)</small>", "Email", $model['comment']->Email, "stdfield") ?>
	<?php jabHtmlInput("Website: <small>(optional, nofollow)</small>", "Website", $model['comment']->Website, "stdfield") ?>
<?php else: ?>
	<?php jabHtmlInput("Reply To:", "ReplyTo", $model['ReplyTo'], "stdfield") ?>
<?php endif; ?>
	<?php jabHtmlTextArea("Message: <small>(supports some <a href=\"http://michelf.com/projects/php-markdown/extra/\" target=\"_blank\">Markdown Extra</a>)</small>", "Content", $model['comment']->Content, $class="stdtextareafield") ?>

	<div class="clearer"></div>
    
<?php if (!jabCanUser("author")): ?>
	<?php jabRenderCaptcha() ?>
<?php endif; ?>
	
	<?php jabHtmlSubmitButton("Post Comment", "post") ?>
	<?php jabHtmlSubmitButton("Preview", "preview") ?>
	
	<small>All comments will be reviewed for spam before being displayed.</small>
 
</form> 
<?php endif; ?>
<?php if (!$model['blog']['enableComments']): ?>
<p><small>Comments disabled</small></p>
<?php endif; ?>