Changeset 31573 for trunk/www


Ignore:
Timestamp:
Nov 28, 2007, 3:37:32 PM (12 years ago)
Author:
jmpp@…
Message:
  • Improve wording of the introductory text to the search form;
  • Enclose the form the contents of the form in a paragraph element, so that the document validates as XHTML 1.1 again;
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/ports.php

    r31572 r31573  
    2626    }
    2727?>
    28     <p>MacPorts currently has <?php print ports_count(); ?> ports of software, across a wide variety of categories. This form
    29     allows you to search the current index of MacPorts software, updated <?php echo $date; ?> at <?php echo $time; ?>.</p>
    30        
     28    <p>The MacPorts Project currently distributes <?php print ports_count(); ?> ports, distributed across <?php print categories_count(); ?>
     29    different categories and available below for viewing. This form allows you to search the MacPorts software index, last
     30    updated on <?php echo $date; ?> at <?php echo $time; ?>.</p>
     31
     32
    3133    <form action="<?php echo $_SERVER['PHP_SELF']; ?>">
    32         <label>Search by:</label>
    33         <select name="by">
    34             <option value="name"<?php if ($by == "name") { echo " selected=\"selected\""; } ?>>Software Title</option>
    35             <option value="desc"<?php if ($by == "desc") { echo " selected=\"selected\""; } ?>>Description</option>
    36             <option value="cat"<?php if ($by == "cat") { echo " selected=\"selected\""; } ?>>Category</option>
    37             <option value="maintainer"<?php if ($by == "maintainer") { echo " selected=\"selected\""; } ?>>Maintainer</option>
    38         </select>
    39         <input type="text" name="substr" size="40" />
     34        <p>
     35            <label>Search by:</label>
     36            <select name="by">
     37                <option value="name"<?php if ($by == "name") { echo " selected=\"selected\""; } ?>>Software Title</option>
     38                <option value="desc"<?php if ($by == "desc") { echo " selected=\"selected\""; } ?>>Description</option>
     39                <option value="cat"<?php if ($by == "cat") { echo " selected=\"selected\""; } ?>>Category</option>
     40                <option value="maintainer"<?php if ($by == "maintainer") { echo " selected=\"selected\""; } ?>>Maintainer</option>
     41            </select>
     42            <input type="text" name="substr" size="40" />
    4043        <input type="submit" value="Search" />
     44        </p>
    4145    </form>
     46
    4247
    4348
Note: See TracChangeset for help on using the changeset viewer.