Skip to content
Permalink
Browse files

Show total count of portfiles.

git-svn-id: https://svn.macports.org/repository/macports/trunk/www@1014 d073be05-634f-4543-b044-5fe20cf6d1d6
  • Loading branch information
Kevin Van Vechten
Kevin Van Vechten committed Oct 9, 2002
1 parent 6702497 commit ca74ae3fd562b90fe4c57bedbe7b952f6bd2956a
Showing with 20 additions and 2 deletions.
  1. +10 −1 en/ports.php
  2. +10 −1 ports.php
@@ -36,7 +36,16 @@
</tr>
<tr><td colspan="4"><hr size="1" noshade="noshade" /></td></tr>
<tr>
<td colspan="4" align="left"><a href="<?= $PHP_SELF; ?>?by=all">View All Software Titles</a></td>
<?
$result = mysql_query("SELECT count(*) from darwinports.portfiles");
if ($result) {
$row = mysql_fetch_array($result);
$count = $row[0];
} else {
$count = 0;
}
?>
<td colspan="4" align="left"><a href="<?= $PHP_SELF; ?>?by=all">View All Software Titles (<?= $count; ?>)</a></td>
</tr>
<?
if (!$by || (!$substr && $by != "all")) {
@@ -36,7 +36,16 @@
</tr>
<tr><td colspan="4"><hr size="1" noshade="noshade" /></td></tr>
<tr>
<td colspan="4" align="left"><a href="<?= $PHP_SELF; ?>?by=all">View All Software Titles</a></td>
<?
$result = mysql_query("SELECT count(*) from darwinports.portfiles");
if ($result) {
$row = mysql_fetch_array($result);
$count = $row[0];
} else {
$count = 0;
}
?>
<td colspan="4" align="left"><a href="<?= $PHP_SELF; ?>?by=all">View All Software Titles (<?= $count; ?>)</a></td>
</tr>
<?
if (!$by || (!$substr && $by != "all")) {

0 comments on commit ca74ae3

Please sign in to comment.
You can’t perform that action at this time.