cvs: php-master-web /manage mirrors.php

From: Date: Fri, 01 Aug 2003 14:08:53 +0000
Subject: cvs: php-master-web /manage mirrors.php
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-19712@lists.php.net to get a copy of this message
goba Fri Aug 1 10:08:53 2003 EDT Modified files: /php-master-web/manage mirrors.php Log: Center the fluid table instead of stretching it to 100%, and add search and stats information support Index: php-master-web/manage/mirrors.php diff -u php-master-web/manage/mirrors.php:1.54 php-master-web/manage/mirrors.php:1.55 --- php-master-web/manage/mirrors.php:1.54 Fri Aug 1 08:37:22 2003 +++ php-master-web/manage/mirrors.php Fri Aug 1 10:08:52 2003 @@ -292,7 +292,8 @@ automatically every hour, there is no direct manual way to start a check. </p> -<table border="0" cellspacing="1" cellpadding="3" width="100%" id="mirrors"> +<div align="center"> +<table border="0" cellspacing="0" cellpadding="3" id="mirrors"> <?php // Previous country code @@ -340,7 +341,14 @@ if ($row['has_search'] == "1") { $srccell = 'new'; } elseif ($row['has_search'] == "2") { $srccell = 'old'; } if ($srccell != '&nbsp;') { - $srccell = "<a href=\"http://$row[hostname]/search.php\">$srccell</a>"; + $srccell = "<a href=\"http://$row[hostname]/search.php\">" . + "<img src=\"/images/mirror_search.png\" /> [$srccell]</a>"; + } + + $statcell = '&nbsp;'; + if ($row['has_stats'] == "1") { + $statscell = "<a href=\"http://$row[hostname]/stats\">" . + "<img src=\"/images/mirror_stats.png\" /></a>"; } // Mirror edit link @@ -357,14 +365,20 @@ echo '<td><small><a href="' . $row['providerurl'] . '">' . $row['providername'] . '</a></small><br /></td>' . "\n"; - // Print out mirror provider information + // Print out mirror search table cell + echo '<td align="right">' . $srccell . '</td>' . "\n"; + + // Print out mirror stats table cell + echo '<td align="right">' . $statscell . '</td>' . "\n"; + + // Print out mirror status information echo '<td align="right"><img src="/images/mirror_' . $siteimage . '.png" /></td>' . "\n"; // End of row echo '</tr>'; } ?> -</table> +</table></div> <p><a href="<?php echo $PHP_SELF;?>?id=0">Add a new mirror</a></p> <?php

« previous php.mirrors (#19712) next »