<%-- 
    Document   : layout
    Created on : Nov 13, 2015, 9:11:59 AM
    Author     : khanhdn1
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib uri="http://ajaxtags.org/tags/ajax" prefix="ajax" %>
<%@ taglib tagdir="/WEB-INF/tags/common/" prefix="tags" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title><tiles:getAsString name="title"/></title>

    <tiles:insert attribute="importCssJs"/>

</head>

<body>
    <tiles:insert attribute="popup"/>

    <div class="container" style="padding: 0px; background-color: white; margin: 10px auto;">
        <tiles:insert attribute="banner"/>

        <div class="container navbar navbar-default" role="navigation" style="margin-bottom: 10px;">
            <div class="navbar-header">
                <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href=""><tiles:getAsString name="title"/></a>
            </div>
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <tiles:insert attribute="menu"/>
            </div>
        </div>

        <div class="container">
            <div class="row">
                <div class="box" style="margin-bottom: 0px; padding-top: 0px; padding-bottom: 0px;">
                    <div class="col-lg-12">
                        <tiles:insert attribute="body"/>
                    </div>
                </div>
            </div>
        </div>

        <tiles:insert attribute="footer"/>
    </div>
    <ajax:displayTag id="token" style="display: none;">
    </ajax:displayTag>

    <div id="tempHandleDiv" style="display: none;"></div>

</body>

</html>

<script type="text/javascript">
    jQuery('.navbar-nav li.dropdown').on('hidden.bs.dropdown', function (e) {
        e.preventDefault();
//        jQuery(this).children("ul").toggle();
        jQuery('.navbar-nav li.dropdown').show();
    })
</script>