Location: PHPKode > projects > News Publishing Content Management System > news-publishing-content-management-system/jpowered/newscms/admin/include/menu.php
<?php 
class AdminMenu {var $itemid, $itemtext, $itemlink, $itemselected, $nmenuitems;function AdminMenu() {}function initMenu() {$this->nmenuitems = 0;$this->itemid[$this->nmenuitems]       = $this->nmenuitems;$this->itemtext[$this->nmenuitems]     = "Start";$this->itemlink[$this->nmenuitems]     = "start.php";$this->itemselected[$this->nmenuitems] = 0;$this->nmenuitems++;$this->itemid[$this->nmenuitems]       = $this->nmenuitems;$this->itemtext[$this->nmenuitems]     = "Categories";$this->itemlink[$this->nmenuitems]     = "category.php";
$this->itemselected[$this->nmenuitems] = 0;$this->nmenuitems++;$this->itemid[$this->nmenuitems]       = $this->nmenuitems;$this->itemtext[$this->nmenuitems]     = "News Articles";$this->itemlink[$this->nmenuitems]     = "newsarticle.php";$this->itemselected[$this->nmenuitems] = 0;$this->nmenuitems++;$this->itemid[$this->nmenuitems]       = $this->nmenuitems;$this->itemtext[$this->nmenuitems]     = "Settings & Styles";$this->itemlink[$this->nmenuitems]     = "settings.php";$this->itemselected[$this->nmenuitems] = 0;
$this->nmenuitems++;$this->itemid[$this->nmenuitems]       = $this->nmenuitems;$this->itemtext[$this->nmenuitems]     = "Links & HTML Code";$this->itemlink[$this->nmenuitems]     = "linksandhtml.php";$this->itemselected[$this->nmenuitems] = 0;$this->nmenuitems++;$this->itemid[$this->nmenuitems]       = $this->nmenuitems;$this->itemtext[$this->nmenuitems]     = "Reports & Stats";$this->itemlink[$this->nmenuitems]     = "reports.php";$this->itemselected[$this->nmenuitems] = 0;$this->nmenuitems++;$this->itemid[$this->nmenuitems]       = $this->nmenuitems;
$this->itemtext[$this->nmenuitems]     = "User Profile";$this->itemlink[$this->nmenuitems]     = "user.php";$this->itemselected[$this->nmenuitems] = 0;$this->nmenuitems++;$this->itemid[$this->nmenuitems]       = $this->nmenuitems;$this->itemtext[$this->nmenuitems]     = "Help & Support";$this->itemlink[$this->nmenuitems]     = "helpsupport.php";$this->itemselected[$this->nmenuitems] = 0;$this->nmenuitems++;$this->itemid[$this->nmenuitems]       = $this->nmenuitems;$this->itemtext[$this->nmenuitems]     = "Log Off";
$this->itemlink[$this->nmenuitems]     = "logoff.php";$this->itemselected[$this->nmenuitems] = 0;$this->nmenuitems++;}function setSelect($menuid) {for ($i=0;$i<$this->nmenuitems;$i++) {if ($this->itemid[$i]==$menuid) {$this->itemselected[$i] = 1;}else {$this->itemselected[$i] = 0;}}}function generateMenuHtml() {$menucontent = "<ul>";   for ($i=0;$i<$this->nmenuitems;$i++) {if ($this->itemselected[$i] == 1) {$menucontent = $menucontent."<li><a class='navselected' href='".$this->itemlink[$i]."'>".$this->itemtext[$i]."</a></li>";
}else {$menucontent = $menucontent."<li><a href='".$this->itemlink[$i]."'>".$this->itemtext[$i]."</a></li>";}}$menucontent = $menucontent."</ul>";return $menucontent;}}
?>
Return current item: News Publishing Content Management System