<!-- end messages -->
<div class="box">
    <div class="title">
        <h5><?php echo $this->__('Quick Navigation');?></h5>
    </div>
    <div class="inner">
    <?php 
		$admin_nav_def = $this->get_admin_nav();
		$NAVAccess = App::Module('ACL')->readNAVAccess('top');
		
		$LeftAccess = App::Module('ACL')->readNAVAccess('left');
		$currentLeftAccess = isset($LeftAccess[$this->admin_tab])?$LeftAccess[$this->admin_tab]:array();
		$accessLinks = App::Module('ACL')->accessLinksOnly($currentLeftAccess);

	?>
    <table cellpadding="0" cellspacing="0">
    <tr>
    <?php $track = 0; foreach( $NAVAccess as $key => $val):?>
    <?php if(isset($admin_nav_def[$val]['child'])): $arr_root = $admin_nav_def[$val]['child']; ?>
        <?php if(!empty($arr_root)):?>
            <?php foreach( $arr_root as $key1 => $val1):?>
            <?php
                $fetchType = 'URL';
                if(!empty($val1['adminicon']))
                {
                    $fetchType = $val1['adminicon']['type'];
                    $icon_path = $val1['adminicon']['location'];
                }
                else $icon_path = '/themeroot/admin/images/icons/' . App::Helper('utility')->text2Normalize($val1['title']) . '.jpg';

                if (!file_exists($this->basedir("$icon_path")) && !file_exists($this->rootDir("$icon_path")) )
                {
                    $fetchType = 'URL';
                    $icon_path = '/images/admin/deshboard/info.jpg';
                }
                if(strtolower($fetchType) == 'url')$icon =  App::load("Helper/Html")->imgTag($this->baseurl($icon_path),null,array("height"=>"40","width"=>"40"));
                else $icon = App::load("Helper/Html")->imgDTag($this->rootDir($icon_path),'/40/fix',array("height"=>"40","width"=>"40"));
            ?>
            <?php if($track != 0 && $track % App::Module('AdminPanelUi')->QNColumns() == 0):?>
                </tr><tr>
            <?php endif;?>
            <td class="dashboard-quicklinks">
                <h6><?php echo( $val1['title']);?> </h6>
                <div class="floatleft" style="margin-left: 20px;">
                <?php echo $icon;?></div>
                <div style="float:left;padding:10px">
                <?php 
                foreach($val1['items'] as $key2 => $val2) 
                    echo App::load("Helper/Html")->linkTag($this->baseurl(App::Module('AdminPanelUi')->senitizeLink($val2['link'])),$val2['title']);
                ?></div>
            </td>
            <?php $track++; endforeach;?>
        <?php endif;?>
    <?php endif;?>
    <?php endforeach;?>
    </tr>
    </table>
    </div>
</div>