summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/forms.inc.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-07 08:56:18 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-07 08:56:18 +0000
commit23bdb608fe93cf4a98683dae0a09fcca30aa9d1d (patch)
treefa3b2460d754189c42780f7da474fb6599240856 /frontends/php/include/forms.inc.php
parentdda9501aff9b7293055eee1a8c769068d3701ad7 (diff)
downloadzabbix-23bdb608fe93cf4a98683dae0a09fcca30aa9d1d.tar.gz
zabbix-23bdb608fe93cf4a98683dae0a09fcca30aa9d1d.tar.xz
zabbix-23bdb608fe93cf4a98683dae0a09fcca30aa9d1d.zip
- developed frontend installation wizard (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3434 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/forms.inc.php')
-rw-r--r--frontends/php/include/forms.inc.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/frontends/php/include/forms.inc.php b/frontends/php/include/forms.inc.php
index 0077bbad..339a89a1 100644
--- a/frontends/php/include/forms.inc.php
+++ b/frontends/php/include/forms.inc.php
@@ -26,6 +26,33 @@
require_once "include/users.inc.php";
require_once "include/db.inc.php";
+ function insert_configuration_form($file)
+ {
+ $type = get_request('type', 'MYSQL');
+ $server = get_request('server', 'localhost');
+ $database = get_request('database', 'zabbix');
+ $user = get_request('user', 'root');
+ $password = get_request('password', '');
+
+ $form = new CFormTable(S_CONFIGURATION_OF_ZABBIX_DATABASE, null, 'post');
+
+ $form->SetHelp("install_source_web.php");
+ $cmbType = new CComboBox('type', $type);
+ $cmbType->AddItem('MYSQL', S_MYSQL);
+ $cmbType->AddItem('POSTGRESQL', S_POSTGRESQL);
+ $cmbType->AddItem('ORACLE', S_ORACLE);
+ $form->AddRow(S_TYPE, $cmbType);
+
+ $form->AddRow(S_HOST, new CTextBox('server', $server));
+ $form->AddRow(S_NAME, new CTextBox('database', $database));
+ $form->AddRow(S_USER, new CTextBox('user', $user));
+ $form->AddRow(S_PASSWORD, new CPassBox('password', $password));
+
+ $form->AddItemToBottomRow(new CButton('save',S_SAVE));
+
+ $form->Show();
+ }
+
function insert_node_form()
{
global $ZBX_CURNODEID;