Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(!isset($_GET['action']) or @$_GET['action'] != "Show_All") {
- $news = NEWS::GetLastestNews();
- for($i = 0; $i < count($news); $i++) {
- echo '<div class="title">'.$news[$i]['title'].'</div>';
- echo '<p class="information">'.$news[$i]['information'].'</p>';
- }
- echo '<a style="float:right;text-decoration:none;font-size: 8px; margin-top: -10px;color: black;" href="?p=home&action=Show_All">Show everything</a>';
- } elseif($_GET['action'] == "Show_All") {
- $news = NEWS::GetAllNews();
- for($i = 0; $i < count($news); $i++) {
- echo '<div class="title">'.$news[$i]['title'].'</div>';
- echo '<p class="information">'.$news[$i]['information'].'</p>';
- }
- echo '<a style="float:right;text-decoration:none;font-size: 8px;margin-top: -10px;color: black;" href="?p=home">Show less</a>';
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement