/**
     * Rendering the copy file form for a single item
     *
     * @return	string		HTML content
     */
    function renderFormSingle($id, $meta, $targetFolder)
    {
        global $BACK_PATH, $LANG;
        $filepath = tx_dam::file_absolutePath($meta);
        $this->pObj->markers['FOLDER_INFO'] = 'File: ' . $filepath;
        $content = '';
        $msg = array();
        $msg[] = tx_dam_guiFunc::getRecordInfoHeaderExtra($meta);
        $msg[] = ' ';
        $targetFolderRel = tx_dam::path_makeRelative($targetFolder);
        $msg[] = $LANG->getLL('labelTargetFolder', 1) . ' <strong>' . htmlspecialchars($targetFolderRel) . '</strong>';
        $msg[] = '&nbsp;';
        $msg[] = htmlspecialchars(sprintf($LANG->getLL($this->langPrefix . 'message'), $targetFolderRel));
        $msg[] = '&nbsp;';
        $buttons = '
			<input type="hidden" name="data[' . $this->copyOrMove . '][' . $id . '][data]" value="' . htmlspecialchars($filepath) . '" />
			<input type="hidden" name="data[' . $this->copyOrMove . '][' . $id . '][target]" value="' . htmlspecialchars($targetFolder) . '" />';
        if (tx_dam::config_checkValueEnabled('mod.txdamM1_SHARED.displayExtraButtons', 1)) {
            if ($this->copyOrMove == 'copy') {
                $buttons .= '
					<input type="submit" value="' . $LANG->getLL('tx_dam_cmd_filecopy.submit', 1) . '" />
					<input type="submit" value="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.cancel', 1) . '" onclick="jumpBack(); return false;" />';
            } else {
                $buttons .= '
					<input type="submit" value="' . $LANG->getLL('tx_dam_cmd_filemove.submit', 1) . '" />
					<input type="submit" value="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.cancel', 1) . '" onclick="jumpBack(); return false;" />';
            }
        }
        $this->pObj->docHeaderButtons['SAVE'] = '<input class="c-inputButton" name="_savedok"' . t3lib_iconWorks::skinImg($this->pObj->doc->backPath, 'gfx/clip_copy.gif') . ' title="' . $LANG->getLL($this->langPrefix . 'submit', 1) . '" height="16" type="image" width="16">';
        $this->pObj->docHeaderButtons['CLOSE'] = '<a href="#" onclick="jumpBack(); return false;"><img' . t3lib_iconWorks::skinImg($this->pObj->doc->backPath, 'gfx/closedok.gif') . ' class="c-inputButton" title="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.cancel', 1) . '" alt="" height="16" width="16"></a>';
        $content .= $GLOBALS['SOBE']->getMessageBox($GLOBALS['SOBE']->pageTitle, $msg, $buttons, 1);
        $content .= $GLOBALS['SOBE']->doc->spacer(5);
        return $content;
    }
    /**
     * Rendering the delete file form for a single item
     *
     * @return	string		HTML content
     */
    function renderFormSingle($id, $meta)
    {
        global $BACK_PATH, $LANG;
        $filepath = tx_dam::file_absolutePath($meta);
        $content = '';
        $this->pObj->markers['FOLDER_INFO'] = 'File: ' . $filepath;
        if ($meta['uid']) {
            $references = tx_dam_db::getMediaUsageReferences($meta['uid']);
            if ($references) {
                $msg = $LANG->getLL('tx_dam_cmd_filedelete.messageReferences', 1);
                $msg .= $GLOBALS['SOBE']->doc->spacer(5);
                // Render the references
                $references = tx_dam_guiFunc::renderReferencesTable($references);
                $references = $GLOBALS['SOBE']->doc->section($LANG->getLL('tx_dam_cmd_filedelete.references', 1), $msg . $references, 0, 0, 0);
            }
        }
        $msg = array();
        $msg[] = tx_dam_guiFunc::getRecordInfoHeaderExtra($meta);
        if ($references) {
            $msg[] = '&nbsp;';
            $msg[] = '<strong><span class="typo3-red">' . $LANG->getLL('labelWarning', 1) . '</span> ' . $LANG->getLL('tx_dam_cmd_filedelete.messageReferencesUsed', 1) . '</strong>';
            $msg[] = $LANG->getLL('tx_dam_cmd_filedelete.messageReferencesDelete', 1);
            $msg[] = $references;
        }
        $msg[] = '&nbsp;';
        $msg[] = $LANG->getLL('tx_dam_cmd_filedelete.message', 1);
        if (tx_dam::config_checkValueEnabled('mod.txdamM1_SHARED.displayExtraButtons', 1)) {
            $buttons = '
				<input type="submit" value="' . $LANG->getLL('tx_dam_cmd_filedelete.submit', 1) . '" />
				<input type="submit" value="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.cancel', 1) . '" onclick="jumpBack(); return false;" />';
        }
        $this->pObj->docHeaderButtons['SAVE'] = '<input class="c-inputButton" name="_savedok"' . t3lib_iconWorks::skinImg($this->pObj->doc->backPath, 'gfx/deletedok.gif') . ' title="' . $LANG->getLL('tx_dam_cmd_filedelete.submit', 1) . '" height="16" type="image" width="16">';
        $this->pObj->docHeaderButtons['CLOSE'] = '<a href="#" onclick="jumpBack(); return false;"><img' . t3lib_iconWorks::skinImg($this->pObj->doc->backPath, 'gfx/closedok.gif') . ' class="c-inputButton" title="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.cancel', 1) . '" alt="" height="16" width="16"></a>';
        $content .= '<input type="hidden" name="data[delete][' . $id . '][data]" value="' . htmlspecialchars($filepath) . '" />';
        $content .= $GLOBALS['SOBE']->getMessageBox($GLOBALS['SOBE']->pageTitle, $msg, $buttons, 1);
        //$content .= $GLOBALS['SOBE']->doc->spacer(5);
        //$content .= $references;
        return $content;
    }
    /**
     * Rendering the upload file form fields
     *
     * @return	string		HTML content
     */
    function renderForm()
    {
        global $BACK_PATH, $LANG;
        $id = $this->meta['uid'];
        $path = tx_dam::path_makeAbsolute($this->meta['file_path']);
        $content = '';
        $msg = array();
        $this->pObj->markers['FOLDER_INFO'] = '[' . $this->file['file_path'] . ']:' . $this->file['file_name'];
        $msg[] = tx_dam_guiFunc::getRecordInfoHeaderExtra($this->meta);
        $msg[] = '&nbsp;';
        $msg[] = '
				<input type="file" name="upload_' . $id . '"' . $this->pObj->doc->formWidth(35) . ' size="45" />
				<input type="hidden" name="data[upload][' . $id . '][target]" value="' . htmlspecialchars($path) . '" />
				<input type="hidden" name="data[upload][' . $id . '][data]" value="' . $id . '" />';
        if (tx_dam::config_checkValueEnabled('mod.txdamM1_SHARED.displayExtraButtons', 1)) {
            $buttons = '
				<input type="submit" value="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:file_upload.php.submit', 1) . '" />
				<input type="submit" value="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.cancel', 1) . '" onclick="jumpBack(); return false;" />';
        }
        $this->pObj->docHeaderButtons['SAVE'] = '<input class="c-inputButton" name="_savedok"' . t3lib_iconWorks::skinImg($this->pObj->doc->backPath, 'gfx/savedok.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:file_upload.php.submit', 1) . '" height="16" type="image" width="16">';
        $this->pObj->docHeaderButtons['CLOSE'] = '<a href="#" onclick="jumpBack(); return false;"><img' . t3lib_iconWorks::skinImg($this->pObj->doc->backPath, 'gfx/closedok.gif') . ' class="c-inputButton" title="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.cancel', 1) . '" alt="" height="16" width="16"></a>';
        $content .= $GLOBALS['SOBE']->getMessageBox($GLOBALS['SOBE']->pageTitle, $msg, $buttons, 1);
        return $content;
    }
    /**
     * Making the formfields for renaming
     *
     * @return	string		HTML content
     */
    function renderForm()
    {
        global $TCA, $BACK_PATH, $LANG, $TYPO3_CONF_VARS;
        $content = '';
        $msg = array();
        $this->pObj->markers['FOLDER_INFO'] = '[' . $this->file['file_path'] . ']:' . $this->file['file_name'];
        $msg[] = tx_dam_guiFunc::getRecordInfoHeaderExtra($this->meta);
        if ($this->meta['uid']) {
            $msg[] = $this->pObj->getFormInputField('title', $this->meta['title'], 30);
            $msg[] = $this->pObj->getFormInputField('file_name', $this->meta['file_name'], 30);
            $msg[] = $this->pObj->getFormInputField('file_dl_name', $this->meta['file_dl_name'], 30);
        } else {
            $msg[] = $this->pObj->getFormInputField('file_name', $this->meta['file_name'], 30);
        }
        if (tx_dam::config_checkValueEnabled('mod.txdamM1_SHARED.displayExtraButtons', 1)) {
            $buttons = '
				<input type="submit" value="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:file_rename.php.submit', 1) . '" />
				<input type="submit" value="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.cancel', 1) . '" onclick="jumpBack(); return false;" />';
        }
        $this->pObj->docHeaderButtons['SAVE'] = '<input class="c-inputButton" name="_savedok"' . t3lib_iconWorks::skinImg($this->pObj->doc->backPath, 'gfx/savedok.gif') . ' title="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:file_rename.php.submit', 1) . '" height="16" type="image" width="16">';
        $this->pObj->docHeaderButtons['CLOSE'] = '<a href="#" onclick="jumpBack(); return false;"><img' . t3lib_iconWorks::skinImg($this->pObj->doc->backPath, 'gfx/closedok.gif') . ' class="c-inputButton" title="' . $LANG->sL('LLL:EXT:lang/locallang_core.xml:labels.cancel', 1) . '" alt="" height="16" width="16"></a>';
        $content .= $GLOBALS['SOBE']->getMessageBox($GLOBALS['SOBE']->pageTitle, $msg, $buttons, 1);
        return $content;
    }