2 namespace TYPO3\CMS\Recordlist\View;
57 if (!$backendUser->isAdmin() && !$backendUser->getTSConfigVal(
'options.createFoldersInEB')) {
61 if ($backendUser->getTSConfigVal(
'options.folderTree.hideCreateFolder')) {
68 Form, for creating new folders:
70 <form action="' . htmlspecialchars(BackendUtility::getModuleUrl(
'tce_file')) .
'" method="post" name="editform2" id="typo3-crFolderForm">
71 <table border="0" cellpadding="0" cellspacing="0" id="typo3-crFolder">
73 <td><h3>' .
$lang->sL(
'LLL:EXT:lang/locallang_core.xlf:file_newfolder.php.pagetitle',
true) .
':</h3></td>
76 <td class="c-wCell c-hCell"><strong>' .
$lang->getLL(
'path',
true) .
':</strong> '
80 <td class="c-wCell c-hCell">';
83 $code .=
'<input size="20" type="text" name="file[newfolder][' . $a .
'][data]" />'
84 .
'<input type="hidden" name="file[newfolder][' . $a .
'][target]" value="'
88 $code .=
'<input type="hidden" name="redirect" value="' . htmlspecialchars($redirectValue) .
'" />'
89 .
'<input class="btn btn-default" type="submit" name="submit" value="'
90 .
$lang->sL(
'LLL:EXT:lang/locallang_core.xlf:file_newfolder.php.submit',
true) .
'" />';
113 $userSetting = $this->
getBackendUser()->getTSConfigVal(
'options.folderTree.uploadFieldsInLinkBrowser');
114 $count = isset($userSetting) ? (int)$userSetting : 1;
119 $count = (int)$count === 0 ? 1 : (
int)$count;
124 $fileExtList = array();
125 foreach ($allowedExtensions as $fileExt) {
127 $fileExtList[] =
'<span class="label label-success">' . strtoupper(htmlspecialchars($fileExt)) .
'</span>';
133 Form, for uploading files:
135 <form action="' . htmlspecialchars(BackendUtility::getModuleUrl(
'tce_file')) .
'" method="post" name="editform"'
136 .
' id="typo3-uplFilesForm" enctype="multipart/form-data">
137 <table border="0" cellpadding="0" cellspacing="0" id="typo3-uplFiles">
139 <td><h3>' .
$lang->sL(
'LLL:EXT:lang/locallang_core.xlf:file_upload.php.pagetitle',
true) .
':</h3></td>
142 <td class="c-wCell c-hCell"><strong>' .
$lang->getLL(
'path',
true) .
':</strong> ' . htmlspecialchars($header) .
'</td>
145 <td class="c-wCell c-hCell">';
148 for ($a = 1; $a <= $count; $a++) {
149 $code .=
'<input type="file" multiple="multiple" name="upload_' . $a .
'[]" size="50" />
150 <input type="hidden" name="file[upload][' . $a .
'][target]" value="' . htmlspecialchars($combinedIdentifier) .
'" />
151 <input type="hidden" name="file[upload][' . $a .
'][data]" value="' . $a .
'" /><br />';
154 $redirectValue = $this->parameterProvider->getScriptUrl() .
GeneralUtility::implodeArrayForUrl(
'', $this->parameterProvider->getUrlParameters([
'identifier' => $combinedIdentifier]));
155 $code .=
'<input type="hidden" name="redirect" value="' . htmlspecialchars($redirectValue) .
'" />';
157 if (!empty($fileExtList)) {
159 <div class="help-block">
160 ' .
$lang->sL(
'LLL:EXT:lang/locallang_core.xlf:cm.allowedFileExtensions',
true) .
'<br>
161 ' . implode(
' ', $fileExtList) .
'
167 <div id="c-override">
169 <input type="checkbox" name="overwriteExistingFiles" id="overwriteExistingFiles" value="1" /> ' .
$lang->sL(
'LLL:EXT:lang/locallang_misc.xlf:overwriteExistingFiles',
true) .
'
172 <input class="btn btn-default" type="submit" name="submit" value="' .
$lang->sL(
'LLL:EXT:lang/locallang_core.xlf:file_upload.php.submit',
true) .
'" />
181 $fileExtList = array();
183 foreach ($onlineMediaFileExt as $fileExt) {
186 && (empty($allowedExtensions) || in_array($fileExt, $allowedExtensions,
true))
188 $fileExtList[] =
'<span class="label label-success">' . strtoupper(htmlspecialchars($fileExt)) .
'</span>';
191 if (!empty($fileExtList)) {
194 Form, adding online media urls:
196 <form action="' . htmlspecialchars(BackendUtility::getModuleUrl(
'online_media')) .
'" method="post" name="editform1"'
197 .
' id="typo3-addMediaForm">
198 <table border="0" cellpadding="0" cellspacing="0" id="typo3-uplFiles">
200 <td><h3>' .
$lang->sL(
'LLL:EXT:lang/locallang_core.xlf:online_media.new_media',
true) .
':</h3></td>
203 <td class="c-wCell c-hCell"><strong>' .
$lang->getLL(
'path',
true) .
':</strong> '
204 . htmlspecialchars($header) .
'</td>
207 <td class="c-wCell c-hCell">
208 <input type="text" name="file[newMedia][0][url]" size="50" placeholder="' .
$lang->sL(
'LLL:EXT:lang/locallang_core.xlf:online_media.new_media.placeholder',
true) .
'" />
209 <input type="hidden" name="file[newMedia][0][target]" value="' . htmlspecialchars($folderObject->
getCombinedIdentifier()) .
'" />
210 <input type="hidden" name="file[newMedia][0][allowed]" value="' . htmlspecialchars(implode(
',', $allowedExtensions)) .
'" />
211 <button>' .
$lang->sL(
'LLL:EXT:lang/locallang_core.xlf:online_media.new_media.submit',
true) .
'</button>
212 <div class="help-block">
213 ' .
$lang->sL(
'LLL:EXT:lang/locallang_core.xlf:online_media.new_media.allowedProviders') .
'<br />
214 ' . implode(
' ', $fileExtList) .
'
217 $code .=
'<input type="hidden" name="redirect" value="' . htmlspecialchars($redirectValue) .
'" />';