summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f434fc1)
raw | patch | inline | side by side (parent: f434fc1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Mar 2007 09:31:07 +0000 (09:31 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 21 Mar 2007 09:31:07 +0000 (09:31 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@5848 594d385d-05f5-0310-b6e9-bd551577e9d8
include/sieve/class_sieveElement_If.inc | patch | blob | history | |
include/sieve/templates/element_size.tpl | patch | blob | history |
index 4368a7b2791506ce564eecc18f3cb6f995d3679a..05f4895141ed53d8f739a4e24f7e1888d3b6964b 100644 (file)
}
/* Add allof/anyof tag */
- $script.= " ".$key." ( ";
+ if($Inverse){
+ $script .= "not ";
+ }
+ $script.= $key." ( ";
/* Add each test parameter */
foreach($data as $key2 => $dat){
$Units = array( "M" => _("Megabyte") ,
"K" => _("Kilobyte"));
+ /* Toggle Inverse ? */
+ if(isset($_POST['toggle_inverse_'.$element_id])){
+ $parsed[$key]['Inverse'] = !$parsed[$key]['Inverse'];
+ }
+
/* Reset error */
$parsed[$key]['LastError'] ="";
index fa6a92fbb1915a8cef7dfb65f0135a0d9e1ea496..c07c020947b80734a3b8a61299a9deb7c44c0529 100644 (file)
<font color='red'>{$LastError}</font>
<br>
{/if}
-
- {if $Inverse}
- {t}If size is{/t} <b>{t}not{/t}</b>
- {else}
- {t}If size is{/t}
- {/if}
+
+ {if $Inverse}
+ <input type='submit' name='toggle_inverse_{$ID}' value='{t}Not{/t}'>
+ {else}
+ <input type='submit' name='toggle_inverse_{$ID}' value='{t}-{/t}'>
+ {/if}
+
<select name='Match_type_{$ID}' title='{t}Select match type{/t}'>
{html_options options=$Match_types selected=$Match_type}
</select>