summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7f81940)
raw | patch | inline | side by side (parent: 7f81940)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Sep 2010 06:53:05 +0000 (06:53 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 7 Sep 2010 06:53:05 +0000 (06:53 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19536 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/groupware/personal/groupware/class_filterEditor.inc | patch | blob | history | |
gosa-plugins/groupware/personal/groupware/filterEditor.tpl | patch | blob | history |
diff --git a/gosa-plugins/groupware/personal/groupware/class_filterEditor.inc b/gosa-plugins/groupware/personal/groupware/class_filterEditor.inc
index 9d940f3b2295a0bd44c53a2367e501bfc6961833..a34d92d4e29e511e9fa06fa50a1b1d56b1776572 100644 (file)
$this->parent = &$parent;
$this->filter = $filter;
- $this->types = array('OR' => _("or"), 'AND' => _("and"));
+ $this->types = array(
+ 'OR' => _("At least one of the following conditions has to match"),
+ 'AND' => _("All conditions have to match"));
$this->actions = array(
"MOVE" => _("move mail to"),
"COPY" => _("copy mail to"),
$cnt = count($filter['CONDITIONS']);
$str = "<h3>"._("Filter conditions")."</h3>";
- $str .= _("Condition type")." \n<select name='cType' onChange='document.mainform.submit();'>";
+ $str .= _("Condition type")." ";
+ $str .="\n<select size='1' name='cType' onChange='document.mainform.submit();'>";
foreach($this->types as $type => $desc){
$checked = ($type == $filter['TYPE'])? ' selected ' : '';
$str.= "\n<option {$checked} value=\"".set_post($type)."\">".set_post($desc)."</option>";
$str.= "<ul>";
foreach($filter['CONDITIONS'] as $id => $cond){
$str .= "<li>";
- $str .= _("Check field")." ";
- $str .= "\n<select name='cField_{$id}' onChange='document.mainform.submit();'>";
+# $str .= _("Check field")." ";
+ $str .= "\n<select size='1' style='width:100px;' name='cField_{$id}' onChange='document.mainform.submit();'>";
foreach($this->fields as $field => $desc){
$checked = ($field == $cond['FIELD'])? ' selected ' : '';
$str.= "\n<option {$checked} value=\"".set_post($field)."\">".set_post($desc)."</option>";
}
$str .= "\n</select>";
- $str .= " "._("if it")." ";
- $str .= "\n<select name='cComparator_{$id}' onChange='document.mainform.submit();'>";
+# $str .= " "._("if it")." ";
+ $str .= "\n<select size='1' style='width:200px;' name='cComparator_{$id}' onChange='document.mainform.submit();'>";
foreach($this->comparators as $comparator => $desc){
$checked = ($comparator == $cond['COMPARATOR'])? ' selected ' : '';
$str.= "\n<option {$checked} value=\"".set_post($comparator)."\">".set_post($desc)."</option>";
}
- $str .= "\n</select>";
+ $str .= "\n</select> ";
if(!in_array($cond['COMPARATOR'], array('is in addressbook','is not in addressbook','is empty','is not empty'))){
- $str .= "<input type='text' name='cMatch_{$id}' value=\"".set_post($cond['MATCH'])."\">";
+ $str .= "<input style='width:400px;' type='text' name='cMatch_{$id}' value=\"".set_post($cond['MATCH'])."\">";
}
$cnt --;
$str .= "</li>";
- if($cnt) $str .= $this->types[$filter['TYPE']];
+# if($cnt) $str .= $this->types[$filter['TYPE']];
}
$str .= "</ul>";
- $str .= "<button name='addCondition'>".msgPool::addButton()."</button> ";
+ $str .= "<button style='margin-left:40px;' name='addCondition'>".msgPool::addButton()."</button> ";
if(count($filter['CONDITIONS']) >= 2){
$str .= "<button name='removeCondition'>".msgPool::delButton()."</button> ";
}
$str.= "<ul>";
foreach($filter['ACTION'] as $id => $action){
$str .= "<li>";
- $str .= "\n<select name='cAction_{$id}' onChange='document.mainform.submit();'>";
+ $str .= "\n<select style='width:200px;' size='1' name='cAction_{$id}' onChange='document.mainform.submit();'>";
foreach($this->actions as $act => $desc){
$checked = ($act == $action['ACTION'])? ' selected ' : '';
$str.= "\n<option {$checked} value=\"".set_post($act)."\">".set_post($desc)."</option>";
}
- $str .= "</select>";
+ $str .= "</select> ";
if(!in_array($action['ACTION'], array('DROP'))){
- $str .= "<input type='text' name='cValue_{$id}' value=\"".set_post($action['VALUE'])."\">";
+ $str .= "<input style='width:500px;' type='text' name='cValue_{$id}' value=\"".set_post($action['VALUE'])."\">";
}
$str .= "</li>";
}
$str.= "</ul>";
- $str .= "<button name='addAction'>".msgPool::addButton()."</button> ";
+ $str .= "<button style='margin-left:40px;' name='addAction'>".msgPool::addButton()."</button> ";
if(count($filter['ACTION']) >= 2){
$str .= "<button name='removeAction'>".msgPool::delButton()."</button> ";
}
diff --git a/gosa-plugins/groupware/personal/groupware/filterEditor.tpl b/gosa-plugins/groupware/personal/groupware/filterEditor.tpl
index 9853e2c4eeb6a1fb3c801a0c2b1d8368d30e6761..5afc160478a19b6d3d159e031f33f81aa45485aa 100644 (file)
<table summary="{t}Generic settings{/t}">
<tr>
<td><LABEL for='name'>{t}Name{/t}</LABEL>:</td>
- <td><input type='text' id='name' name="DESC" value="{$NAME}"></td>
+ <td><input style='width:300px;' type='text' id='name' name="DESC" value="{$NAME}"></td>
</tr>
<tr>
<td><LABEL for='desc'>{t}Description{/t}:</LABEL></td>
- <td><input type='text' id='desc' name="DESC" value="{$DESC}"></td>
+ <td><input style='width:300px;' type='text' id='desc' name="DESC" value="{$DESC}"></td>
</tr>
</table>