| | |
| | | <?php $s_html = '';?> |
| | | <?php if(isset($second_modules[$pid])):?> |
| | | <?php foreach ($second_modules[$pid] as $s_module):?> |
| | | <?php if(isset($is_active_class) && in_array($s_module['_id'], $current_role_auth)):?> |
| | | |
| | | <?php if($route['module'] == $s_module['module'] && $route['controller'] == $s_module['controller'] && $route['action'] == $s_module['action']):?> |
| | | <?php $is_active_class = 'active';?> |
| | | <?php $s_html .= " |
| | |
| | | <?php $s_html .= " |
| | | <li ><a href='/{$s_module['module']}/{$s_module['controller']}/{$s_module['action']}'><i class='fa fa-circle-o'></i> {$s_module['name']}</a></li>"; |
| | | ?> |
| | | <?php endif;?> |
| | | |
| | | <?php endif;?> |
| | | <?php endforeach;?> |
| | | <li class="<?php echo $is_active_class; ?> treeview"> |