|
|
|
@ -6438,7 +6438,7 @@ function display_thread_form($action = 'add', $id = 0, $extra_info = '') |
|
|
|
|
foreach($resources_sorted as $key=>$resource) |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
if(is_array($resource['files'])) |
|
|
|
|
if(is_int($resource['id'])) |
|
|
|
|
{ // it's a folder |
|
|
|
|
$return .= '<div><div style="margin-left:' . ($num * 15) . 'px;margin-right:5px;"><img style="cursor: pointer;" src="../img/nolines_plus.gif" align="absmiddle" id="img_'.$resource["id"].'" onclick="testResources(\''.$resource["id"].'\',\'img_'.$resource["id"].'\')"><img alt="" src="../img/lp_folder.gif" title="" align="absmiddle" /> <span onclick="testResources(\''.$resource["id"].'\',\'img_'.$resource["id"].'\')" style="cursor: pointer;" >'.$key.'</span></div><div style="display: none;" id="'.$resource['id'].'">'; |
|
|
|
|
$return = $this->write_resources_tree($return, $resource['files'], $num+1); |
|
|
|
|