Changeset 31580 for trunk/www


Ignore:
Timestamp:
Nov 28, 2007, 5:11:46 PM (12 years ago)
Author:
jmpp@…
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;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/ports.php

    r31579 r31580  
    4242            </select>
    4343            <input type="text" name="substr" size="40" />
    44         <input type="submit" value="Search" />
     44            <input type="submit" value="Search" />
    4545        </p>
    4646    </form>
    4747
    48 
    49     <h3>Port Categories</h3>
    50 
    51     <p>View the complete <a href="<?php echo $_SERVER['PHP_SELF']; ?>?by=all">ports list (<?php print ports_count(); ?> ports)
     48    <p>Or view the complete <a href="<?php echo $_SERVER['PHP_SELF']; ?>?by=all">ports list (<?php print ports_count(); ?> ports)
    5249    </a></p>
     50    <br />
     51
    5352
    5453<?php
    5554    if (!$by || (!$substr && $by != "all")) {
     55        echo "<h3>Port Categories</h3><br />";
    5656        $query = "SELECT DISTINCT category FROM $portsdb_name.categories ORDER BY category";
    5757        $result = mysql_query($query);
     
    103103        $query = "SELECT DISTINCT $fields FROM $tables WHERE $query ORDER BY name";
    104104        $result = mysql_query($query);
    105         if($result) {
    106 ?>
     105        if ($result) {
     106?>
     107            <h3>Query Result</h3>
     108
    107109            <p><i><?php echo mysql_num_rows($result) . ' ' . (mysql_num_rows($result) == 1 ? 'Portfile' : 'Portfiles') .
    108110            ' Selected'; ?></i></p>
Note: See TracChangeset for help on using the changeset viewer.