disabled DupMeister, fixed alternate row colors
This commit is contained in:
parent
e011d48c6a
commit
2e01a007a6
@ -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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user