main.tpl.htm 9.79 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"/>
cfoe's avatar
cfoe committed
8
9
        <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" />
mcramer's avatar
mcramer committed
10
        <!--[if IE 9]><link href="themes/default/css/iehacks.css" rel="stylesheet" type="text/css" /><![endif]-->
cfoe's avatar
cfoe committed
11
        <!--[if lte IE 8]><script type="text/javascript" src="themes/default/js/html5shiv.js"></script><![endif]-->
mcramer's avatar
mcramer committed
12
        <!--[if lte IE 7]><link href="themes/default/css/iehacks.css" rel="stylesheet" type="text/css" /><![endif]-->
cfoe's avatar
cfoe committed
13
        <link href="themes/default/css/jquery-ui-1.8.16.custom.css" rel="stylesheet" type="text/css" />
mcramer's avatar
mcramer committed
14
        <link rel="shortcut icon" href="/themes/default/images/favicon.ico" />
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
        <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 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
45
                
mcramer's avatar
mcramer committed
46
                tabChangeDiscard = '<tmpl_var name="tabchange_discard_enabled>';
mcramer's avatar
mcramer committed
47
48
                tabChangeWarning = '<tmpl_var name="tabchange_warning_enabled>';
                tabChangeWarningTxt = '<tmpl_var name="global_tabchange_warning_txt">';
mcramer's avatar
mcramer committed
49
                tabChangeDiscardTxt = '<tmpl_var name="global_tabchange_discard_txt">';
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
				
				// Store password in browser; works in Firefox, but not Chrome
				$('#username').live("blur", function(){
					if($('#dummy_username').val() == '' || $('#dummy_username').val() != $(this).val()){
						$('#dummy_login').show();
						$('#dummy_username').attr('value', $(this).val()).trigger('focus').trigger('blur');
						$('#dummy_login').hide();
					}
					if($('#dummy_username').val() == $(this).val() && $(this).val() != ''){
						$('#passwort').val($('#dummy_passwort').val());
					} else {
						$('#passwort').val('');
					}
					$('#passwort').focus();
				});
				
				$('#username').live("keyup", function(){
					$('#dummy_username').val('');
					$('#dummy_passwort').val('');
					$('#passwort').val('');
				});
				
72
73
74
75
            });
            
            
            jQuery(document).bind("change", function(event) {
mcramer's avatar
mcramer committed
76
77
                var elName = event.target.localName;
                if (jQuery(".panel #Filter").length > 0 && elName == 'select') {
78
                    event.preventDefault();
79
80
                    jQuery(".panel #Filter").trigger('click');
                }
mcramer's avatar
mcramer committed
81
                if(elName == 'select' || elName == 'input' || elName == 'textarea') {
82
83
84
85
                    if(jQuery(event.target).hasClass('no-page-form-change') == false) {
                        // set marker that something was changed
                        pageFormChanged = true;
                    }
mcramer's avatar
mcramer committed
86
                }
87
88
89
90
            });
            
            jQuery(document).bind("keypress", function(event) {
                //Use jQuery submit with keypress Enter in panel filterbar
91
                if (event.which == '13' && jQuery(".panel #Filter").length > 0 && jQuery(event.target).hasClass('ui-autocomplete-input') == false ) {
92
                    event.preventDefault();
93
94
95
                    jQuery(".panel #Filter").trigger('click');
                }
                //Use jQuery submit with keypress Enter in forms
96
                if (event.which == '13' && jQuery(".pnl_formsarea button.positive").length > 0 && event.target.localName != 'textarea' && jQuery(event.target).is(':input')) {
97
                    event.preventDefault();
98
                    jQuery(".pnl_formsarea button.positive:first").not("[disabled='disabled']").trigger('click');
99
100
                }
            });
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
            
            jQuery(document).delegate('.pnl_listarea th', 'click', function(event) {
                if(jQuery(this).attr('class').length > 0 && jQuery(".panel #Filter").length > 0 && jQuery(this).hasClass('tbl_col_buttons') == false && jQuery(this).hasClass('tbl_col_limit') == false && jQuery(this).hasClass('tbl_col_nosort') == false) {
                  event.preventDefault();
                  var clickevent = jQuery('#Filter').attr('onclick');
                  var element = jQuery(this).attr('class');
                  if(typeof clickevent == 'string') {
                      jQuery('#Filter').attr('onclick', clickevent.replace(".php')", ".php?orderby=" + element + "')"));
                  }
                  jQuery(".panel #Filter").trigger('click');
                  
                  jQuery("#pageForm").ajaxComplete(function() {
                      if(jQuery("th."+element).css("background-position") == '0px -15px') {
                        if(jQuery("th."+element).css("text-align") == "right") {
                          jQuery("th."+element).css("text-align","left");
                        } else {
                          jQuery("th."+element).css("text-align","right");
                        }
                      } else {
                        jQuery(".pnl_listarea th").css("text-align","");
                      }
                      jQuery(".pnl_listarea th").css("background-position","0 0");
                      jQuery("th."+element).css("background-position","0 -15px");
                  });
                }
            });
            
128
129
130
        </script>
    </head>
    <body>
131
132
133
134
135
136
137
138
139
        <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">
140
                        <tmpl_var name="activeuser_txt"> <a href="#usersettings" onclick="loadContent('tools/user_settings.php');"><tmpl_var name="cpuser"></a> <a href="#logout" onclick="loadContent('login/logout.php');"><tmpl_var name="logout_txt"></a>
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
                        <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>
            </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
170
        </div>
171
172
173
174
175
176
177
178
179
		
<div id="dummy_login" style="display:none;position:absolute;top:-1000px;left:-1000px;">
<form action="" method="post" target="dummy_login" id="dummy_login_form">
<input name="username" id="dummy_username" type="text" autocomplete="on" value="" />
<input name="passwort" id="dummy_passwort" type="password" autocomplete="on" value="" />
<input type="submit" value="Login" id="dummy_submit"/>
</form>
<iframe id="dummy_iframe" src="dummy_login.html" name="dummy_login" style="display:none;"></iframe>
</div>
180
    </body>
181
</html>