.
*/
include_once __DIR__.'/../../core.php';
function menuSelection($element, $group_id, $depth, $perms_values, $perms_names)
{
$dbo = database();
++$depth;
$name = $element['title'];
$submenus = $element['all_children'];
if (!empty($submenus)) {
$temp = '';
foreach ($submenus as $submenu) {
$temp .= menuSelection($submenu, $group_id, $depth, $perms_values, $perms_names);
}
}
$result .= '
'.str_repeat(' ', $depth).$name.' |
|
'.$temp;
return $result;
}