From f3a90543c04d1c47ac150d25b3f3b691deea3bfd Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 13 Mar 2007 13:27:20 +0000 Subject: [PATCH] Added missing files git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5775 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../sieve/class_sieveElement_Else_Elsif.inc | 38 +++++++++++++++++++ include/sieve/templates/add_element.tpl | 14 +++++++ 2 files changed, 52 insertions(+) create mode 100644 include/sieve/class_sieveElement_Else_Elsif.inc create mode 100644 include/sieve/templates/add_element.tpl diff --git a/include/sieve/class_sieveElement_Else_Elsif.inc b/include/sieve/class_sieveElement_Else_Elsif.inc new file mode 100644 index 000000000..10a454eb2 --- /dev/null +++ b/include/sieve/class_sieveElement_Else_Elsif.inc @@ -0,0 +1,38 @@ +object_id = $object_id; + } + + function save_object() + { + } + + function execute() + { + $smarty = get_smarty(); + $smarty->assign("ID", $this->object_id); + $object_container = $smarty->fetch(get_template_path("templates/object_container_clear.tpl",TRUE,dirname(__FILE__))); + $object= $smarty->fetch(get_template_path("templates/element_else.tpl",TRUE,dirname(__FILE__))); + $str = preg_replace("/%%OBJECT_CONTENT%%/",$object,$object_container); + return($str); + } + + function get_sieve_script_part() + { + return(" else "); + } +} + +?> diff --git a/include/sieve/templates/add_element.tpl b/include/sieve/templates/add_element.tpl new file mode 100644 index 000000000..f007941b8 --- /dev/null +++ b/include/sieve/templates/add_element.tpl @@ -0,0 +1,14 @@ +

{t}Add a new element{/t}

+{t}Please select the type of element you want to add{/t} +
+ + +

 

+
+
+ +   + +
-- 2.30.2