r1431 + initial tabs/portlet for SLB
authorDenis Ovsienko <infrastation@yandex.ru>
Wed, 26 Dec 2007 11:57:56 +0000 (11:57 +0000)
committerDenis Ovsienko <infrastation@yandex.ru>
Wed, 26 Dec 2007 11:57:56 +0000 (11:57 +0000)
inc/interface.php
inc/navigation.php

index 436ba2537ceebb0cac01a0c52e642bc02da1d382..6e021ca08eadb9dd3e9a76a8587faca1d1f3c39a 100644 (file)
@@ -1613,9 +1613,12 @@ function renderRackspaceHistory ()
 function renderAddressspace ()
 {
        global $root;
+       echo '<table border=0 class=objectview cellspacing=0 cellpadding=0><tr><td class=pcleft>';
+
+       startPortlet ('Subnets');
        echo "<table class='widetable' border=0 cellpadding=10 cellspacing=0 align='center'>\n";
        $addrspaceList = getAddressspaceList();
-       echo "<tr><th>Address range</th><th>Name</th><th>Total/used addresses</th></tr>";
+       echo "<tr><th>Subnet</th><th>Name</th><th>Total/used addresses</th></tr>";
        foreach ($addrspaceList as $iprange)
        {
                echo "<tr><td><a href='${root}?page=iprange&id=${iprange['id']}'>${iprange['ip']}/${iprange['mask']}</a></td><td>${iprange['name']}</td><td>";
@@ -1626,6 +1629,14 @@ function renderAddressspace ()
                echo "</td></tr>";
        }
        echo "</table>\n";
+       finishPortlet();
+
+       echo "</td>\n<td class=pcright>";
+
+       startPortlet ('SLB summary');
+       finishPortlet ();
+
+       echo '</td></tr></table>';
 }
 
 function renderAddNewRange ()
@@ -1633,7 +1644,7 @@ function renderAddNewRange ()
        global $root, $pageno, $tabno;
        showMessageOrError();
 
-       echo "<center><h2>Add New Range</h2></center>\n";
+       echo "<center><h2>Add New</h2></center>\n";
        echo "<table class='widetable' border=0 cellpadding=10 align='center'>\n";
        echo "<tr><th>Address range</th><th>Name</th><th>C&gt;*</th><th>&nbsp;</th></tr>\n";
        echo "<form name='add_new_range' action='process.php'>\n";
@@ -1646,7 +1657,7 @@ function renderAddNewRange ()
        echo "<td class='tdcenter'><input type=submit value='Add a new range'></td></tr>\n";
        echo "</form></table><br><br>\n";
 
-       echo "<center><h2>Existing Ranges</h2></center>\n";
+       echo "<center><h2>Manage Existing</h2></center>\n";
        echo "<table class='widetable' border=0 cellpadding=10 align='center'>\n";
        $addrspaceList = getAddressspaceList();
        echo "<tr><th>&nbsp;</th><th>Address range</th><th>Name</th><th>Total/used addresses</th></tr>";
index 0be5bfa460e862e768ad886450279e68a2681c99..b3fa010d67e63a3347002bc14a6dca0ae8c19686 100644 (file)
@@ -112,7 +112,10 @@ $ophandler['object']['switchvlans']['submit'] = 'updateVLANMembership';
 $page['ipv4space']['title'] = 'static_title';
 $page['ipv4space']['parent'] = 'index';
 $tab['ipv4space']['default'] = 'Browse';
-$tab['ipv4space']['newrange'] = 'Manage ranges';
+$tab['ipv4space']['newrange'] = 'Subnets';
+$tab['ipv4space']['editrstab'] = '[SLB RSs]';
+$tab['ipv4space']['editlbconf'] = '[SLB LBs]';
+$tab['ipv4space']['editvstab'] = '[SLB VSs]';
 $helptab['ipv4space']['default'] = 'nets';
 $helptab['ipv4space']['newrange'] = 'nets';
 $tabhandler['ipv4space']['default'] = 'renderAddressspace';