diff --git a/web/add/package/index.php b/web/add/package/index.php
index 0235d05b..2e21f4a0 100644
--- a/web/add/package/index.php
+++ b/web/add/package/index.php
@@ -155,7 +155,6 @@ if ($_SESSION['user'] == 'admin') {
if (empty($v_ns2)) $v_ns2 = 'ns2.example.ltd';
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_add_package.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/add_package.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
diff --git a/web/edit/package/index.php b/web/edit/package/index.php
index 5455e853..e2714066 100644
--- a/web/edit/package/index.php
+++ b/web/edit/package/index.php
@@ -181,7 +181,6 @@ if ($_SESSION['user'] == 'admin') {
}
}
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_edit_package.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/edit_package.html');
unset($_SESSION['error_msg']);
unset($_SESSION['ok_msg']);
diff --git a/web/list/backup/index.php b/web/list/backup/index.php
index 68d96067..8431b61b 100644
--- a/web/list/backup/index.php
+++ b/web/list/backup/index.php
@@ -19,8 +19,6 @@ top_panel($user,$TAB);
$data = json_decode(implode('', $output), true);
$data = array_reverse($data);
unset($output);
-
- include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/menu_backup.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_backup.html');
//}
diff --git a/web/list/package/index.php b/web/list/package/index.php
index 2f982400..040a6bae 100644
--- a/web/list/package/index.php
+++ b/web/list/package/index.php
@@ -13,14 +13,11 @@ top_panel($user,$TAB);
// Data
if ($_SESSION['user'] == 'admin') {
-
exec (VESTA_CMD."v_list_user_packages 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_packages.html');
include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_packages.html');
}
diff --git a/web/templates/admin/add_package.html b/web/templates/admin/add_package.html
index bdb61123..a80078dd 100644
--- a/web/templates/admin/add_package.html
+++ b/web/templates/admin/add_package.html
@@ -1,85 +1,237 @@
-
-
-
-
+
diff --git a/web/templates/admin/edit_package.html b/web/templates/admin/edit_package.html
index 64707d68..e10a8c5d 100644
--- a/web/templates/admin/edit_package.html
+++ b/web/templates/admin/edit_package.html
@@ -1,87 +1,239 @@
-
-
-
-
+
diff --git a/web/templates/admin/list_backup.html b/web/templates/admin/list_backup.html
index efa2831e..d406803a 100644
--- a/web/templates/admin/list_backup.html
+++ b/web/templates/admin/list_backup.html
@@ -1,135 +1,243 @@
-
- $value) {
- ++$i;
- $web = 'no';
- $dns = 'no';
- $mail = 'no';
- $db = 'no';
-
- if (!empty($data[$key]['WEB'])) $web = 'yes ¨';
- if (!empty($data[$key]['DNS'])) $dns = 'yes ¨';
- if (!empty($data[$key]['MAIL'])) $mail = 'yes ¨';
- if (!empty($data[$key]['DB'])) $db = 'yes ¨';
-?>
-
-
-
-
- |
-
-
- |
- download |
-
-
- "> restore
- " title="Confirmation">
- Are you sure you want to restore backup?
-
- |
-
-
- delete
-
- Are you sure you want to delete backup?
-
- |
-
-
-
- |
-
-
-
- |
- Run Time: |
- Backup Size: |
+
+
+
- |
-
-
- |
-
-
- |
-
-
- |
-
+
"; ?>
-
-
- |
"; ?>
- |
"; ?>
- |
"; ?>
+ $value) {
+ ++$i;
+ $web = 'no';
+ $dns = 'no';
+ $mail = 'no';
+ $db = 'no';
+
+ if (!empty($data[$key]['WEB'])) $web = 'yes ¨';
+ if (!empty($data[$key]['DNS'])) $dns = 'yes ¨';
+ if (!empty($data[$key]['MAIL'])) $mail = 'yes ¨';
+ if (!empty($data[$key]['DB'])) $db = 'yes ¨';
+ ?>
+
+
+
+
+
+
+ |
+
+
+
+ |
+ download |
+
+
+ "> restore
+ " title="Confirmation">
+ Are you sure you want to restore backup?
+
+ |
+
+
+ delete
+
+ Are you sure you want to delete backup?
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+
+
+
+
+
+ |
+
+
+
+ Run Time:
+ |
+
+
+
+ Backup Size:
+ |
+
+
+ |
+
+
+
+
+ SYS:
+ |
+
+
+
+
+ |
+
+
+
+ WEB:
+ |
+
+
+
+
+ |
+
+
+
+ DNS:
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ MAIL:
+ |
+
+
+
+
+ |
+
+
+
+ DB:
+ |
+
+
+
+
+ |
+
+
+
+ CRON:
+ |
+
+
+
+
+ |
+
+
+ |
+
+
+ |
+
+
+
+
+
+
+ |
"; ?>
+
+
+
+
+ |
"; ?>
+ |
"; ?>
+ |
"; ?>
diff --git a/web/templates/admin/list_packages.html b/web/templates/admin/list_packages.html
index 7b1c9186..8a1dc8ef 100644
--- a/web/templates/admin/list_packages.html
+++ b/web/templates/admin/list_packages.html
@@ -1,117 +1,242 @@
-
- $value) {
- ++$i;
-?>
+
+
+
+
-
-
-
-
- |
-
-
- |
- edit |
-
-
- delete
-
- Are you sure you want to delete package?
-
- |
-
+
+
+ |
|
"; ?>
+ |
"; ?>
diff --git a/web/templates/admin/menu_add_package.html b/web/templates/admin/menu_add_package.html
deleted file mode 100644
index b87a6654..00000000
--- a/web/templates/admin/menu_add_package.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/web/templates/admin/menu_edit_package.html b/web/templates/admin/menu_edit_package.html
deleted file mode 100644
index f13263bb..00000000
--- a/web/templates/admin/menu_edit_package.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
diff --git a/web/templates/admin/menu_packages.html b/web/templates/admin/menu_packages.html
deleted file mode 100644
index 37cd833e..00000000
--- a/web/templates/admin/menu_packages.html
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-