Statistics
| Branch: | Revision:

root / docs / www / colonyscout / nav.php @ 781890a0

History | View | Annotate | Download (1.35 KB)

1
<?php 
2
        //used by auto-navigation to order links
3
        $nav = array(
4
                '/intro.php">Background',
5
                '/mechanics.php">Platform',
6
                '/sensors.php">Sensors & Communication',
7
                '/computing.php">Computing',
8
                '/applications.php">How to Use It',
9
                '/gallery.php">Video',
10
                '/pricing.php">Pricing'
11
                );
12
                
13
        $nav_title = array(
14
                'Introduction to the Scout robot',
15
                'Mechanics of the Colony Scout',
16
                'Sensors and Communications',
17
                'Platform: Software and Hardware',
18
                'Applications for the Colony Scout',
19
                'Video of the Scout in Action',
20
                'Scout Pricing'
21
                );
22

    
23
        //update these to match the desired order of links
24
        $nav_id = array(
25
                'intro' => 0,
26
                'mech'  => 1,
27
                'sens'  => 2,
28
                'plat'  => 3,
29
                'app'   => 4,
30
                'vids'  => 5,
31
                'price'  => 6
32
                );
33
                
34
?>
35
        <div id="top">
36
                <a href="index.php"><img src="/images/scout_logo.jpg"></a>
37
                <div id="top-navigation">
38
                        <a title="<?php echo $nav_title[0];?>" href="<?php echo $nav[0];?></a>
39
                        <a title="<?php echo $nav_title[1];?>" href="<?php echo $nav[1];?></a>
40
                        <a title="<?php echo $nav_title[2];?>" href="<?php echo $nav[2];?></a>
41
                        <a title="<?php echo $nav_title[3];?>" href="<?php echo $nav[3];?></a>
42
                        <a title="<?php echo $nav_title[4];?>" href="<?php echo $nav[4];?></a>
43
                        <a title="<?php echo $nav_title[5];?>" href="<?php echo $nav[5];?></a>
44
                        <a title="<?php echo $nav_title[6];?>" href="<?php echo $nav[6];?></a>
45
                </div>
46
        </div>