\n";
- echo "\n";
+ $table = new htmlTable('100%');
+ $left = new htmlGroup();
+ // button part
+ $left->alignment = htmlElement::ALIGN_LEFT;
if (checkIfWriteAccessIsAllowed()) {
// add/delete buttons
- echo "\n";
+ $newButton = new htmlButton('new', $this->labels['newEntry']);
+ $newButton->setIconClass('createButton');
+ $left->addElement($newButton);
if (!$createOnly) {
- echo "\n";
+ $left->addElement(new htmlSpacer('1px', null));
+ $delButton = new htmlButton('del', $this->labels['deleteEntry']);
+ $delButton->setIconClass('deleteButton');
+ $left->addElement($delButton);
}
$type = new $this->type();
$toolSettings = $_SESSION['config']->getToolSettings();
if ($type->supportsFileUpload() && !(isset($toolSettings['tool_hide_toolFileUpload']) && ($toolSettings['tool_hide_toolFileUpload'] == 'true'))) {
- echo ' ';
- echo "\n";
+ $left->addElement(new htmlSpacer('20px', null));
+ $uploadButton = new htmlButton('fileUpload', _('File upload'));
+ $uploadButton->setIconClass('upButton');
+ $left->addElement($uploadButton);
}
- ?>
-
-
- \n";
- echo " | \n";
- $this->listShowOUSelection();
- echo "";
- echo ' ';
- echo '';
- echo '';
- echo " | \n";
- echo "
\n";
- echo "