ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/shardiwal/menu.php
Revision: 10
Committed: Tue Feb 1 09:12:58 2011 UTC (9 years, 1 month ago) by rakeshshardiwal
File size: 1378 byte(s)
Log Message:
web designing started
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 'Search' => 'search.php',
11 'Genomic Study' => 'genome.php',
12 'Biological Targets' => 'biological.php',
13 'Attenuated Vaccine' => 'vaccine.php',
14 );
15 $url = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
16 $path_information = parse_url($url);
17 $page_url = $path_information['path'];
18 $page_url = str_replace("/sequencepctool/", "", $page_url);
19 foreach ($menus as $key => $menu) {
20 $myclass = "";
21 $image = "arrow_white";
22 if($menus[$key] == $page_url && $page_url != 'index.php'){
23 $myclass = "_selected";
24 $image = "arrow_selected";
25 }
26 echo "
27 <li>
28 <div class=\"nav_left$myclass\"></div>
29 <div class=\"nav_repeat$myclass\">
30 <div>
31 <a href=\"$menus[$key]\">$key
32 <img width=\"7\" height=\"4\" src=\"images/$image.gif\" style=\"border-width: 0px; border-style: solid;\" alt=\"\"></a>
33 </div>
34 </div>
35 <div class=\"nav_right$myclass\"></div>
36 </li>
37 ";
38 }
39 ?>
40 </ul>
41 <div class="clear"></div>
42 </div>
43 <div class="clear"></div>
44 </div>
45 </div>
46 <!-- MENU END-->

Properties

Name Value
svn:eol-style native