'; include ($gfcommon.'docman/views/tree.php'); echo ''; // plugin projects-hierarchy $childgroup_id = getIntFromRequest('childgroup_id'); if ($childgroup_id) { if (!forge_check_perm('docman', $childgroup_id, 'read')) { $return_msg= _('Document Manager Access Denied'); session_redirect($baseredirecturl.'&warning_msg='.urlencode($return_msg)); } $redirecturl .= '&childgroup_id='.$childgroup_id; $actionlistfileurl .= '&childgroup_id='.$childgroup_id; $g = group_get_object($childgroup_id); } $df = new DocumentFactory($g); if ($df->isError()) exit_error($df->getErrorMessage(), 'docman'); $dgf = new DocumentGroupFactory($g); if ($dgf->isError()) exit_error($dgf->getErrorMessage(), 'docman'); $dgh = new DocumentGroupHTML($g); if ($dgh->isError()) exit_error($dgh->getErrorMessage(), 'docman'); $df->setDocGroupID($dirid); $df->setStateID('1'); $d_arr_active =& $df->getDocuments(); if ($d_arr_active != NULL) $d_arr = $d_arr_active; $df->setStateID('4'); $d_arr_hidden =& $df->getDocuments(); if ($d_arr != NULL && $d_arr_hidden != NULL) { $d_arr = array_merge($d_arr, $d_arr_hidden); } else if ($d_arr_hidden != NULL) { $d_arr = $d_arr_hidden; } $df->setStateID('5'); $d_arr_private =& $df->getDocuments(); if ($d_arr != NULL && $d_arr_private != NULL) { $d_arr = array_merge($d_arr, $d_arr_private); } else if ($d_arr_private != NULL) { $d_arr = $d_arr_private; } $nested_groups = $dgf->getNested(); $nested_docs = array(); $DocGroupName = 0; if ($dirid) { $ndg = new DocumentGroup($g, $dirid); $DocGroupName = $ndg->getName(); $dgpath = $ndg->getPath(true, false); if (!$DocGroupName) { session_redirect($baseredirecturl.'&error_msg='.urlencode($g->getErrorMessage())); } if ($ndg->getState() != 1) { $error_msg = _('Invalid folder'); session_redirect($baseredirecturl.'&view=listfile&error_msg='.urlencode($error_msg)); } } if ($d_arr != NULL ) { if (!$d_arr || count($d_arr) > 0) { // Get the document groups info //put the doc objects into an array keyed off the docgroup foreach ($d_arr as $doc) { $nested_docs[$doc->getDocGroupID()][] = $doc; } } } $df->setStateID('3'); $d_pending_arr =& $df->getDocuments(); $nested_pending_groups =& $dgf->getNested(); if ($d_pending_arr != NULL ) { if (!$d_pending_arr || count($d_pending_arr) > 0) { // Get the document groups info //put the doc objects into an array keyed off the docgroup foreach ($d_pending_arr as $doc) { $nested_pending_docs[$doc->getDocGroupID()][] = $doc; } } } ?> '; echo ''; echo '
'; ?>