	<div class="wrap_all">
	<div id="top">
		<div class="navwrap">
			<ul id="nav">
				<li class="current_page_item"><a href="#">վ··ҳ</a></li>
				<li class="page_item"><a href="#">չʾCases</a>
					<ul class="children">
							    <?php
      $menu = $action->getProductType(" and topid='1'");
      foreach($menu as $rows){
        echo "<li class='page_item'><a href='{$webdir}lists.php?id={$rows["id"]}'>{$rows["typename"]}</a>";
		              $menus=$action->getProductType(" and topid='{$rows["id"]}'");
					 echo "<ul class='children'>";
           foreach($menus as $rows){
               echo "<li class='page_item'><a href='{$webdir}lists.php?id={$rows["id"]}'>{$rows["typename"]}</a></li>";
           }
		   		   echo "</ul>";
		   echo "</li>";
      }
			    ?>
					</ul>
				</li>
				<li class="current_page_item"><a href="#">BLog</a></li>
				<li class="current_page_item"><a href="#">·ϵ··</a></li>
			</ul>
		</div>
	</div>
	</div>