source: trunk/www/includes/header.inc @ 15469

Last change on this file since 15469 was 3981, checked in by mij, 17 years ago

New DarwinPorts site.

Bug:
Submitted by:
Reviewed by:
Approved by:
Obtained from:

  • Property svn:eol-style set to native
File size: 1.6 KB
Line 
1      <div id="nav">
2        <div id="logo">
3          <a href="/" title="DarwinPorts"><img src="/img/dp.jpg"
4            alt="DarwinPorts" /></a>
5        </div>
6        <div id="l">
7          <ul>
8          <?php
9            $PHP_SELF = $_SERVER['PHP_SELF'];
10            $home = '/index.php';
11            $getdp = '/getdp/index.php';
12            $ports = '/ports/index.php';
13            $help = '/help/index.php';
14
15            if($PHP_SELF == $home) {
16              echo "<li class=\"selected\"><a href=\"/\" title=\"DarwinPorts Home\">DarwinPorts Home</a></li>\n";
17            }
18            else {
19              echo "<li><a href=\"/\" title=\"DarwinPorts Home\">DarwinPorts Home</a></li>\n";
20            }
21            if($PHP_SELF == $getdp) {
22              echo "<li class=\"selected\"><a href=\"/getdp/\" title=\"Get DarwinPorts\">Get DarwinPorts</a></li>\n";
23            }
24            else {
25              echo "<li><a href=\"/getdp/\" title=\"Get DarwinPorts\">Get DarwinPorts</a></li>\n";
26            }
27          ?>
28            <li class="last"><a href="http://www.opendarwin.org/bugzilla/" title="Bugzilla">Bugzilla</a></li>
29          </ul>
30        </div>
31        <div id="r">
32          <ul>
33            <li><a href="/docs/" title="Documentation">Documentation</a></li>
34            <?php
35              if($PHP_SELF == $ports) {
36                echo "<li class=\"selected\"><a href=\"/ports/\" title=\"Available Ports\">Available Ports</a></li>\n";
37              }
38              else {
39                echo "<li><a href=\"/ports/\" title=\"Available Ports\">Available Ports</a></li>\n";
40              }
41              if($PHP_SELF == $help) {
42                echo "<li class=\"sellast\"><a href=\"/help/\" title=\"Get Help\">Get Help</a></li>\n";
43              }
44              else {
45                echo "<li class=\"last\"><a href=\"/help/\" title=\"Get Help\">Get Help</a></li>\n";
46              }
47            ?>
48          </ul>
49        </div>
50      </div>
Note: See TracBrowser for help on using the repository browser.