示例#1
0
                $elementos["{$header->menu_clase}"] .= "<li><a href='{$header->menu_enlace}'>{$header->menu_titulo}</a></li>";
            } else {
                if ($grupo == $header->menu_grupo) {
                    //echo "igual:$header->menu_clase: <li><a href='$header->menu_enlace'>$header->menu_titulo</a></li>";
                    $elementos["{$header->menu_clase}"] .= "<li><a href='{$header->menu_enlace}'>{$header->menu_titulo}</a></li>";
                }
            }
        }
    }
    foreach ($menu->getClases() as $menu) {
        if (array_key_exists($menu->menu_clase_nombre, $elementos) && count($elementos["{$menu->menu_clase_nombre}"]) > 0) {
            $dropdowns .= "<li class='dropdown'>" . "<a href='#' class='dropdown-toggle' data-toggle='dropdown' role='button' aria-expanded='false'>" . "{$menu->menu_clase_nombre}" . "<span class='caret'></span></a>" . "<ul class='dropdown-menu' role='menu'>" . $elementos["{$menu->menu_clase_nombre}"] . "</ul>" . "</li>";
        }
    }
}
helpers\assets::css(array(helpers\url::app_template_path() . 'css/bootstrap.min.css', helpers\url::app_template_path() . 'css/style.css', helpers\url::app_template_path() . 'css/jquery.auto-complete.css', helpers\url::app_template_path() . 'css/jquery.timepicker.css', helpers\url::app_template_path() . 'css/jsgrid.min.css', helpers\url::app_template_path() . 'css/roboto.min.css', helpers\url::app_template_path() . 'css/jsgrid-theme.min.css'));
?>

    </head>
    <body>
        <div class="container">
            <nav class="navbar navbar-default navbar-inverse">
                <div class="container-fluid">
                    <!-- Brand and toggle get grouped for better mobile display -->
                    <div class="navbar-header">
                        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#elementos-menu">
                            <span class="sr-only">Navegación</span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                            <span class="icon-bar"></span>
                        </button>
示例#2
0
</div>

<!-- JS -->
<?php 
helpers\assets::js(array(helpers\url::app_template_path() . 'js/jquery-1.11.2.min.js', helpers\url::app_template_path() . 'js/nicEdit.js', helpers\url::app_template_path() . 'js/jquery.auto-complete.min.js', helpers\url::app_template_path() . 'js/jquery.filter_input.js', helpers\url::app_template_path() . 'js/bootstrap.min.js', helpers\url::app_template_path() . 'js/jquery.timepicker.js', helpers\url::app_template_path() . 'js/jsgrid.min.js', helpers\url::app_template_path() . 'js/accounting.min.js', helpers\url::app_template_path() . 'js/scripts.js'));
echo $data["js"];
?>
</body>
</html>