setStateID('2');
/**
* var must be named d_arr & nested_groups
* because used by tree.php
*/
$d_arr =& $df->getDocuments();
$nested_groups =& $dgf->getNested('2');
$linkmenu = 'listtrashfile';
$nested_docs = array();
$DocGroupName = 0;
if ($dirid) {
$ndg = new DocumentGroup($g,$dirid);
$DocGroupName = $ndg->getName();
if (!$DocGroupName) {
session_redirect('/docman/?group_id='.$group_id.'&error_msg='.urlencode($g->getErrorMessage()));
}
}
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;
}
}
}
// $nested_groups has a system directory : .trash => so count < 2
if ((!$d_arr || count($d_arr) < 1) && (!$nested_docs || count($nested_docs) < 2)) {
echo '
'._('Trash is empty').'
';
} else {
?>
';
echo '
';
include ($gfcommon.'docman/views/tree.php');
echo '