Browse Source

added spacer for empty listing

Serghey Rodin 13 years ago
parent
commit
72066c5291

+ 6 - 1
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');

+ 2 - 0
web/templates/admin/list_backup.html

@@ -115,6 +115,7 @@ foreach ($data as $key => $value) {
 }
 ?>
 </table>
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
 <table class="data-count">
 <tr>
     <td>→ 
@@ -129,3 +130,4 @@ foreach ($data as $key => $value) {
 </tr>
 </table>
 </form>
+<?php if ($i < 2) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 2 - 0
web/templates/admin/list_cron.html

@@ -131,6 +131,7 @@ foreach ($data as $key => $value) {
 }
 ?>
 </table>
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
 <table class="data-count">
 <tr>
     <td>→ 
@@ -145,3 +146,4 @@ foreach ($data as $key => $value) {
 </tr>
 </table>
 </form>
+<?php if ($i < 2) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 2 - 0
web/templates/admin/list_db.html

@@ -116,6 +116,7 @@ foreach ($data as $key => $value) {
 }
 ?>
 </table>
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
 <table class="data-count">
 <tr>
     <td>→ 
@@ -130,3 +131,4 @@ foreach ($data as $key => $value) {
 </tr>
 </table>
 </form>
+<?php if ($i < 2) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 3 - 0
web/templates/admin/list_dns.html

@@ -112,6 +112,8 @@ foreach ($data as $key => $value) {
 }
 ?>
 </table>
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
+
 <table class="data-count">
 <tr>
     <td>→ 
@@ -126,3 +128,4 @@ foreach ($data as $key => $value) {
 </tr>
 </table>
 </form>
+<?php if ($i < 2) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 2 - 0
web/templates/admin/list_dns_rec.html

@@ -97,6 +97,7 @@ foreach ($data as $key => $value) {
 ?>
 </table>
 <table class="data-count">
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
 <tr>
     <td>→ 
     <?php
@@ -110,3 +111,4 @@ foreach ($data as $key => $value) {
 </tr>
 </table>
 </form>
+<?php if ($i < 3) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 2 - 0
web/templates/admin/list_ip.html

@@ -79,6 +79,7 @@ foreach ($data as $key => $value) {
 }
 ?>
 </table>
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
 <table class="data-count">
 <tr>
     <td>→ 
@@ -93,3 +94,4 @@ foreach ($data as $key => $value) {
 </tr>
 </table>
 </form>
+<?php if ($i < 2) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 2 - 1
web/templates/admin/list_log.html

@@ -30,7 +30,7 @@ foreach ($data as $key => $value) {
 }
 ?>
 </table>
-
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
 <table class="data-count">
 <tr>
     <td>→ 
@@ -44,3 +44,4 @@ foreach ($data as $key => $value) {
     </td>
 </tr>
 </table>
+<?php if ($i < 2) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 2 - 0
web/templates/admin/list_mail.html

@@ -119,6 +119,7 @@ foreach ($data as $key => $value) {
 }
 ?>
 </table>
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
 <table class="data-count">
 <tr>
     <td>→ 
@@ -133,3 +134,4 @@ foreach ($data as $key => $value) {
 </tr>
 </table>
 </form>
+<?php if ($i < 2) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 2 - 0
web/templates/admin/list_mail_acc.html

@@ -111,6 +111,7 @@ foreach ($data as $key => $value) {
 }
 ?>
 </table>
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
 <table class="data-count">
 <tr>
     <td>→ 
@@ -124,3 +125,4 @@ foreach ($data as $key => $value) {
     </td>
 </tr>
 </form>
+<?php if ($i < 3) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 3 - 0
web/templates/admin/list_stats.html

@@ -76,6 +76,8 @@ foreach ($data as $key => $value) {
 }
 ?>
 </table>
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
+
 <table class="data-count">
 <tr>
     <td>→ 
@@ -89,3 +91,4 @@ foreach ($data as $key => $value) {
     listed</td>
 </tr>
 </table>
+<?php if ($i < 2) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 3 - 1
web/templates/admin/list_user.html

@@ -176,6 +176,7 @@ foreach ($data as $key => $value) {
 ?>
 
 </table>
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
 <table class="data-count">
 <tr>
     <td>→ 
@@ -189,4 +190,5 @@ foreach ($data as $key => $value) {
     </td>
 </tr>
 </table>
-</form>
+</form>
+<?php if ($i < 1) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 3 - 2
web/templates/admin/list_web.html

@@ -140,7 +140,7 @@ foreach ($data as $key => $value) {
 }
 ?>
 </table>
-
+<?php if ($i == 0) echo "<table class=\"data-null\"><tr><td></td></tr></table>"; ?>
 <table class="data-count">
 <tr>
     <td>→ 
@@ -154,4 +154,5 @@ foreach ($data as $key => $value) {
     </td>
 </tr>
 </table>
-</form>
+</form>
+<?php if ($i < 2) echo "<table class=\"data-spacer\"><tr><td></td></tr></table>"; ?>

+ 13 - 1
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;