guestbook_form.tpl.php 722 Bytes
<? $url = $_SERVER['PHP_SELF'] . '?cont=guestbook&action=submit' ?>

<FORM ACTION="<?=$url?>" METHOD="post">
	<TABLE BORDER="1">

		<? if ($this->error != 0): ?>
			<TR>
				<TD BGCOLOR="yellow" COLSPAN="2">
					<?=$this->err_msg?>
				</TD>
			</TR>
		<? endif ?>

		<TR>
			<TD><?=_('Name')?>:</TD>
			<TD><INPUT TYPE="text" 
						  NAME="Name" 
						  VALUE="<?=$this->_($this->post['Name'])?>" 
						  SIZE="40"></TD>
		</TR>
		<TR>
			<TD VALIGN="top"><?=_('Comment')?>:</TD>
			<TD><TEXTAREA NAME="Comment" COLS="40" 
				ROWS="10"><?=$this->_($this->post['Comment'])?></TEXTAREA>
			</TD>
		</TR>
		<TR>
			<TD COLSPAN="2" ALIGN="center">
				<INPUT TYPE="submit" VALUE="Submit"></TD>
		</TR>
	</TABLE>
</FORM>