main.tpl.htm 6.89 KB
Newer Older
1
<!DOCTYPE html>
cfoe's avatar
cfoe committed
2
<html dir="ltr" lang="en-US">      
3
    <head>
4
5
        <!--Possible? Vars in lang= ?-->
        <meta charset="<tmpl_var name="html_content_encoding">" />
6
        <title><tmpl_var name="app_title"> <tmpl_var name="app_version"></title>
cfoe's avatar
cfoe committed
7
        <meta http-equiv="X-UA-Compatible" content="IE=9"/>
mcramer's avatar
mcramer committed
8
9
10
11
12
13
14
        <link href="themes/default/css/styles.css" rel="stylesheet" media="screen" type="text/css"/>
        <link href="themes/default/css/print.css" rel="stylesheet" media="print" type="text/css"/>
        <!--[if IE 9]><link href="themes/default/css/iehacks.css" rel="stylesheet" type="text/css" /><![endif]-->
        <!--[if lte IE 8]><link href="themes/default/css/iehacks.css" rel="stylesheet" type="text/css" /><![endif]-->
        <!--[if lte IE 7]><link href="themes/default/css/iehacks.css" rel="stylesheet" type="text/css" /><![endif]-->
        <link href="themes/default/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css"/>
        <link rel="shortcut icon" href="/themes/default/images/favicon.ico" />
15
16
17
18
19
20
        <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>
mcramer's avatar
mcramer committed
21
        <script type="text/javascript" src="themes/default/js/html5shiv.js"></script>
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
        <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});
mcramer's avatar
mcramer committed
46
                
mcramer's avatar
mcramer committed
47
                tabChangeDiscard = '<tmpl_var name="tabchange_discard_enabled>';
mcramer's avatar
mcramer committed
48
49
                tabChangeWarning = '<tmpl_var name="tabchange_warning_enabled>';
                tabChangeWarningTxt = '<tmpl_var name="global_tabchange_warning_txt">';
mcramer's avatar
mcramer committed
50
                tabChangeDiscardTxt = '<tmpl_var name="global_tabchange_discard_txt">';
51
52
53
54
            });
            
            
            jQuery(document).bind("change", function(event) {
mcramer's avatar
mcramer committed
55
56
                var elName = event.target.localName;
                if (jQuery(".panel #Filter").length > 0 && elName == 'select') {
57
                    event.preventDefault();
58
59
                    jQuery(".panel #Filter").trigger('click');
                }
mcramer's avatar
mcramer committed
60
61
62
63
                if(elName == 'select' || elName == 'input' || elName == 'textarea') {
                    // set marker that something was changed
                    pageFormChanged = true;
                }
64
65
66
67
68
            });
            
            jQuery(document).bind("keypress", function(event) {
                //Use jQuery submit with keypress Enter in panel filterbar
                if (event.which == '13' && jQuery(".panel #Filter").length > 0) {
69
                    event.preventDefault();
70
71
72
73
                    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') {
74
                    event.preventDefault();
75
76
77
78
79
80
                    jQuery(".pnl_formsarea button.positive:first").trigger('click');
                }
            });
        </script>
    </head>
    <body>
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
        <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 -->
latham's avatar
latham committed
121
        </div>
122
    </body>
123
</html>