$menu_i[] = array(_MEMBERS, "./u_zoznam.php", "1", "mbr");
$menu_i[] = array(_NEW_MEMBER, "./u_novy.php", "2", "mbr");
$menu_i[] = array(_MY_PROFILE, "./u_zmena.php", "1", "mbr");
$menu_i[] = array(_PRINT, "./u_zoznam.php?action=print", "1", "mbr");
$menu_i[] = array(_PAYMENTS, "./platby.php?action=view", "1", "pay");
$menu_i[] = array(_PAYING_ORDER, "./platby.php?action=form", "1", "pay");
$menu_i[] = array(_MY_PAYMENTS, "./platby.php?action=user", "1", "pay");
$menu_i[] = array(_PRINT, "./platby.php?action=print", "1", "pay");
$menu_i[] = array(_SECTIONS, "./r_zmena.php", "2", "adm");
$menu_i[] = array(_GROUP, "./group.php?action=edit", "2", "adm");
$menu_i[] = array(_NEW_GROUP, "./group.php?action=new", "1", "adm");
$menu_i[] = array(_GROUPS, "./group.php?action=list", "3", "adm");
$menu_i[] = array(_DOCUMENTATION, "./doc/manual_sk.html", "1", "help");
$menu_i[] = array(_ABOUT_APP, "./index.php?action=about", "1", "help");
$menu_i[] = array(_ABOUT_GROUP, "./group.php?action=info", "1", "help");
$top_menu = new Menu1($menu_m);
$top_menu->class = "brother";
$top_menu->view($menu, "0");
$sub_menu = new Menu1($menu_i);
$sub_menu->class = "child";
$sub_menu->view($menu);
?>
<!--






?>-->
<?php 
?>
      </div>
      <div class="child">
		<?php 
if ($auth == "0") {
    echo "powered by <strong>uniLETIM</strong>";
} else {
    $foot_menu = new Menu1($menu_i);
    $foot_menu->class = "child";
    $foot_menu->view($menu);
}
?>
      </div>
	  </div>
 </body>
</html>
示例#3
0
     $oMenu->Persistir();
     /*
      * Esto borra los submenus si se ha optado porque la opcion sea un link              
      */
     $oMnu_item = new Menu1_item();
     $oMnu_item->DeleteAllByIdRaiz($_REQUEST["id_menu1"]);
     header("Location: " . $_SERVER['PHP_SELF']);
 } else {
     // GRABA CUANDO HAY SUBMENUS
     if ($_REQUEST["id_menu1"]) {
         $aSubMenus = array();
         $aTextoSubMenus = array();
         /**
          * Esto es para que quite el LINK de la tabla MENU1                           
          */
         $oMenu = new Menu1($_REQUEST["id_menu1"]);
         $oMenu->Nombre = validaTexto($_REQUEST["nombre"]);
         $oMenu->UrlLink = "";
         $oMenu->Persistir();
         for ($i = 1; $i < count($_REQUEST); $i++) {
             if (isset($_REQUEST["texto_{$i}"])) {
                 if ($_REQUEST["texto_{$i}"]) {
                     array_push($aTextoSubMenus, validaTexto($_REQUEST["texto_{$i}"]));
                     array_push($aSubMenus, validaTexto($_REQUEST["valor_{$i}"]));
                 }
             }
         }
         $oMnu_item = new Menu1_item();
         $oMnu_item->DeleteAllByIdRaiz($_REQUEST["id_menu1"]);
         for ($i = 0; $i < count($aTextoSubMenus); $i++) {
             $oMnu_item->Nombre = $aTextoSubMenus[$i];