Look and feel v16 of media manager
This commit is contained in:
parent
a3dbcd0c27
commit
88e6c67c10
@ -42,8 +42,8 @@ body.FileArea
|
||||
|
||||
body, td, input, select
|
||||
{
|
||||
font-size: 11px;
|
||||
font-family: 'Microsoft Sans Serif', Arial, Helvetica, Verdana, sans-serif;
|
||||
/* font-size: 11px; */
|
||||
/* font-family: 'Microsoft Sans Serif', Arial, Helvetica, Verdana, sans-serif; */
|
||||
}
|
||||
|
||||
.ActualFolder
|
||||
@ -78,4 +78,6 @@ body, td, input, select
|
||||
|
||||
.fullHeight {
|
||||
height: 100%;
|
||||
padding-left: 10px;
|
||||
padding-right: 10px;
|
||||
}
|
||||
|
||||
@ -25,15 +25,30 @@ require '../../connectors/php/config.php'; // This include the define('NOTOKENRE
|
||||
|
||||
global $Config;
|
||||
|
||||
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN"
|
||||
"http://www.w3.org/TR/html4/frameset.dtd">
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php echo $langs->trans("MediaBrowser").' - '.$Config['UserFilesAbsolutePathRelative']; ?></title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<?php
|
||||
print '<!-- Includes CSS for Dolibarr theme -->'."\n";
|
||||
// Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
|
||||
$themepath = dol_buildpath($conf->css, 1);
|
||||
$themesubdir = '';
|
||||
if (!empty($conf->modules_parts['theme'])) { // This slow down
|
||||
foreach ($conf->modules_parts['theme'] as $reldir) {
|
||||
if (file_exists(dol_buildpath($reldir.$conf->css, 0))) {
|
||||
$themepath = dol_buildpath($reldir.$conf->css, 1);
|
||||
$themesubdir = $reldir;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//print 'themepath='.$themepath.' themeparam='.$themeparam;exit;
|
||||
print '<link rel="stylesheet" type="text/css" href="'.$themepath.$themeparam.'">'."\n";
|
||||
?>
|
||||
<script type="text/javascript" src="js/fckxml.js"></script>
|
||||
<script type="text/javascript">
|
||||
// Automatically detect the correct document.domain (#1919).
|
||||
@ -193,12 +208,12 @@ function OnUploadCompleted( errorNumber, fileUrl, fileName, customMsg )
|
||||
|
||||
</script>
|
||||
</head>
|
||||
<frameset cols="150,*" framespacing="3" border="1" style="border: 2px solid #CCCCCC;">
|
||||
<frameset cols="200,*" framespacing="3" border="1" style="border: 2px solid #CCCCCC;">
|
||||
<frame name="frmFolders" src="frmfolders.php" scrolling="auto" frameborder="1">
|
||||
<frameset rows="50,*,50" framespacing="0">
|
||||
<frameset rows="50,*,70" framespacing="0">
|
||||
<frame name="frmActualFolder" src="frmactualfolder.php" scrolling="no" frameborder="0">
|
||||
<frame name="frmResourcesList" src="frmresourceslist.php" scrolling="auto" frameborder="0">
|
||||
<frameset cols="150,*,0" framespacing="0" border="0">
|
||||
<frameset cols="200,*" framespacing="0" border="0">
|
||||
<frame name="frmCreateFolder" src="frmcreatefolder.php" scrolling="no" frameborder="0">
|
||||
<frame name="frmUpload" src="frmupload.php" scrolling="no" frameborder="0">
|
||||
<frame name="frmUploadWorker" src="javascript:void(0)" scrolling="no" frameborder="0">
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
define('NOTOKENRENEWAL', 1); // Disables token renewal
|
||||
|
||||
require '../../../../main.inc.php';
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!--
|
||||
@ -50,6 +51,24 @@ require '../../../../main.inc.php';
|
||||
<head>
|
||||
<title>Folder path</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<?php
|
||||
print '<!-- Includes CSS for Dolibarr theme -->'."\n";
|
||||
// Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
|
||||
$themepath = dol_buildpath($conf->css, 1);
|
||||
$themesubdir = '';
|
||||
if (!empty($conf->modules_parts['theme'])) { // This slow down
|
||||
foreach ($conf->modules_parts['theme'] as $reldir) {
|
||||
if (file_exists(dol_buildpath($reldir.$conf->css, 0))) {
|
||||
$themepath = dol_buildpath($reldir.$conf->css, 1);
|
||||
$themesubdir = $reldir;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//print 'themepath='.$themepath.' themeparam='.$themeparam;exit;
|
||||
print '<link rel="stylesheet" type="text/css" href="'.$themepath.'">'."\n";
|
||||
?>
|
||||
<link href="browser.css" type="text/css" rel="stylesheet">
|
||||
<script type="text/javascript">
|
||||
// Automatically detect the correct document.domain (#1919).
|
||||
|
||||
@ -22,6 +22,9 @@
|
||||
define('NOTOKENRENEWAL', 1); // Disables token renewal
|
||||
|
||||
require '../../../../main.inc.php';
|
||||
|
||||
$langs->load("ecm");
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!--
|
||||
@ -50,6 +53,24 @@ require '../../../../main.inc.php';
|
||||
<head>
|
||||
<title>Create Folder</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<?php
|
||||
print '<!-- Includes CSS for Dolibarr theme -->'."\n";
|
||||
// Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
|
||||
$themepath = dol_buildpath($conf->css, 1);
|
||||
$themesubdir = '';
|
||||
if (!empty($conf->modules_parts['theme'])) { // This slow down
|
||||
foreach ($conf->modules_parts['theme'] as $reldir) {
|
||||
if (file_exists(dol_buildpath($reldir.$conf->css, 0))) {
|
||||
$themepath = dol_buildpath($reldir.$conf->css, 1);
|
||||
$themesubdir = $reldir;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//print 'themepath='.$themepath.' themeparam='.$themeparam;exit;
|
||||
print '<link rel="stylesheet" type="text/css" href="'.$themepath.'">'."\n";
|
||||
?>
|
||||
<link href="browser.css" type="text/css" rel="stylesheet">
|
||||
<script type="text/javascript" src="js/common.js"></script>
|
||||
<script type="text/javascript">
|
||||
@ -123,15 +144,7 @@ window.onload = function()
|
||||
<table class="fullHeight" cellSpacing="0" cellPadding="0" width="100%" border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<button type="button" style="WIDTH: 100%" onclick="CreateFolder();">
|
||||
<table cellSpacing="0" cellPadding="0" border="0">
|
||||
<tr>
|
||||
<td><?php echo img_picto_common('', 'treemenu/folder.gif', 'width="16" height="16"'); ?></td>
|
||||
<td> </td>
|
||||
<td class="nowrap">Create New Folder</td>
|
||||
</tr>
|
||||
</table>
|
||||
</button>
|
||||
<button type="button" class="butAction" onclick="CreateFolder();"><?php echo $langs->trans("ECMNewSection"); ?></button>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
define('NOTOKENRENEWAL', 1); // Disables token renewal
|
||||
|
||||
require '../../../../main.inc.php';
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!--
|
||||
@ -56,6 +57,24 @@ require '../../../../main.inc.php';
|
||||
<title>Folders</title>
|
||||
<link href="browser.css" type="text/css" rel="stylesheet">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<?php
|
||||
print '<!-- Includes CSS for Dolibarr theme -->'."\n";
|
||||
// Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
|
||||
$themepath = dol_buildpath($conf->css, 1);
|
||||
$themesubdir = '';
|
||||
if (!empty($conf->modules_parts['theme'])) { // This slow down
|
||||
foreach ($conf->modules_parts['theme'] as $reldir) {
|
||||
if (file_exists(dol_buildpath($reldir.$conf->css, 0))) {
|
||||
$themepath = dol_buildpath($reldir.$conf->css, 1);
|
||||
$themesubdir = $reldir;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//print 'themepath='.$themepath.' themeparam='.$themeparam;exit;
|
||||
print '<link rel="stylesheet" type="text/css" href="'.$themepath.'">'."\n";
|
||||
?>
|
||||
<script type="text/javascript" src="js/common.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
@ -96,7 +115,7 @@ oListManager.AddItem = function( folderName, folderPath )
|
||||
// Add the folder icon cell.
|
||||
var oCell = oRow.insertCell(-1);
|
||||
oCell.width = 16 ;
|
||||
oCell.innerHTML = sLink + '<img alt="" src="spacer.gif" width="16" height="16" border="0"><\/a>' ;
|
||||
oCell.innerHTML = sLink + ' <\/a>' ;
|
||||
|
||||
// Add the folder name cell.
|
||||
oCell = oRow.insertCell(-1);
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
define('NOTOKENRENEWAL', 1); // Disables token renewal
|
||||
|
||||
require '../../../../main.inc.php';
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!--
|
||||
@ -50,6 +51,24 @@ require '../../../../main.inc.php';
|
||||
<head>
|
||||
<title>Resources</title>
|
||||
<link href="browser.css" type="text/css" rel="stylesheet">
|
||||
<?php
|
||||
print '<!-- Includes CSS for Dolibarr theme -->'."\n";
|
||||
// Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
|
||||
$themepath = dol_buildpath($conf->css, 1);
|
||||
$themesubdir = '';
|
||||
if (!empty($conf->modules_parts['theme'])) { // This slow down
|
||||
foreach ($conf->modules_parts['theme'] as $reldir) {
|
||||
if (file_exists(dol_buildpath($reldir.$conf->css, 0))) {
|
||||
$themepath = dol_buildpath($reldir.$conf->css, 1);
|
||||
$themesubdir = $reldir;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//print 'themepath='.$themepath.' themeparam='.$themeparam;exit;
|
||||
print '<link rel="stylesheet" type="text/css" href="'.$themepath.'">'."\n";
|
||||
?>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script type="text/javascript" src="js/common.js"></script>
|
||||
<script type="text/javascript">
|
||||
|
||||
@ -22,6 +22,7 @@
|
||||
define('NOTOKENRENEWAL', 1); // Disables token renewal
|
||||
|
||||
require '../../../../main.inc.php';
|
||||
|
||||
?>
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||||
<!--
|
||||
@ -50,6 +51,24 @@ require '../../../../main.inc.php';
|
||||
<head>
|
||||
<title>File Upload</title>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<?php
|
||||
print '<!-- Includes CSS for Dolibarr theme -->'."\n";
|
||||
// Output style sheets (optioncss='print' or ''). Note: $conf->css looks like '/theme/eldy/style.css.php'
|
||||
$themepath = dol_buildpath($conf->css, 1);
|
||||
$themesubdir = '';
|
||||
if (!empty($conf->modules_parts['theme'])) { // This slow down
|
||||
foreach ($conf->modules_parts['theme'] as $reldir) {
|
||||
if (file_exists(dol_buildpath($reldir.$conf->css, 0))) {
|
||||
$themepath = dol_buildpath($reldir.$conf->css, 1);
|
||||
$themesubdir = $reldir;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
//print 'themepath='.$themepath.' themeparam='.$themeparam;exit;
|
||||
print '<link rel="stylesheet" type="text/css" href="'.$themepath.'">'."\n";
|
||||
?>
|
||||
<link href="browser.css" type="text/css" rel="stylesheet" >
|
||||
<script type="text/javascript" src="js/common.js"></script>
|
||||
<script type="text/javascript">
|
||||
@ -128,14 +147,15 @@ window.onload = function()
|
||||
<input type="hidden" name="token" value="<?php echo newToken(); ?>" />
|
||||
<table class="fullHeight" cellspacing="0" cellpadding="0" width="100%" border="0">
|
||||
<tr>
|
||||
<td class="nowrap">
|
||||
<span id="eUploadMessage">Upload a new file in this folder</span><br>
|
||||
<table cellspacing="0" cellpadding="0" width="100%" border="0">
|
||||
<td class="nowrap valignmiddle">
|
||||
<table width="100%" class="inline-block valignmiddle">
|
||||
<tr>
|
||||
<td width="100%"><input id="NewFile" name="NewFile" style="WIDTH: 100%" type="file"></td>
|
||||
<td class="nowrap"> <input id="btnUpload" type="submit" value="Upload"></td>
|
||||
<td><input id="NewFile" name="NewFile" type="file"></td>
|
||||
<td class="nowrap"> <input id="btnUpload" type="submit" value="Upload" class="flat button"></td>
|
||||
</tr>
|
||||
</table>
|
||||
<!-- Section for upload result message -->
|
||||
<span id="eUploadMessage"></span><br>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 43 B |
Loading…
Reference in New Issue
Block a user