<!DOCTYPE html>
<html dir="ltr" lang="<tmpl_var name="language">-<tmpl_var name="country">">      
    <head>
        <!--Possible? Vars in lang= ?-->
        <meta charset="<tmpl_var name="html_content_encoding">" />
        <title><tmpl_var name="app_title"> <tmpl_var name="app_version"></title>
        <meta http-equiv="X-UA-Compatible" content="IE=8"/>
        <link href="themes/default-v2/css/styles.css" rel="stylesheet" media="screen" type="text/css"/>
        <link href="themes/default-v2/css/print.css" rel="stylesheet" media="print" type="text/css"/>
        <!--[if IE 9]><link href="themes/default-v2/css/iehacks.css" rel="stylesheet" type="text/css" /><![endif]-->
        <!--[if lte IE 8]><link href="themes/default-v2/css/iehacks.css" rel="stylesheet" type="text/css" /><![endif]-->
        <!--[if lte IE 7]><link href="themes/default-v2/css/iehacks.css" rel="stylesheet" type="text/css" /><![endif]-->
        <link href="themes/default-v2/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css"/>
        <link rel="shortcut icon" href="/themes/default-v2/images/favicon.ico" />
        <script type="text/javascript" src="js/jquery-1.6.3.min.js"></script>
        <script type="text/javascript" src="js/jquery-ui-1.8.16.custom.min.js"></script>
        <script type="text/javascript" src="js/scrigo.js.php"></script>
        <script type="text/javascript" src="js/uni-form/uni-form.jquery.js"></script>
        <script type="text/javascript" src="js/jquery.ispconfigsearch.js"></script>
        <script type="text/javascript" src="js/jquery.tipsy.js"></script>
        <script type="text/javascript" src="themes/default-v2/js/html5shiv.js"></script>
        <script language="JavaScript" type="text/javascript">
            jQuery(document).ready(function() {
                loadInitContent();
                
                $("#pageForm").submit(function(e){
                    //Prevent form submit: e.preventDefault() in lists
                    if ($(".panel #Filter").length > 0) {
                        e.preventDefault();
                    }
                });
                
                jQuery('.subsectiontoggle').live("click", function(){
                    jQuery(this).children().toggleClass('showing').end().next().slideToggle();
                });
                
                jQuery('#globalsearch').ispconfigSearch({
                    dataSrc: '/dashboard/ajax_get_json.php?type=globalsearch',
                    resultsLimit: '$ <tmpl_var name="globalsearch_resultslimit_of_txt"> % <tmpl_var name="globalsearch_resultslimit_results_txt">',
                    noResultsText: '<tmpl_var name="globalsearch_noresults_text_txt">',
                    noResultsLimit: '<tmpl_var name="globalsearch_noresults_limit_txt">',
                    searchFieldWatermark: '<tmpl_var name="globalsearch_searchfield_watermark_txt">'
                });
                
                jQuery('.ttip').tipsy({live: true, gravity: 'ne', html: true});
            });
            
            
            jQuery(document).bind("change", function(event) {
                if (jQuery(".panel #Filter").length > 0 && event.target.localName == 'select') {
                    jQuery(".panel #Filter").trigger('click');
                }
            });
            
            jQuery(document).bind("keypress", function(event) {
                //Use jQuery submit with keypress Enter in panel filterbar
                if (event.which == '13' && jQuery(".panel #Filter").length > 0) {
                    jQuery(".panel #Filter").trigger('click');
                }
                //Use jQuery submit with keypress Enter in forms
                if (event.which == '13' && jQuery(".pnl_formsarea button.positive").length > 0 && event.target.localName != 'textarea') {
                    jQuery(".pnl_formsarea button.positive:first").trigger('click');
                }
            });
        </script>
    </head>
    <body>
        <div id="page">
            <!-- begin: header -->
            <header>
                <nav id="topsubnav">
                    <!-- start: skip link navigation -->
                    <a class="skip" href="#navigation" title="skip link">Skip to the navigation</a><span class="hideme">.</span>
                    <a class="skip" href="#content" title="skip link">Skip to the content</a><span class="hideme">.</span>
                    <!-- end: skip link navigation -->
                    <tmpl_if name="cpuser">
                        <a href="#logout" onclick="loadContent('login/logout.php');"><tmpl_var format="strtoupper" name="logout_txt"> <tmpl_var format="strtoupper" name="cpuser"></a><!-- | <a href="#" onclick="capp('help')">Help</a> | <a href="#">Imprint</a>-->
                        <tmpl_if name='usertype' op='==' value='normaluser'><input type="text" id="globalsearch" size="25" value="" /></tmpl_if>
                    </tmpl_if>
                </nav>
                <h1 id="ir-HeaderLogo" class="swap" style="background-image:url('{tmpl_var name='app_logo'}');"><span>ISPConfig 3</span></h1>
                <span>hosting control panel</span>
            </header>
            <!-- end: header -->
            <a id="navigation" name="navigation"></a><!-- skiplink anchor: navigation -->
            <!-- begin: main navigation #nav -->
            <nav id="topNav">&nbsp;</nav>
            <!-- end: main navigation -->

            <!-- begin: main content area #main -->
            <section id="main" name="content">
                <nav id="sideNav" class="clearfix">&nbsp;</nav>
                <!-- begin: #content -->
                <section id="content">
                    <form method="post" action="" id="pageForm" name="pageForm" enctype="multipart/form-data" class="uniForm">
                        <div id="pageContent"><!-- AJAX CONTENT --></div>
                    </form>
                    <div id="ie_clearing">&nbsp;</div>
                    <!-- End: IE Column Clearing -->
                </section>
                <!-- end: #content -->
            </section>
            <!-- end: #main -->
            <!-- begin: footer -->
            <footer>
                Powered by <a href="<tmpl_var name="app_link">" target="_blank"><tmpl_var name="app_title"></a>
            </footer><!-- end: footer -->
        </div>
    </body>
</html>