Example #1
0
echo $_SERVER["REQUEST_URI_CLEAN"];
?>
"> 

<?php 
if ($model['login_failed']) {
    ?>
	<div class="Errors">
	<p>Login failed.  Please check your username and password are correct and try again.</p>
	</div>
<?php 
}
?>
 
	<?php 
jabHtmlInput("User Name:", "username", $model["username"], "stdfield");
?>
	<?php 
jabHtmlPassword("Password:"******"password", $model["password"], "stdfield");
?>
	<?php 
jabHtmlHidden("referrer", $model["referrer"]);
?>
	<div class="clearer"></div>
	<?php 
jabHtmlSubmitButton("Login", "submit");
?>
	
</form> 
<script type="text/javascript">document.getElementById("username").focus();</script>
<form class="mainform" id="theform" method="post" action="<?php 
echo $_SERVER["REQUEST_URI_CLEAN"];
?>
" enctype="multipart/form-data"> 
 
	<?php 
jabHtmlHidden("ID", $model['article']->ID);
?>
	<?php 
jabHtmlHidden("Draft", $model['article']->Draft ? "1" : "0");
?>
	<?php 
jabHtmlInput("Title:", "Title", $model['article']->Title, "stdfield");
?>
	<?php 
jabHtmlInput("Date/Time:", "TimeStamp", $model['article']->TimeStamp == 0 ? "" : date('d M Y H:i:s', $model['article']->TimeStamp), "stdfield");
?>
	<?php 
jabHtmlTextArea("Content: (supports <a href=\"http://michelf.com/projects/php-markdown/extra/\">Markdown Extra</a>)", "Content", $model['article']->Content, $class = "stdtextareafield");
?>

	<div class="clearer"></div>
    
	<?php 
jabHtmlSubmitButton("Publish", "post");
?>
	<?php 
jabHtmlSubmitButton("Save", "save");
?>
	<?php 
jabHtmlSubmitButton("Preview", "preview");
Example #3
0
if ($model['send_error']) {
    ?>
<div class="Errors">
<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");
?>
Example #4
0
<h2>Comment by <?php echo $model['comment']->Name?></h2>
<?php echo $model['comment']->Format() ?>
<p class="endpreview">Preview</p>
<?php endif; ?>

<?php jabHtmlErrors($model['errors'], "Please correct the following errors:") ?>

<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>