mcramer
2012-09-26 8c1761c64a5c6a24575f43e5afe7a1661cb7f34f
interface/web/dns/form/dns_hinfo.tform.php
@@ -32,6 +32,7 @@
*/
global $app;
$form["title"]          = "DNS hinfo";
$form["description"]    = "";
@@ -51,7 +52,7 @@
$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
$form["tabs"]['dns'] = array (
   'title'    => "DNS hinfo",
   'title'    => "DNS HINFO",
   'width'    => 100,
   'template'    => "templates/dns_hinfo_edit.htm",
   'fields'    => array (
@@ -69,7 +70,7 @@
      'zone' => array (
         'datatype'   => 'INTEGER',
         'formtype'   => 'TEXT',
         'default'   => intval($_REQUEST["zone"]),
         'default'   => @$app->functions->intval($_REQUEST["zone"]),
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
@@ -77,6 +78,13 @@
      'name' => 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'=> 'name_error_empty'),
                              1 => array (   'type'   => 'REGEX',
@@ -91,7 +99,7 @@
      'type' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => 'A',
         'default'   => 'HINFO',
         'value'      => '',
         'width'      => '5',
         'maxlength'   => '5'
@@ -101,9 +109,6 @@
         'formtype'   => 'TEXT',
         'validators'   => array (    0 => array (   'type'   => 'NOTEMPTY',
                                          'errmsg'=> 'data_error_empty'),
                              1 => array (   'type'   => 'REGEX',
                                          'regex' => '/^[0-9\.]{10,15}$/',
                                          'errmsg'=> 'data_error_regex'),
                           ),
         'default'   => '',
         'value'      => '',
@@ -134,6 +139,22 @@
         'default'   => 'Y',
         'value'      => array(0 => 'N',1 => 'Y')
      ),
      'stamp' => array (
         'datatype'   => 'VARCHAR',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '30',
         'maxlength'   => '255'
      ),
      'serial' => array (
         'datatype'   => 'INTEGER',
         'formtype'   => 'TEXT',
         'default'   => '',
         'value'      => '',
         'width'      => '10',
         'maxlength'   => '10'
      ),
   ##################################
   # ENDE Datatable fields
   ##################################