listHeadingStart(count($containers));
$this->headingItem('10%', _DOWN_NAME_TITLE);
$this->headingItem('3%', _DOWN_VISIT);
$this->headingItem('3%', _DOWN_EDIT);
if ($this->clist) {
$this->headingItem('3%', 'ID');
$this->headingItem('10%', _DOWN_PARENT_CAT);
$this->headingItem('10%', _DOWN_PARENT_FOLDER);
}
$this->headingItem('6%', _DOWN_PUB1);
$this->headingItem('6%', _DOWN_RECORDS);
$this->headingItem('8%', _DOWN_VISITORS);
$this->headingItem('8%', _DOWN_REG_USERS);
$this->headingItem('8%', _DOWN_OTHER_USERS);
$this->headingItem('10%', _DOWN_STORAGE_STATUS);
echo "\n";
}
function filecount ($container) {
if ($container->filecount) {
// Change for multiple repositories
// $link = "";
$link = "";
$link .= $container->filecount;
$link .= '';
return $link;
}
else return '0';
}
function listLine ($container, $i, $k) {
$interface = remositoryInterface::getInstance();
$authoriser = aliroAuthoriser::getInstance();
$categoryname = $this->visitLink(0, $container->getCategoryName());
$family = $container->getFamilyNames();
if ($container->parentid) {
$parent = $container->getParent();
if ($parent->parentid) $family = $this->visitLink($parent->parentid, $family);
}
?>
">
|
|
name; ?> |
visitLink($container->id, _DOWN_VISIT); ?>
|
editLink($container->id, _DOWN_EDIT); ?>
|
clist) { ?>
id; ?> |
|
|
published==1) { ?>
; ?>/images/publish_g.png) |
; ?>/images/publish_x.png) |
filecount($container); ?> |
checkRolePermission ('Visitor', array('download','edit'), 'remosFolder', $container->id)) echo $this->repository->RemositoryImageURL('download_trans.gif').'/';
else echo '-/';
if ($authoriser->checkRolePermission ('Visitor', array('upload','edit'), 'remosFolder', $container->id)) echo $this->repository->RemositoryImageURL('add_file.gif');
else echo '-';
?>
|
checkRolePermission (array('Visitor','Registered'), array('download','edit'), 'remosFolder', $container->id)) echo $this->repository->RemositoryImageURL('download_trans.gif').'/';
else echo '-/';
if ($authoriser->checkRolePermission (array('Visitor','Registered'), array('upload','edit'), 'remosFolder', $container->id)) echo $this->repository->RemositoryImageURL('add_file.gif');
else echo '-';
?>
|
checkOtherPermission (array('download','edit'), $container->id)) echo $this->repository->RemositoryImageURL('download_trans.gif').'/';
else echo '-/';
if ($this->checkOtherPermission (array('upload','edit'), $container->id)) echo $this->repository->RemositoryImageURL('add_file.gif');
else echo '-';
?>
|
pathstatus ?>
|
permittedRoles ($actions, 'remosFolder', $id, array('Registered', 'Nobody'));
return count($allowed);
}
// was showContainersHTML
function view ($container, $containers, $descendants, $search='') {
$title = $container->id ? _DOWN_CONTAINERS.' - '.$container->name : _DOWN_CONTAINERS;
$this->formStart($title);
$this->listHeader($descendants, $search);
echo '';
$this->columnHeads($containers);
$this->pageNav->listFormEnd();
$k = $parentid = 0;
echo "\n\t\t";
foreach ($containers as $i=>$container) {
$parentid = $container->parentid;
$this->listLine($container, $i, $k);
$k = 1 - $k;
}
echo <<
SAVE_PARENT;
}
}