Skip to content

Commit

Permalink
code cleanup - files.dynamic.php
Browse files Browse the repository at this point in the history
  • Loading branch information
yama committed Dec 12, 2021
1 parent c293aba commit 2880b81
Showing 1 changed file with 14 additions and 8 deletions.
22 changes: 14 additions & 8 deletions manager/actions/element/files.dynamic.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,9 @@ function deleteFile(file) {
?>

<form name="upload" enctype="multipart/form-data" action="index.php" method="post">
<input type="hidden" name="MAX_FILE_SIZE"
value="<?= isset($upload_maxsize) ? $upload_maxsize : 3145728 ?>">
<input
type="hidden" name="MAX_FILE_SIZE"
value="<?= isset($upload_maxsize) ? $upload_maxsize : 3145728 ?>">
<input type="hidden" name="a" value="31">
<input type="hidden" name="path" value="<?= $startpath ?>">

Expand All @@ -371,8 +372,9 @@ function deleteFile(file) {

<div id="uploader" class="actionButtons" style="margin-top:10px;">
<input type="file" name="userfile" onchange="document.upload.submit();">
<a class="default" href="#" onclick="document.upload.submit()"
style="display:inline;float:none;"><?=
<a
class="default" href="#" onclick="document.upload.submit()"
style="display:inline;float:none;"><?=
'<img src="' . $_style['icons_add'] . '" /> '
. lang('files_uploadfile')
?></a>
Expand All @@ -395,8 +397,10 @@ function deleteFile(file) {
?>

<div class="section">
<div class="sectionHeader"
id="file_editfile"><?= anyv('mode') === 'save' ? lang('files_editfile') : lang('files_viewfile') ?></div>
<div
class="sectionHeader"
id="file_editfile"
><?= anyv('mode') === 'save' ? lang('files_editfile') : lang('files_viewfile') ?></div>
<div class="sectionBody">
<?php
$filename = anyv('path');
Expand All @@ -423,8 +427,10 @@ function deleteFile(file) {
<input type="hidden" name="path" value="<?= anyv('path') ?>"/>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><textarea dir="ltr" style="width:100%; height:370px;" name="content"
class="phptextarea"><?= $ent_buffer ?></textarea></td>
<td>
<textarea
dir="ltr" style="width:100%; height:370px;" name="content"
class="phptextarea"><?= $ent_buffer ?></textarea></td>
</tr>
</table>
</form>
Expand Down

0 comments on commit 2880b81

Please sign in to comment.