Files
www-medidate-org/cms/plugins/filebrowser/tpl/cmsbrowser.html
2025-02-28 08:45:43 +01:00

93 lines
3.7 KiB
HTML

<?php global $tx, $csrfSession; ?>
<!--utf-8 marker: äöü -->
<?php
if(@$_POST['fb_viewSelect'])
{
csrfProtection();
$_SESSION['fb_view'] = $_POST['fb_viewSelect'];
}
echo '<form method="post" action="#">
<input type="hidden" name="csrf_token" value="' . $_SESSION[$csrfSession] . '">
<select name="fb_viewSelect" style="float: right; width: 160px; background: #fff; border: 2px solid #c60; padding: 2px; margin: 6px 3px 0 0;" onchange="this.form.submit()">
<option value="list" style="padding: 0 6px;"';
if(@$_SESSION['fb_view'] == 'list')
{
echo ' selected="selected"';
}
echo '>' . $tx['filebrowser']['view_list'] . '</option>
<option value="miniatur" style="padding: 0 6px;"';
if((@$_SESSION['fb_view'] == 'miniatur' || !isset($_SESSION['fb_view'])))
{
echo ' selected="selected"';
}
echo '>' . $tx['filebrowser']['view_thumbs'] . '</option>
</select>
<noscript><input type="submit" value="Submit" /></noscript>
</form>
<div style="clear: both;"></div>';
?>
<table style="width: 100%;">
<tr>
<td style="width: 20%; min-width: 280px; vertical-align: top;">
<div id="CMSimpleFileBrowserMenu">
<div id="folders">
%FOLDERS%
</div>
</div>
</td>
<td style="vertical-align: top;">
<div id="CMSimpleFileBrowser" style="padding: 0 10px!important;">
<div id="subfolders">
<div style="clear: both; margin: 0 0 10px 0;">
<p>
<?php echo '<b>' . $tx['filetype']['folder'] . ': &nbsp; <span style="white-space: nowrap; color: #c00; font-family: courier new, monospace; font-size: 16px;">' . $_SERVER['SERVER_NAME'] . str_replace($_SESSION['subsite_folder_link'],'',$_SESSION['fb_sn']) . '</span></b> <span style="white-space: nowrap; font-family: courier new, monospace; font-size: 16px;">' . str_replace($_SESSION['subsite_folder'],'',$this->currentDirectory) . '</span>'; ?>
</p>
<b><a href="javascript:void();" onClick="window.showcmsimplefbForm('cmsimplefbCreateDir');"><?php echo '=> ' . $this->translate('create_folder'); ?></a></b>
</div>
<fieldset id="cmsimplefbCreateDir" class="cmsimplefbform">
<legend><?php echo $this->translate('create_subfolder_in', $this->currentDirectory); ?> <a href="javascript:window.closecmsimplefbForm('cmsimplefbCreateDir');"><b>[ x ]</b></a></legend>
<div style="padding: 14px 10px;">
<form method="POST" action="">
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION[$csrfSession];?>">
<input type="text" style="max-width: 240px;" name="createFolder" size="30" />
<input type="submit" class="submit" value="<?php echo $this->translate('create_folder'); ?>" />
</form>
</div>
</fieldset>
%SUBFOLDERS%
</div>
<hr />
<div id="files">
<div style="font-weight: 700; margin-bottom: 12px;">
<?php echo $this->translate('files');?> &nbsp; <a href="javascript:window.showcmsimplefbForm('cmsimplefbUploadFile');"> =&gt; <?php echo $this->translate('upload_file'); ?></a>
</div>
<fieldset id="cmsimplefbUploadFile" class="cmsimplefbform">
<legend><?php echo $this->translate('upload_file_to', $this->currentDirectory); ?> <a href="javascript:window.closecmsimplefbForm('cmsimplefbUploadFile');"><b>[ x ]</b></a></legend>
<div style="padding: 4px 10px;">
<form method="POST" action="" enctype="multipart/form-data">
<input type="hidden" name="csrf_token" value="<?php echo $_SESSION[$csrfSession];?>">
<p><input type="file" name="fbupload" style="float: left;" /></p><br />
<input type="hidden" name="upload" value="upload" />
<p><input type="submit" class="submit" value="<?php echo $this->translate('upload_file'); ?>" /></p>
</form>
</div>
</fieldset>
<p style="font-size: 14px;"><?php echo $this->translate('files_rename');?></p>
%MESSAGE%
%FILES%
</div>
</div>
</td>
</tr>
</table>
<div style="clear:both;"></div>