guestbook.tpl.php 697 Bytes
<? $url = $_SERVER['PHP_SELF'] . '?cont=guestbook&action=add' ?>

<TABLE BORDER="0" BGCOLOR="#eeeeee" WIDTH="100%">
	<TR>
		<TH COLSPAN="2" BGCOLOR="#d1d1d1">
			<?=_('Guestbook Entries')?> 
			(<A HREF="<?=$url?>" ALT=""><?=_('add')?></A>)</TH>
	</TR>

	<? if ($this->data && ! empty ($this->data)): ?>
		<? foreach ($this->data as $entry): ?>
			<TR>
				<TD><?=$this->_($entry['Name'])?></TD>
				<TD ALIGN="right">
					<?=strftime ('%x %X', $entry['EntryDate'])?></TD>
			</TR>
			<TR>
				<TD COLSPAN="2" BGCOLOR="#dedede">
					<?=$this->_($entry['Comment'])?></TD>
			</TR>
		<? endforeach ?>
	<? else: ?>
		<TR>
			<TD COLSPAN="2"><?=_('No records')?></TD>
		</TR>
	<? endif ?>

</TABLE>