PHP Classes

File: punFramework/views/latestNews.php

Recommend this page to a friend!
  Classes of Piotr Malinski   punFramework   punFramework/views/latestNews.php   Download  
File: punFramework/views/latestNews.php
Role: Example script
Content type: text/plain
Description: news example - view
Class: punFramework
MVC framework to extend punBB discussion boards
Author: By
Last change:
Date: 17 years ago
Size: 345 bytes
 

Contents

Class file image Download
<h1 style="font-size:20px;"><?PHP echo $data['subject']; ?></h1>
<?PHP echo $data['message']; ?>
<br /><b>Added at:</b>: <?PHP echo date('Y-m-d', $data['posted']); ?>, <b>by</b> <?PHP echo $data['poster']; ?>.
<?PHP
IF($data['num_replies'] > 0)
    {
    echo
$data['num_replies'].' comment/s.';
    }
else
    {
    echo
'No comments yet.';
    }
?>
<br /><br />