ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/shardiwal/menu.php
Revision: 13
Committed: Wed Feb 2 04:17:00 2011 UTC (5 years, 3 months ago) by rakeshshardiwal
File size: 1339 byte(s)
Log Message:
project almost done
Line File contents
1 <!-- MENU START-->
2 <div id="menu">
3 <div class="header_bottom">
4 <div class="header_nav">
5 <ul class="main_nav">
6 <li> <div class="nav_first"></div> </li>
7 <?php
8 $menus = array(
9 'Home' => 'index.php',
10 'Genomic Study' => 'genome.php',
11 'Biological Targets' => 'biological.php',
12 'Attenuated Vaccine' => 'vaccine.php',
13 );
14 $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
15 $path_information = parse_url($url);
16 $page_url = $path_information['path'];
17 $page_url = str_replace("/sequencepctool/", "", $page_url);
18 foreach ($menus as $key => $menu) {
19 $myclass = "";
20 $image = "arrow_white";
21 if($menus[$key] == $page_url && $page_url != 'index.php'){
22 $myclass = "_selected";
23 $image = "arrow_selected";
24 }
25 echo "
26 <li>
27 <div class=\"nav_left$myclass\"></div>
28 <div class=\"nav_repeat$myclass\">
29 <div>
30 <a href=\"$menus[$key]\">$key
31 <img width=\"7\" height=\"4\" src=\"images/$image.gif\" style=\"border-width: 0px; border-style: solid;\" alt=\"\"></a>
32 </div>
33 </div>
34 <div class=\"nav_right$myclass\"></div>
35 </li>
36 ";
37 }
38 ?>
39 </ul>
40 <div class="clear"></div>
41 </div>
42 <div class="clear"></div>
43 </div>
44 </div>
45 <!-- MENU END-->

Properties

Name Value
svn:eol-style native