tbrehm
2009-10-28 c2f53e76fde1ab534e67a9227d4f0adcde05dfa4
interface/web/mail/form/mail_user.tform.php
@@ -93,8 +93,11 @@
         'formtype'   => 'TEXT',
         'validators'   => array (    0 => array (   'type'   => 'ISINT',
                                          'errmsg'=> 'quota_error_isint'),
                              1 => array (   'type'   => 'REGEX',
                                          'regex' => '/^([0-9]*)$/',
                                          'errmsg'=> 'quota_error_value'),
                           ),
         'default'   => '',
         'default'   => '-1',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
@@ -137,11 +140,25 @@
         'default'   => 'y',
         'value'      => array(1 => 'y',0 => 'n')
      ),
      /*
      'access' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'CHECKBOX',
         'default'   => '1',
         'default'   => 'y',
         'value'      => array(1 => 'y',0 => 'n')
      ),
      */
      'disableimap' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'CHECKBOX',
         'default'   => '0',
         'value'      => array(1 => '1',0 => '0')
      ),
      'disablepop3' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'CHECKBOX',
         'default'   => 'y',
         'value'      => array(1 => '1',0 => '0')
      ),
   ##################################
   # ENDE Datatable fields
@@ -166,10 +183,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 +194,61 @@
   )
);
$form["tabs"]['filter_records'] = array (
   'title'    => "Mail Filter",
   'width'    => 100,
   'template'    => "templates/mail_user_mailfilter_edit.htm",
   'fields'    => array (
   ##################################
   # Begin Datatable fields
   ##################################
      'move_junk' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'CHECKBOX',
         'default'   => 'n',
         'value'      => array(0 => 'n',1 => 'y')
      ),
   ##################################
   # 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
   ##################################
   )
);
}
?>