summaryrefslogtreecommitdiff
path: root/plugins/managesieve/skins/default/templates
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/managesieve/skins/default/templates')
-rw-r--r--plugins/managesieve/skins/default/templates/filteredit.html117
-rw-r--r--plugins/managesieve/skins/default/templates/managesieve.html54
-rw-r--r--plugins/managesieve/skins/default/templates/setedit.html24
3 files changed, 195 insertions, 0 deletions
diff --git a/plugins/managesieve/skins/default/templates/filteredit.html b/plugins/managesieve/skins/default/templates/filteredit.html
new file mode 100644
index 000000000..556d99621
--- /dev/null
+++ b/plugins/managesieve/skins/default/templates/filteredit.html
@@ -0,0 +1,117 @@
+<!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="/this/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' || obj.value == 'fileinto_copy')
+ {
+ 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' || obj.value == 'redirect_copy')
+ {
+ 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-title" class="boxtitle"><roundcube:label name="managesieve.filterdef" /></div>
+
+<div id="filter-form" class="boxcontent">
+<roundcube:object name="filterform" />
+
+<div id="footer">
+<div class="footerleft">
+<roundcube:button command="plugin.managesieve-save" type="input" class="button mainaction" label="save" />
+</div>
+<div class="footerright">
+<label for="disabled"><roundcube:label name="managesieve.filterdisabled" /></label>
+<input type="checkbox" id="disabled" name="_disabled" value="1" />
+</div>
+</div>
+
+</form>
+</div>
+
+
+</body>
+</html>
diff --git a/plugins/managesieve/skins/default/templates/managesieve.html b/plugins/managesieve/skins/default/templates/managesieve.html
new file mode 100644
index 000000000..94cd1f1cc
--- /dev/null
+++ b/plugins/managesieve/skins/default/templates/managesieve.html
@@ -0,0 +1,54 @@
+<!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="/this/managesieve.css" />
+<script type="text/javascript" src="/functions.js"></script>
+<script type="text/javascript" src="/splitter.js"></script>
+
+<style type="text/css">
+#filterslist { width: <roundcube:exp expression="!empty(cookie:sieveviewsplitter) ? cookie:sieveviewsplitter-5 : 210" />px; }
+#filter-box { left: <roundcube:exp expression="!empty(cookie:sieveviewsplitter) ? cookie:sieveviewsplitter+5 : 220" />px;
+<roundcube:exp expression="browser:ie ? ('width:expression((parseInt(this.parentNode.offsetWidth)-'.(!empty(cookie:sieveviewsplitter) ? cookie:sieveviewsplitter+5 : 220).')+\\'px\\');') : ''" />
+}
+</style>
+
+</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" type="link" class="buttonPas add" classSel="button addsel" classAct="button add" title="managesieve.filteradd" content=" " />
+<roundcube:button command="plugin.managesieve-del" type="link" class="buttonPas del" classSel="button delsel" classAct="button del" title="managesieve.filterdel" content=" " />
+<roundcube:button command="plugin.managesieve-up" type="link" class="buttonPas up" classSel="button upsel" classAct="button up" title="managesieve.moveup" content=" " />
+<roundcube:button command="plugin.managesieve-down" type="link" class="buttonPas down" classSel="button downsel" classAct="button down" title="managesieve.movedown" content=" " />
+</div>
+
+<div id="filtersetsbuttons">
+<roundcube:button command="plugin.managesieve-setadd" type="link" class="buttonPas setadd" classSel="button setaddsel" classAct="button setadd" title="managesieve.filtersetadd" content=" " />
+<roundcube:button command="plugin.managesieve-setdel" type="link" class="buttonPas setdel" classSel="button setdelsel" classAct="button setdel" title="managesieve.filtersetdel" content=" " />
+<roundcube:button command="plugin.managesieve-setact" type="link" class="buttonPas setset" classSel="button setsetsel" classAct="button setset" content=" " />
+<roundcube:button command="plugin.managesieve-setget" type="link" class="buttonPas setget" classSel="button setgetsel" classAct="button setget" title="managesieve.filtersetget" content=" " />
+</div>
+<div id="filtersetselect">
+<roundcube:label name="managesieve.filterset" />:
+<roundcube:object name="filtersetslist" id="filtersets-select" />
+</div>
+
+<div id="filterslist">
+<roundcube:object name="filterslist" id="filters-table" class="records-table" cellspacing="0" summary="Filters list" />
+</div>
+<script type="text/javascript">
+ var sieveviewsplit = new rcube_splitter({id:'sieveviewsplitter', p1: 'filterslist', p2: 'filter-box', orientation: 'v', relative: true, start: 215});
+ rcmail.add_onload('sieveviewsplit.init()');
+</script>
+<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/setedit.html b/plugins/managesieve/skins/default/templates/setedit.html
new file mode 100644
index 000000000..26f7fece6
--- /dev/null
+++ b/plugins/managesieve/skins/default/templates/setedit.html
@@ -0,0 +1,24 @@
+<!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="/this/managesieve.css" />
+</head>
+<body class="iframe">
+
+<div id="filter-title" class="boxtitle"><roundcube:label name="managesieve.newfilterset" /></div>
+
+<div id="filter-form" class="boxcontent">
+<roundcube:object name="filtersetform" />
+
+<p>
+<roundcube:button command="plugin.managesieve-save" type="input" class="button mainaction" label="save" />
+</p>
+
+</form>
+</div>
+
+
+</body>
+</html>