fieldset(_DOWN_PUBLISHING, $this->simpleCheckBox ($container, 'published', _DOWN_PUB)); } function showMetadata ($container) { return $this->fieldset(_DOWN_METADATA, $this->simpleInputBox(_DOWN_KEYWORDS,'keywords',$container->keywords,50). $this->simpleInputBox(_DOWN_WINDOW_TITLE,'windowtitle',$container->windowtitle,50) ); } function showStorage ($container) { return $this->fieldset(_DOWN_STORAGE, $this->simpleInputBox(_DOWN_UP_ABSOLUTE_PATH,'filepath',$container->filepath,50). $this->yesNoRadio (null, 'inheritpath', _DOWN_INHERIT). $this->simpleCheckBox($container, 'plaintext', _DOWN_UP_PLAIN_TEXT) ); } function showAccessControl ($container, $roleselect, $submanagers) { return $this->fieldset(_DOWN_ACCESS_CONTROL, ($submanagers ? $this->yesNoRadio ($container, 'countdown', _DOWN_COUNT_DOWN). $this->yesNoRadio ($container, 'childcountdown', _DOWN_COUNT_DOWN_CHILD). $this->yesNoRadio ($container, 'countup', _DOWN_COUNT_UP). $this->yesNoRadio ($container, 'childcountup', _DOWN_COUNT_UP_CHILD) : ''). $this->oneAccessSelector ($roleselect, 'download', _DOWN_DOWNLOAD_ROLES). $this->oneAccessSelector ($roleselect, 'upload', _DOWN_UPLOAD_ROLES). $this->oneAccessSelector ($roleselect, 'edit', _DOWN_EDIT_ROLES). $this->oneAccessSelector ($roleselect, 'selfApprove', _DOWN_APPROVE_ROLES). $this->yesNoRadio (null, 'inherit', _DOWN_INHERIT) ); } function oneAccessSelector ($roleselect, $type, $title) { $select = $roleselect[$type]; $newrole = _DOWN_ADD_NEW_ROLE; return <<
$title
$select
ACCESS_SELECTOR; } function view (&$container, $roleselect, $subsinfo) { $iconList = remositoryContainer::getIcons (); $this->commonScripts('description'); if (!defined('_ALIRO_IS_PRESENT')) $formstart = << FORM_START; else $formstart = ''; $heading = _DOWN_REMOSITORY.' '._DOWN_EDIT_CONTAINER.' (ID='.$container->id.')'; $loctext = _DOWN_SUGGEST_LOC; $leftcontents = $this->narrowInputBox(_DOWN_FOLDER_NAME, 'name', $container->name, 50). $this->narrowInputBox(_DOWN_ALIAS.':', 'alias', $container->alias, 50). $this->simpleInputArea(_DOWN_DESC, _DOWN_DESC_MAX, 'description', $container->description, 50, 100, true). $this->simpleIcons($container, $iconList); echo << $formstart
$heading
 
$loctext
$this->clist
$leftcontents
MAIN_DIV; echo $this->showPublishing($container); echo $this->showMetadata($container); echo $this->showStorage($container); echo $this->showAccessControl($container, $roleselect, $subsinfo); echo << END_PAGE; if (!defined('_ALIRO_IS_PRESENT')) echo ''; echo "\n\t"; } }