• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

cms/modules/news/news.kulz.php

Go to the documentation of this file.
00001 <?php
00002 if(!defined('__PRAGYAN_CMS'))
00003 { 
00004         header($_SERVER['SERVER_PROTOCOL'].' 403 Forbidden');
00005         echo "<h1>403 Forbidden<h1><h4>You are not authorized to access the page.</h4>";
00006         echo '<hr/>'.$_SERVER['SERVER_SIGNATURE'];
00007         exit(1);
00008 }
00015 function displayNews2()
00016 {
00017 
00018 
00019         global $sourceFolder;
00020         global $moduleFolder;
00021         global $urlRequestRoot;
00022         global $pageIdArray;
00023         require_once ("$sourceFolder/$moduleFolder/news.lib.php");
00024         $tmpNewsObj = new news();
00025         $pageFullPath = "/news/"; 
00026         $pageId = parseUrlReal($pageFullPath, $pageIdArray);
00027         $pageInfo = getPageInfo($pageId);
00028         $newsArray = $tmpNewsObj->getNewsArray(0);
00029         
00030         
00031         for ($i = 0; $i < sizeof($newsArray); $i++) {
00032         
00033                 
00034                 
00035                         $divopen = "<div class=\"news_style\" rel=\"$newsArray[$i][news_title]\" id=\"news$i\">";
00036                         $heading = "<h4>$newsArray[$i][news_title]</h4>";
00037                         $content = "$newsArray[$i][news_feed]";
00038                   $divclose = "</div>";
00039                   
00040                   $fulldiv = $divopen.$heading.$content.$divclose;
00041                   
00042                   echo $fulldiv;                 
00043                 
00044                 
00045                 
00046         }
00047 
00048 return 1;
00049 
00050 }
00051 

Generated on Sun Jan 2 2011 04:55:32 for Pragyan CMS by  doxygen 1.7.1