home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2007 April / PCpro_2007_04.ISO / files / dsl / NVinst.exe / Scripts / HTTP / 127.0.0.3 / ReloadCMS / admin / navigation.php < prev    next >
Encoding:
PHP Script  |  2007-02-10  |  2.0 KB  |  53 lines

  1. <?php 
  2. ////////////////////////////////////////////////////////////////////////////////
  3. //   Copyright (C) ReloadCMS Development Team                                 //
  4. //   http://reloadcms.sf.net                                                  //
  5. //                                                                            //
  6. //   This program is distributed in the hope that it will be useful,          //
  7. //   but WITHOUT ANY WARRANTY, without even the implied warranty of           //
  8. //   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                     //
  9. //                                                                            //
  10. //   This product released under GNU General Public License v2                //
  11. ////////////////////////////////////////////////////////////////////////////////
  12. if(empty($system)) die();
  13. ?>
  14. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  15. <html>
  16. <head>
  17. <meta http-equiv="Content-Type" content="text/html; charset=<?=$system->config['encoding']?>">
  18. <link rel="stylesheet" href="<?=ADMIN_PATH?>style.css" type="text/css">
  19. </head>
  20. <body>
  21. <table width="100%" cellpadding="4" cellspacing="1" border="0">
  22. <tr>
  23.     <th style="text-align: left">» <?=__('Return to')?> ...</th>
  24. </tr>
  25. <tr>
  26.     <td class="row1"><a href="<?=RCMS_ROOT_PATH?>" target="_top">... <?=__('site index')?></a></td>
  27. </tr>
  28. <tr>
  29.     <td class="row1"><a href="?show=module" target="main">... <?=__('admin index')?></a></td>
  30. </tr>
  31. <?php
  32. foreach($MODULES as $category => $blockdata) {
  33.     if(!empty($blockdata[1]) && is_array($blockdata[1])) { ?>
  34. <tr>
  35.     <th style="text-align: left">» <?=$blockdata[0]?></th>
  36. </tr>
  37. <?php foreach($blockdata[1] as $module => $title) { ?>
  38. <tr>
  39.     <td class="row1"><a href="?show=module&id=<?=$category . '.' . $module?>" target="main"><?=$title?></a></td>
  40. </tr>
  41. <?php
  42.         }
  43.     } elseif($blockdata[0] === @$blockdata[1]) { ?>
  44. <tr>
  45.     <th style="text-align: left">» <a href="?show=module&id=<?=$category . '.index'?>" target="main" class="th"><?=$blockdata[0]?></a></th>
  46. </tr>
  47. <?php
  48.     }
  49. }
  50. ?>
  51. </table>
  52. </body>
  53. </html>