Marius Cramer
2014-02-18 8ddcb0d7ac2141b934c789cd7b5cf06f05e730b0
interface/web/client/form/domain.tform.php
@@ -60,16 +60,16 @@
*/
$form["title"]          = "Domain";
$form["description"]    = "";
$form["name"]          = "domain";
$form["action"]         = "domain_edit.php";
$form["db_table"]      = "domain";
$form["db_table_idx"]   = "domain_id";
$form["db_history"]      = "yes";
$form["tab_default"]   = "domain";
$form["list_default"]   = "domain_list.php";
$form["auth"]         = 'yes'; // yes / no
$form["title"]    = "Domain";
$form["description"]  = "";
$form["name"]    = "domain";
$form["action"]   = "domain_edit.php";
$form["db_table"]  = "domain";
$form["db_table_idx"] = "domain_id";
$form["db_history"]  = "yes";
$form["tab_default"] = "domain";
$form["list_default"] = "domain_list.php";
$form["auth"]   = 'yes'; // yes / no
$form["auth_preset"]["userid"]  = 0; // 0 = id of the user, > 0 id must match with id of current user
$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
@@ -78,41 +78,41 @@
$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
$form["tabs"]['domain'] = array (
   'title'    => "Domain",
   'width'    => 100,
   'template'    => "templates/domain_edit.htm",
   'fields'    => array (
   ##################################
   # Begin Datatable fields
   ##################################
   'title'  => "Domain",
   'width'  => 100,
   'template'  => "templates/domain_edit.htm",
   'fields'  => array (
      //#################################
      // Begin Datatable fields
      //#################################
      'domain' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
            'filters'   => array( 0 => array( 'event' => 'SAVE',
                                              'type' => 'IDNTOASCII'),
                                  1 => array( 'event' => 'SHOW',
                                              'type' => 'IDNTOUTF8'),
                                  2 => array( 'event' => 'SAVE',
                                              'type' => 'TOLOWER')
                                ),
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'domain_error_empty'),
                              1 => array (   'type'   => 'UNIQUE',
                                          'errmsg'=> 'domain_error_unique'),
                              2 => array (   'type'   => 'REGEX',
                                          'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z\-]{2,10}$/',
                                          'errmsg'=> 'domain_error_regex'),
                           ),
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
         'datatype' => 'VARCHAR',
         'formtype' => 'TEXT',
         'filters'   => array( 0 => array( 'event' => 'SAVE',
               'type' => 'IDNTOASCII'),
            1 => array( 'event' => 'SHOW',
               'type' => 'IDNTOUTF8'),
            2 => array( 'event' => 'SAVE',
               'type' => 'TOLOWER')
         ),
         'validators' => array (  0 => array ( 'type' => 'NOTEMPTY',
               'errmsg'=> 'domain_error_empty'),
            1 => array ( 'type' => 'UNIQUE',
               'errmsg'=> 'domain_error_unique'),
            2 => array ( 'type' => 'REGEX',
               'regex' => '/^[\w\.\-]{2,255}\.[a-zA-Z0-9\-]{2,30}$/',
               'errmsg'=> 'domain_error_regex'),
         ),
         'default' => '',
         'value'  => '',
         'width'  => '30',
         'maxlength' => '255'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################
      //#################################
      // ENDE Datatable fields
      //#################################
   )
);
?>
?>