Clean up HTML and PHP, remove extranious checks for loggedin()

This commit is contained in:
Eric Blade
2004-12-29 20:21:31 +00:00
committed by WineHQ
parent 9fac8bc853
commit ffeeaef807
35 changed files with 86 additions and 107 deletions

View File

@@ -121,13 +121,11 @@ if($subs)
echo stripslashes($name);
}
}
echo "</select>";
echo "<input type=\"submit\" value=\"Refresh\" />";
echo "</form>";
echo "<br />";
echo "<br />";
echo '</select>';
echo '<input type="submit" value="Refresh">';
echo '</form>';
echo '<br />';
echo '<br />';
/***************************************************/
/* build a list of the apps in the chosen category */
@@ -160,9 +158,9 @@ if($result)
$c = 1;
while($row = mysql_fetch_object($result))
{
if ($c % 2 == 1) { $bgcolor = "color0"; } else { $bgcolor = "color1"; }
$bgcolor = ($c % 2) ? "color0" : "color1";
$link = "<a href='appview.php?appId=$row->appId'>$row->appName</a>";
echo "<tr class='".$bgcolor."'><td width='90%'>$c. $link </td> <td> $row->count </td></tr>\n";
echo "<tr class=$bgcolor><td width='90%'>$c. $link </td> <td> $row->count </td></tr>\n";
$c++;
}
@@ -173,7 +171,7 @@ if($result)
/* think that something went wrong with the server */
if($c == 1)
{
echo "<h2 align=\"center\">No apps found in this category</h2>";
echo '<h2 align="center">No apps found in this category</h2>';
}
echo "<center><a href='help/?topic=voting'>What does this screen mean?</a></center>\n";