<? defined('ROOT_PHPLEFT') or exit();?>
<!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">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=gbk"/>
<title>PHPLEFT网站管理系统</title>
<link href="css/left.css" type="text/css" rel="stylesheet"> 
<script type="text/javascript" src="<?=PL_URL?>js/common.js"></script>
</head>
<body>
<div class="menu">
<? if ($tabs=='1' or $tabs=='') {
	$nl = count($menu[1])+1;
	
	?>
        <table border="0" cellpadding="0" cellspacing="0" id="indextablebody" width="100%">          
            <tbody>
                <tr>
                    <td class="t1">
                    <ul>
                    <li id=1 class="ons"><a title="管理首页" href="main.php" target="main"  onClick="csstb(1,<?=$nl?>,'ons');" class="now61"><span>管理首页</span></a></li>
                       <?php 
					   foreach($menu[1] as $id=>$m) { 
					   
					   ?>
                                               <? if ($m[3]==0) { ?>
                                                    <li id=<?=$id+2?>><a title="<?=$m[1]?>" href="phpleft.php?file=<?=$m[2]?>" target="main"  onClick="csstb(<?=$id+2?>,<?=$nl?>,'ons');" class="now<?=$m[0]?>"><span><?=$m[1]?></span></a></li>
                                                     <? }else {?>
                                                     <li id=<?=$id+2?>><a title="<?=$m[1]?>" href="<?=$m[2]?>" target="main"  onClick="csstb(<?=$id+2?>,<?=$nl?>,'ons');" class="now<?=$m[0]?>"><span><?=$m[1]?></span></a></li>
                                               <?php } } ?>
                                               </ul>
                    </td>
                  
                </tr>
            </tbody>
        </table>
        <? }else if ($tabs=='2') {?>
        <table border="0" cellpadding="0" cellspacing="0" id="indextablebody" width="100%">          
            <tbody>
                <tr>
                    <td class="t1">
                       
                                                <?php
												$allids=0;
												foreach($menu[2] as $id=>$m) { 
												$menuinc = PL_ROOT.'phpleft/'.$m['module'].'/admin/menu.php';
		                                        include $menuinc;
												$allids =$allids+count($menulist);
												}
												$i = 0;
												$allid = count($menu[2]);
												foreach($menu[2] as $id=>$m) { ?>
                                                
                                                 <ul>
                                                  <li class="lm" onClick="cin(<?=$id+1?>,<?=$allid?>);"><a title="<?=$m['name']?>"><span><?=$m['name']?></span></a></li></ul>
               <ul id="c_<?=$id+1?>" class="zlm"<?php if ($id==0) echo' style="display:block"';?>>
               <?php
		$menuinc = PL_ROOT.'phpleft/'.$m['module'].'/admin/menu.php';
		include $menuinc;
		foreach($menulist as $ms) {
		$i=$i+1;
		?>
  
					<li id=<?=$i?>><a href="<?=$ms[1]?>" target="main" onClick="csstb(<?=$i?>,<?=$allids?>,'on');"><span><?=$ms[0]?></span></a></li>
   <? }?>
							  </ul> 
                               
												  <? }?>
                                              
                    </td>
                  
                </tr>
            </tbody>
        </table>   
       
        <? }else if ($tabs=='3') {?>
         <table border="0" cellpadding="0" cellspacing="0" id="indextablebody" width="100%">          
            <tbody>
                <tr>
                    <td class="t1">  
          <ul>   
          <?php 
		  $nl = count($menu[3]);
					   foreach($menu[3] as $id=>$m) { 
					   
					   ?>
                                               
                                                    <li id=<?=$id+1?>><a title="<?=$m[1]?>" href="phpleft.php?file=plugins_set&in=<?=$m[1]?>" target="main"  onClick="csstb(<?=$id+1?>,<?=$nl?>,'ons');" class="now11"><span><?=$m[plugins_name]?></span></a></li>
                                                    
                                                     
                                               <?php  } ?>
                                                 <ul>
                                                     </td>
                  
                </tr>
            </tbody>
        </table>   
<? }else if ($tabs=='4') {?>

<table border="0" cellpadding="0" cellspacing="0" id="indextablebody" width="100%">          
            <tbody>
                <tr>
                    <td class="t1">  
          <ul>   
          <?php 
		  $nl = count($menu[4]);
					   foreach($menu[4] as $id=>$m) { 
					   
					   ?>
                                                    <li id=<?=$id+1?>><a title="<?=$m[1]?>" href="phpleft.php?file=user&in=<?=$m[0]?>" target="main"  onClick="csstb(<?=$id+1?>,<?=$nl?>,'ons');" class="now11"><span><?=$m[1]?></span></a></li>
                                               <?php  } ?>
                                                 <ul>
                                                     </td>
                  
                </tr>
            </tbody>
        </table>
        <? }?>
</div>

</body>
</html>
