<?php
	$query = mysqli_query(GetWbbConexion(), "select threadID from ".WBB_DB.".wbb1_thread where boardID = 7 order by time desc limit ".NOTICE_LIMIT.";");
	while ($obj = mysqli_fetch_object($query)){
		$id = $obj->threadID;
		$info = mysqli_query(GetWbbConexion(), "select subject, message, username, time from ".WBB_DB.".wbb1_post where threadID = ".$id." limit 1;");
		$txt = mysqli_fetch_object($info);
		?>
		<div class="news">
			<div class="article">
				<h2><?php echo $txt->subject; ?></h2>
				<p><?php echo $txt->message; ?></p>
				<ul>
					<li><?php echo$lang["notice1"]; ?> <?php echo date('m/d/Y h:m:s', $txt->time); ?></li>
					<li class="separator"> | </li>
					<li><?php echo$lang["notice2"]; ?> <span class="red"><?php echo $txt->username; ?></span></li>
					<li><a href="http://exodial.eu/Foro/index.php?thread/<?php echo $id; ?>-<?php echo $txt->subject; ?>/"><?php echo$lang["notice3"]; ?></a></li>
				</ul>
			</div>
		</div>
		<?php
	}
?>

