major rewrite of the web interface

This commit is contained in:
SJ
2012-09-06 15:27:20 +02:00
parent e3bd0b987a
commit 853c4ab4f1
88 changed files with 1707 additions and 3839 deletions

View File

@ -1,60 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="hu" lang="hu">
<head>
<title>piler | <?php print $title; ?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en" />
<meta name="keywords" content="clapf, webui, web ui, spam, anti-spam, email, e-mail, mail, unsolicited commercial bulk email, blacklist, software, filtering, service, Bayes, Bayesian" />
<meta name="description" content="clapf, webui, web ui, spam, anti-spam, antispam" />
<meta name="rating" content="general" />
<meta name="robots" content="all" />
<link rel="stylesheet" type="text/css" href="view/theme/default/stylesheet/style-<?php print THEME; ?>.css" />
<script type="text/javascript" src="view/javascript/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="view/javascript/jquery.dropdownPlain.js"></script>
<script type="text/javascript">
var health_worker_url = "<?php print HEALTH_WORKER_URL; ?>";
var piler_ui_lang = '<?php if(LANG == 'en') { ?>en-GB<?php } else { print LANG; } ?>';
</script>
</head>
<body onload="loadHealth(); setInterval('loadHealth()', <?php print HEALTH_REFRESH; ?> * 1000)" style="cursor: wait">
<script type="text/javascript" src="view/javascript/wz_tooltip.js"></script>
<script type="text/javascript" src="view/javascript/tip_balloon.js"></script>
<script type="text/javascript" src="view/javascript/piler.js"></script>
<div id="wrap">
<div id="menu">
<ul id="menulist">
<?php print $menu; ?>
</ul>
</div> <!-- menu -->
<div id="main">
<h3><?php print $title; ?></h3>
<?php print $content; ?>
</div> <!-- main -->
<div id="footer">
<?php print $footer; ?>
</div>
</div> <!-- wrap -->
</body>
</html>

View File

@ -1,47 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="hu" lang="hu">
<head>
<title>piler | <?php print $title; ?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en" />
<meta name="keywords" content="piler email archiver" />
<meta name="description" content="piler email archiver" />
<meta name="rating" content="general" />
<meta name="robots" content="all" />
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style-<?php print THEME; ?>.css" />
<script type="text/javascript">
var piler_ui_lang = '<?php if(LANG == 'en') { ?>en-GB<?php } else { print LANG; } ?>';
</script>
</head>
<body>
<div id="wrap">
<div id="menu">
<?php print $menu; ?>
</div> <!-- menu -->
<div id="main">
<?php if($title) { ?><h3><?php print $title; ?></h3><?php } ?>
<?php print $content; ?>
</div> <!-- main -->
<div id="footer">
<?php print $footer; ?>
</div>
</div> <!-- wrap -->
</body>
</html>

View File

@ -0,0 +1,142 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="hu" lang="hu">
<head>
<title><?php print $title; ?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en" />
<meta name="keywords" content="piler email archiver" />
<meta name="description" content="piler email archiver" />
<meta name="rating" content="general" />
<meta name="robots" content="all" />
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/mini.css" />
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style-<?php print THEME; ?>.css" />
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/jquery.ui.all.css" />
<script type="text/javascript" src="/view/javascript/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/view/javascript/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="/view/javascript/jquery.dropdownPlain.js"></script>
<script type="text/javascript">
var piler_ui_lang = '<?php if(LANG == 'en') { ?>en-GB<?php } else { print LANG; } ?>';
var email_search_url = '<?php print SITE_URL; ?>/index.php?route=group/email&';
var group_search_url = '<?php print SITE_URL; ?>/index.php?route=group/group&';
var folder_search_url = '<?php print SITE_URL; ?>/index.php?route=folder/folder&';
</script>
<script type="text/javascript" src="/view/javascript/piler.js"></script>
<script type="text/javascript" src="/view/javascript/splitter.js"></script>
<script type="text/javascript" src="/view/javascript/rc1.js"></script>
<script type="text/javascript" src="/view/javascript/rc2.js"></script>
<style type="text/css">
/*#mailcontframe { height: 341px; }
#mailpreviewframe { top: 351px; }
#mailleftcontainer { width: 160px; }
#mailrightcontainer { left: 170px; min-height: 200px; }*/
</style>
<script type="text/javascript">
var split = new rcube_webmail();
</script>
<script>
</script>
</head>
<body <?php if($open_saved_search_box == 1) { ?> onload="load_ajax_url('<?php print SAVE_SEARCH_URL; ?>&<?php print $search_args; ?>');" style="cursor: wait"<?php } ?>>
<div id="messagebox1" style="position: absolute; top: 0px; left: 50%; border: 3px solid red; display: none; background: orange; color: #000000; font-weight: bold; padding: 15px; z-index: 1;"></div>
<div id="fuku1">
<div id="menu">
<?php print $menu; ?>
</div>
<div style="position: absolute; border: 1px solid black; right: 20px; left: 20px; text-align: right; ">
<input type="hidden" name="searchtype" id="searchtype" value="expert" />
<input type="hidden" name="sort" id="sort" value="date" />
<input type="hidden" name="order" id="order" value="0" />
<input type="hidden" name="ref" id="ref" value="" />
<span style="font-weight: bold;"><?php print $text_search; ?>:</span>
<input type="text" id="_search" name="_search" class="advtext<?php if(!isset($_search)) { ?>grey<?php } ?>" style="width: 500px;margin: 0px;" value="<?php if(isset($_search)) { print $_search; } else { print $text_enter_search_terms; ?>" onclick="if(expsrc==0){this.value=''; this.className = 'advtext'; expsrc++;}<?php } ?>" />
<div class="aoo" onclick="javascript: document.getElementById('searchpopup1').style.display = ''; return false;">
<div class="aoq"></div>
</div>
<button id="button_search" class="active" style="margin-left: 10px; margin-right: 0px; height: 20px; width: 70px;" onclick="script:var a=document.getElementById('ref'); if(a) a.value=''; load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count, ''), 0);"><?php print $text_search; ?></button>
<input type="button" class="advsecondary" style="height: 20px; width: 70px;" onclick="javascript:var a=document.getElementById('_search'); a.value=''; a = document.getElementById('ref'); a.value=''; return false;" value="<?php print $text_cancel; ?>" />
<input type="button" class="advsecondary" style="height: 20px; width: 70px;" value="<?php print $text_save; ?>" onclick="javascript:send_ajax_post_request('<?php print SAVE_SEARCH_URL; ?>', assemble_search_term(0, '') + '&save=1'); show_message('messagebox1', '<p><?php print $text_saved; ?></p>', 0.85);" />
<?php print $popup; ?>
</div>
<div id="mainscreen">
<div id="mailleftcontainer">
<div id="mailboxlist-container">
<?php print $folder; ?>
</div>
<script type="text/javascript">
var mailviewsplitv = new rcube_splitter({id:'splitter1', p1: 'mailleftcontainer', p2: 'mailrightcontainer', orientation: 'v', relative: true, start: 165});
split.add_onload('mailviewsplitv.init()');
</script>
</div>
<div id="mailrightcontainer">
<div id="mailrightcontent">
<div id="mailcontframe">
<div id="messagelistcontainer" class="boxlistcontent" style="top:0; height:auto;">
<?php print $content; ?>
</div>
</div>
<script type="text/javascript">
var mailviewsplit = new rcube_splitter({id:'splitter2', p1: 'mailcontframe', p2: 'mailpreviewframe', orientation: 'h', relative: true, start: 205});
split.add_onload('mailviewsplit.init()');
</script>
<div id="mailpreviewframe" style="text-align: left; overflow:auto;">
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(document).ready(function(){
split.init();
});
</script>
</body>
</html>

View File

@ -1,59 +0,0 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="hu" lang="hu">
<head>
<title><?php print $title; ?></title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="en" />
<meta name="keywords" content="piler email archiver" />
<meta name="description" content="piler email archiver" />
<meta name="rating" content="general" />
<meta name="robots" content="all" />
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style-<?php print THEME; ?>.css" />
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/jquery.ui.all.css" />
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/colorbox.css" />
<script type="text/javascript" src="/view/javascript/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/view/javascript/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="/view/javascript/jquery.dropdownPlain.js"></script>
<script type="text/javascript" src="/view/javascript/colorbox.js"></script>
<script type="text/javascript">
var piler_ui_lang = '<?php if(LANG == 'en') { ?>en-GB<?php } else { print LANG; } ?>';
</script>
<script type="text/javascript" src="/view/javascript/piler.js"></script>
</head>
<body<?php if($open_saved_search_box == 1) { ?> onload="load_ajax_url('<?php print SAVE_SEARCH_URL; ?>&<?php print $search_args; ?>');" style="cursor: wait"<?php } ?>>
<script type="text/javascript" src="/view/javascript/wz_tooltip.js"></script>
<script type="text/javascript" src="/view/javascript/tip_balloon.js"></script>
<div id="wrap">
<div id="menu">
<?php print $menu; ?>
</div> <!-- menu -->
<div id="main">
<?php print $content; ?>
</div> <!-- main -->
<div id="footer">
<?php print $footer; ?>
</div>
</div> <!-- wrap -->
</body>
</html>

View File

@ -16,42 +16,37 @@
<script type="text/javascript" src="/view/javascript/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="/view/javascript/jquery-ui-1.8.13.custom.min.js"></script>
<script type="text/javascript" src="/view/javascript/jquery.dropdownPlain.js"></script>
<script type="text/javascript" src="/view/javascript/colorbox.js"></script>
<script type="text/javascript">
var piler_ui_lang = '<?php if(LANG == 'en') { ?>en-GB<?php } else { print LANG; } ?>';
var email_search_url = '<?php print SITE_URL; ?>/index.php?route=group/email&';
var group_search_url = '<?php print SITE_URL; ?>/index.php?route=group/group&';
var folder_search_url = '<?php print SITE_URL; ?>/index.php?route=folder/folder&';
var health_worker_url = "<?php print HEALTH_WORKER_URL; ?>";
</script>
<script type="text/javascript" src="/view/javascript/piler.js"></script>
</head>
<body>
<body<?php if($this->request->get['route'] == 'health/health') { ?> onload="loadHealth(); setInterval('loadHealth()', <?php print HEALTH_REFRESH; ?> * 1000)" style="cursor: wait"<?php } ?>>
<div id="wrap">
<div id="fuku1">
<div id="menu">
<div id="menu"><?php print $menu; ?></div>
<?php print $menu; ?>
<div id="main" align="center" style="border: 0px solid red; text-align: left; margin-left: 20px; margin-right: 20px; width: 1160px;">
</div> <!-- menu -->
<?php if($title) { ?><h3><?php print $title; ?></h3><?php } ?>
<div id="main">
<?php print $content; ?>
<?php if($title) { ?><h3><?php print $title; ?></h3><?php } ?>
<?php print $content; ?>
</div> <!-- main -->
<div id="footer">
<?php print $footer; ?>
</div>
<div id="footer"><?php print $footer; ?></div>
</div> <!-- wrap -->
</div>
</body>
</html>

View File

@ -1,19 +1,14 @@
<?php if(Registry::get('username')) { ?>
<div class="row">
<div class="row" style="z-index: 2;">
<div class="leftcell">
<div id="ss1">
<div class="row">
<div class="mcell" style="width: 80px;">
</div>
<div class="mcell" style="width: 350px; border: 0px solid red;">
<div class="mcell" style="width: 350px; border: 0px solid red; z-index: 3;">
<ul class="dropdown">
<li class="search_li" style="font: 11px normal Arial, sans-serif;"><a href="search.php"<?php if($_SERVER['REQUEST_URI'] == '/' || strstr($_SERVER['REQUEST_URI'], "search.php")){ ?> id="active"<?php } ?>><?php print $text_simple; ?></a>&nbsp;/&nbsp;</li>
<li class="search_li" style="font: 11px normal Arial, sans-serif;"><a href="advanced.php"<?php if(strstr($_SERVER['REQUEST_URI'], "advanced.php")){ ?> id="active"<?php } ?>><?php print $text_advanced; ?></a>&nbsp;</li>
<li class="no_search_li" style="font: 11px normal Arial, sans-serif;"><?php print $text_search2; ?> | </li>
<li class="search_li" style="font: 11px normal Arial, sans-serif;"><a class="hide" href="#"<?php if(strstr($_SERVER['QUERY_STRING'], "stat/") || strstr($_SERVER['QUERY_STRING'], "health/") || strstr($_SERVER['QUERY_STRING'], "audit/") ) { ?> id="active"<?php } ?>><?php print $text_monitor; ?></a> |
<ul class="sub_menu">
@ -23,7 +18,7 @@
</ul>
</li>
<li class="search_li" style="font: 11px normal Arial, sans-serif;"><a class="hide" href="#"<?php if(strstr($_SERVER['QUERY_STRING'], "domain/") || ($_SERVER['QUERY_STRING'] != "route=user/settings" && strstr($_SERVER['QUERY_STRING'], "user/")) || strstr($_SERVER['QUERY_STRING'], "policy/") || strstr($_SERVER['QUERY_STRING'], "import/")) { ?> id="active"<?php } ?>><?php print $text_administration; ?></a>
<li class="search_li" style="font: 11px normal Arial, sans-serif;"><a class="hide" href="#"<?php if(strstr($_SERVER['QUERY_STRING'], "domain/") || ($_SERVER['QUERY_STRING'] != "route=user/settings" && strstr($_SERVER['QUERY_STRING'], "user/")) || strstr($_SERVER['QUERY_STRING'], "policy/") || strstr($_SERVER['QUERY_STRING'], "import/")) { ?> id="active"<?php } ?>><?php print $text_administration; ?></a> |
<ul class="sub_menu">
<li><a href="index.php?route=user/list"><?php print $text_users; ?></a></li>
<li><a href="index.php?route=group/list"><?php print $text_groups; ?></a></li>
@ -33,11 +28,7 @@
</ul>
</li>
</ul>
</div>
<div class="mcell" style="width: 60px; border: 0px solid red;">
<ul class="dropdown">
<li class="last_li" style="text-align: right; float: right; font: 11px normal Arial, sans-serif;"><a href="settings.php"<?php if(strstr($_SERVER['REQUEST_URI'], "settings.php")){ ?> id="active"<?php } ?>><?php print $text_settings; ?></a></li>
<li class="last_li" style="text-align: left; font: 11px normal Arial, sans-serif;"><a href="settings.php"<?php if(strstr($_SERVER['REQUEST_URI'], "settings.php")){ ?> id="active"<?php } ?>><?php print $text_settings; ?></a></li>
</ul>
</div>
</div>

View File

@ -1,37 +1,11 @@
<?php if(Registry::get('username')) { ?>
<div class="row">
<div class="leftcell">
<div id="ss1">
<div class="row">
<div class="mcell" style="width: 80px;">
</div>
<div class="mcell" style="width: 315px;">
<ul class="dropdown">
<li class="search_li"><a href="search.php"<?php if($_SERVER['REQUEST_URI'] == '/' || strstr($_SERVER['REQUEST_URI'], "search.php")){ ?> id="active"<?php } ?>><?php print $text_simple_search; ?></a> |&nbsp;</li>
<li class="search_li"><a href="advanced.php"<?php if(strstr($_SERVER['REQUEST_URI'], "advanced.php")){ ?> id="active"<?php } ?>><?php print $text_advanced_search; ?></a></li>
</ul>
</div>
<div class="mcell" style="width: 95px;">
<ul class="dropdown">
<li class="last_li" style="text-align: right; float: right;"><a href="settings.php"<?php if(strstr($_SERVER['REQUEST_URI'], "settings.php")){ ?> id="active"<?php } ?>><?php print $text_settings; ?></a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="rightcell">
<div class="logout22">
<?php if(isset($_SESSION['realname'])) { print $text_realname; ?>: <?php print $_SESSION['realname']; ?>, <?php } ?> <a class="logout" href="logout.php"<?php if(strstr($_SERVER['QUERY_STRING'], "login/logout")){ ?> id="active"<?php } ?>><?php print $text_logout; ?></a>
<a href="search.php"<?php if($_SERVER['REQUEST_URI'] == '/' || strstr($_SERVER['REQUEST_URI'], "search.php")){ ?> id="active"<?php } ?>><?php print $text_search; ?></a> |
<a href="/settings.php"<?php if(strstr($_SERVER['REQUEST_URI'], "settings.php")){ ?> id="active"<?php } ?>><?php print $text_settings; ?></a> |
<?php if(isset($_SESSION['realname'])) { print $text_realname; ?>: <?php print $_SESSION['realname']; ?> | <?php } ?>
<a href="/logout.php"<?php if(strstr($_SERVER['QUERY_STRING'], "login/logout")){ ?> id="active"<?php } ?>><?php print $text_logout; ?></a>
</div>
</div>
</div>
<?php } ?>