Dynamic menu-cms

i am new to php…i want to create a dynamic menu in my website…

in topmenu i have aboutus,odbts.
in aboutus have whowe are,some submenus also same as to odbts…

if i click aboutus then it display in rightside,
and same as for odbts…

how can i do it…


content.php code:

<?php require(‘includes/settings.php’);
if(isset($_GET[‘id’])) {
if($_GET[‘id’] == 17) {
header(‘location: gallery.php’);
if($_GET[‘id’] == 45) {
header(‘location: careers.php’);


<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
<html xmlns=“http://www.w3.org/1999/xhtml”>
<meta http-equiv=“Content-Type” content=“text/html; charset=utf-8” />
<title>Glasence Engineering Consultancy Pvt Ltd.</title>
<link rel=“icon” href=“favicon.ico” type=“image/x-icon”/>
<link rel=“shortcut icon” type=“image/x-icon” href=“favicon.ico” />
<link rel=“stylesheet” type=“text/css” href=“css/menu.css” />
<link rel=“stylesheet” type=“text/css” href=“css/accordion_style.css” />

<!–[if lte IE 7]>
<style type=“text/css”>
html .jqueryslidemenu{height: 1%;} /Holly Hack for IE7 and below/
<script type=“text/javascript” src=“js/slidemenu.js”></script>
<script type=“text/javascript” src=“http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js”></script>
<script type=“text/javascript” src=“js/jqueryslidemenu.js”></script>
<script type=“text/javascript”>
<script type=“text/javascript” src=“js/jquery-1.3.2.js”></script>
<script type=“text/javascript” src=“js/jquery.hrzAccordion.js”></script>
<script type=“text/javascript” src=“js/jquery.hrzAccordion.examples.js”></script>
<style type=“text/css”>
@import url(“css/style_inner.css”);
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/body_bg.jpg);
background-repeat: repeat-x;
background-color: #D4E5F5;
<script src=“Scripts/AC_ActiveX.js” type=“text/javascript”></script>
<script src=“Scripts/AC_RunActiveContent.js” type=“text/javascript”></script>
<body onload=“slideMenu.build(‘sm’,700,10,10,1)”>
<body onload=“MM_preloadImages(‘images/ecc_but_over_01.jpg’,‘images/ecc_but_over_02.jpg’,‘images/gla-over_07.jpg’,‘images/gla-over_13.jpg’,‘images/gla-over_15.jpg’)”>
<div class=“maincontainer”>
<?php include(‘includes/header.php’);?>
<?php include(‘includes/topmenu.php’);?>

&lt;div class="eccbutons"&gt;
  &lt;div class="eccbutons1"&gt;
      &lt;li&gt;&lt;a href="#"&gt;ODBTS &lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#"&gt;Glasence's Offerings&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt; &lt;a href="#"&gt;Glasence Skills&nbsp;Development&lt;/a&gt;&lt;/li&gt;
  &lt;div class="eccbutons2"&gt;&lt;a class="addthis_button" onmouseover="http://www.addthis.com/bookmark.php?v=250&amp;username=xa-4caed4f2568480a2"&gt;&lt;img src="images/share.jpg" width="64" height="11" border="0" /&gt;&lt;/a&gt;&lt;script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=xa-4caed4f2568480a2"&gt;&lt;/script&gt;&lt;a style="text-decoration:none;" onClick="javascript:window.print()"&gt;&lt;img src="images/buts_05.jpg" width="103" height="11" /&gt;&lt;/a&gt;&lt;img src="images/buts_07.jpg" width="109" height="11" /&gt;&lt;/div&gt;

<div class=“mainconten”>
<div class=“leftpanel”>
<?php include(‘includes/left_dynamic_menu.php’);?>

 &lt;div class="rightpanel"&gt;
 if(isset($_GET['id'])) {
 if($_GET['id'] == 0) { $id = 2;} 
 else {
 $id = escape($_GET['id']);
 $res = query("select id, title, content from content where id = $id limit 1" );
 if($res) $row = fetch_array($res);	 

 &lt;?php echo $row['content'];?&gt;
 &lt;p&gt;One of the major challenges facing most businesses today is retraining and developing

talent. Knowledge retention and succession planning are key areas that are continually being
targeted as concerns in many industries.</p>

   &lt;p&gt;Training and professional development programs are an ideal solution to ensure your
   organisation retains the talent and skills they have invested in.&lt;/p&gt;
 &lt;p&gt;Training and professional development is also an ideal way to express commitment to your

employees and show an interest in developing their abilities. It presents an opportunity
to enhance employer branding and these are major factors in retaining, developing and
attracting the best talent within your organisation. The key issues that dominate the industry
that can be fixed through an effective training program…</p

The following courses are designed to address the following concern at your work place.
<li>Lack of customer service skills – how to foster better relationship with customers and their
<li>Lack of harmonious corporate cultural environment that to be needed for value creation
and motivation. </li>
<li> Team members various type of personalities that affect the moral and work environment.</li>
<li>Promote complacent where help people to get out of their tired ruties and show them how
to produce more productivity. </li>
<li> How to address the concern of when employees perform poorly due to lack of professional
skills and issues of knowledge. </li>
<p>Glasence Skills Development (GSD) is designed for you to provide everything you need to
addess your training and talent creation purposes. list of training workshops that enable your
employees to corn their core competencies. GSD consists of total of 18 courses that cover
everything from leadership development, sales skills, and professional appetite to superior
customer service. These courses are designed and delivered by corporate training consultants
and had been widely successful at places where they were offered before.</p>

<p>Please review the list of courses below and let us know the course that think you require for
your team. You can click on the link below for our contact details and we will get back to you


<div id=“footer”>Terms of Use    I   Privacy Statement   I   Trademarks<br />
© 2010.Glasence</div>

left_dynamic_menu code:
if(isset($_GET[‘id’]) && $_GET[‘id’] != 0) {
$id = escape($_GET[‘id’]);
$res1 = query(“select id, title, c_id from content where id = $id” );
if(num_rows($res1) > 0) {
$row1 = fetch_array($res1);
$res = query(“select id, title, c_id from content where id = $id” );


<div class=“menuhead”>ODBTS</div>
<div align=“left”>
<script type=“text/javascript” src=“http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js”></script>
<script src=“js/jquery-1.2.1.min.js” type=“text/javascript”></script>
<script src=“js/menu.js” type=“text/javascript”></script>
<ul id=“menu”>
<li><a href=“#” >Glasence’s Offerings</a>
<li><a href=“#”>Glasence Skills Development</a></li>
<li><a href=“#”>Glasence Project Management</a></li>
<li><a href=“#”>Glasence Innovation</a></li>
<li><a href=“#”>Glasence Process Re-Engineering</a></li>
<li><a href=“#” >Industrial Experience</a>
<li><a href=“#”>Infrastructure</a></li>
<li><a href=“#”>Automotives</a></li>
<li><a href=“#”>Airlines</a></li>
<li><a href=“#”>Information Technology</a></li>
<li><a href=“#”>Heavy Industrial Manufacturing</a></li>
<li><a href=“#”>Energy & Utilities</a></li>
<li><a href=“#”>Service Industry</a></li>
<li><a href=“#” >How Do We Work</a>
<li><a href=“#”>Value Proposition</a></li>
<li><a href=“#”>Global Engagement Model</a></li>
<li><a href=“#” >Special Interests</a>
<li><a href=“#”>Climate Change</a></li>
<li><a href=“#”>Crises Management</a></li>
<li><a href=“#”>Green Energy</a></li>
<li><a href=“#”>Minerals</a></li>

please help me