diff options
author | Simone Rota <sip@crux.nu> | 2006-10-15 03:22:05 +0200 |
---|---|---|
committer | Simone Rota <sip@crux.nu> | 2006-10-15 03:22:05 +0200 |
commit | 2e01a007a666c3d90ad9f2c39f829e2a5f7dbbff (patch) | |
tree | b0a47da22655ed7a808202f67ccbfac3683fe2c1 | |
parent | e011d48c6a6c27bf05bb2bf407e2a9e822df9423 (diff) | |
download | webtools-2e01a007a666c3d90ad9f2c39f829e2a5f7dbbff.tar.gz webtools-2e01a007a666c3d90ad9f2c39f829e2a5f7dbbff.tar.xz |
disabled DupMeister, fixed alternate row colors
-rwxr-xr-x | portdb/portdb/index.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/portdb/portdb/index.php b/portdb/portdb/index.php index 0e4c538..26ef4bb 100755 --- a/portdb/portdb/index.php +++ b/portdb/portdb/index.php @@ -44,7 +44,8 @@ function printFooter() { } function printNav() { - echo '<div class="content"><b>Sections: </b><a href="?a=index">Repositories</a> :: <a href="?a=search">Search</a> :: <a href="?a=register">Register</a> :: <a href="?a=dups">Duplicates</a> :: <a href="?a=dupm">DupMeister</a>'; +# echo '<div class="content"><b>Sections: </b><a href="?a=index">Repositories</a> :: <a href="?a=search">Search</a> :: <a href="?a=register">Register</a> :: <a href="?a=dups">Duplicates</a> :: <a href="?a=dupm">DupMeister</a>'; + echo '<div class="content"><b>Sections: </b><a href="?a=index">Repositories</a> :: <a href="?a=search">Search</a> :: <a href="?a=register">Register</a> :: <a href="?a=dups">Duplicates</a>'; } function showCollections() { @@ -172,9 +173,11 @@ function showDuplicates() { echo '<thead><tr><th>Ports</th><th># of duplicates</th></tr></thead>'; $i=0; while ($port =& $res->fetchRow()) { + $cl = "row".$i%2; echo '<tr class="'.$cl.'"> <td>'.$port['portname'].'</td> <td>Found in <a href="?a=search&s=true&q='.$port['portname'].'">'.$port['dup']." repositories</a></td></tr>\n"; + $i++: } echo "</table>"; } @@ -193,9 +196,11 @@ function showDupMeister() { echo '<thead><tr><th>Collection</th><th># of duplicates</th></tr></thead>'; $i=0; while ($port =& $res->fetchRow()) { + $cl = "row".$i%2; echo '<tr class="'.$cl.'"> <td><a href="?a=repo&q='.$port['coll'].'">'.$port['coll']."</a></td>\n" .'<td>'.$port['dups']."</td>\n"; + $i++; } echo "</table>"; } @@ -248,9 +253,9 @@ switch ($action) { case "dups": showDuplicates(); break; - case "dupm": - showDupMeister(); - break; +# case "dupm": +# showDupMeister(); +# break; default: showCollections(); } |