diff options
author | alecpl <alec@alec.pl> | 2009-05-21 07:14:47 +0000 |
---|---|---|
committer | alecpl <alec@alec.pl> | 2009-05-21 07:14:47 +0000 |
commit | a393c37c4fdda083dc2afd525b489fe78a38ce0e (patch) | |
tree | f871aab48b0e2f0288aee3577c75f7bcaa44ada2 /plugins/managesieve/skins | |
parent | 969f6b4c8b490f57f4b1befb587eae35041cc332 (diff) |
- managesieve plugin
Diffstat (limited to 'plugins/managesieve/skins')
15 files changed, 299 insertions, 0 deletions
diff --git a/plugins/managesieve/skins/default/filter_add.png b/plugins/managesieve/skins/default/filter_add.png Binary files differnew file mode 100644 index 000000000..f5b34d175 --- /dev/null +++ b/plugins/managesieve/skins/default/filter_add.png diff --git a/plugins/managesieve/skins/default/filter_add_pas.png b/plugins/managesieve/skins/default/filter_add_pas.png Binary files differnew file mode 100644 index 000000000..ffe56da05 --- /dev/null +++ b/plugins/managesieve/skins/default/filter_add_pas.png diff --git a/plugins/managesieve/skins/default/filter_add_sel.png b/plugins/managesieve/skins/default/filter_add_sel.png Binary files differnew file mode 100644 index 000000000..c773009fd --- /dev/null +++ b/plugins/managesieve/skins/default/filter_add_sel.png diff --git a/plugins/managesieve/skins/default/filter_del.png b/plugins/managesieve/skins/default/filter_del.png Binary files differnew file mode 100644 index 000000000..92dc58903 --- /dev/null +++ b/plugins/managesieve/skins/default/filter_del.png diff --git a/plugins/managesieve/skins/default/filter_del_pas.png b/plugins/managesieve/skins/default/filter_del_pas.png Binary files differnew file mode 100644 index 000000000..f4ec48c57 --- /dev/null +++ b/plugins/managesieve/skins/default/filter_del_pas.png diff --git a/plugins/managesieve/skins/default/filter_del_sel.png b/plugins/managesieve/skins/default/filter_del_sel.png Binary files differnew file mode 100644 index 000000000..421e32bcc --- /dev/null +++ b/plugins/managesieve/skins/default/filter_del_sel.png diff --git a/plugins/managesieve/skins/default/filter_down.png b/plugins/managesieve/skins/default/filter_down.png Binary files differnew file mode 100644 index 000000000..451129dfe --- /dev/null +++ b/plugins/managesieve/skins/default/filter_down.png diff --git a/plugins/managesieve/skins/default/filter_down_pas.png b/plugins/managesieve/skins/default/filter_down_pas.png Binary files differnew file mode 100644 index 000000000..afa2ca591 --- /dev/null +++ b/plugins/managesieve/skins/default/filter_down_pas.png diff --git a/plugins/managesieve/skins/default/filter_down_sel.png b/plugins/managesieve/skins/default/filter_down_sel.png Binary files differnew file mode 100644 index 000000000..60614f99d --- /dev/null +++ b/plugins/managesieve/skins/default/filter_down_sel.png diff --git a/plugins/managesieve/skins/default/filter_up.png b/plugins/managesieve/skins/default/filter_up.png Binary files differnew file mode 100644 index 000000000..675561c3a --- /dev/null +++ b/plugins/managesieve/skins/default/filter_up.png diff --git a/plugins/managesieve/skins/default/filter_up_pas.png b/plugins/managesieve/skins/default/filter_up_pas.png Binary files differnew file mode 100644 index 000000000..73551893c --- /dev/null +++ b/plugins/managesieve/skins/default/filter_up_pas.png diff --git a/plugins/managesieve/skins/default/filter_up_sel.png b/plugins/managesieve/skins/default/filter_up_sel.png Binary files differnew file mode 100644 index 000000000..7c818662a --- /dev/null +++ b/plugins/managesieve/skins/default/filter_up_sel.png diff --git a/plugins/managesieve/skins/default/managesieve.css b/plugins/managesieve/skins/default/managesieve.css new file mode 100644 index 000000000..fa5c6bdcc --- /dev/null +++ b/plugins/managesieve/skins/default/managesieve.css @@ -0,0 +1,157 @@ +/***** RoundCube|Filters styles *****/ + + +#filterslist +{ + position: absolute; + left: 20px; + width: 220px; + top: 130px; + bottom: 30px; + border: 1px solid #999999; + background-color: #F9F9F9; + overflow: auto; + /* css hack for IE */ + height: expression((parseInt(document.documentElement.clientHeight)-155)+'px'); +} + +#filters-table +{ + width: 100%; + table-layout: fixed; + /* css hack for IE */ + width: expression(document.getElementById('filterslist').clientWidth); +} + +#filters-table tbody td +{ + cursor: pointer; +} + +#filtersbuttons +{ + position: absolute; + left: 20px; + top: 95px; +} + +#filter-box +{ + position: absolute; + top: 95px; + left: 250px; + right: 20px; + bottom: 30px; + border: 1px solid #999999; + overflow: hidden; + /* css hack for IE */ + width: expression((parseInt(document.documentElement.clientWidth)-30-parseInt(document.getElementById('filterslist').offsetLeft)-parseInt(document.getElementById('filterslist').offsetWidth))+'px'); + height: expression((parseInt(document.documentElement.clientHeight)-120)+'px'); +} + +#filter-frame +{ + background-color: #F9F9F9; + border: none; +} + +body.iframe +{ + background-color: #F9F9F9; + min-width: 740px; + width: expression(Math.max(740, document.documentElement.clientWidth)+'px'); +} + +#filter-form +{ + min-width: 650px; + white-space: nowrap; + background-color: #F9F9F9; + padding: 20px 10px 10px 10px; +} + +#filter-form input, select +{ + font-size: 10pt; + font-family: inherit; +} + +fieldset +{ + background-color: white; +} + +label +{ + color: #666666; +} + +#rules, #actions +{ + margin-top: 5px; + width: 100%; + padding: 0; + border-collapse: collapse; +} + +div.rulerow, div.actionrow +{ + width: 100%; + padding: 2px; + white-space: nowrap; + float: left; + border: 1px solid white; + display: block; +} + +div.rulerow:hover, div.actionrow:hover +{ + padding: 2px; + white-space: nowrap; + display: block; + float: left; + background: #F2F2F2; + border: 1px solid silver; +} + +div.rulerow table, div.actionrow table +{ + width: 100%; + padding: 0px; +} + +td.rowbuttons +{ + width: 98%; + text-align: right; + white-space: nowrap; +} + +td.rowactions, td.rowtargets +{ + width: 1%; + white-space: nowrap; +} + +input.disabled, input.disabled:hover +{ + color: #999999; +} + +input.error, textarea.error +{ + background-color: #FFFF88; +} + +input.box, +input.radio +{ + border: 0; +} + +span.label +{ + color: #666666; + font-size: 10px; + white-space: nowrap; +} diff --git a/plugins/managesieve/skins/default/templates/managesieve.html b/plugins/managesieve/skins/default/templates/managesieve.html new file mode 100644 index 000000000..998df568f --- /dev/null +++ b/plugins/managesieve/skins/default/templates/managesieve.html @@ -0,0 +1,32 @@ +<!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"> +<head> +<title><roundcube:object name="pagetitle" /></title> +<roundcube:include file="/includes/links.html" /> +<link rel="stylesheet" type="text/css" href="/settings.css" /> +<link rel="stylesheet" type="text/css" href="plugins/managesieve/skins/default/managesieve.css" /> +<script type="text/javascript" src="/functions.js"></script> +</head> +<body> + +<roundcube:include file="/includes/taskbar.html" /> +<roundcube:include file="/includes/header.html" /> +<roundcube:include file="/includes/settingstabs.html" /> + +<div id="filtersbuttons"> +<roundcube:button command="plugin.managesieve-add" imageSel="plugins/managesieve/skins/default/filter_add_sel.png" imagePas="plugins/managesieve/skins/default/filter_add_pas.png" imageAct="plugins/managesieve/skins/default/filter_add.png" width="32" height="32" title="managesieve.filteradd" /> +<roundcube:button command="plugin.managesieve-del" imageSel="plugins/managesieve/skins/default/filter_del_sel.png" imagePas="plugins/managesieve/skins/default/filter_del_pas.png" imageAct="plugins/managesieve/skins/default/filter_del.png" width="32" height="32" title="managesieve.filterdel" /> +<roundcube:button command="plugin.managesieve-up" imageSel="plugins/managesieve/skins/default/filter_up_sel.png" imagePas="plugins/managesieve/skins/default/filter_up_pas.png" imageAct="plugins/managesieve/skins/default/filter_up.png" width="32" height="32" title="managesieve.moveup" /> +<roundcube:button command="plugin.managesieve-down" imageSel="plugins/managesieve/skins/default/filter_down_sel.png" imagePas="plugins/managesieve/skins/default/filter_down_pas.png" imageAct="plugins/managesieve/skins/default/filter_down.png" width="32" height="32" title="managesieve.movedown" /> +</div> + +<div id="filterslist"> +<roundcube:object name="filterslist" id="filters-table" class="records-table" cellspacing="0" summary="Filters list" /> +</div> + +<div id="filter-box"> +<roundcube:object name="filterframe" id="filter-frame" width="100%" height="100%" frameborder="0" src="/watermark.html" /> +</div> + +</body> +</html> diff --git a/plugins/managesieve/skins/default/templates/managesieveedit.html b/plugins/managesieve/skins/default/templates/managesieveedit.html new file mode 100644 index 000000000..f03945eab --- /dev/null +++ b/plugins/managesieve/skins/default/templates/managesieveedit.html @@ -0,0 +1,110 @@ +<!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"> +<head> +<title><roundcube:object name="pagetitle" /></title> +<roundcube:include file="/includes/links.html" /> +<link rel="stylesheet" type="text/css" href="/settings.css" /> +<link rel="stylesheet" type="text/css" href="plugins/managesieve/skins/default/managesieve.css" /> +</head> +<body class="iframe"> + +<script type="text/javascript"> + +function header_select(id) +{ + var obj = document.getElementById('header'+id); + + if (obj.value == 'size') + { + document.getElementById('rule_size' + id).style.display = 'inline'; + document.getElementById('rule_op' + id).style.display = 'none'; + document.getElementById('rule_target' + id).style.display = 'none'; + document.getElementById('custom_header' + id).style.display = 'none'; + } + else + { + if (obj.value != '...') + document.getElementById('custom_header' + id).style.display = 'none'; + else + document.getElementById('custom_header' + id).style.display = 'inline'; + + document.getElementById('rule_size' + id).style.display = 'none'; + document.getElementById('rule_op' + id).style.display = 'inline'; + rule_op_select(id); + } +} + +function rule_op_select(id) +{ + var obj = document.getElementById('rule_op'+id); + + if (obj.value == 'exists' || obj.value == 'notexists') + { + document.getElementById('rule_target' + id).style.display = 'none'; + } + else + { + document.getElementById('rule_target' + id).style.display = 'inline'; + } +} + +function action_type_select(id) +{ + var obj = document.getElementById('action_type'+id); + + if (obj.value == 'fileinto') + { + document.getElementById('action_mailbox' + id).style.display = 'inline'; + document.getElementById('action_target' + id).style.display = 'none'; + document.getElementById('action_target_area' + id).style.display = 'none'; + document.getElementById('action_vacation' + id).style.display = 'none'; + } + else if (obj.value == 'redirect') + { + document.getElementById('action_target' + id).style.display = 'inline'; + document.getElementById('action_mailbox' + id).style.display = 'none'; + document.getElementById('action_target_area' + id).style.display = 'none'; + document.getElementById('action_vacation' + id).style.display = 'none'; + } + else if (obj.value.match(/^reject|ereject$/)) + { + document.getElementById('action_target_area' + id).style.display = 'inline'; + document.getElementById('action_vacation' + id).style.display = 'none'; + document.getElementById('action_target' + id).style.display = 'none'; + document.getElementById('action_mailbox' + id).style.display = 'none'; + } + else if (obj.value == 'vacation') + { + document.getElementById('action_vacation' + id).style.display = 'inline'; + document.getElementById('action_target_area' + id).style.display = 'none'; + document.getElementById('action_target' + id).style.display = 'none'; + document.getElementById('action_mailbox' + id).style.display = 'none'; + } + else // discard, keep, stop + { + document.getElementById('action_target_area' + id).style.display = 'none'; + document.getElementById('action_vacation' + id).style.display = 'none'; + document.getElementById('action_target' + id).style.display = 'none'; + document.getElementById('action_mailbox' + id).style.display = 'none'; + } +} + +function rule_join_radio(value) +{ + document.getElementById('rules').style.display = (value=='any' ? 'none' : 'block'); +} +</script> + +<div id="filter-form"> +<roundcube:object name="filterform" /> + +<p> +<roundcube:button command="plugin.managesieve-save" type="input" class="button mainaction" label="save" /> +</p> + +</form> +</div> + + +</body> +</html> |