blob: 09b5f8e64a3074a0e894bce59498dbaf8ceea7cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
<?php
function print_folder_list($folderlist, $depth) {
foreach($folderlist as $folder) {
echo '<li style="margin-left:' . 10*$depth . 'px;" class="menuItem" onclick="News.DropDownMenu.selectItem(this, ' . $folder->getId() . ')">' . $folder->getName() . '</li>';
$children = $folder->getChildren();
print_folder_list($children, $depth+1);
}
}
print_folder_list($_['folderforest'], 0);
?>
|