Location: PHPKode > projects > SimBlog > Mayhem93-Simblog-96c7989/public_html/templates/addPost.tpl
<div class="section addPost" id="main1">
	{include file="bits/htmlButtons.tpl"}
	<form name="addPost" action="?action=addpost" method="post">
		<ul class="forms">
			<li><label for="post_title">Post title: </label><input name="post_title" type="text" /></li>
			<li><label for="category">Category: </label>
				<select name="category">
				{if $categories}
					{foreach $categories as $cat}
					<option value="{$cat.name}">{$cat.name}</option>
					{/foreach}
				{else}
					<option style="color: gray">no categories available</option>
				{/if}
				</select>
			</li>
			<li><label for="pinned">Pinned: </label><input type="checkbox" name="pinned" /></li>
			<li><textarea name="post_content"></textarea></li>
			<li><input name="submit_post" type="submit" value="Post" /><li>
		</ul>
	</form>
</div>
Return current item: SimBlog