summaryrefslogtreecommitdiff
path: root/plugins/managesieve/skins/default/templates
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-05-21 07:14:47 +0000
committeralecpl <alec@alec.pl>2009-05-21 07:14:47 +0000
commita393c37c4fdda083dc2afd525b489fe78a38ce0e (patch)
treef871aab48b0e2f0288aee3577c75f7bcaa44ada2 /plugins/managesieve/skins/default/templates
parent969f6b4c8b490f57f4b1befb587eae35041cc332 (diff)
- managesieve plugin
Diffstat (limited to 'plugins/managesieve/skins/default/templates')
-rw-r--r--plugins/managesieve/skins/default/templates/managesieve.html32
-rw-r--r--plugins/managesieve/skins/default/templates/managesieveedit.html110
2 files changed, 142 insertions, 0 deletions
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>