| | |
| | | <!DOCTYPE html> |
| | | <html dir="ltr" lang="<tmpl_var name="language">-<tmpl_var name="country">"> |
| | | <html dir="ltr" lang="en-US"> |
| | | <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/css/styles.css" rel="stylesheet" media="screen" type="text/css"/> |
| | | <link href="themes/default/css/print.css" rel="stylesheet" media="print" type="text/css"/> |
| | | <meta http-equiv="X-UA-Compatible" content="IE=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" /> |
| | | <!--[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 8]><script type="text/javascript" src="themes/default/js/html5shiv.js"></script><![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 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" /> |
| | | <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/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/js/html5shiv.js"></script> |
| | | <tmpl_loop name="js_d_includes"> |
| | | <script type="text/javascript" src="js/js.d/<tmpl_var name='file'>"></script> |
| | | </tmpl_loop> |
| | | <script language="JavaScript" type="text/javascript"> |
| | | jQuery(document).ready(function() { |
| | | loadInitContent(); |
| | | |
| | | $('form').not('#dummy_login_form').attr('autocomplete','off'); |
| | | |
| | | $("#pageForm").submit(function(e){ |
| | | //Prevent form submit: e.preventDefault() in lists |
| | |
| | | }); |
| | | |
| | | jQuery('.ttip').tipsy({live: true, gravity: 'ne', html: true}); |
| | | |
| | | tabChangeDiscard = '<tmpl_var name="tabchange_discard_enabled">'; |
| | | tabChangeWarning = '<tmpl_var name="tabchange_warning_enabled">'; |
| | | tabChangeWarningTxt = '<tmpl_var name="global_tabchange_warning_txt">'; |
| | | tabChangeDiscardTxt = '<tmpl_var name="global_tabchange_discard_txt">'; |
| | | |
| | | // Store password in browser; works in Firefox, but not Chrome |
| | | $('#username').live("blur", function(){ |
| | | if($('#username').val() == '') { |
| | | return true; |
| | | } |
| | | 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(''); |
| | | }); |
| | | |
| | | }); |
| | | |
| | | |
| | | jQuery(document).bind("change", function(event) { |
| | | if (jQuery(".panel #Filter").length > 0 && event.target.localName == 'select') { |
| | | var elName = event.target.localName; |
| | | if (jQuery(".panel #Filter").length > 0 && elName == 'select') { |
| | | event.preventDefault(); |
| | | jQuery(".panel #Filter").trigger('click'); |
| | | } |
| | | if(elName == 'select' || elName == 'input' || elName == 'textarea') { |
| | | if(jQuery(event.target).hasClass('no-page-form-change') == false) { |
| | | // set marker that something was changed |
| | | pageFormChanged = true; |
| | | } |
| | | } |
| | | }); |
| | | |
| | | jQuery(document).bind("keypress", function(event) { |
| | | //Use jQuery submit with keypress Enter in panel filterbar |
| | | if (event.which == '13' && jQuery(".panel #Filter").length > 0) { |
| | | if (event.which == '13' && jQuery(".panel #Filter").length > 0 && jQuery(event.target).hasClass('ui-autocomplete-input') == false ) { |
| | | event.preventDefault(); |
| | | 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') { |
| | | if (event.which == '13' && jQuery(".pnl_formsarea button.positive").length > 0 && event.target.localName != 'textarea' && jQuery(event.target).is(':input')) { |
| | | event.preventDefault(); |
| | | jQuery(".pnl_formsarea button.positive:first").trigger('click'); |
| | | jQuery(".pnl_formsarea button.positive:first").not("[disabled='disabled']").trigger('click'); |
| | | } |
| | | }); |
| | | |
| | | 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"); |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | </script> |
| | | </head> |
| | | <body> |
| | |
| | | <!-- begin: #content --> |
| | | <section id="content"> |
| | | <form method="post" action="" id="pageForm" name="pageForm" enctype="multipart/form-data" class="uniForm"> |
| | | <input type="text" style="display:none" /><input type="password" style="display:none"/> |
| | | <div id="pageContent"><!-- AJAX CONTENT --></div> |
| | | </form> |
| | | <div id="ie_clearing"> </div> |
| | |
| | | Powered by <a href="<tmpl_var name="app_link">" target="_blank"><tmpl_var name="app_title"></a> |
| | | </footer><!-- end: footer --> |
| | | </div> |
| | | |
| | | <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> |
| | | </body> |
| | | </html> |