From 4eb8d2a054e69aba568d5435fd1420b5a9367207 Mon Sep 17 00:00:00 2001
From: cfoe <cfoe@ispconfig3>
Date: Wed, 18 Jul 2012 13:45:49 -0400
Subject: [PATCH] added interface + theme options for the end user
---
interface/web/sites/form/database.tform.php | 25 ++++++++++++++++++++++---
1 files changed, 22 insertions(+), 3 deletions(-)
diff --git a/interface/web/sites/form/database.tform.php b/interface/web/sites/form/database.tform.php
index ffb711f..b26a1e4 100644
--- a/interface/web/sites/form/database.tform.php
+++ b/interface/web/sites/form/database.tform.php
@@ -29,6 +29,11 @@
Hint:
The ID field of the database table is not part of the datafield definition.
The ID field must be always auto incement (int or bigint).
+
+ 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
*/
@@ -69,6 +74,17 @@
),
'value' => ''
),
+ 'parent_domain_id' => array (
+ 'datatype' => 'INTEGER',
+ 'formtype' => 'SELECT',
+ 'default' => '',
+ 'datasource' => array ( 'type' => 'SQL',
+ 'querystring' => "SELECT domain_id,domain FROM web_domain WHERE type = 'vhost' AND {AUTHSQL} ORDER BY domain",
+ 'keyfield'=> 'domain_id',
+ 'valuefield'=> 'domain'
+ ),
+ 'value' => array('0' => $app->tform->lng('select_site_txt'))
+ ),
'type' => array (
'datatype' => 'VARCHAR',
'formtype' => 'SELECT',
@@ -87,7 +103,8 @@
'default' => '',
'value' => '',
'width' => '30',
- 'maxlength' => '255'
+ 'maxlength' => '255',
+ 'searchable' => 1
),
'database_user' => array (
'datatype' => 'VARCHAR',
@@ -103,7 +120,8 @@
'default' => '',
'value' => '',
'width' => '30',
- 'maxlength' => '255'
+ 'maxlength' => '255',
+ 'searchable' => 2
),
'database_password' => array (
'datatype' => 'VARCHAR',
@@ -142,7 +160,8 @@
),
'default' => '',
'value' => '',
- 'width' => '60'
+ 'width' => '60',
+ 'searchable' => 2
),
##################################
# ENDE Datatable fields
--
Gitblit v1.9.1