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

cms/updates.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 }
00016 $newsItems = "<div style=\"display: none;\" id=\"newscontainer\">";
00017 
00018   global $sourceFolder;
00019         global $moduleFolder;
00020         global $urlRequestRoot;
00021         global $pageIdArray;
00022         require_once ("$sourceFolder/$moduleFolder/news.lib.php");
00023         $tmpNewsObj = new news();
00024         $pageFullPath = "/news/"; 
00025         $pageId = parseUrlReal($pageFullPath, $pageIdArray);
00026         $pageInfo = getPageInfo($pageId);
00027         $newsArray = $tmpNewsObj->getNewsArray(0);
00028         
00029         
00030         for ($i = 0; $i < count($newsArray); $i++) {
00031                 $newstitle = $newsArray[$i]['news_title'];
00032                 $newsfeed = $newsArray[$i]['news_feed'];
00033                 $newslink = $newsArray[$i]['news_link']; 
00034                 $divopen = "<div class=\"news_style\" rel=\"$newstitle\" id=\"news$i\">";
00035                 $heading = "<h4><a href='".$newslink."'>".$newstitle."</a></h4>";
00036 
00037                 $content = "$newsfeed";
00038                 $divclose = "</div>";
00039 
00040                 $fulldiv = $divopen.$heading.$content.$divclose;
00041                 $newsItems .= $fulldiv;
00042         }
00043         $newsItems .= "</div>";
00044 
00045 /*
00046 
00047 $newsItems = <<<NEWSITEMS
00048         <div style="display: none;" id="newscontainer">
00049                 <div id="news1" rel="Ad - IT Registrations Open" class="news_style">
00050                         <h4>Ad - IT Registrations Open</h4>
00051                         <img src="/10/home/events/managing_technology/ad_it/Ad-IT-small.gif" alt="Ad - IT Registrations Open" align="left" style="margin: 0 6px" />
00052                         <p>Registrations for Ad - IT have been opened. <a href="/10/home/events/managing_technology/ad_it/Ad-IT-small.gif">Register Now.</a></p>
00053                 </div>
00054 <!--            <div id="news2" rel="Anveshanam" class="news_style"></div> -->
00055                 <div id="news3" rel="Workshop Registrations" class="news_style">
00056                         <h4>Workshop Registrations</h4>
00057                         <img src="/10/home/workshops/workshop-small.gif" alt="Workshop Registrations" align="left" style="margin: 0 6px" />
00058                         <p>Registrations for <a href="/10/home/workshops/d3_photography/">3D Photography</a>, <a href="/10/home/workshops/ethical_hacking/">Ethical Hacking</a>, and <a href="/10/home/workshops/hexapod/">Hexapod</a> workshops will open soon. Be sure to claim your seat!</p>
00059                 </div>
00060 
00061                 <div id="news4" rel="Liminality" class="news_style">
00062                         <h4>Liminality</h4>
00063                         <img src="/10/home/events/chillpill/liminality/liminality-small.jpg" alt="Liminality" align="left" style="margin: 0 6px" />
00064                         <p>Topics of the preliminary round have been updated for liminality.</p>
00065                 </div> 
00066 
00067                 <div id="news5" rel="Pragyan '10 Forum" class="news_style">
00068                         <h4>Pragyan '10 Forum</h4>
00069                         <img src="/10/cms/templates/falcon_blue/images/forum.png" alt="Forum" align="left" style="margin:6px" />
00070                         <p>The <a href="/10/home/forum/">Pragyan '10 forums</a> are open! Feel free to post your questions, comments and suggestions.</p>
00071                 </div>
00072         </div>
00073 NEWSITEMS;
00074 
00075 */

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