ShogS Posted September 19, 2012 Share Posted September 19, 2012 SIr Jupeto help me on how to put the Admin Menu's on a Drop Down List hmm how about on Sub Menu? here's the code for Admin's Menu <?php if (!empty($adminMenuItems) && Flux::config('AdminMenuNewStyle')): ?> <form name="form1"> <strong>Admin</strong>: <select name="menu1" onChange="window.location.href=this.value"> <option value="javascript:void(0);">Choose Menu</option> <?php foreach ($adminMenuItems as $menuItem) : ?> <option value="<?php echo $menuItem['url']; ?>"><?php echo $menuItem['name']; ?></option> <?php endforeach; ?> </select> </form> <?php endif ?> Quote Link to comment Share on other sites More sharing options...
Aries Posted September 19, 2012 Share Posted September 19, 2012 (edited) Here you go. <?php if (!defined('FLUX_ROOT')) exit; ?> <?php $subMenuItems = $this->getSubMenuItems(); $menus = array() ?> <?php if (!empty($subMenuItems)): ?> <div id="submenu">Menu: <select onchange="window.location.href=this.value"> <?php foreach ($subMenuItems as $menuItem): ?> <?php echo sprintf('<option value="%s"%s>%s</option>', $this->url($menuItem['module'], $menuItem['action']), $params->get('module') == $menuItem['module'] && $params->get('action') == $menuItem['action'] ? ' selected="selected"' : '', htmlspecialchars($menuItem['name'])); ?> <?php endforeach ?> </select> </div> <?php endif ?> Edited September 19, 2012 by Choko Designoper Quote Link to comment Share on other sites More sharing options...