diff --git a/web/add/db/index.php b/web/add/db/index.php
index e45ad241..e02509c3 100644
--- a/web/add/db/index.php
+++ b/web/add/db/index.php
@@ -67,7 +67,6 @@ top_panel($user,$TAB);
$db_types = json_decode(implode('', $output), true);
unset($output);
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_db.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_db.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
diff --git a/web/edit/db/index.php b/web/edit/db/index.php
index c05cb939..d11b8cc5 100644
--- a/web/edit/db/index.php
+++ b/web/edit/db/index.php
@@ -68,7 +68,6 @@ top_panel($user,$TAB);
}
}
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_db.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_db.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
diff --git a/web/list/db/index.php b/web/list/db/index.php
index ac6a8c79..e60a37d5 100644
--- a/web/list/db/index.php
+++ b/web/list/db/index.php
@@ -13,24 +13,16 @@ top_panel($user,$TAB);
// Data
if ($_SESSION['user'] == 'admin') {
-
exec (VESTA_CMD."v_list_databases $user json", $output, $return_var);
- check_error($return_var);
$data = json_decode(implode('', $output), true);
$data = array_reverse($data);
unset($output);
-
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_db.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_db.html');
} else {
-
exec (VESTA_CMD."v_list_databases $user json", $output, $return_var);
- check_error($return_var);
$data = json_decode(implode('', $output), true);
$data = array_reverse($data);
unset($output);
-
- include($_SERVER['DOCUMENT_ROOT'].'/templates/user/menu_db.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/user/list_db.html');
}
diff --git a/web/templates/admin/add_db.html b/web/templates/admin/add_db.html
index 909ecc89..6c02d9d0 100644
--- a/web/templates/admin/add_db.html
+++ b/web/templates/admin/add_db.html
@@ -1,101 +1,167 @@
-
+
+
+
+
+
diff --git a/web/templates/admin/edit_db.html b/web/templates/admin/edit_db.html
index 87324b24..88ebbe9d 100644
--- a/web/templates/admin/edit_db.html
+++ b/web/templates/admin/edit_db.html
@@ -1,58 +1,129 @@
-
+
+
+
+
+
diff --git a/web/templates/admin/list_db.html b/web/templates/admin/list_db.html
index ab389066..0b01da2d 100644
--- a/web/templates/admin/list_db.html
+++ b/web/templates/admin/list_db.html
@@ -1,138 +1,201 @@
-
- $value) {
- ++$i;
- if ($data[$key]['SUSPENDED'] == 'yes') {
- $status = 'suspended';
- $spnd_action = 'unsuspend' ;
- } else {
- $status = 'active';
- $spnd_action = 'suspend' ;
- }
- if ($data[$key]['TYPE'] == 'mysql') $db_admin = "phpMyAdmin";
- if ($data[$key]['TYPE'] == 'mysql') $db_admin_link = "http://".$http_host."/phpMyAdmin/";
- if ($data[$key]['TYPE'] == 'pgsql') $db_admin = "phpPgAdmin";
- if ($data[$key]['TYPE'] == 'pgsql') $db_admin_link = "http://".$http_host."/phpPgAdmin/";
- ?>
-
-
-
-
-
-
- |
-
-
- |
- open |
- edit |
-
-
- ">
- " title="Confirmation">
- Are you sure you want to database?
-
- |
-
-
- delete
-
- Are you sure you want to delete database?
-
- |
-
-
-
- |
-
-
-
- [] database |
- Disk:
- |
+
+
+
- |
-
-
- |
-
-
- |
-
-
- |
-
+
- |
"; ?>
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
+ |
"; ?>
+
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/admin/menu_add_db.html b/web/templates/admin/menu_add_db.html
deleted file mode 100644
index e853e4a8..00000000
--- a/web/templates/admin/menu_add_db.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/web/templates/admin/menu_db.html b/web/templates/admin/menu_db.html
deleted file mode 100644
index cd9b335f..00000000
--- a/web/templates/admin/menu_db.html
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
-
-
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
+ |
"; ?>
+
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/user/menu_db.html b/web/templates/user/menu_db.html
deleted file mode 100644
index f7ce2566..00000000
--- a/web/templates/user/menu_db.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-