Пример #1
0
 function publishToggle($publish)
 {
     // Check that one or more items have been selected (Javascript may not have run)
     $this->admin->check_selection(_DOWN_PUB_PROMPT . ($publish ? 'publish' : 'unpublish'));
     mosContainer::togglePublished($this->admin->cfid, $publish);
     // The file/folder counts only include published items, so recalculate
     $this->repository->resetCounts(array());
     // List out the containers again
     $this->listTask();
 }
Пример #2
0
 function view(&$container)
 {
     $iconList = mosContainer::getIcons();
     $this->commonScripts('description');
     echo '<br/>';
     $this->startEditHeader(T_('Edit Container details'));
     $this->publishedBox($container);
     $this->fileInputBox(T_('Container name'), 'name', $container->name, 50);
     $this->fileInputArea(T_('Description'), T_('Up to 500 characters'), 'description', $container->description, 50, 100, true);
     $this->fileInputBox(T_('Keywords'), 'keywords', $container->keywords, 50);
     $this->fileInputBox(T_('Window title'), 'windowtitle', $container->windowtitle, 50);
     $this->displayIcons($container, $iconList);
     $this->editFormEnd($container->id);
 }