[31580] trunk/www/ports.php

jmpp at macports.org jmpp at macports.org
Wed Nov 28 09:11:48 PST 2007


Revision: 31580
          http://trac.macosforge.org/projects/macports/changeset/31580
Author:   jmpp at macports.org
Date:     2007-11-28 09:11:46 -0800 (Wed, 28 Nov 2007)

Log Message:
-----------

 * Move entire ports tree listing above the h3 heading to tie it to the search form;
 * Change the h3 heading itself to read "categories" or "query result" depending on what's being viewed;
 * Presentational whitespace changes;

Modified Paths:
--------------
    trunk/www/ports.php

Modified: trunk/www/ports.php
===================================================================
--- trunk/www/ports.php	2007-11-28 16:58:45 UTC (rev 31579)
+++ trunk/www/ports.php	2007-11-28 17:11:46 UTC (rev 31580)
@@ -41,18 +41,18 @@
                 <option value="maintainer"<?php if ($by == "maintainer") { echo " selected=\"selected\""; } ?>>Maintainer</option>
             </select>
             <input type="text" name="substr" size="40" />
-        <input type="submit" value="Search" />
+            <input type="submit" value="Search" />
         </p>
     </form>
 
+    <p>Or view the complete <a href="<?php echo $_SERVER['PHP_SELF']; ?>?by=all">ports list (<?php print ports_count(); ?> ports)
+    </a></p>
+    <br />
 
-    <h3>Port Categories</h3>
 
-    <p>View the complete <a href="<?php echo $_SERVER['PHP_SELF']; ?>?by=all">ports list (<?php print ports_count(); ?> ports)
-    </a></p>
-
 <?php
     if (!$by || (!$substr && $by != "all")) {
+        echo "<h3>Port Categories</h3><br />";
         $query = "SELECT DISTINCT category FROM $portsdb_name.categories ORDER BY category";
         $result = mysql_query($query);
         if ($result) {
@@ -102,8 +102,10 @@
         }
         $query = "SELECT DISTINCT $fields FROM $tables WHERE $query ORDER BY name";
         $result = mysql_query($query);
-        if($result) {
+        if ($result) {
 ?>
+            <h3>Query Result</h3>
+
             <p><i><?php echo mysql_num_rows($result) . ' ' . (mysql_num_rows($result) == 1 ? 'Portfile' : 'Portfiles') . 
             ' Selected'; ?></i></p>
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071128/c3c1a60d/attachment.html


More information about the macports-changes mailing list