Skip to content

Commit

Permalink
Initial Revision
Browse files Browse the repository at this point in the history
  • Loading branch information
mcurry committed Oct 18, 2008
1 parent a5da60f commit 35eae71
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions views/chat/update.thtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php
//flip the order
//$messages = array_reverse($messages);
if (isset($messages) && !empty($messages)) {
foreach($messages as $i => $message) {
$class = ($i % 2 == 0) ? 'odd':'even';
printf('<p class="%s"><strong>%s (%s):</strong> %s</p>', $class, $message['Chat']['handle'], $message['Chat']['created'], $message['Chat']['text']);
}
} else {
echo '<p>No Messages</p>';
}
?>

0 comments on commit 35eae71

Please sign in to comment.