Location: PHPKode > projects > Cadence Guestbook Host > cadence/templates/system/admin/commentform.tpl
{* Smarty *}

{if $logged}
   <form action="index.php?book={$book}&amp;act=add" method="post" name="comment" onSubmit="return checkLoggedInput()">
			<input type="hidden" name="name" value="{$gbook->displayname}" />
			<input type="hidden" name="email" value="{$gbook->email}" />
			<input type="hidden" name="hash" value="{$gbook->hash}" />
   <h3>Leave A Comment</h3>
   Enter Comment Text Below
   <em>( <a href="javascript:dopopup('{$book}','02')">bbCode</a> | <a href="javascript:dopopup('{$book}','01');">Smilies</a> )</em><br />
	   <textarea cols="50" rows="5" name="content" class="textbox"></textarea><br />
	   <input type="submit" name="submit" value="Submit" />
   </form>
{else}
   <form action="index.php?book={$book}&amp;act=add" method="post" name="comment" onSubmit="return checkInput()">
    <h3>Leave A Comment</h3>
	<label for="name">Name</label>
	<input type="text" name="name" class="input" maxlength="100" />
	<label for="email">E-Mail (Must Be Valid)</label>
	<input type="text" name="email" class="input" maxlength="100" />
	<br />Enter Your Comment Below <em>( <a href="javascript:dopopup('{$book}','02')">bbCode</a> | <a href="javascript:dopopup('{$book}','01');">Smilies</a> )</em><br />
	<textarea cols="50" rows="5" name="content" class="textbox"></textarea><br />
	<input type="submit" name="submit" value="Submit" />
   </form>
{/if}
Return current item: Cadence Guestbook Host