mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-07-29 05:05:01 +02:00
added the webui to the tarball
This commit is contained in:
100
webui/view/theme/default/templates/audit/audit.tpl
Normal file
100
webui/view/theme/default/templates/audit/audit.tpl
Normal file
@@ -0,0 +1,100 @@
|
||||
|
||||
<div id="search">
|
||||
<div id="search1">
|
||||
|
||||
<div id="ss1" style="border: 0px solid red;">
|
||||
|
||||
<input type="hidden" name="sort" id="sort" value="date" />
|
||||
<input type="hidden" name="order" id="order" value="0" />
|
||||
|
||||
<div id="myid">
|
||||
|
||||
<div id="myid0" class="row" style="margin:0; padding:0; border: 0px solid blue; float: left;">
|
||||
|
||||
<div class="cell1s">
|
||||
<select name="f[]" id="key0" class="advselect">
|
||||
<option value="user"<?php if(isset($key0) && $key0 == 0) { ?> selected="selected"<?php } ?>><?php print $text_user; ?></option>
|
||||
<option value="ipaddr"<?php if(isset($key0) && $key0 == 1) { ?> selected="selected"<?php } ?>><?php print $text_ipaddr; ?></option>
|
||||
<option value="ref"<?php if(isset($key0) && $key0 == 2) { ?> selected="selected"<?php } ?>><?php print $text_ref; ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="cell2">
|
||||
<input type="text" class="advtext" name="v[]" id="val0" value="<?php if(isset($val0)) { print $val0; } ?>" />
|
||||
<input type="button" class="short" value="+" onclick="javascript:addauditblock('', '', '<?php print $text_user; ?>', '<?php print $text_ipaddr; ?>', '<?php print $text_ref; ?>'); return false;" />
|
||||
<input type="button" class="short" value="-" onclick="javascript:removeme('myid0'); return false;" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ss1" style="border: 0px solid blue;">
|
||||
<div class="row">
|
||||
<div class="cell1" style="border: 0px solid blue; width: 87px;"><?php print $text_date; ?>: </div>
|
||||
<div class="cell2"><input type="text" name="date1" id="date1" size="11" value="<?php if(isset($date1)) { print $date1; } ?>" /> <input type="text" name="date2" id="date2" size="11" value="<?php if(isset($date2)) { print $date2; } ?>" style="width: 170px;"/></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ss1" style="border: 0px solid blue;">
|
||||
<div class="row">
|
||||
<div class="cell1s"><?php print $text_action; ?>: </div>
|
||||
<div class="cell2">
|
||||
<select name="action" id="action" class="advselect2">
|
||||
<option value="<?php print ACTION_ALL; ?>"><?php print $text_all; ?></option>
|
||||
<option value="<?php print ACTION_UNKNOWN; ?>"<?php if(isset($action) && $action == ACTION_UNKNOWN) { ?> selected="selected"<?php } ?>><?php print $text_unknown; ?></option>
|
||||
<option value="<?php print ACTION_LOGIN; ?>"<?php if(isset($action) && $action == ACTION_LOGIN) { ?> selected="selected"<?php } ?>><?php print $text_login2; ?></option>
|
||||
<option value="<?php print ACTION_LOGIN_FAILED; ?>"<?php if(isset($action) && $action == ACTION_LOGIN_FAILED) { ?> selected="selected"<?php } ?>><?php print $text_login_failed; ?></option>
|
||||
<option value="<?php print ACTION_LOGOUT; ?>"<?php if(isset($action) && $action == ACTION_LOGOUT) { ?> selected="selected"<?php } ?>><?php print $text_logout2; ?></option>
|
||||
<option value="<?php print ACTION_VIEW_MESSAGE; ?>"<?php if(isset($action) && $action == ACTION_VIEW_MESSAGE) { ?> selected="selected"<?php } ?>><?php print $text_view_message2; ?></option>
|
||||
<option value="<?php print ACTION_VIEW_HEADER; ?>"<?php if(isset($action) && $action == ACTION_VIEW_HEADER) { ?> selected="selected"<?php } ?>><?php print $text_view_header; ?></option>
|
||||
<option value="<?php print ACTION_UNAUTHORIZED_VIEW_MESSAGE; ?>"<?php if(isset($action) && $action == ACTION_UNAUTHORIZED_VIEW_MESSAGE) { ?> selected="selected"<?php } ?>><?php print $text_unauthorized_view_message; ?></option>
|
||||
<option value="<?php print ACTION_RESTORE_MESSAGE; ?>"<?php if(isset($action) && $action == ACTION_RESTORE_MESSAGE) { ?> selected="selected"<?php } ?>><?php print $text_restore_message; ?></option>
|
||||
<option value="<?php print ACTION_DOWNLOAD_MESSAGE; ?>"<?php if(isset($action) && $action == ACTION_DOWNLOAD_MESSAGE) { ?> selected="selected"<?php } ?>><?php print $text_download_message2; ?></option>
|
||||
<option value="<?php print ACTION_SEARCH; ?>"<?php if(isset($action) && $action == ACTION_SEARCH) { ?> selected="selected"<?php } ?>><?php print $text_search2; ?></option>
|
||||
<option value="<?php print ACTION_SAVE_SEARCH; ?>"<?php if(isset($action) && $action == ACTION_SAVE_SEARCH) { ?> selected="selected"<?php } ?>><?php print $text_save_search; ?></option>
|
||||
<option value="<?php print ACTION_CHANGE_USER_SETTINGS; ?>"<?php if(isset($action) && $action == ACTION_CHANGE_USER_SETTINGS) { ?> selected="selected"<?php } ?>><?php print $text_change_user_settings; ?></option>
|
||||
<option value="<?php print ACTION_REMOVE_MESSAGE; ?>"<?php if(isset($action) && $action == ACTION_REMOVE_MESSAGE) { ?> selected="selected"<?php } ?>><?php print $text_remove_message2; ?></option>
|
||||
<option value="<?php print ACTION_UNAUTHORIZED_REMOVE_MESSAGE; ?>"<?php if(isset($action) && $action == ACTION_UNAUTHORIZED_REMOVE_MESSAGE) { ?> selected="selected"<?php } ?>><?php print $text_unauthorized_remove_message; ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1s"> </div>
|
||||
<div class="cell2">
|
||||
<button id="button_search" class="active" onclick="script:load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0);"><?php print $text_search; ?></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="hidden" name="tag" value="" />
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="search2">
|
||||
<div id="A1"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="AS">
|
||||
<div id="auditresultscontainer" class="empty">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php if(isset($searchterm)) { ?>
|
||||
|
||||
<script>
|
||||
<?php foreach($blocks as $block) { ?>
|
||||
addauditblock('<?php print $block['key']; ?>', '<?php print $block['val']; ?>', '<?php print $text_user; ?>', '<?php print $text_ipaddr; ?>', '<?php print $text_ref; ?>');
|
||||
<?php } ?>
|
||||
|
||||
</script>
|
||||
|
||||
<?php } ?>
|
||||
|
118
webui/view/theme/default/templates/audit/helper.tpl
Normal file
118
webui/view/theme/default/templates/audit/helper.tpl
Normal file
@@ -0,0 +1,118 @@
|
||||
|
||||
<div id="pagenav">
|
||||
<div class="navrow">
|
||||
<?php if($n >= $page_len){ ?>
|
||||
<div id="pagingleft">
|
||||
<?php if($page > 0) { ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><<</a> <?php } else { ?><span class="navlink"><< </span><?php } ?>
|
||||
<?php if($page > 0) { ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), <?php print $prev_page; ?>); return false;"> < </a> <?php } else { ?><span class="navlink"> < </span><?php } ?>
|
||||
</div>
|
||||
|
||||
<div id="pagingcenter">
|
||||
<?php print $hits_from; ?>-<?php print $hits_to; ?>, <?php print $text_total; ?>: <?php print $n; ?>
|
||||
</div>
|
||||
|
||||
<div id="pagingright">
|
||||
<?php if($next_page <= $total_pages){ ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), <?php print $next_page; ?>); return false;">> </a> <?php } else { ?><span class="navlink">> </span><?php } ?>
|
||||
<?php if($page < $total_pages) { ?> <a href="#" class="navlink" onclick="script:load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), <?php print $total_pages; ?>); return false;"> >> </a><?php } else { ?> <span class="navlink"> >></span><?php } ?>
|
||||
</div>
|
||||
|
||||
<?php } else { ?> <?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="auditresultscontainer"<?php if($n <= 0) { ?> class="empty"<?php } ?>>
|
||||
|
||||
<div id="results">
|
||||
|
||||
|
||||
<div class="resultrow">
|
||||
<?php if($n > 0){ ?>
|
||||
<div class="cellaudit title">
|
||||
<?php print $text_date; ?>
|
||||
<a href="#" onclick="script:fix_search_order('date', 1); load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_UP; ?>" alt="" border="0"></a>
|
||||
<a href="#" onclick="script:fix_search_order('date', 0); load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_DOWN; ?>" alt="" border="0"></a>
|
||||
</div>
|
||||
<div class="cellaudit title">
|
||||
<?php print $text_user; ?>
|
||||
<a href="#" onclick="script:fix_search_order('user', 1); load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_UP; ?>" alt="" border="0"></a>
|
||||
<a href="#" onclick="script:fix_search_order('user', 0); load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_DOWN; ?>" alt="" border="0"></a>
|
||||
</div>
|
||||
|
||||
<div class="cellaudit title">
|
||||
<?php print $text_ipaddr; ?>
|
||||
<a href="#" onclick="script:fix_search_order('ipaddr', 1); load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_UP; ?>" alt="" border="0"></a>
|
||||
<a href="#" onclick="script:fix_search_order('ipaddr', 0); load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_DOWN; ?>" alt="" border="0"></a>
|
||||
</div>
|
||||
|
||||
<div class="cellaudit title">
|
||||
<?php print $text_action; ?>
|
||||
<a href="#" onclick="script:fix_search_order('action', 1); load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_UP; ?>" alt="" border="0"></a>
|
||||
<a href="#" onclick="script:fix_search_order('action', 0); load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_DOWN; ?>" alt="" border="0"></a>
|
||||
</div>
|
||||
<div class="cellaudit title">
|
||||
<?php print $text_description; ?>
|
||||
<a href="#" onclick="script:fix_search_order('description', 1); load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_UP; ?>" alt="" border="0"></a>
|
||||
<a href="#" onclick="script:fix_search_order('description', 0); load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_DOWN; ?>" alt="" border="0"></a>
|
||||
</div>
|
||||
|
||||
<div class="cellaudit title">
|
||||
<?php print $text_ref; ?>
|
||||
</div>
|
||||
|
||||
<?php } else if($n == 0) { ?>
|
||||
<div class="cell3 error"><?= $text_empty_search_result; ?></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php $i=0; foreach ($messages as $message) { $i++; ?>
|
||||
|
||||
<div class="resultrow<?php if($i % 2) { ?> odd<?php } ?>">
|
||||
<div class="cellaudit date"><?php print $message['date']; ?></div>
|
||||
<div class="cellaudit"><?php print $message['email']; ?></div>
|
||||
<div class="cellaudit"><?php print $message['ipaddr']; ?></div>
|
||||
<div class="cellaudit"><?php print $actions[$message['action']]; ?></div>
|
||||
<div class="cellaudit"><?php if($message['description'] != $message['shortdescription']) { ?><span onmouseover="Tip('<?php print preg_replace("/&/", "&", $message['description']); ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><?php print $message['shortdescription']; ?></span><?php } else { print $message['description']; } ?></div>
|
||||
<div class="cellaudit"><?php if($message['piler_id']) { ?><a class="messagelink" href="<?php print SITE_URL; ?>message.php/<?php print $message['piler_id']; ?>"><?php } ?><?php print $message['id']; ?><?php if($message['piler_id']) { ?></a><?php } ?></div>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<?php if($n > 0) { for($i=$i; $i<$page_len;$i++){ ?>
|
||||
<div class="resultrow"></div>
|
||||
<?php } } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="pagenav">
|
||||
<div class="navrow">
|
||||
<?php if($n >= $page_len){ ?>
|
||||
<div id="pagingleft">
|
||||
<?php if($page > 0) { ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><<</a> <?php } else { ?><span class="navlink"><< </span><?php } ?>
|
||||
<?php if($page > 0) { ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), <?php print $prev_page; ?>); return false;"> < </a> <?php } else { ?><span class="navlink"> < </span><?php } ?>
|
||||
</div>
|
||||
|
||||
<div id="pagingcenter">
|
||||
<?php print $hits_from; ?>-<?php print $hits_to; ?>, <?php print $text_total; ?>: <?php print $n; ?>
|
||||
</div>
|
||||
|
||||
<div id="pagingright">
|
||||
<?php if($next_page <= $total_pages){ ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), <?php print $next_page; ?>); return false;">> </a> <?php } else { ?><span class="navlink">> </span><?php } ?>
|
||||
<?php if($page < $total_pages) { ?> <a href="#" class="navlink" onclick="script:load_search_results('<?php print AUDIT_HELPER_URL; ?>', assemble_search_term(count), <?php print $total_pages; ?>); return false;"> >> </a><?php } else { ?> <span class="navlink"> >></span><?php } ?>
|
||||
</div>
|
||||
|
||||
<?php } else { ?> <?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
3
webui/view/theme/default/templates/common/error.tpl
Normal file
3
webui/view/theme/default/templates/common/error.tpl
Normal file
@@ -0,0 +1,3 @@
|
||||
|
||||
<p><?php print $errorstring; ?></p>
|
||||
|
1
webui/view/theme/default/templates/common/footer.tpl
Normal file
1
webui/view/theme/default/templates/common/footer.tpl
Normal file
@@ -0,0 +1 @@
|
||||
|
@@ -0,0 +1 @@
|
||||
<?php print $content; ?>
|
59
webui/view/theme/default/templates/common/layout-health.tpl
Normal file
59
webui/view/theme/default/templates/common/layout-health.tpl
Normal file
@@ -0,0 +1,59 @@
|
||||
<!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; ?>";
|
||||
</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>
|
59
webui/view/theme/default/templates/common/layout-search.tpl
Normal file
59
webui/view/theme/default/templates/common/layout-search.tpl
Normal file
@@ -0,0 +1,59 @@
|
||||
<!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>
|
50
webui/view/theme/default/templates/common/layout.tpl
Normal file
50
webui/view/theme/default/templates/common/layout.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
<!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" />
|
||||
<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" src="/view/javascript/piler.js"></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>
|
42
webui/view/theme/default/templates/common/menu-admin.tpl
Normal file
42
webui/view/theme/default/templates/common/menu-admin.tpl
Normal file
@@ -0,0 +1,42 @@
|
||||
<?php if(Registry::get('username')) { ?>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="leftcell">
|
||||
<ul class="dropdown">
|
||||
<li class="first_li_admin"><a href="search.php"<?php if($_SERVER['REQUEST_URI'] == '/' || strstr($_SERVER['REQUEST_URI'], "search.php")){ ?> id="active"<?php } ?>><?php print $text_search; ?></a></li>
|
||||
<li class="admin"><a href="advanced.php"<?php if(strstr($_SERVER['REQUEST_URI'], "advanced.php")){ ?> id="active"<?php } ?>><?php print $text_advanced_search; ?></a></li>
|
||||
|
||||
<li class="admin"><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">
|
||||
<li><a href="index.php?route=stat/stat×pan=daily"><?php print $text_statistics; ?></a></li>
|
||||
<li><a href="index.php?route=health/health"><?php print $text_health; ?></a></li>
|
||||
<li><a href="index.php?route=audit/audit"><?php print $text_audit; ?></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="admin"><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_user_management; ?></a></li>
|
||||
<li><a href="index.php?route=domain/domain"><?php print $text_domain; ?></a></li>
|
||||
<li><a href="index.php?route=policy/archiving"><?php print $text_archiving_rules; ?></a></li>
|
||||
<li><a href="index.php?route=policy/retention"><?php print $text_retention_rules; ?></a></li>
|
||||
</ul>
|
||||
</li>
|
||||
|
||||
<li class="last_li_admin"><a href="settings.php"<?php if(strstr($_SERVER['REQUEST_URI'], "settings.php")){ ?> id="active"<?php } ?>><?php print $text_settings; ?></a></li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="rightcell">
|
||||
<div class="logout22">
|
||||
<?php if(isset($_SESSION['realname'])) { print $text_realname; ?>: <?php print $_SESSION['realname']; ?>, <?php } ?> <a class="logout" href="index.php?route=login/logout"<?php if(strstr($_SERVER['QUERY_STRING'], "login/logout")){ ?> id="active"<?php } ?>><?php print $text_logout; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php } ?>
|
24
webui/view/theme/default/templates/common/menu.tpl
Normal file
24
webui/view/theme/default/templates/common/menu.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
<?php if(Registry::get('username')) { ?>
|
||||
|
||||
<div class="row">
|
||||
|
||||
<div class="leftcell">
|
||||
<ul class="dropdown">
|
||||
<li class="first_li"><a href="search.php"<?php if($_SERVER['REQUEST_URI'] == '/' || strstr($_SERVER['REQUEST_URI'], "search.php")){ ?> id="active"<?php } ?>><?php print $text_search; ?></a></li>
|
||||
<li class="center_li"><a href="advanced.php"<?php if(strstr($_SERVER['REQUEST_URI'], "advanced.php")){ ?> id="active"<?php } ?>><?php print $text_advanced_search; ?></a></li>
|
||||
<li class="last_li"><a href="settings.php"<?php if(strstr($_SERVER['REQUEST_URI'], "settings.php")){ ?> id="active"<?php } ?>><?php print $text_settings; ?></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="rightcell">
|
||||
<div class="logout22">
|
||||
<?php if(isset($_SESSION['realname'])) { print $text_realname; ?>: <?php print $_SESSION['realname']; ?>, <?php } ?> <a class="logout" href="index.php?route=login/logout"<?php if(strstr($_SERVER['QUERY_STRING'], "login/logout")){ ?> id="active"<?php } ?>><?php print $text_logout; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
2
webui/view/theme/default/templates/common/not_found.tpl
Normal file
2
webui/view/theme/default/templates/common/not_found.tpl
Normal file
@@ -0,0 +1,2 @@
|
||||
|
||||
|
50
webui/view/theme/default/templates/domain/list.tpl
Normal file
50
webui/view/theme/default/templates/domain/list.tpl
Normal file
@@ -0,0 +1,50 @@
|
||||
|
||||
<h4><?php print $text_add_new_domain; ?></h4>
|
||||
|
||||
<form method="post" name="add1" action="index.php?route=domain/domain" style="margin-bottom: 30px;">
|
||||
|
||||
<div id="ss1" style="margin-top: 10px;">
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_domain; ?>:</div>
|
||||
<div class="domaincell"><input type="text" class="text" name="domain" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_mapped_domain; ?>:</div>
|
||||
<div class="domaincell"><input type="text" class="text" name="mapped" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"> </div>
|
||||
<div class="domaincell"><input type="submit" value="<?php print $text_add; ?>" /> <input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<h4><?php print $text_existing_domains; ?></h4>
|
||||
|
||||
<?php if(isset($domains)){ ?>
|
||||
|
||||
<div id="ss1" style="margin-top: 10px;">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_domain; ?></div>
|
||||
<div class="domaincell"><?php print $text_mapped_domain; ?></div>
|
||||
<div class="domaincell"> </div>
|
||||
</div>
|
||||
|
||||
<?php foreach($domains as $domain) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><a href="index.php?route=user/list&search=@<?php print $domain['domain']; ?>"><?php print $domain['domain']; ?></a></div>
|
||||
<div class="domaincell"><?php print $domain['mapped']; ?></div>
|
||||
<div class="domaincell"><a href="index.php?route=domain/remove&domain=<?php print urlencode($domain['domain']); ?>"><?php print $text_remove; ?></a></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<?php print $text_not_found; ?>
|
||||
<?php } ?>
|
||||
|
||||
|
13
webui/view/theme/default/templates/domain/remove.tpl
Normal file
13
webui/view/theme/default/templates/domain/remove.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
<p>
|
||||
|
||||
<?php if($confirmed){ ?>
|
||||
|
||||
<?php print $x; ?>. <a href="index.php?route=domain/domain"><?php print $text_back; ?></a>
|
||||
|
||||
<?php } else { ?>
|
||||
<a href="index.php?route=domain/remove&domain=<?php print $domain; ?>&confirmed=1"><?php print $text_remove_domain; ?>: <?php print $domain; ?></a>
|
||||
<?php } ?>
|
||||
|
||||
</p>
|
||||
|
@@ -0,0 +1,28 @@
|
||||
<!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>clapf web UI</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" />
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<p>
|
||||
<form action="index.php?route=health/worker" method="post">
|
||||
<input type="hidden" name="confirmed" value="1" />
|
||||
<input type="hidden" name="resetcounters" value="1" />
|
||||
<input type="submit" name="submit" value="<?php print $text_confirm_to_reset_counters; ?>" />
|
||||
</form>
|
||||
</p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
1
webui/view/theme/default/templates/health/health.tpl
Normal file
1
webui/view/theme/default/templates/health/health.tpl
Normal file
@@ -0,0 +1 @@
|
||||
<span id="A1"><?php print $text_loading; ?> . . .</span>
|
125
webui/view/theme/default/templates/health/worker.tpl
Normal file
125
webui/view/theme/default/templates/health/worker.tpl
Normal file
@@ -0,0 +1,125 @@
|
||||
<div id="search">
|
||||
|
||||
<div id="health1">
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_refresh_period; ?>:</div>
|
||||
<div class="cellhealthright"><?php print HEALTH_REFRESH; ?> sec</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_server_name; ?>:</div>
|
||||
<div class="cellhealthright"><?php print $sysinfo[0]; ?></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_server_operating_system; ?>:</div>
|
||||
<div class="cellhealthright"><?php print $sysinfo[1]; ?></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_uptime; ?>:</div>
|
||||
<div class="cellhealthright"><?php print $uptime; ?></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_archive_size; ?>:</div>
|
||||
<div class="cellhealthright"><?php print $archive_size; ?> MB</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_smtp_status; ?>:</div>
|
||||
<div class="cellhealthright">
|
||||
<?php foreach($health as $h) {
|
||||
if(preg_match("/^220/", $h[1])) {
|
||||
$status = 'OK'; $class = 'ok';
|
||||
} else {
|
||||
$status = 'ERROR'; $class = 'error';
|
||||
}
|
||||
?>
|
||||
<div class="<?php print $class; ?>"><span onmouseover="Tip('<?php print preg_replace("/\'/", "\'", $h[1]); ?>, <?php print $h[2]; ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><?php print $h[3]; ?>: <?php print $status; ?></span></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_processed_emails; ?>:</div>
|
||||
<div class="cellhealthright"><?php print $processed_emails[0]; ?> (<?= $text_24_hours; ?>)<br /><?php print $processed_emails[1]; ?> (<?= $text_1_week; ?>)<br /><?php print $processed_emails[2]; ?> (<?= $text_30_days; ?>)</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_cpu_usage; ?>:</div>
|
||||
<div class="cellhealthright"><span class="<?php if($cpuinfo < HEALTH_RATIO) { ?>ok<?php } else { ?>error<?php } ?>"><?php print $cpuinfo; ?>% <?php print $cpuload; ?></span></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_memory_usage; ?>:</div>
|
||||
<div class="cellhealthright"><span class="<?php if($meminfo < HEALTH_RATIO) { ?>ok<?php } else { ?>error<?php } ?>"><?php print $meminfo; ?>% / <?php print $totalmem; ?> MB</span></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_swap_usage; ?></div>
|
||||
<div class="cellhealthright"><span class="<?php if($swapinfo < HEALTH_RATIO) { ?>ok<?php } else { ?>error<?php } ?>"><?php print $swapinfo; ?>% / <?php print $totalswap; ?> MB</span></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_disk_usage; ?></div>
|
||||
<div class="cellhealthright"><?php foreach($shortdiskinfo as $partition) { ?><span class="<?php if($partition['utilization'] < HEALTH_RATIO) { ?>ok<?php } else { ?>error<?php } ?>"><?php print $partition['partition']; ?> <?php print $partition['utilization']; ?>%</span> <?php } ?></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_counters; ?></div>
|
||||
<div class="cellhealthright">
|
||||
<?php while(list($k, $v) = each($counters)) {
|
||||
if(!is_numeric($k)) { ?>
|
||||
<div class="row">
|
||||
<div class="cellhealthright"><?php $a = preg_replace("/^_piler\:/", "", $k); if(isset($$a)) { print $$a; } else { print $k; } ?></div>
|
||||
<div class="cellhealthright"><?php print $v; ?></div>
|
||||
</div>
|
||||
<?php } } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if(Registry::get('admin_user') == 1) { ?>
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"> </div>
|
||||
<div class="cellhealthright">
|
||||
<form action="index.php?route=health/worker" method="post">
|
||||
<input type="hidden" name="resetcounters" value="1" />
|
||||
<input type="submit" name="submit" value="<?php print $text_reset_counters; ?>" />
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="health2">
|
||||
<?php if(isset($queues)) { ?>
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $text_queue_status; ?></div>
|
||||
</div>
|
||||
|
||||
<?php foreach ($queues as $queue) {
|
||||
|
||||
if(isset($queue['desc'])) { ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthleft"><?php print $queue['desc']; ?></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cellhealthright"><pre><?php print $queue['lines']; ?></pre></div>
|
||||
</div>
|
||||
|
||||
<?php }
|
||||
} ?>
|
||||
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
131
webui/view/theme/default/templates/health/worker.tpl-old
Normal file
131
webui/view/theme/default/templates/health/worker.tpl-old
Normal file
@@ -0,0 +1,131 @@
|
||||
<table border="0" cellpadding="10">
|
||||
<tr valign="top">
|
||||
<td>
|
||||
|
||||
<p><?php print $text_refresh_period; ?>: <?php print HEALTH_REFRESH; ?> sec</p>
|
||||
|
||||
<p><strong><?php print $text_server_name; ?>: </strong><?php print $sysinfo[0]; ?></p>
|
||||
|
||||
<p><strong><?php print $text_server_operating_system; ?>: </strong><?php print $sysinfo[1]; ?></p>
|
||||
|
||||
<p><strong><?php print $text_uptime; ?>: </strong><?php print $uptime; ?></p>
|
||||
|
||||
<p><strong><?php print $text_archive_size; ?>: </strong><?php print $archive_size; ?> MB</p>
|
||||
|
||||
<p><strong><?php print $text_processed_emails_in; ?>:</strong> <?php print $processed_emails[0]; ?>/<?php print $processed_emails[1]; ?>/<?php print $processed_emails[2]; ?></p>
|
||||
|
||||
<!--p><strong><?php print $text_smtp_status; ?>: </strong></p>
|
||||
|
||||
<p>
|
||||
<table border="1">
|
||||
<?php foreach($health as $h) {
|
||||
$status = 'ERROR';
|
||||
if(preg_match("/^220/", $h[1]) || preg_match("/^action=DUNNO/", $h[1])) { $status = 'OK'; }
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td><?php print $h[3]; ?></td>
|
||||
<td class="<?php if($status == 'OK') { ?>health-ok<?php } else { ?>health-alert<?php } ?>"><span onmouseover="Tip('<?php print preg_replace("/\'/", "\'", $h[1]); ?>, <?php print $h[2]; ?>', BALLOON, true, ABOVE,
|
||||
true)" onmouseout="UnTip()"><?php print $status; ?></span></td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<?php if(MAILLOG_PID_FILE) { ?><p><strong><?php print $text_maillog_status; ?>:</strong> <span class="health-<?php if($maillog_status == $text_running) { ?>ok<?php } else { ?>alert<?php } ?>"><?php print $maillog_status; ?></span><?php } ?>
|
||||
|
||||
<?php if(ENABLE_LDAP_IMPORT_FEATURE == 1) { ?><p><strong><?php print $text_ad_sync_status; ?>:</strong> <span class="health-<?php if($totalusers >= LDAP_IMPORT_MINIMUM_NUMBER_OF_USERS_TO_HEALTH_OK && $total_emails_in_database >= LDAP_IMPORT_MINIMUM_NUMBER_OF_USERS_TO_HEALTH_OK) { ?>ok<?php } else { ?>alert<?php } ?>"><?php print $adsyncinfo; ?> <?php print strtolower($text_email); ?></span></p><?php } ?>
|
||||
|
||||
<?php if(file_exists(DAILY_QUARANTINE_REPORT_STAT)) { ?><p><strong><?php print $text_daily_quarantine_report_status; ?>:</strong> <span class="health-<?php if(preg_match("/\/0$/", $quarantinereportinfo) && !preg_match("/ 0\//", $quarantinereportinfo) ) { ?>ok<?php } else { ?>alert<?php } ?>"><?php print $quarantinereportinfo; ?></span></p><?php } ?>
|
||||
-->
|
||||
|
||||
|
||||
<p><strong><?php print $text_cpu_usage; ?>:</strong> <span class="health-<?php if($cpuinfo < HEALTH_RATIO) { ?>ok<?php } else { ?>alert<?php } ?>"><?php print $cpuinfo; ?>%</span>, <strong><?php print $text_cpu_load; ?>:</strong> <span class="health-<?php if($cpuinfo < HEALTH_RATIO) { ?>ok<?php } else { ?>alert<?php } ?>"><?php print $cpuload; ?></span></p>
|
||||
|
||||
<p><strong><?php print $text_memory_usage; ?>: </strong> <span class="health-<?php if($meminfo < HEALTH_RATIO) { ?>ok<?php } else { ?>alert<?php } ?>"><?php print $meminfo; ?>%</span> / <?php print $totalmem; ?> MB, <strong><?php print $text_swap_usage; ?></strong>: <span class="health-<?php if($swapinfo < HEALTH_RATIO) { ?>ok<?php } else { ?>alert<?php } ?>"><?php print $swapinfo; ?>%</span> / <?php print $totalswap; ?> MB</p>
|
||||
|
||||
<p><strong><?php print $text_disk_usage; ?>: </strong> <?php foreach($shortdiskinfo as $partition) { ?><span class="health-<?php if($partition['utilization'] < HEALTH_RATIO) { ?>ok<?php } else { ?>alert<?php } ?>"><?php print $partition['partition']; ?> <?php print $partition['utilization']; ?>%</span> <?php } ?></p>
|
||||
|
||||
<p><strong><?php print $text_counters; ?>:</strong></p>
|
||||
|
||||
<p>
|
||||
<table border="1">
|
||||
<?php while(list($k, $v) = each($counters)) {
|
||||
if(!is_numeric($k)) { ?>
|
||||
<tr><td><?php $a = preg_replace("/^_piler\:/", "", $k); if(isset($$a)) { print $$a; } else { print $k; } ?></td><td><?php print $v; ?></td></tr>
|
||||
<?php } } ?>
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<?php if(Registry::get('admin_user') == 1) { ?>
|
||||
<form action="index.php?route=health/worker" method="post">
|
||||
<input type="hidden" name="resetcounters" value="1" />
|
||||
<input type="submit" name="submit" value="<?php print $text_reset_counters; ?>" />
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
</td>
|
||||
<td>
|
||||
|
||||
<h4><?php print $text_queue_status; ?>: </h4>
|
||||
|
||||
<?php foreach ($queues as $queue) { ?>
|
||||
|
||||
<p class="queue"><table class="queue" border="0">
|
||||
|
||||
<?php if(isset($queue['desc'])) { ?>
|
||||
|
||||
<tr><td colspan="12"><strong><?php print $queue['desc']; ?></strong></td></tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
while(list($k, $v) = each($queue['lines'])) {
|
||||
$i++;
|
||||
print "<tr class='queue'>";
|
||||
$v = preg_replace("/^\*\<\/td\>/", "", $v);
|
||||
if($i == 1) { print "<td> </td>"; }
|
||||
print "$v</td></tr>\n";
|
||||
if($i == count($queue['lines'])-1) { break; }
|
||||
}
|
||||
?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</table></p>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<?php if(isset($queues_out)) { ?>
|
||||
|
||||
<h4><?php print $text_queue_out_status; ?>: </h4>
|
||||
|
||||
<?php foreach ($queues_out as $queue) { ?>
|
||||
|
||||
<p class="queue"><table class="queue" border="0">
|
||||
|
||||
<?php if(isset($queue['desc'])) { ?>
|
||||
<tr><td colspan="12"><strong><?php print $queue['desc']; ?></strong></td></tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
while(list($k, $v) = each($queue['lines'])) {
|
||||
$i++;
|
||||
print "<tr class='queue'>";
|
||||
$v = preg_replace("/^\*\<\/td\>/", "", $v);
|
||||
if($i == 1) { print "<td> </td>"; }
|
||||
print "$v</td></tr>\n";
|
||||
if($i == count($queue['lines'])-1) { break; }
|
||||
}
|
||||
?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</table></p>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
36
webui/view/theme/default/templates/login/login.tpl
Normal file
36
webui/view/theme/default/templates/login/login.tpl
Normal file
@@ -0,0 +1,36 @@
|
||||
|
||||
<?php if(!isset($_SESSION['username'])){ ?>
|
||||
<form name="login" action="index.php?route=login/login" method="post">
|
||||
<input type="hidden" name="relocation" value="<?php if(isset($_GET['route']) && !preg_match("/^login/", $_GET['route']) ) { print $_SERVER['QUERY_STRING']; } ?>" />
|
||||
|
||||
|
||||
<div id="search">
|
||||
|
||||
<div id="search1">
|
||||
|
||||
<div class="row">
|
||||
<div class="fcell"><?php print $text_email; ?>:</div>
|
||||
<div class="fcell"><input type="text" class="textregular" name="username" /></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="fcell"><?php print $text_password; ?>:</div>
|
||||
<div class="fcell"><input type="password" class="textregular" name="password" /></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="fcell"> </div>
|
||||
<div class="fcell"><input type="submit" value="<?php print $text_submit; ?>" /> <input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<?php if(isset($x)){ ?><p class="loginfailed"><?php print $x; ?></p><?php } ?>
|
||||
|
||||
<?php } ?>
|
||||
|
5
webui/view/theme/default/templates/login/logout.tpl
Normal file
5
webui/view/theme/default/templates/login/logout.tpl
Normal file
@@ -0,0 +1,5 @@
|
||||
<p>
|
||||
|
||||
<?php print $text_logged_out; ?>. <a href="index.php?route=login/login" class="messagelink"><?php print $text_back; ?></a>
|
||||
|
||||
</p>
|
24
webui/view/theme/default/templates/message/headers.tpl
Normal file
24
webui/view/theme/default/templates/message/headers.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style.css" />
|
||||
</head>
|
||||
|
||||
<body style="background: white;">
|
||||
|
||||
<div id="messagepopup">
|
||||
|
||||
<p>
|
||||
<a class="messagelink" href="/index.php?route=message/download&id=<?php print $id; ?>"><?php print $text_download_message; ?></a> |
|
||||
<a class="messagelink" href="/index.php?route=message/restore&id=<?php print $id; ?>"><?php print $text_restore_to_mailbox; ?></a> |
|
||||
<a class="messagelink" href="/message.php/<?php print $id; ?>"><?php print $text_view_message; ?></a>
|
||||
<?php if(Registry::get('admin_user') == 1 && HOLD_EMAIL == 0) { ?>
|
||||
| <a class="messagelink" href="/index.php?route=message/remove&id=<?php print $id; ?>"><?php print $text_remove_message; ?></a>
|
||||
<?php } ?>
|
||||
</p>
|
||||
|
||||
<pre><?php print $data; ?></pre>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
22
webui/view/theme/default/templates/message/remove.tpl
Normal file
22
webui/view/theme/default/templates/message/remove.tpl
Normal file
@@ -0,0 +1,22 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style.css" />
|
||||
</head>
|
||||
|
||||
<body style="background: white;">
|
||||
|
||||
<div id="messagepopup">
|
||||
|
||||
<p>
|
||||
<a class="messagelink" href="/index.php?route=message/download&id=<?php print $id; ?>"><?php print $text_download_message; ?></a> |
|
||||
<a class="messagelink" href="/index.php?route=message/restore&id=<?php print $id; ?>"><?php print $text_restore_to_mailbox; ?></a> |
|
||||
<a class="messagelink" href="/message.php/<?php print $id; ?>"><?php print $text_view_message; ?></a> |
|
||||
<a class="messagelink" href="/index.php?route=message/headers&id=<?php print $id; ?>"><?php print $text_view_headers; ?></a>
|
||||
</p>
|
||||
|
||||
<p><?php print $data; ?></p>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
24
webui/view/theme/default/templates/message/restore.tpl
Normal file
24
webui/view/theme/default/templates/message/restore.tpl
Normal file
@@ -0,0 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style.css" />
|
||||
</head>
|
||||
|
||||
<body style="background: white;">
|
||||
|
||||
<div id="messagepopup">
|
||||
|
||||
<p>
|
||||
<a class="messagelink" href="/index.php?route=message/download&id=<?php print $id; ?>"><?php print $text_download_message; ?></a> |
|
||||
<a class="messagelink" href="/message.php/<?php print $id; ?>"><?php print $text_view_message; ?></a> |
|
||||
<a class="messagelink" href="/index.php?route=message/headers&id=<?php print $id; ?>"><?php print $text_view_headers; ?></a>
|
||||
<?php if(Registry::get('admin_user') == 1 && HOLD_EMAIL == 0) { ?>
|
||||
| <a class="messagelink" href="/index.php?route=message/remove&id=<?php print $id; ?>"><?php print $text_remove_message; ?></a>
|
||||
<?php } ?>
|
||||
</p>
|
||||
|
||||
<p><?php print $data; ?></p>
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
36
webui/view/theme/default/templates/message/view.tpl
Normal file
36
webui/view/theme/default/templates/message/view.tpl
Normal file
@@ -0,0 +1,36 @@
|
||||
<html>
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/view/theme/default/stylesheet/style.css" />
|
||||
</head>
|
||||
|
||||
<body style="background: white;">
|
||||
|
||||
<div id="messagepopup">
|
||||
|
||||
<p>
|
||||
<a class="messagelink" href="/index.php?route=message/download&id=<?php print $id; ?>"><?php print $text_download_message; ?></a> |
|
||||
<a class="messagelink" href="/index.php?route=message/restore&id=<?php print $id; ?>"><?php print $text_restore_to_mailbox; ?></a> |
|
||||
<a class="messagelink" href="/index.php?route=message/headers&id=<?php print $id; ?>"><?php print $text_view_headers; ?></a>
|
||||
<?php if(Registry::get('admin_user') == 1 && HOLD_EMAIL == 0) { ?>
|
||||
| <a class="messagelink" href="/index.php?route=message/remove&id=<?php print $id; ?>"><?php print $text_remove_message; ?></a>
|
||||
<?php } ?>
|
||||
</p>
|
||||
|
||||
<strong><?php if($message['subject'] == "" || $message['subject'] == "Subject:") { print "<" . $text_no_subject . ">"; } else { print $message['subject']; } ?></strong><br />
|
||||
<strong><?php print $message['from']; ?></strong><br />
|
||||
<strong><?php print $message['to']; ?></strong><br />
|
||||
<strong><?php print $message['date']; ?></strong><br />
|
||||
|
||||
<form action="/index.php?route=message/view" method="post" name="tag">
|
||||
<input type="hidden" name="id" value="<?php print $id; ?>" />
|
||||
<p><?php print $text_tags; ?>: <input type="text" name="tag" id="tag" value="<?php print $message['tag']; ?>" size="50" /> <input type="submit" value="<?php print $text_submit; ?>" /></p>
|
||||
</form>
|
||||
|
||||
<hr />
|
||||
|
||||
<?php print $message['message']; ?><br />
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
90
webui/view/theme/default/templates/policy/archiving.tpl
Normal file
90
webui/view/theme/default/templates/policy/archiving.tpl
Normal file
@@ -0,0 +1,90 @@
|
||||
|
||||
<h4><?php print $text_add_new_rule; ?></h4>
|
||||
|
||||
<form method="post" name="add1" action="index.php?route=policy/archiving" style="margin-bottom: 30px;">
|
||||
|
||||
<div id="ss1" style="margin-top: 10px; width: 600px; border: 1px solid red;">
|
||||
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_from; ?>:</div>
|
||||
<div class="domaincell"><input type="text" class="text" name="from" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_to; ?>:</div>
|
||||
<div class="domaincell"><input type="text" class="text" name="to" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_subject; ?>:</div>
|
||||
<div class="domaincell"><input type="text" class="text" name="subject" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_size; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select class="ruleselect" name="_size">
|
||||
<option value=">">></option>
|
||||
<option value="=">=</option>
|
||||
<option value="<"><</option>
|
||||
</select>
|
||||
<input type="text" class="ruletext" name="size" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_attachment_type; ?>:</div>
|
||||
<div class="domaincell"><input type="text" class="text" name="attachment_type" /></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="domaincell"><?php print $text_attachment_size; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select class="ruleselect" name="_attachment_size">
|
||||
<option value=">">></option>
|
||||
<option value="=">=</option>
|
||||
<option value="<"><</option>
|
||||
</select>
|
||||
<input type="text" class="ruletext" name="attachment_size" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="domaincell"> </div>
|
||||
<div class="domaincell"><input type="submit" value="<?php print $text_add; ?>" /> <input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<h4><?php print $text_existing_rules; ?></h4>
|
||||
|
||||
<?php if(isset($rules)){ ?>
|
||||
|
||||
<div id="ss1" style="margin-top: 10px; width: 600px; border: 1px solid red;">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_from; ?></div>
|
||||
<div class="domaincell"><?php print $text_to; ?></div>
|
||||
<div class="domaincell"><?php print $text_subject; ?></div>
|
||||
<div class="domaincell"><?php print $text_size; ?></div>
|
||||
<div class="domaincell"><?php print $text_attachment_type; ?></div>
|
||||
<div class="domaincell"><?php print $text_attachment_size; ?></div>
|
||||
<div class="domaincell"> </div>
|
||||
</div>
|
||||
|
||||
<?php foreach($rules as $rule) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $rule['from']; ?></div>
|
||||
<div class="domaincell"><?php print $rule['to']; ?></div>
|
||||
<div class="domaincell"><?php print $rule['subject']; ?></div>
|
||||
<div class="domaincell"><?php if($rule['size'] > 0) { print $rule['_size']; ?> <?php print $rule['size']; } ?></div>
|
||||
<div class="domaincell"><?php print $rule['attachment_type']; ?></div>
|
||||
<div class="domaincell"><?php if($rule['attachment_size'] > 0) { print $rule['_attachment_size']; ?> <?php print $rule['attachment_size']; } ?></div>
|
||||
<div class="domaincell"><a href="index.php?route=policy/removearchiving&id=<?php print $rule['id']; ?>"><?php print $text_remove; ?></a></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
<?php } else { ?>
|
||||
<?php print $text_not_found; ?>
|
||||
<?php } ?>
|
||||
|
||||
|
@@ -0,0 +1,22 @@
|
||||
|
||||
<p>
|
||||
|
||||
<?php if($confirmed){ ?>
|
||||
|
||||
<?php print $x; ?>. <a href="index.php?route=policy/archiving"><?php print $text_back; ?></a>
|
||||
|
||||
<?php } else { ?>
|
||||
<a href="index.php?route=policy/removearchiving&id=<?php print $id; ?>&confirmed=1"><?php print $text_remove_rule; ?></a>: <?php
|
||||
|
||||
if($rule['from']) { print $text_from . ': ' . $rule['from'] . ', '; }
|
||||
if($rule['to']) { print $text_to . ': ' . $rule['to'] . ', '; }
|
||||
if($rule['subject']) { print $text_subject . ': ' . $rule['subject'] . ', '; }
|
||||
if($rule['size'] > 0) { print $text_size . ': ' . $rule['_size'] . ' ' . $rule['size'] . ', '; }
|
||||
if($rule['attachment_type'] > 0) { print $text_attachment_type . ': ' . $rule['attachment_type'] . ', '; }
|
||||
if($rule['attachment_size'] > 0) { print $text_attachment_size . ': ' . $rule['_attachment_size'] . ' ' . $rule['attachment_size'] . ' '; }
|
||||
?> <a href="index.php?route=policy/archiving"><?php print $text_back; ?></a>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
</p>
|
||||
|
127
webui/view/theme/default/templates/search/advanced.tpl
Normal file
127
webui/view/theme/default/templates/search/advanced.tpl
Normal file
@@ -0,0 +1,127 @@
|
||||
|
||||
<div id="search">
|
||||
<div id="search1">
|
||||
|
||||
<div id="ss1" style="border: 0px solid red;">
|
||||
|
||||
<input type="hidden" name="searchtype" id="searchtype" value="advanced" />
|
||||
|
||||
<input type="hidden" name="sort" id="sort" value="date" />
|
||||
<input type="hidden" name="order" id="order" value="0" />
|
||||
|
||||
<div id="myid">
|
||||
|
||||
<div id="myid0" class="row" style="margin:0; padding:0; border: 0px solid blue; float: left;">
|
||||
|
||||
<div class="cell1s">
|
||||
<select name="f[]" id="key0" class="advselect">
|
||||
<option value="from"<?php if(isset($key0) && $key0 == 0) { ?> selected="selected"<?php } ?>><?php print $text_from; ?></option>
|
||||
<option value="to"<?php if(isset($key0) && $key0 == 1) { ?> selected="selected"<?php } ?>><?php print $text_to; ?></option>
|
||||
<option value="subject"<?php if(isset($key0) && $key0 == 2) { ?> selected="selected"<?php } ?>><?php print $text_subject; ?></option>
|
||||
<option value="body"<?php if(isset($key0) && $key0 == 3) { ?> selected="selected"<?php } ?>><?php print $text_body; ?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="cell2">
|
||||
<input type="text" class="advtext" name="v[]" id="val0" value="<?php if(isset($val0)) { print $val0; } ?>" />
|
||||
<input type="button" class="short" value="+" onclick="javascript:addblock('', '', '<?php print $text_from; ?>', '<?php print $text_to; ?>', '<?php print $text_subject; ?>', '<?php print $text_body; ?>'); return false;" />
|
||||
<input type="button" class="short" value="-" onclick="javascript:removeme('myid0'); return false;" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ss1" style="border: 0px solid blue;">
|
||||
<div class="row">
|
||||
<div class="cell1" style="border: 0px solid blue; width: 87px;"><?php print $text_date; ?>: </div>
|
||||
<div class="cell2"><input type="text" name="date1" id="date1" size="11" value="<?php if(isset($date1)) { print $date1; } ?>" /> <input type="text" name="date2" id="date2" size="11" value="<?php if(isset($date2)) { print $date2; } ?>" style="width: 170px;"/></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ss1" style="border: 0px solid blue;">
|
||||
<div class="row">
|
||||
<div class="cell1s"><?php print $text_direction; ?>: </div>
|
||||
<div class="cell2">
|
||||
<select name="direction" id="direction" class="advselect2">
|
||||
<option value=""><?php print $text_any; ?></option>
|
||||
<option value="0"<?php if(isset($direction) && $direction == 0) { ?> selected="selected"<?php } ?>><?php print $text_inbound; ?></option>
|
||||
<option value="2"<?php if(isset($direction) && $direction == 2) { ?> selected="selected"<?php } ?>><?php print $text_outbound; ?></option>
|
||||
<option value="1"<?php if(isset($direction) && $direction == 1) { ?> selected="selected"<?php } ?>><?php print $text_internal; ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ss1" style="border: 0px solid blue;">
|
||||
<div class="row">
|
||||
<div class="cell1s"><?php print $text_attachment_type; ?>: </div>
|
||||
<div class="cell2">
|
||||
<div id="atypes" style="display: table;">
|
||||
<div class="row">
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_word" class="attachmenttype" id="attachment_type_word" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/doc.png" /> word</div>
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_excel" class="attachmenttype" id="attachment_type_excel" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/xls.png" /> excel</div>
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_powerpoint" class="attachmenttype" id="attachment_type_powerpoint" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/ppt.png" alt="powerpoint" /> powerpoint</div>
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_pdf" class="attachmenttype" id="attachment_type_pdf" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/pdf.png" /> pdf</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_compressed" class="attachmenttype" id="attachment_type_compressed" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/rar.png" /> <?php print $text_compressed; ?></div>
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_text" class="attachmenttype" id="attachment_type_text" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/txt.png" /> <?php print $text_text2; ?></div>
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_odf" class="attachmenttype" id="attachment_type_odf" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/odf.png" /> odf</div>
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_image" class="attachmenttype" id="attachment_type_image" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/image.png" /> <?php print $text_image; ?></div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_audio" class="attachmenttype" id="attachment_type_audio" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/audio.png" /> audio</div>
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_video" class="attachmenttype" id="attachment_type_video" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/video.png" /> video</div>
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_flash" class="attachmenttype" id="attachment_type_flash" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/swf.png" /> flash</div>
|
||||
<div class="cell5"><input type="checkbox" name="attachment_type_other" class="attachmenttype" id="attachment_type_other" /> <img src="/view/theme/<?php print THEME; ?>/images/fileicons/file.png" /> <?php print $text_other; ?></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1s"> </div>
|
||||
<div class="cell2">
|
||||
<button id="button_search" class="active" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0);"><?php print $text_search; ?></button>
|
||||
<input type="button" class="advsecondary" onclick="javascript:reset_adv_form(count); return false;" value="<?php print $text_cancel; ?>" />
|
||||
<input type="button" class="advsecondary" value="<?php print $text_save; ?>" onclick="javascript:send_ajax_post_request('<?php print SAVE_SEARCH_URL; ?>', assemble_search_term(count) + '&save=1', 'A1');" />
|
||||
<input type="button" class="load" name="load" onclick="javascript:load_ajax_url('<?php print SAVE_SEARCH_URL; ?>&<?php if(isset($search_args)) { print $search_args; } ?>');" value="<?php print $text_load; ?>..." />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="hidden" name="tag" value="" />
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="search2">
|
||||
<div id="A1"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="AS">
|
||||
<div id="resultscontainer" class="empty"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php if(isset($searchterm)) { ?>
|
||||
|
||||
<script>
|
||||
<?php foreach($blocks as $block) { ?>
|
||||
addblock('<?php print $block['key']; ?>', '<?php print $block['val']; ?>', '<?php print $text_from; ?>', '<?php print $text_to; ?>', '<?php print $text_subject; ?>', '<?php print $text_body; ?>');
|
||||
<?php } ?>
|
||||
|
||||
fix_search_order('<?php print $sort; ?>', '<?php print $order; ?>');
|
||||
|
||||
load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0);
|
||||
load_ajax_url('<?php print SAVE_SEARCH_URL; ?>');
|
||||
|
||||
</script>
|
||||
|
||||
<?php } ?>
|
||||
|
65
webui/view/theme/default/templates/search/expert.tpl
Normal file
65
webui/view/theme/default/templates/search/expert.tpl
Normal file
@@ -0,0 +1,65 @@
|
||||
|
||||
<div id="search">
|
||||
<div id="search1">
|
||||
|
||||
<div id="ss1" style="border: 0px solid red;">
|
||||
|
||||
<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" />
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ss1" style="border: 0px solid blue;">
|
||||
<div class="row">
|
||||
<div class="cell1s"><?php print $text_search_terms; ?>: </div>
|
||||
<div class="cell2"><input type="text" id="_search" name="_search" class="advtext" style="width: 100%;" value="<?php if(isset($_search)) { print $_search; } ?>" /></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="ss1" style="border: 0px solid blue;">
|
||||
<div class="row">
|
||||
<div class="fcell">eg. from: enron.com, subject: lunch, body: invite, date1: 2001-01-01, date2: 2001-12-31</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1s"> </div>
|
||||
<div class="cell2">
|
||||
<button id="button_search" class="active" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0);"><?php print $text_search; ?></button>
|
||||
<input type="button" class="advsecondary" onclick="javascript:var a=document.getElementById('_search'); a.value=''; return false;" value="<?php print $text_cancel; ?>" />
|
||||
<input type="button" class="advsecondary" value="<?php print $text_save; ?>" onclick="javascript:send_ajax_post_request('<?php print SAVE_SEARCH_URL; ?>', assemble_search_term(0) + '&save=1', 'A1');" />
|
||||
<input type="button" class="load" name="load" onclick="javascript:load_ajax_url('<?php print SAVE_SEARCH_URL; ?>&<?php if(isset($search_args)) { print $search_args; } ?>');" value="<?php print $text_load; ?>..." />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<input type="hidden" name="tag" value="" />
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
<div id="search2">
|
||||
<div id="A1"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="AS">
|
||||
<div id="resultscontainer" class="empty"></div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php if(isset($searchterm)) { ?>
|
||||
|
||||
<script>
|
||||
fix_search_order('<?php print $sort; ?>', '<?php print $order; ?>');
|
||||
load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0);
|
||||
load_ajax_url('<?php print SAVE_SEARCH_URL; ?>');
|
||||
</script>
|
||||
|
||||
<?php } ?>
|
||||
|
117
webui/view/theme/default/templates/search/helper.tpl
Normal file
117
webui/view/theme/default/templates/search/helper.tpl
Normal file
@@ -0,0 +1,117 @@
|
||||
|
||||
<div id="pagenav">
|
||||
<div class="navrow">
|
||||
<?php if($n >= $page_len){ ?>
|
||||
<div id="pagingleft">
|
||||
<?php if($page > 0) { ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><<</a> <?php } else { ?><span class="navlink"><< </span><?php } ?>
|
||||
<?php if($page > 0) { ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), <?php print $prev_page; ?>); return false;"> < </a> <?php } else { ?><span class="navlink"> < </span><?php } ?>
|
||||
</div>
|
||||
|
||||
<div id="pagingcenter">
|
||||
<?php print $hits_from; ?>-<?php print $hits_to; ?>, <?php print $text_total; ?>: <?php print $n; ?>
|
||||
</div>
|
||||
|
||||
<div id="pagingright">
|
||||
<?php if($next_page <= $total_pages){ ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), <?php print $next_page; ?>); return false;">> </a> <?php } else { ?><span class="navlink">> </span><?php } ?>
|
||||
<?php if($page < $total_pages) { ?> <a href="#" class="navlink" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), <?php print $total_pages; ?>); return false;"> >> </a><?php } else { ?> <span class="navlink"> >></span><?php } ?>
|
||||
</div>
|
||||
|
||||
<?php } else { ?> <?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<div id="resultscontainer"<?php if($n <= 0) { ?> class="empty"<?php } ?>>
|
||||
|
||||
<div id="results">
|
||||
|
||||
|
||||
<div class="resultrow">
|
||||
<?php if($n > 0){ ?>
|
||||
<div class="cell1"> </div>
|
||||
<div class="cell3 date">
|
||||
<?php print $text_date; ?>
|
||||
<a href="#" onclick="script:fix_search_order('date', 1); load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_UP; ?>" alt="" border="0"></a>
|
||||
<a href="#" onclick="script:fix_search_order('date', 0); load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_DOWN; ?>" alt="" border="0"></a>
|
||||
</div>
|
||||
<div class="cell3 title">
|
||||
<?php print $text_from; ?>
|
||||
<a href="#" onclick="script:fix_search_order('from', 1); load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_UP; ?>" alt="" border="0"></a>
|
||||
<a href="#" onclick="script:fix_search_order('from', 0); load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_DOWN; ?>" alt="" border="0"></a>
|
||||
</div>
|
||||
<div class="cell3 title">
|
||||
<?php print $text_subject; ?>
|
||||
<a href="#" onclick="script:fix_search_order('subj', 1); load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_UP; ?>" alt="" border="0"></a>
|
||||
<a href="#" onclick="script:fix_search_order('subj', 0); load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_DOWN; ?>" alt="" border="0"></a>
|
||||
</div>
|
||||
<div class="cell3 title">
|
||||
<?php print $text_size; ?>
|
||||
<a href="#" onclick="script:fix_search_order('size', 1); load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_UP; ?>" alt="" border="0"></a>
|
||||
<a href="#" onclick="script:fix_search_order('size', 0); load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><img src="<?= ICON_ARROW_DOWN; ?>" alt="" border="0"></a>
|
||||
</div>
|
||||
<div class="cell3"> </div>
|
||||
<div class="cell3"> </div>
|
||||
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 1) { ?>
|
||||
<div class="cell3"> </div>
|
||||
<?php } ?>
|
||||
<?php } else if($n == 0) { ?>
|
||||
<div class="cell3 error"><?= $text_empty_search_result; ?></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<?php $i=0; foreach ($messages as $message) { $i++; ?>
|
||||
|
||||
<div class="resultrow<?php if($i % 2) { ?> odd<?php } ?><?php if($message['spam'] == 1) { ?> spam<?php } ?>">
|
||||
<div class="cell5 id"><?php print ($page*$page_len) + $i; ?>.</div>
|
||||
<div class="cell5 date"><?php print $message['date']; ?></div>
|
||||
<div class="cell5 from"><?php if($message['from'] != $message['shortfrom']) { ?><span onmouseover="Tip('<?php print preg_replace("/&/", "&", $message['from']); ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><?php print $message['shortfrom']; ?></span><?php } else { print $message['from']; } ?></div>
|
||||
<div class="cell5 subject"><a class="messagelink<?php if($message['spam'] == 1) { ?> spam<?php } ?>" href="<?php print SITE_URL; ?>message.php/<?php print $message['piler_id']; ?>"><?php if($message['subject'] != $message['shortsubject']) { ?><span onmouseover="Tip('<?php print preg_replace("/&/", "&", $message['subject']); ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><?php print $message['shortsubject']; ?></span><?php } else { print $message['subject']; } ?></a><?php if($message['reference']) { ?> <span onmouseover="Tip('<?php print $message['reference']; ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()">[+]</span><?php } ?></div>
|
||||
<div class="cell5 size"><?php print $message['size']; ?></div>
|
||||
<div class="cell5"><?php if($message['attachments'] > 0) { ?><img src="<?php print ICON_ATTACHMENT; ?>" alt="" width="16" height="18" /><?php } else { ?> <?php } ?></div>
|
||||
<div class="cell5"><?php if($message['tag']) { ?><span onmouseover="Tip('<?php print $message['tag']; ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><img src="<?php print ICON_TAG; ?>" alt="" /></span><?php } else { ?> <?php } ?></div>
|
||||
<?php if(ENABLE_ON_THE_FLY_VERIFICATION == 1) { ?>
|
||||
<div class="cell5 verification"><img src="<?php if($message['verification'] == 1){ print ICON_GREEN_OK; } else { print ICON_RED_X; } ?>" alt="verification status" /></div>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
|
||||
|
||||
<?php if($n > 0) { for($i=$i; $i<$page_len;$i++){ ?>
|
||||
<div class="resultrow"></div>
|
||||
<?php if($i == 20) { break; } ?>
|
||||
<?php } } ?>
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="pagenav">
|
||||
<div class="navrow">
|
||||
<?php if($n >= $page_len){ ?>
|
||||
<div id="pagingleft">
|
||||
<?php if($page > 0) { ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0); return false;"><<</a> <?php } else { ?><span class="navlink"><< </span><?php } ?>
|
||||
<?php if($page > 0) { ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), <?php print $prev_page; ?>); return false;"> < </a> <?php } else { ?><span class="navlink"> < </span><?php } ?>
|
||||
</div>
|
||||
|
||||
<div id="pagingcenter">
|
||||
<?php print $hits_from; ?>-<?php print $hits_to; ?>, <?php print $text_total; ?>: <?php print $n; ?>
|
||||
</div>
|
||||
|
||||
<div id="pagingright">
|
||||
<?php if($next_page <= $total_pages){ ?><a href="#" class="navlink" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), <?php print $next_page; ?>); return false;">> </a> <?php } else { ?><span class="navlink">> </span><?php } ?>
|
||||
<?php if($page < $total_pages) { ?> <a href="#" class="navlink" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), <?php print $total_pages; ?>); return false;"> >> </a><?php } else { ?> <span class="navlink"> >></span><?php } ?>
|
||||
</div>
|
||||
|
||||
<?php } else { ?> <?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
20
webui/view/theme/default/templates/search/save.tpl
Normal file
20
webui/view/theme/default/templates/search/save.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
<?php if(count($searchterms) > 0) { ?>
|
||||
<form name="savesearchform" action="advanced.php" method="post" style="margin-bottom: 5px;">
|
||||
|
||||
<select name="searchterm" id="searchterm" class="select1" multiple size="<?php print $select_size; ?>" onChange="javascript:fixup_save_post_action_url(); this.form.submit(); return false;">
|
||||
<option value="search.php"<?php if("" == $_SERVER['QUERY_STRING']) { ?> selected="selected"<?php } ?>><?php print $text_empty_search_criteria; ?></option>
|
||||
|
||||
<?php foreach($searchterms as $term) {
|
||||
$term_value = assemble_search_url($term['term']);
|
||||
?>
|
||||
<option value="<?php print $term['term']; ?>&loaded=1"><?php print $term_value; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
|
||||
</form>
|
||||
|
||||
<input type="button" class="load" onclick="javascript:document.getElementById('A1').innerHTML = '<p> </p>'; " value="<?php print $text_cancel; ?>" />
|
||||
|
||||
<?php } ?>
|
||||
|
69
webui/view/theme/default/templates/search/search.tpl
Normal file
69
webui/view/theme/default/templates/search/search.tpl
Normal file
@@ -0,0 +1,69 @@
|
||||
|
||||
<div id="search">
|
||||
|
||||
<div id="search1">
|
||||
|
||||
<input type="hidden" name="searchtype" id="searchtype" value="simple" />
|
||||
|
||||
<input type="hidden" name="sort" id="sort" value="date" />
|
||||
<input type="hidden" name="order" id="order" value="0" />
|
||||
|
||||
<div id="ss1">
|
||||
<div class="row">
|
||||
<div class="cell1"><?php print $text_from; ?>:</div>
|
||||
<div class="cell2"><input type="text" class="text" name="from" id="from" value="<?php if(isset($from)) { print $from; } ?>" /></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"><?php print $text_to; ?>:</div>
|
||||
<div class="cell2"><input type="text" class="text" name="to" id="to" value="<?php if(isset($to)) { print $to; } ?>" /></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"><?php print $text_text; ?>:</div>
|
||||
<div class="cell2"><input type="text" class="text" name="subject" id="subject" value="<?php if(isset($subject)) { print $subject; } ?>" /></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"><?php print $text_date; ?>: </div>
|
||||
<div class="cell2"><input type="text" name="date1" id="date1" size="11" value="<?php if(isset($date1)) { print $date1; } ?>" /> <input type="text" name="date2" id="date2" size="11" value="<?php if(isset($date2)) { print $date2; } ?>" /></div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"> </div>
|
||||
<div class="cell2">
|
||||
<button id="button_search" class="active" onclick="script:load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0);"><?php print $text_search; ?></button>
|
||||
<input type="button" class="advsecondary" onclick="javascript:reset_simple_form(); return false;" value="<?php print $text_cancel; ?>" />
|
||||
<input type="button" class="advsecondary" value="<?= $text_save; ?>" onclick="javascript:send_ajax_post_request('<?php print SAVE_SEARCH_URL; ?>', assemble_search_term(count) + '&save=1', 'A1');" />
|
||||
<input type="button" class="load" name="load" onclick="javascript:load_ajax_url('<?php print SAVE_SEARCH_URL; ?>&<?php if(isset($search_args)) { print $search_args; } ?>');" value="<?php print $text_load; ?>..." />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="tag" value="" />
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="search2">
|
||||
<div id="A1"></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="AS">
|
||||
<div id="resultscontainer" class="empty">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php if(isset($searchterm)) { ?>
|
||||
|
||||
<script>
|
||||
fix_search_order('<?php print $sort; ?>', '<?php print $order; ?>');
|
||||
load_search_results('<?php print SEARCH_HELPER_URL; ?>', assemble_search_term(count), 0);
|
||||
load_ajax_url('<?php print SAVE_SEARCH_URL; ?>');
|
||||
</script>
|
||||
|
||||
<?php } ?>
|
||||
|
20
webui/view/theme/default/templates/stat/counter.tpl
Normal file
20
webui/view/theme/default/templates/stat/counter.tpl
Normal file
@@ -0,0 +1,20 @@
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p>
|
||||
<table border="1">
|
||||
<?php while(list($k, $v) = each($counters)) { ?>
|
||||
<tr><td><?php print $k; ?></td><td><?php print $v; ?></td></tr>
|
||||
<?php } ?>
|
||||
<?php if($counters[$prefix . 'rcvd'] > 0) { ?><tr><td>spam / <?php print $text_total_ratio; ?></td><td><?php print sprintf("%.2f", 100*$counters[$prefix . 'spam'] / $counters[$prefix . 'rcvd']); ?> %</td></tr><?php } ?>
|
||||
<?php if($counters[$prefix . 'rcvd'] > 0) { ?><tr><td>virus / <?php print $text_total_ratio; ?></td><td><?php print sprintf("%.2f", 100*$counters[$prefix . 'virus'] / $counters[$prefix . 'rcvd']); ?> %</td></tr><?php } ?>
|
||||
|
||||
</table>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<form action="index.php?route=stat/counter" method="post">
|
||||
<input type="hidden" name="reset" value="1" />
|
||||
<input type="submit" name="submit" value="<?php print $text_reset_counters; ?>" />
|
||||
</form>
|
||||
</p>
|
15
webui/view/theme/default/templates/stat/stat.tpl
Normal file
15
webui/view/theme/default/templates/stat/stat.tpl
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
<p> </p>
|
||||
|
||||
<p>
|
||||
|
||||
<?php if($timespan == "daily"){ ?>
|
||||
<strong><?php print $text_daily_report; ?></strong> <a href="index.php?route=stat/stat&timespan=monthly<?php if(isset($uid)) { ?>&uid=<?php print $uid; } ?>"><?php print $text_monthly_report; ?></a>
|
||||
<?php } else { ?>
|
||||
<a href="index.php?route=stat/stat&timespan=daily<?php if(isset($uid)) { ?>&uid=<?php print $uid; } ?>"><?php print $text_daily_report; ?></a> <strong><?php print $text_monthly_report; ?></strong>
|
||||
<?php } ?>
|
||||
|
||||
</p>
|
||||
|
||||
<p><img src="index.php?route=stat/graph&timespan=<?php print $timespan; ?>&uid=<?php print $uid; ?>" border="1" /> </p>
|
||||
|
81
webui/view/theme/default/templates/user/add.tpl
Normal file
81
webui/view/theme/default/templates/user/add.tpl
Normal file
@@ -0,0 +1,81 @@
|
||||
|
||||
<h4><?php print $text_add_new_user_alias; ?></h4>
|
||||
|
||||
<?php if(isset($errorstring)){ ?><p class="loginfailed"><?php print $text_error; ?>: <?php print $errorstring; ?></p><?php } ?>
|
||||
|
||||
|
||||
<form action="index.php?route=user/add" name="adduser" method="post" autocomplete="off">
|
||||
<input type="hidden" name="uid" value="<?php print $next_user_id; ?>" />
|
||||
|
||||
<div id="ss1">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_email_addresses; ?>:</div>
|
||||
<div class="domaincell"><textarea name="email" class="domain"><?php if(isset($post['email'])){ print $post['email']; } ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_username; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="username" value="<?php if(isset($post['username'])){ print $post['username']; } ?>" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_realname; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="realname" value="<?php if(isset($post['realname'])){ print $post['realname']; } ?>" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_domain; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="domain">
|
||||
<?php asort($domains); foreach ($domains as $domain) { ?>
|
||||
<option value="<?php if(is_array($domain)){ print $domain['mapped']; } else { print $domain; } ?>"<?php if( (isset($post) && $domain == $post['domain']) || (!isset($post) && isset($_SESSION['last_domain']) && $domain == $_SESSION['last_domain']) ){ ?> selected="selected"<?php } ?>><?php if(is_array($domain)){ print $domain['mapped']; } else { print $domain; } ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if(ENABLE_LDAP_IMPORT_FEATURE == 1) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell">LDAP DN:</div>
|
||||
<div class="domaincell"><input type="text" name="dn" value="<?php print $user['dn']; ?>" class="text" /><br /> (<?php print $text_dn_asterisk_means_skip_sync; ?>)</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password" value="" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password_again; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password2" value="" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_admin_user; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="isadmin">
|
||||
<option value="0"<?php if(isset($user['isadmin']) && $user['isadmin'] == 0){ ?> selected="selected"<?php } ?>><?php print $text_user_regular; ?></option>
|
||||
<?php if(Registry::get('admin_user') == 1) { ?><option value="1"<?php if(isset($user['isadmin']) && $user['isadmin'] == 1){ ?> selected="selected"<?php } ?>><?php print $text_user_masteradmin; ?></option><?php } ?>
|
||||
<option value="2"<?php if(isset($user['isadmin']) && $user['isadmin'] == 2){ ?> selected="selected"<?php } ?>><?php print $text_user_auditor; ?></option>
|
||||
<option value="3"<?php if(isset($user['isadmin']) && $user['isadmin'] == 3){ ?> selected="selected"<?php } ?>><?php print $text_user_read_only_admin; ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"> </div>
|
||||
<div class="domaincell"><input type="submit" value="<?php print $text_add; ?>" /><input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<?php if(isset($x)){ print $x; ?>. <a href="index.php?route=user/list"><?php print $text_back; ?></a>
|
||||
<?php } ?>
|
||||
|
99
webui/view/theme/default/templates/user/edit.tpl
Normal file
99
webui/view/theme/default/templates/user/edit.tpl
Normal file
@@ -0,0 +1,99 @@
|
||||
|
||||
|
||||
<?php if(isset($user)) {
|
||||
|
||||
$userbasedn = preg_replace("/cn=([\w]+),/", "", $user['dn']); ?>
|
||||
|
||||
<form action="index.php?route=user/edit" name="adduser" method="post" autocomplete="off">
|
||||
<input type="hidden" name="uid" value="<?php print $uid; ?>" />
|
||||
|
||||
<div id="ss1">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_email_addresses; ?>:</div>
|
||||
<div class="domaincell"><textarea name="email" class="domain"><?php print $emails; ?></textarea></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_username; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="username" value="<?php print $user['username']; ?>" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_realname; ?>:</div>
|
||||
<div class="domaincell"><input type="text" name="realname" value="<?php print $user['realname']; ?>" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_domain; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="domain">
|
||||
<?php asort($domains); foreach ($domains as $domain) { ?>
|
||||
<option value="<?php print $domain; ?>"<?php if($domain == $user['domain']){ ?> selected="selected"<?php } ?>><?php print $domain; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if(ENABLE_LDAP_IMPORT_FEATURE == 1) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell">LDAP DN:</div>
|
||||
<div class="domaincell"><input type="text" name="dn" value="<?php print $user['dn']; ?>" class="text" /><br /> (<?php print $text_dn_asterisk_means_skip_sync; ?>)</div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password" value="" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_password_again; ?>:</div>
|
||||
<div class="domaincell"><input type="password" name="password2" value="" class="text" /></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_user_id; ?>:</div>
|
||||
<div class="domaincell"><?php print $uid; ?></div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_admin_user; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<select name="isadmin">
|
||||
<option value="0"<?php if($user['isadmin'] == 0){ ?> selected="selected"<?php } ?>><?php print $text_user_regular; ?></option>
|
||||
<?php if(Registry::get('admin_user') == 1) { ?><option value="1"<?php if($user['isadmin'] == 1){ ?> selected="selected"<?php } ?>><?php print $text_user_masteradmin; ?></option><?php } ?>
|
||||
<option value="2"<?php if($user['isadmin'] == 2){ ?> selected="selected"<?php } ?>><?php print $text_user_auditor; ?></option>
|
||||
<option value="3"<?php if($user['isadmin'] == 3){ ?> selected="selected"<?php } ?>><?php print $text_user_read_only_admin; ?></option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_group_membership; ?>:</div>
|
||||
<div class="domaincell">
|
||||
<?php foreach ($user['group_membership'] as $_group_uid) { ?>
|
||||
<?php $a = preg_split("/\s/", $this->model_user_user->getEmailsByUid($_group_uid)); print $a[0]; ?></br />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"> </div>
|
||||
<div class="domaincell"><input type="submit" value="<?php print $text_modify; ?>" /><input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
<p> </p>
|
||||
<p><a href="index.php?route=user/remove&uid=<?php print $user['uid']; ?>&user=<?php print $user['username']; ?>"><?php print $text_remove_this_user; ?>: <?php print $user['username']; ?></a></p>
|
||||
<p> </p>
|
||||
|
||||
<p>
|
||||
<?php } else if(isset($x)){ print $x; ?>.
|
||||
<?php } ?>
|
||||
|
||||
<a href="index.php?route=user/list"><?php print $text_back; ?></a>
|
||||
</p>
|
67
webui/view/theme/default/templates/user/list.tpl
Normal file
67
webui/view/theme/default/templates/user/list.tpl
Normal file
@@ -0,0 +1,67 @@
|
||||
|
||||
<p/>
|
||||
|
||||
<p><a href="index.php?route=user/add"><?php print $text_add_new_user_alias; ?></a></p>
|
||||
|
||||
<h4><?php print $text_existing_users; ?></h4>
|
||||
|
||||
<form method="post" name="search1" action="index.php?route=user/list">
|
||||
<input type="text" name="search" value="<?php print $search; ?>" />
|
||||
<input type="submit" value="<?php print $text_search; ?>" />
|
||||
</form>
|
||||
|
||||
|
||||
<p> </p>
|
||||
|
||||
<?php if(isset($users)){ ?>
|
||||
|
||||
<div id="pagenav">
|
||||
<?php if($page > 0){ ?><a href="index.php?route=user/list&page=0&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> « <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php if($page > 0){ ?><a href="index.php?route=user/list&page=<?php print $prev_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> ‹ <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php print $users[0][$sort]; ?> - <?php print $users[count($users)-1][$sort]; ?>
|
||||
<?php if($total_users >= $page_len*($page+1) && $total_users > $page_len){ ?><a href="index.php?route=user/list&page=<?php print $next_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> › <?php if($total_users >= $page_len*($page+1) && $total_users > $page_len){ ?></a><?php } ?>
|
||||
<?php if($page < $total_pages){ ?><a href="index.php?route=user/list&page=<?php print $total_pages; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> » <?php if($page < $total_pages){ ?></a><?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
<div id="ss1" style="margin-top: 10px;">
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $text_realname; ?> <a href="index.php?route=user/list&sort=realname&order=0"><img src="<?php print ICON_ARROW_UP; ?>" border="0"></a> <a href="index.php?route=user/list&sort=realname&order=1"><img src="<?php print ICON_ARROW_DOWN; ?>" border="0"></a></div>
|
||||
<div class="domaincell"><?php print $text_email; ?> <a href="index.php?route=user/list&sort=email&order=0"><img src="<?php print ICON_ARROW_UP; ?>" border="0"></a> <a href="index.php?route=user/list&sort=email&order=1"><img src="<?php print ICON_ARROW_DOWN; ?>" border="0"></a></div>
|
||||
<div class="domaincell"><?php print $text_role; ?> <a href="index.php?route=user/list&sort=domain&order=0"><img src="<?php print ICON_ARROW_UP; ?>" border="0"></a> <a href="index.php?route=user/list&sort=domain&order=1"><img src="<?php print ICON_ARROW_DOWN; ?>" border="0"></a></div>
|
||||
<div class="domaincell"> </div>
|
||||
</div>
|
||||
|
||||
<?php foreach($users as $user) { ?>
|
||||
<div class="domainrow">
|
||||
<div class="domaincell"><?php print $user['realname']; ?></div>
|
||||
<div class="domaincell"><?php if($user['email'] != $user['shortemail']){ ?><span onmouseover="Tip('<?php print $user['email']; ?>', BALLOON, true, ABOVE, true)" onmouseout="UnTip()"><?php print $user['shortemail']; ?></span><?php } else { print $user['email']; } ?></div>
|
||||
<div class="domaincell">
|
||||
<?php
|
||||
if($user['isadmin'] == 0){ print $text_user_regular; }
|
||||
if($user['isadmin'] == 1){ print $text_user_masteradmin; }
|
||||
if($user['isadmin'] == 2){ print $text_user_auditor; }
|
||||
if($user['isadmin'] == 3){ print $text_user_read_only_admin; }
|
||||
?>
|
||||
</div>
|
||||
<div class="domaincell"><a href="index.php?route=user/edit&uid=<?php print $user['uid']; ?>"><?php print $text_edit_or_view; ?></a></div>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div id="pagenav">
|
||||
<?php if($page > 0){ ?><a href="index.php?route=user/list&page=0&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> « <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php if($page > 0){ ?><a href="index.php?route=user/list&page=<?php print $prev_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> ‹ <?php if($page > 0){ ?></a><?php } ?>
|
||||
<?php print $users[0][$sort]; ?> - <?php print $users[count($users)-1][$sort]; ?>
|
||||
<?php if($total_users >= $page_len*($page+1) && $total_users > $page_len){ ?><a href="index.php?route=user/list&page=<?php print $next_page; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> › <?php if($total_users >= $page_len*($page+1) && $total_users > $page_len){ ?></a><?php } ?>
|
||||
<?php if($page < $total_pages){ ?><a href="index.php?route=user/list&page=<?php print $total_pages; ?>&search=<?php print $search; ?>&sort=<?php print $sort; ?>&order=<?php print $order; ?>" class="navlink"><?php } ?> » <?php if($page < $total_pages){ ?></a><?php } ?>
|
||||
</div>
|
||||
|
||||
|
||||
<?php } else { ?>
|
||||
<?php print $text_not_found; ?>
|
||||
<?php } ?>
|
||||
|
||||
|
13
webui/view/theme/default/templates/user/remove.tpl
Normal file
13
webui/view/theme/default/templates/user/remove.tpl
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
<p>
|
||||
|
||||
<?php if($confirmed){ ?>
|
||||
|
||||
<?php print $x; ?>. <a href="index.php?route=user/list"><?php print $text_back; ?></a>
|
||||
|
||||
<?php } else { ?>
|
||||
<a href="index.php?route=user/remove&uid=<?php print $uid; ?>&user=<?php print $user; ?>&confirmed=1"><?php print $text_remove_this_user; ?>: <?php print $user; ?></a>
|
||||
<?php } ?>
|
||||
|
||||
</p>
|
||||
|
73
webui/view/theme/default/templates/user/settings.tpl
Normal file
73
webui/view/theme/default/templates/user/settings.tpl
Normal file
@@ -0,0 +1,73 @@
|
||||
|
||||
<?php if(!isset($x)){ ?>
|
||||
|
||||
<form action="/settings.php" method="post" name="setpagelen">
|
||||
|
||||
<div id="search">
|
||||
|
||||
<div id="search1">
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1" style="width: 100px;"><?php print $text_page_length; ?>:</div>
|
||||
<div class="cell2">
|
||||
<select name="pagelen">
|
||||
<option value="10"<?php if($page_len == 10) { ?> selected="selected"<?php } ?>>10
|
||||
<option value="20"<?php if($page_len == 20) { ?> selected="selected"<?php } ?>>20
|
||||
<option value="30"<?php if($page_len == 30) { ?> selected="selected"<?php } ?>>30
|
||||
<option value="50"<?php if($page_len == 50) { ?> selected="selected"<?php } ?>>50
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"><?php print $text_language; ?>:</div>
|
||||
<div class="cell2">
|
||||
<select name="lang">
|
||||
<?php foreach(Registry::get('langs') as $t) { ?>
|
||||
<option value="<?php print $t; ?>"<?php if(isset($_SESSION['lang']) && $_SESSION['lang'] == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"><?php print $text_theme; ?>:</div>
|
||||
<div class="cell2">
|
||||
<select name="theme">
|
||||
<?php foreach(Registry::get('themes') as $t) { ?>
|
||||
<option value="<?php print $t; ?>"<?php if(isset($_SESSION['theme']) && $_SESSION['theme'] == $t) { ?> selected="selected"<?php } ?>><?php print $t; ?></option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="cell1"> </div>
|
||||
<div class="cell2"><input type="submit" value="<?php print $text_set; ?>" /> <input type="reset" value="<?php print $text_cancel; ?>" /></div>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
<p> </p>
|
||||
|
||||
<?php if(PASSWORD_CHANGE_ENABLED == 1) { ?>
|
||||
<form name="pwdchange" action="index.php?route=common/home" method="post" autocomplete="off">
|
||||
<table border="0" cellpadding="0" cellspacing="0">
|
||||
<tr><td><?php print $text_password; ?>: </td><td><input type="password" name="password" /></td></tr>
|
||||
<tr><td><?php print $text_password_again; ?>: </td><td><input type="password" name="password2" /></td></tr>
|
||||
<tr><td> </td><td><input type="submit" value="<?php print $text_submit; ?>" /> <input type="reset" value="<?php print $text_cancel; ?>" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php } ?>
|
||||
|
||||
<?php } else { ?>
|
||||
<?php print $x; ?>. <a href="index.php?route=common/home"><?php print $text_back; ?></a>
|
||||
<?php } ?>
|
||||
|
||||
|
Reference in New Issue
Block a user