From 5ca959fa688255a8de61f89fe2751eb4d24a6912 Mon Sep 17 00:00:00 2001 From: Florian Schaal <florian@schaal-24.de> Date: Tue, 22 Mar 2016 09:22:07 -0400 Subject: [PATCH] fixed typo --- interface/web/admin/form/server_ip.tform.php | 157 ++++++++++++++++++++++++++++------------------------ 1 files changed, 84 insertions(+), 73 deletions(-) diff --git a/interface/web/admin/form/server_ip.tform.php b/interface/web/admin/form/server_ip.tform.php index 2832efb..cd7190e 100644 --- a/interface/web/admin/form/server_ip.tform.php +++ b/interface/web/admin/form/server_ip.tform.php @@ -34,9 +34,9 @@ Tabellendefinition Datentypen: - - INTEGER (Wandelt Ausdr�cke in Int um) + - INTEGER (Wandelt Ausdrücke in Int um) - DOUBLE - - CURRENCY (Formatiert Zahlen nach W�hrungsnotation) + - CURRENCY (Formatiert Zahlen nach Währungsnotation) - VARCHAR (kein weiterer Format Check) - TEXT (kein weiterer Format Check) - DATE (Datumsformat, Timestamp Umwandlung) @@ -54,21 +54,26 @@ - Wert oder Array Hinweis: - Das ID-Feld ist nicht bei den Table Values einzuf�gen. + Das ID-Feld ist nicht bei den Table Values einzufügen. + + Search: + - searchable = 1 or searchable = 2 include the field in the search + - searchable = 1: this field will be the title of the search result + - searchable = 2: this field will be included in the description of the search result */ -$form["title"] = "IP Addresses"; -$form["description"] = "Form to edit system IP Addresses"; -$form["name"] = "server_ip"; -$form["action"] = "server_ip_edit.php"; -$form["db_table"] = "server_ip"; -$form["db_table_idx"] = "server_ip_id"; -$form["db_history"] = "yes"; -$form["tab_default"] = "server_ip"; -$form["list_default"] = "server_ip_list.php"; -$form["auth"] = 'yes'; +$form["title"] = "IP Addresses"; +$form["description"] = "Form to edit system IP Addresses"; +$form["name"] = "server_ip"; +$form["action"] = "server_ip_edit.php"; +$form["db_table"] = "server_ip"; +$form["db_table_idx"] = "server_ip_id"; +$form["db_history"] = "yes"; +$form["tab_default"] = "server_ip"; +$form["list_default"] = "server_ip_list.php"; +$form["auth"] = 'yes'; $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 @@ -77,77 +82,83 @@ $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete $form["tabs"]['server_ip'] = array ( - 'title' => "IP Address", - 'width' => 80, - 'template' => "templates/server_ip_edit.htm", - 'fields' => array ( - ################################## - # Beginn Datenbankfelder - ################################## + 'title' => "IP Address", + 'width' => 80, + 'template' => "templates/server_ip_edit.htm", + 'fields' => array ( + //################################# + // Beginn Datenbankfelder + //################################# 'server_id' => array ( - 'datatype' => 'INTEGER', - 'formtype' => 'SELECT', - 'default' => '', - 'datasource' => array ( 'type' => 'SQL', - 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', - 'keyfield'=> 'server_id', - 'valuefield'=> 'server_name' - ), - 'value' => '' + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => 'SELECT server_id,server_name FROM server WHERE {AUTHSQL} ORDER BY server_name', + 'keyfield'=> 'server_id', + 'valuefield'=> 'server_name' + ), + 'value' => '' ), 'client_id' => array ( - 'datatype' => 'INTEGER', - 'formtype' => 'SELECT', - 'default' => '', - 'datasource' => array ( 'type' => 'SQL', - 'querystring' => 'SELECT client_id,contact_name FROM client WHERE {AUTHSQL} ORDER BY contact_name', - 'keyfield'=> 'client_id', - 'valuefield'=> 'contact_name' - ), - 'value' => array(0 => ' ') + 'datatype' => 'INTEGER', + 'formtype' => 'SELECT', + 'default' => '', + 'datasource' => array ( 'type' => 'SQL', + 'querystring' => "(SELECT 0 AS client_id, '' AS name) UNION ALL (SELECT client_id,CONCAT(IF(client.company_name != '', CONCAT(client.company_name, ' :: '), ''), client.contact_name, ' (', client.username, IF(client.customer_no != '', CONCAT(', ', client.customer_no), ''), ')') as name FROM client WHERE {AUTHSQL} ORDER BY contact_name)", + 'keyfield'=> 'client_id', + 'valuefield'=> 'name' + ), + 'value' => array(0 => ' ') ), 'ip_type' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'SELECT', - 'default' => '', - 'value' => array('IPv4' => 'IPv4', 'IPv6' => 'IPv6') + 'datatype' => 'VARCHAR', + 'formtype' => 'SELECT', + 'default' => '', + 'value' => array('IPv4' => 'IPv4', 'IPv6' => 'IPv6'), + 'searchable' => 2 ), 'ip_address' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'validators' => array ( 0 => array ( 'type' => 'ISIP', - 'errmsg'=> 'ip_error_wrong'), - 1 => array ( 'type' => 'UNIQUE', - 'errmsg'=> 'ip_error_unique'), - ), - 'default' => '', - 'value' => '', - 'separator' => '', - 'width' => '15', - 'maxlength' => '15', - 'rows' => '', - 'cols' => '' + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'CUSTOM', 'class' => 'validate_server', 'function' => 'check_server_ip', + 'errmsg'=> 'ip_error_wrong'), + 1 => array ( 'type' => 'UNIQUE', + 'errmsg'=> 'ip_error_unique'), + ), + 'default' => '', + 'value' => '', + 'separator' => '', + 'width' => '15', + 'maxlength' => '15', + 'rows' => '', + 'cols' => '', + 'searchable' => 1 ), 'virtualhost' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'CHECKBOX', - 'default' => 'y', - 'value' => array(0 => 'n',1 => 'y') + 'datatype' => 'VARCHAR', + 'formtype' => 'CHECKBOX', + 'default' => 'y', + 'value' => array(0 => 'n', 1 => 'y') ), 'virtualhost_port' => array ( - 'datatype' => 'VARCHAR', - 'formtype' => 'TEXT', - 'default' => '', - 'value' => '', - 'separator' => '', - 'width' => '15', - 'maxlength' => '15', - 'rows' => '', - 'cols' => '' + 'datatype' => 'VARCHAR', + 'formtype' => 'TEXT', + 'validators' => array ( 0 => array ( 'type' => 'REGEX', + 'regex' => '/^([0-9]{1,5}\,{0,1}){1,}$/i', + 'errmsg'=> 'error_port_syntax'), + ), + 'default' => '80,443', + 'value' => '', + 'separator' => '', + 'width' => '15', + 'maxlength' => '15', + 'rows' => '', + 'cols' => '' ), - ################################## - # ENDE Datenbankfelder - ################################## + //################################# + // ENDE Datenbankfelder + //################################# ) ); -?> \ No newline at end of file +?> -- Gitblit v1.9.1