tbrehm
2008-07-09 7c99efcfdd45fcb3ffbdd1a4dca4ef4c79c0471d
interface/web/mail/form/mail_user.tform.php
@@ -94,7 +94,7 @@
         'validators'   => array (    0 => array (   'type'   => 'ISINT',
                                          'errmsg'=> 'quota_error_isint'),
                           ),
         'default'   => '',
         'default'   => '0',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
@@ -140,7 +140,7 @@
      'access' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'CHECKBOX',
         'default'   => '1',
         'default'   => 'y',
         'value'      => array(1 => 'y',0 => 'n')
      ),
   ##################################
@@ -166,10 +166,10 @@
         'rows'      => '15'
      ),
      'autoresponder' => array (
         'datatype'   => 'INTEGER',
         'datatype'   => 'VARCHAR',
         'formtype'   => 'CHECKBOX',
         'default'   => '1',
         'value'      => '1'
         'default'   => 'n',
         'value'      => array(1 => 'y',0 => 'n')
      ),
   ##################################
   # ENDE Datatable fields
@@ -177,5 +177,56 @@
   )
);
$form["tabs"]['filter_records'] = array (
   'title'    => "Mail Filter",
   'width'    => 100,
   'template'    => "templates/mail_user_mailfilter_edit.htm",
   'fields'    => array (
   ##################################
   # Begin Datatable fields
   ##################################
   ##################################
   # ENDE Datatable fields
   ##################################
   ),
   'plugins' => array (
        'filter_records' => array (
            'class'   => 'plugin_listview',
           'options' => array(
            'listdef' => 'list/mail_user_filter.list.php',
            'sqlextwhere' => "mailuser_id = ".@intval(@$_REQUEST['id']),
            'sql_order_by' => "ORDER BY rulename"
         )
        )
   )
);
if($_SESSION["s"]["user"]["typ"] == 'admin') {
$form["tabs"]['mailfilter'] = array (
   'title'    => "Custom Rules",
   'width'    => 100,
   'template'    => "templates/mail_user_custom_rules_edit.htm",
   'fields'    => array (
   ##################################
   # Begin Datatable fields
   ##################################
      'custom_mailfilter' => array (
         'datatype'   => 'TEXT',
         'formtype'   => 'TEXTAREA',
         'default'   => '',
         'value'      => '',
         'cols'      => '30',
         'rows'      => '15'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
   )
);
}
?>