From 72066c529109efc34aafcbf107537848b0b55cd4 Mon Sep 17 00:00:00 2001 From: Serghey Rodin Date: Sat, 30 Jun 2012 21:55:06 +0300 Subject: [PATCH] added spacer for empty listing --- web/list/user/index.php | 7 ++++++- web/templates/admin/list_backup.html | 2 ++ web/templates/admin/list_cron.html | 2 ++ web/templates/admin/list_db.html | 2 ++ web/templates/admin/list_dns.html | 3 +++ web/templates/admin/list_dns_rec.html | 2 ++ web/templates/admin/list_ip.html | 2 ++ web/templates/admin/list_log.html | 3 ++- web/templates/admin/list_mail.html | 2 ++ web/templates/admin/list_mail_acc.html | 2 ++ web/templates/admin/list_stats.html | 3 +++ web/templates/admin/list_user.html | 4 +++- web/templates/admin/list_web.html | 5 +++-- web/templates/header.html | 14 +++++++++++++- 14 files changed, 47 insertions(+), 6 deletions(-) diff --git a/web/list/user/index.php b/web/list/user/index.php index c8f529d94..e691a60bb 100644 --- a/web/list/user/index.php +++ b/web/list/user/index.php @@ -14,7 +14,11 @@ top_panel($user,$TAB); // Data if ($_SESSION['user'] == 'admin') { - exec (VESTA_CMD."v_list_users json", $output, $return_var); + if ($user == 'admin') { + exec (VESTA_CMD."v_list_users json", $output, $return_var); + } else { + exec (VESTA_CMD."v_list_user ".$user." json", $output, $return_var); + } check_error($return_var); $data = json_decode(implode('', $output), true); $data = array_reverse($data); @@ -24,5 +28,6 @@ if ($_SESSION['user'] == 'admin') { include($_SERVER['DOCUMENT_ROOT'].'/templates/admin/list_user.html'); } + // Footer include($_SERVER['DOCUMENT_ROOT'].'/templates/footer.html'); diff --git a/web/templates/admin/list_backup.html b/web/templates/admin/list_backup.html index 25e7ea6e9..abe5ee82b 100644 --- a/web/templates/admin/list_backup.html +++ b/web/templates/admin/list_backup.html @@ -115,6 +115,7 @@ foreach ($data as $key => $value) { } ?> +"; ?>
→ @@ -129,3 +130,4 @@ foreach ($data as $key => $value) {
+"; ?> diff --git a/web/templates/admin/list_cron.html b/web/templates/admin/list_cron.html index 76943e05c..6ff3781c2 100644 --- a/web/templates/admin/list_cron.html +++ b/web/templates/admin/list_cron.html @@ -131,6 +131,7 @@ foreach ($data as $key => $value) { } ?> +"; ?>
→ @@ -145,3 +146,4 @@ foreach ($data as $key => $value) {
+"; ?> diff --git a/web/templates/admin/list_db.html b/web/templates/admin/list_db.html index 876006583..92a0b4e54 100644 --- a/web/templates/admin/list_db.html +++ b/web/templates/admin/list_db.html @@ -116,6 +116,7 @@ foreach ($data as $key => $value) { } ?> +"; ?>
→ @@ -130,3 +131,4 @@ foreach ($data as $key => $value) {
+"; ?> diff --git a/web/templates/admin/list_dns.html b/web/templates/admin/list_dns.html index 8c2be4e65..b2608ae25 100644 --- a/web/templates/admin/list_dns.html +++ b/web/templates/admin/list_dns.html @@ -112,6 +112,8 @@ foreach ($data as $key => $value) { } ?> +"; ?> +
→ @@ -126,3 +128,4 @@ foreach ($data as $key => $value) {
+"; ?> diff --git a/web/templates/admin/list_dns_rec.html b/web/templates/admin/list_dns_rec.html index 01f6f9f13..90286017b 100644 --- a/web/templates/admin/list_dns_rec.html +++ b/web/templates/admin/list_dns_rec.html @@ -97,6 +97,7 @@ foreach ($data as $key => $value) { ?> +
"; ?> → $value) { +"; ?> diff --git a/web/templates/admin/list_ip.html b/web/templates/admin/list_ip.html index 965f33fba..02e454c1f 100644 --- a/web/templates/admin/list_ip.html +++ b/web/templates/admin/list_ip.html @@ -79,6 +79,7 @@ foreach ($data as $key => $value) { } ?> +"; ?>
→ @@ -93,3 +94,4 @@ foreach ($data as $key => $value) {
+"; ?> diff --git a/web/templates/admin/list_log.html b/web/templates/admin/list_log.html index fef72d3f0..813886280 100644 --- a/web/templates/admin/list_log.html +++ b/web/templates/admin/list_log.html @@ -30,7 +30,7 @@ foreach ($data as $key => $value) { } ?> - +"; ?>
→ @@ -44,3 +44,4 @@ foreach ($data as $key => $value) {
+"; ?> diff --git a/web/templates/admin/list_mail.html b/web/templates/admin/list_mail.html index 8f6784597..26aa48a52 100644 --- a/web/templates/admin/list_mail.html +++ b/web/templates/admin/list_mail.html @@ -119,6 +119,7 @@ foreach ($data as $key => $value) { } ?> +"; ?>
→ @@ -133,3 +134,4 @@ foreach ($data as $key => $value) {
+"; ?> diff --git a/web/templates/admin/list_mail_acc.html b/web/templates/admin/list_mail_acc.html index 5b2750491..0e8766abc 100644 --- a/web/templates/admin/list_mail_acc.html +++ b/web/templates/admin/list_mail_acc.html @@ -111,6 +111,7 @@ foreach ($data as $key => $value) { } ?> +"; ?> +
→ @@ -124,3 +125,4 @@ foreach ($data as $key => $value) {
"; ?> diff --git a/web/templates/admin/list_stats.html b/web/templates/admin/list_stats.html index 6a8125b48..111995fed 100644 --- a/web/templates/admin/list_stats.html +++ b/web/templates/admin/list_stats.html @@ -76,6 +76,8 @@ foreach ($data as $key => $value) { } ?> +"; ?> +
→ @@ -89,3 +91,4 @@ foreach ($data as $key => $value) { listed
+"; ?> diff --git a/web/templates/admin/list_user.html b/web/templates/admin/list_user.html index d17227425..d348b8cc2 100644 --- a/web/templates/admin/list_user.html +++ b/web/templates/admin/list_user.html @@ -176,6 +176,7 @@ foreach ($data as $key => $value) { ?> +"; ?>
→ @@ -189,4 +190,5 @@ foreach ($data as $key => $value) {
- \ No newline at end of file + +"; ?> diff --git a/web/templates/admin/list_web.html b/web/templates/admin/list_web.html index 9da04aa42..70d1366f5 100644 --- a/web/templates/admin/list_web.html +++ b/web/templates/admin/list_web.html @@ -140,7 +140,7 @@ foreach ($data as $key => $value) { } ?> - +"; ?>
→ @@ -154,4 +154,5 @@ foreach ($data as $key => $value) {
- \ No newline at end of file + +"; ?> diff --git a/web/templates/header.html b/web/templates/header.html index 520dca4e5..e3f151d2e 100644 --- a/web/templates/header.html +++ b/web/templates/header.html @@ -238,7 +238,6 @@ if (!empty($_SESSION['look'])) { margin-left: auto; margin-right: auto; width: 990px; - color: #e5a907; font-family: Arial, serif; font-size: 12pt; @@ -252,6 +251,19 @@ if (!empty($_SESSION['look'])) { background-color: #f7f6ed; } + .data-null { + margin: 0; + width: 990px; + height: 10px; + border-top:1px dotted #dce8f5; + } + + .data-spacer { + margin: 0; + width: 990px; + height: 230px; + } + .data-add { margin: 0; background-color: #f7f6ed;