LiveUser_Admin
[ class tree: LiveUser_Admin ] [ index: LiveUser_Admin ] [ all elements ]

Source for file nav.php

Documentation is available at nav.php

  1. <?php
  2.     require_once 'conf.php';
  3.  
  4. ?>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html>
  7. <head>
  8.     <title>Navigation</title>
  9.     <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
  10.     <style type="text/css">
  11.     <!--
  12.     table {
  13.         background-color: #CCCCCC;
  14.         border-color: 1px solid #000;
  15.     }
  16.     body {
  17.         font-family: Verdana, Arial, Helvetica, sans-serif;
  18.         font-size: 12px;
  19.         color: #000000;
  20.         background-color: #FFFFFF
  21.     }
  22.  
  23.     .center {
  24.            text-align: center;
  25.     }
  26.     .center table {
  27.            margin: auto;
  28.     }
  29.     -->
  30.     </style>
  31. </head>
  32.  
  33. <body>
  34.     <h3>Navigation</h3>
  35.     <table border="0" cellpadding="5">
  36. <?php
  37.     // get the area_define_name and the area_name of each area in current language.
  38.     $areas $luadmin->perm->getAreas(array(
  39.         'fields' => array('area_define_name''name'),
  40.         'filters' => array('language_id' => $language_selected)
  41.     ));
  42.     // print navigation
  43.     foreach ($areas as $row{
  44. ?>
  45.         <tr>
  46.             <td><li></td>
  47.             <td><a href="<?php echo strtolower($row['area_define_name'])?>.php" target="main"><?php echo $row['name']?></a></td>
  48.         </tr>
  49. <?php
  50.     }
  51. ?>
  52.     </table>
  53.     <p>&nbsp;</p>
  54.     <form method="POST" action="example.php" target="_parent">
  55.         <select name="language" size="1" onChange="submit()">
  56. <?php
  57.     $languages = array(
  58.         'de' => array(
  59.             'de' => 'Deutsch',
  60.             'en' => 'Englisch'
  61.         ),
  62.         'en' => array(
  63.             'de' => 'German',
  64.             'en' => 'English'
  65.         ),
  66.     );
  67.     // print language options
  68.     foreach ($languages[$language_selectedas $code => $language{
  69.         $selected $code == $language_selected ' selected="selected"' '';
  70. ?>
  71.             <option value="<?php echo $code;?>"<?php echo $selected?>><?php echo $language?></option>';
  72. <?php
  73.     }
  74. ?>
  75.         </select>
  76.     </form>
  77.     <p>&nbsp;</p>
  78.     <p>&nbsp; </p>
  79. </body>
  80. </html>

Documentation generated on Mon, 11 Mar 2019 15:39:43 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.