Location: PHPKode > scripts > php ireport > phpireport v1.0 alpha revision 25/phpireport/home.php
<?
include "editor.php";

$page_title = "welcome";

$latest_messages = get_latest_reports('10');
$page_content = $page_content . "					<ul class='archive'>";
for ($i = 0; $i <= count($latest_messages)-1; $i++) {
	$time = microtime_to_string($latest_messages[$i]['time']);
	$name = $latest_messages[$i]['name'];
	$message = $latest_messages[$i]['message'];
$page_content = $page_content . "
		<li>
			<div class='post-details'><div style='float:left'>user: ".stripslashes($name)."</div> <div style='float:right'>".$time."</div></div>
			<br>
			<div class='post-details'>".stripslashes($message)."</div>
		</li>
	";
}
$page_content = $page_content . "					</ul>";

$page_content = $page_content . "<br>" . $editor;
?>
Return current item: php ireport