<?php  $str=  $_SERVER['QUERY_STRING'];
$output = substr($str, 0, 0) . substr($str, -3); ?>
<ul id="menu">
    <li><a href="<?php echo $translate->__('home.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Admin Home');?></a></li>
    <li><a href=""><?php echo $translate->__('Page Content');?></a>
        <ul>
            <li><a href="<?php echo $translate->__('insert-content.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Insert Content');?></a></li>
            <li><a href="<?php echo $translate->__('find-update-rec.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Update Content');?></a></li>
            <li><a href="<?php echo $translate->__('find-delete-rec.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Delete Content');?></a></li>
        </ul>
    </li>
    <li><a href=""><?php echo $translate->__('Photos');?></a>
        <ul>
            <li><a href="<?php echo $translate->__('add_photo_gallery.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Add Gallery');?></a></li>
            <li><a href="<?php echo $translate->__('delete_gallerys.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Delete Gallery');?></a></li>
            <li><a href="<?php echo $translate->__('photo_upload.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Add One Photo');?></a></li>
            <li><a href="<?php echo $translate->__('photo_upload_ten.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Upload Ten Photos');?></a></li>
            <li><a href="<?php echo $translate->__('photo_delete.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Delete Photo');?></a></li>
        </ul>
    </li>
    <li><a href=""><?php echo $translate->__('Slider');?></a>
        <ul>
            <li><a href="<?php echo $translate->__('select_slider.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Select Slider');?></a></li>
         
        </ul>
    </li>
    
     <li><a href=""><?php echo $translate->__('Pages');?></a>
        <ul>
            <li><a href="<?php echo $translate->__('add_pages.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Add Pages');?></a></li>
         <li><a href="<?php echo $translate->__('delete_pages.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Delete Pages');?></a></li>
         <li><a href="<?php echo $translate->__('find-update-page.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Update Pages');?></a></li>
        </ul>
    </li>
    
    
     <li><a href=""><?php echo $translate->__('Themes');?></a>
        <ul>
            <li><a href="<?php echo $translate->__('themes.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Change Theme');?></a></li>
         
        </ul>
    </li>
    
     <li><a href=""><?php echo $translate->__('User');?></a>
        <ul>
            <li><a href="<?php echo $translate->__('update_user_info.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Update User Info');?></a></li>
         
        </ul>
    </li>
    
    
    <li><a href=""><?php echo $translate->__('Info');?></a>
        <ul>
            <li><a href="<?php echo $translate->__('company_info.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Company Info');?></a></li>
            <li><a href="<?php echo $translate->__('website_info.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Website Info');?></a></li>
             <li><a href="<?php echo $translate->__('photo_logo.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Logo');?></a></li>
         
        </ul>
    </li>
    
     <li><a href="<?php echo $translate->__('logout.php');?>lang<?php echo $output;?>"><?php echo $translate->__('Logout');?></a>
      
    </li>
    
    
    <div id="rest"><?php echo $translate->__('Hello');?> <?= $_SESSION['MM_Username'] ?></div>
</ul>