mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Prepare code to allow usage of ajax in ecm module
This commit is contained in:
parent
ee1c507190
commit
f37e3956b8
|
|
@ -236,8 +236,7 @@ foreach($fulltree as $key => $val)
|
|||
$resarray=tree_showpad($fulltree,$key);
|
||||
$a=$resarray[0];
|
||||
$nbofsubdir=$resarray[1];
|
||||
$c=$resarray[2];
|
||||
$nboffilesinsubdir=$resarray[3];
|
||||
$nboffilesinsubdir=$resarray[2];
|
||||
print '</td>';
|
||||
|
||||
// Show picto
|
||||
|
|
|
|||
217
htdocs/core/ajax/ajaxfiletree.php
Normal file
217
htdocs/core/ajax/ajaxfiletree.php
Normal file
|
|
@ -0,0 +1,217 @@
|
|||
<?php
|
||||
/* Copyright (C) 2007-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
* the Free Software Foundation; either version 2 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file htdocs/core/ajax/ajaxFileTree.php
|
||||
* \ingroup ecm
|
||||
* \brief This script returns content of a directory for filetree
|
||||
* \version $Id: ajaxFileTree.php,v 1.8 2011/07/06 17:03:41 eldy Exp $
|
||||
*/
|
||||
|
||||
|
||||
// This script is called with a POST method.
|
||||
// Directory to scan (full path) is inside POST['dir'].
|
||||
|
||||
if (! defined('NOTOKENRENEWAL')) define('NOTOKENRENEWAL',1); // Disables token renewal
|
||||
//if (! defined('NOREQUIRETRAN')) define('NOREQUIRETRAN','1');
|
||||
if (! defined('NOREQUIREMENU')) define('NOREQUIREMENU','1');
|
||||
if (! defined('NOREQUIREHTML')) define('NOREQUIREHTML','1');
|
||||
if (! defined('NOREQUIREAJAX')) define('NOREQUIREAJAX','1');
|
||||
|
||||
// C'est un wrapper, donc header vierge
|
||||
function llxHeader() { }
|
||||
|
||||
$res=0;
|
||||
$res=@include("../../main.inc.php");
|
||||
include_once(DOL_DOCUMENT_ROOT.'/core/lib/files.lib.php');
|
||||
include_once(DOL_DOCUMENT_ROOT.'/core/lib/treeview.lib.php');
|
||||
include_once(DOL_DOCUMENT_ROOT.'/core/class/html.form.class.php');
|
||||
include_once(DOL_DOCUMENT_ROOT."/ecm/class/ecmdirectory.class.php");
|
||||
|
||||
$openeddir = GETPOST('openeddir');
|
||||
$modulepart= GETPOST('modulepart');
|
||||
$selecteddir = urldecode(GETPOST('dir')); // relative patch. We must keep the urldecode here because para comes from jqueyrFileTree that url encode it.
|
||||
if ($selecteddir != '/') $selecteddir = preg_replace('/\/$/','',$selecteddir); // We removed last '/' except if it is '/'
|
||||
|
||||
$langs->load("ecm");
|
||||
|
||||
// Define selecteddir (fullpath).
|
||||
if ($modulepart == 'ecm') $fullpathselecteddir=$conf->ecm->dir_output.'/'.($selecteddir != '/' ? $selecteddir : '');
|
||||
|
||||
|
||||
// Security:
|
||||
// On interdit les remontees de repertoire ainsi que les pipe dans
|
||||
// les noms de fichiers.
|
||||
if (preg_match('/\.\./',$fullpathselecteddir) || preg_match('/[<>|]/',$fullpathselecteddir))
|
||||
{
|
||||
dol_syslog("Refused to deliver file ".$original_file);
|
||||
// Do no show plain path in shown error message
|
||||
dol_print_error(0,$langs->trans("ErrorFileNameInvalid",GETPOST("file")));
|
||||
exit;
|
||||
}
|
||||
|
||||
// Check permissions
|
||||
if ($modulepart == 'ecm')
|
||||
{
|
||||
if (! $user->rights->ecm->read) accessforbidden();
|
||||
}
|
||||
|
||||
|
||||
|
||||
/*
|
||||
* View
|
||||
*/
|
||||
$userstatic=new User($db);
|
||||
$form=new Form($db);
|
||||
$ecmdirstatic = new EcmDirectory($db);
|
||||
|
||||
// Load full tree. We will use it to define nbofsubdir and nboffilesinsubdir
|
||||
if (empty($sqltree)) $sqltree=$ecmdirstatic->get_full_arbo(0);
|
||||
|
||||
// Try to find key into $sqltree
|
||||
$current_ecmdir_id=-1;
|
||||
foreach($sqltree as $keycursor => $val)
|
||||
{
|
||||
//print $val['fullrelativename']." == ".$selecteddir;
|
||||
if ($val['fullrelativename'] == $selecteddir)
|
||||
{
|
||||
$current_ecmdir_id = $keycursor;
|
||||
}
|
||||
}
|
||||
|
||||
if( file_exists($fullpathselecteddir) )
|
||||
{
|
||||
$files = @scandir($fullpathselecteddir);
|
||||
if ($files)
|
||||
{
|
||||
natcasesort($files);
|
||||
if( count($files) > 2 ) /* The 2 accounts for . and .. */
|
||||
{
|
||||
echo "<ul class=\"jqueryFileTree\" style=\"display: none;\">\n";
|
||||
|
||||
// All dirs
|
||||
foreach( $files as $file ) // $file can be '.', '..', or 'My dir'
|
||||
{
|
||||
$nbofsubdir=0;
|
||||
$nboffilesinsubdir=0;
|
||||
|
||||
// Try to find key into $sqltree
|
||||
$ecmdir_id=-1;
|
||||
foreach($sqltree as $ecmdir_idcursor => $val)
|
||||
{
|
||||
//print "-- ".$val['fullrelativename']." vs ".(($selecteddir != '/'?$selecteddir.'/':'').$file).'<br>';
|
||||
if ($val['fullrelativename'] == (($selecteddir != '/'?$selecteddir.'/':'').$file))
|
||||
{
|
||||
$ecmdir_id = $ecmdir_idcursor;
|
||||
$resarray=tree_showpad($sqltree,$ecmdir_id,1);
|
||||
$a=$resarray[0];
|
||||
$nbofsubdir=$resarray[1];
|
||||
$nboffilesinsubdir=$resarray[2];
|
||||
}
|
||||
}
|
||||
|
||||
//if (file_exists($fullpathselecteddir . $file) && $file != '.' && $file != '..' && is_dir($fullpathselecteddir . $file))
|
||||
if ($file != '.' && $file != '..' && ($ecmdir_id >= 0 || dol_is_dir($fullpathselecteddir . $file)))
|
||||
{
|
||||
print '<li class="directory collapsed">';
|
||||
|
||||
print "<a class=\"fmdirlia jqft\" href=\"#\" rel=\"" . dol_escape_htmltag($file . '/') . "\"";
|
||||
print " onClick=\"loadandshowpreview('".dol_escape_js($file)."')\">";
|
||||
print dol_escape_htmltag($file);
|
||||
print "</a>";
|
||||
|
||||
print '<div style="float: right;">';
|
||||
|
||||
print '<table class="nobordernopadding"><tr>';
|
||||
|
||||
/*print '<td align="left">';
|
||||
print dol_escape_htmltag($file);
|
||||
print '</td>';*/
|
||||
|
||||
// Nb of docs
|
||||
print '<td align="right">';
|
||||
print $val['cachenbofdoc'];
|
||||
print '</td>';
|
||||
print '<td align="left">';
|
||||
if ($nbofsubdir && $nboffilesinsubdir) print '<font color="#AAAAAA">+'.$nboffilesinsubdir.'</font> ';
|
||||
print '</td>';
|
||||
|
||||
// Edit link
|
||||
print '<td align="right" width="18"><a href="'.DOL_URL_ROOT.'/ecm/docmine.php?section='.$val['id'].'">'.img_view().'</a></td>';
|
||||
|
||||
// Add link
|
||||
//print '<td align="right"><a href="'.DOL_URL_ROOT.'/ecm/docdir.php?action=create&catParent='.$val['id'].'">'.img_edit_add().'</a></td>';
|
||||
//print '<td align="right" width="14"> </td>';
|
||||
|
||||
// Info
|
||||
print '<td align="right" width="18">';
|
||||
$userstatic->id=$val['fk_user_c'];
|
||||
$userstatic->lastname=$val['login_c'];
|
||||
$htmltooltip='<b>'.$langs->trans("ECMSection").'</b>: '.$val['label'].'<br>';
|
||||
$htmltooltip='<b>'.$langs->trans("Type").'</b>: '.$langs->trans("ECMSectionManual").'<br>';
|
||||
$htmltooltip.='<b>'.$langs->trans("ECMCreationUser").'</b>: '.$userstatic->getNomUrl(1).'<br>';
|
||||
$htmltooltip.='<b>'.$langs->trans("ECMCreationDate").'</b>: '.dol_print_date($val['date_c'],"dayhour").'<br>';
|
||||
$htmltooltip.='<b>'.$langs->trans("Description").'</b>: '.$val['description'].'<br>';
|
||||
$htmltooltip.='<b>'.$langs->trans("ECMNbOfFilesInDir").'</b>: '.$val['cachenbofdoc'].'<br>';
|
||||
if ($nbofsubdir) $htmltooltip.='<b>'.$langs->trans("ECMNbOfFilesInSubDir").'</b>: '.$nboffilesinsubdir;
|
||||
else $htmltooltip.='<b>'.$langs->trans("ECMNbOfSubDir").'</b>: '.$nbofsubdir.'<br>';
|
||||
print $form->textwithpicto('',$htmltooltip,1,0);
|
||||
print "</td>";
|
||||
|
||||
print "</tr></table>\n";
|
||||
print '</div>';
|
||||
|
||||
print "</li>\n";
|
||||
}
|
||||
}
|
||||
|
||||
// All files
|
||||
/*
|
||||
foreach( $files as $file )
|
||||
{
|
||||
if( file_exists($fullpathselecteddir . $file) && $file != '.' && $file != '..' && !is_dir($fullpathselecteddir . $file) )
|
||||
{
|
||||
$ext = preg_replace('/^.*\./', '', $file);
|
||||
print "<li class=\"file ext_".$ext."\">";
|
||||
print "<a class=\"fmfilelia jqft\" href=\"#\" rel=\"" . dol_escape_htmltag($selecteddir . $file) . "\">" . dol_escape_htmltag($file) . "</a>";
|
||||
print "</li>\n";
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
// Enable tooltips
|
||||
print '<script type="text/javascript">';
|
||||
print 'jQuery(".classfortooltip").tipTip({ maxWidth: "600px", edgeOffset: 10, delay: 50, fadeIn: 50, fadeOut: 50});';
|
||||
print 'jQuery(".fmdirlia").click(function(e) { jQuery("#userfile_section").val(jQuery(this).attr(\'rel\')); });';
|
||||
|
||||
print '</script>';
|
||||
|
||||
echo "</ul>\n";
|
||||
|
||||
}
|
||||
}
|
||||
else print "PermissionDenied";
|
||||
}
|
||||
|
||||
// This ajax service is called only when a directory $selecteddir is opened but not closed.
|
||||
//print '<script language="javascript">';
|
||||
//print "loadandshowpreview('".dol_escape_js($selecteddir)."');";
|
||||
//print '</script>';
|
||||
|
||||
if (is_object($db)) $db->close();
|
||||
?>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<?php
|
||||
/* Copyright (C) 2008-2010 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
/* Copyright (C) 2008-2012 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or modify
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
|
@ -74,11 +74,9 @@ $upload_dir = $conf->ecm->dir_output.'/'.$relativepath;
|
|||
|
||||
|
||||
|
||||
/*******************************************************************
|
||||
* ACTIONS
|
||||
*
|
||||
* Put here all code to do according to value of "action" parameter
|
||||
********************************************************************/
|
||||
/*
|
||||
* Actions
|
||||
*/
|
||||
|
||||
// Upload file
|
||||
if (GETPOST("sendit") && ! empty($conf->global->MAIN_UPLOAD_DOC))
|
||||
|
|
@ -156,7 +154,7 @@ if (GETPOST('action') == 'update' && ! GETPOST('cancel'))
|
|||
$olddir=$conf->ecm->dir_output.'/'.$olddir;
|
||||
|
||||
// Fetch was already done
|
||||
$ecmdir->label = GETPOST("label");
|
||||
$ecmdir->label = dol_sanitizeFileName(GETPOST("label"));
|
||||
$ecmdir->description = GETPOST("description");
|
||||
$result=$ecmdir->update($user);
|
||||
if ($result > 0)
|
||||
|
|
|
|||
|
|
@ -582,10 +582,10 @@ if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$acti
|
|||
|
||||
if (! empty($conf->global->MAIN_ECM_TRY_JS))
|
||||
{
|
||||
print '<tr><td>';
|
||||
print '<tr><td colspan="6" style="padding-left: 20px">';
|
||||
|
||||
// Show filemanager tree
|
||||
print '<div id="filetree" class="filetree">';
|
||||
print '<div id="filetree" class="ecmfiletree">';
|
||||
print '</div>';
|
||||
|
||||
print '</td></tr>';
|
||||
|
|
@ -599,6 +599,7 @@ if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$acti
|
|||
{
|
||||
//alert('filename='+filename);
|
||||
//jQuery('#fileview').empty();
|
||||
return;
|
||||
|
||||
url='<?php echo dol_buildpath('/core/ajax/ajaxshowpreview.php',1); ?>?action=preview&rootpath=<?php echo $filemanagerroots->id ?>&modulepart=filemanager&type=auto&file='+urlencode(filedirname);
|
||||
|
||||
|
|
@ -622,12 +623,12 @@ if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$acti
|
|||
|
||||
jQuery(document).ready( function() {
|
||||
jQuery('#filetree').fileTree({ root: '<?php print dol_escape_js($openeddir); ?>',
|
||||
script: '<?php echo DOL_URL_ROOT.'/core/ajax/ajaxfiletree.php?modulepart=ecm&openeddir='.urlencode($openeddir); ?>',
|
||||
folderEvent: 'click',
|
||||
multiFolder: false },
|
||||
script: '<?php echo DOL_URL_ROOT.'/core/ajax/ajaxfiletree.php?modulepart=ecm&openeddir='.urlencode($openeddir); ?>',
|
||||
folderEvent: 'click',
|
||||
multiFolder: false },
|
||||
function(file) {
|
||||
jQuery("#mesg").hide();
|
||||
loadandshowpreview(file);
|
||||
jQuery("#mesg").hide();
|
||||
loadandshowpreview(file);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
|
@ -737,8 +738,7 @@ if (empty($action) || $action == 'file_manager' || preg_match('/refresh/i',$acti
|
|||
$resarray=tree_showpad($sqltree,$key);
|
||||
$a=$resarray[0];
|
||||
$nbofsubdir=$resarray[1];
|
||||
$c=$resarray[2];
|
||||
$nboffilesinsubdir=$resarray[3];
|
||||
$nboffilesinsubdir=$resarray[2];
|
||||
print '</td>';
|
||||
|
||||
// Show picto
|
||||
|
|
@ -963,9 +963,9 @@ else
|
|||
|
||||
|
||||
// To attach new file
|
||||
if (! empty($section))
|
||||
if (! empty($conf->global->MAIN_ECM_TRY_JS) || ! empty($section))
|
||||
{
|
||||
$formfile->form_attach_new_file(DOL_URL_ROOT.'/ecm/index.php', 'none', 0, $section,$user->rights->ecm->upload, 48);
|
||||
$formfile->form_attach_new_file(DOL_URL_ROOT.'/ecm/index.php', 'none', 0, $section, $user->rights->ecm->upload, 48);
|
||||
}
|
||||
else print ' ';
|
||||
|
||||
|
|
|
|||
|
|
@ -1618,46 +1618,6 @@ table.cal_event td { border: 0px; padding-<?php print $left; ?>: 0px; padding-<?
|
|||
.cal_event a:hover { color: #111111; font-size: 11px; font-weight: normal !important; }
|
||||
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Afficher/cacher */
|
||||
/* ============================================================================== */
|
||||
|
||||
#evolForm input.error {
|
||||
font-weight: bold;
|
||||
border: solid 1px #FF0000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
#evolForm input.focuserr {
|
||||
font-weight: bold;
|
||||
background: #FAF8E8;
|
||||
color: black;
|
||||
border: solid 1px #FF0000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
|
||||
#evolForm input.focus { /*** Mise en avant des champs en cours d'utilisation ***/
|
||||
background: #FAF8E8;
|
||||
color: black;
|
||||
border: solid 1px #000000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
#evolForm input.normal { /*** Retour a l'etat normal apres l'utilisation ***/
|
||||
background: white;
|
||||
color: black;
|
||||
border: solid 1px white;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Ajax - Liste deroulante de l'autocompletion */
|
||||
/* ============================================================================== */
|
||||
|
|
|
|||
|
|
@ -1811,46 +1811,6 @@ table.cal_event td { border: 0px; padding-<?php print $left; ?>: 0px; padding-<?
|
|||
.cal_event a:hover { color: #111111; font-size: 11px; font-weight: normal !important; }
|
||||
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Afficher/cacher */
|
||||
/* ============================================================================== */
|
||||
|
||||
#evolForm input.error {
|
||||
font-weight: bold;
|
||||
border: solid 1px #FF0000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
#evolForm input.focuserr {
|
||||
font-weight: bold;
|
||||
background: #FAF8E8;
|
||||
color: black;
|
||||
border: solid 1px #FF0000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
|
||||
#evolForm input.focus { /*** Mise en avant des champs en cours d'utilisation ***/
|
||||
background: #FAF8E8;
|
||||
color: black;
|
||||
border: solid 1px #000000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
#evolForm input.normal { /*** Retour a l'etat normal apres l'utilisation ***/
|
||||
background: white;
|
||||
color: black;
|
||||
border: solid 1px white;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Ajax - Liste deroulante de l'autocompletion */
|
||||
/* ============================================================================== */
|
||||
|
|
|
|||
|
|
@ -1732,46 +1732,6 @@ table.cal_event td { border: 0px; padding-<?php print $left; ?>: 0px; padding-<?
|
|||
.cal_event a:hover {font-size: 11px; font-weight: bold !important; }
|
||||
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Afficher/cacher */
|
||||
/* ============================================================================== */
|
||||
|
||||
#evolForm input.error {
|
||||
font-weight: bold;
|
||||
border: solid 1px #FF0000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
#evolForm input.focuserr {
|
||||
font-weight: bold;
|
||||
background: #FAF8E8;
|
||||
color: black;
|
||||
border: solid 1px #FF0000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
|
||||
#evolForm input.focus { /*** Mise en avant des champs en cours d'utilisation ***/
|
||||
background: #FAF8E8;
|
||||
color: black;
|
||||
border: solid 1px #000000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
#evolForm input.normal { /*** Retour a l'etat normal apres l'utilisation ***/
|
||||
background: white;
|
||||
color: black;
|
||||
border: solid 1px white;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Ajax - Liste deroulante de l'autocompletion */
|
||||
/* ============================================================================== */
|
||||
|
|
|
|||
|
|
@ -990,6 +990,7 @@ background-image: -ms-linear-gradient(bottom, rgb(<?php echo $colorback1; ?>) 15
|
|||
height: <?php print (empty($conf->browser->phone)?'54':'21'); ?>px !important;
|
||||
}
|
||||
|
||||
|
||||
/* ECM */
|
||||
|
||||
#containerlayout .ecm-layout-pane { /* all 'panes' */
|
||||
|
|
@ -1666,6 +1667,31 @@ div.titre {
|
|||
#divsubscribe { width: 700px; }
|
||||
#tablesubscribe { width: 100%; }
|
||||
|
||||
div.table-border {
|
||||
display:table;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #9CACBB;
|
||||
}
|
||||
div.table-border-row {
|
||||
display:table-row;
|
||||
}
|
||||
div.table-key-border-col {
|
||||
display:table-cell;
|
||||
width: 25%;
|
||||
vertical-align:top;
|
||||
padding: 1px 2px 1px 1px;
|
||||
border: 1px solid #9CACBB;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
div.table-val-border-col {
|
||||
display:table-cell;
|
||||
width:auto;
|
||||
padding: 1px 2px 1px 1px;
|
||||
border: 1px solid #9CACBB;
|
||||
border-collapse: collapse;
|
||||
}
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Formulaire confirmation (When Ajax JQuery is used) */
|
||||
|
|
@ -1793,14 +1819,14 @@ table.dp {
|
|||
/* Bouton X fermer */
|
||||
.dpInvisibleButtons
|
||||
{
|
||||
border-style:none;
|
||||
background-color:transparent;
|
||||
padding:0px;
|
||||
font-size:9px;
|
||||
border-width:0px;
|
||||
color:#0B63A2;
|
||||
vertical-align:middle;
|
||||
cursor: pointer;
|
||||
border-style:none;
|
||||
background-color:transparent;
|
||||
padding:0px;
|
||||
font-size:9px;
|
||||
border-width:0px;
|
||||
color:#0B63A2;
|
||||
vertical-align:middle;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1842,45 +1868,6 @@ table.cal_event td { border: 0px; padding-<?php print $left; ?>: 0px; padding-<?
|
|||
.cal_event a:hover { color: #111111; font-size: 11px; font-weight: normal !important; }
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Afficher/cacher */
|
||||
/* ============================================================================== */
|
||||
|
||||
#evolForm input.error {
|
||||
font-weight: bold;
|
||||
border: solid 1px #FF0000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
#evolForm input.focuserr {
|
||||
font-weight: bold;
|
||||
background: #FAF8E8;
|
||||
color: black;
|
||||
border: solid 1px #FF0000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
|
||||
#evolForm input.focus { /*** Mise en avant des champs en cours d'utilisation ***/
|
||||
background: #FAF8E8;
|
||||
color: black;
|
||||
border: solid 1px #000000;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
#evolForm input.normal { /*** Retour a l'etat normal apres l'utilisation ***/
|
||||
background: white;
|
||||
color: black;
|
||||
border: solid 1px white;
|
||||
padding: 1px 1px 1px 1px;
|
||||
margin: 1px 1px 1px 1px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Ajax - Liste deroulante de l'autocompletion */
|
||||
/* ============================================================================== */
|
||||
|
|
@ -1946,7 +1933,7 @@ table.cal_event td { border: 0px; padding-<?php print $left; ?>: 0px; padding-<?
|
|||
/* CSS for treeview */
|
||||
|
||||
/* Lien plier /deplier tout */
|
||||
.arbre-switch {
|
||||
.arbre-switch {
|
||||
text-align: right;
|
||||
padding: 0 5px;
|
||||
margin: 0 0 -18px 0;
|
||||
|
|
@ -2252,34 +2239,158 @@ div.scroll2 {
|
|||
width: 582px !important;
|
||||
}
|
||||
|
||||
|
||||
/* ============================================================================== */
|
||||
/* Table with div */
|
||||
/* jFileTree */
|
||||
/* ============================================================================== */
|
||||
|
||||
div.table-border {
|
||||
display:table;
|
||||
width: 100%;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid #9CACBB;
|
||||
.ecmfiletree {
|
||||
width: 99%;
|
||||
height: 99%;
|
||||
background: #FFF;
|
||||
padding-left: 2px;
|
||||
font-weight: normal;
|
||||
}
|
||||
div.table-border-row {
|
||||
display:table-row;
|
||||
|
||||
.fileview {
|
||||
width: 99%;
|
||||
height: 99%;
|
||||
background: #FFF;
|
||||
padding-left: 2px;
|
||||
padding-top: 4px;
|
||||
font-weight: normal;
|
||||
}
|
||||
div.table-key-border-col {
|
||||
display:table-cell;
|
||||
width: 25%;
|
||||
vertical-align:top;
|
||||
padding: 1px 2px 1px 1px;
|
||||
border: 1px solid #9CACBB;
|
||||
border-collapse: collapse;
|
||||
|
||||
div.filedirelem {
|
||||
position: relative;
|
||||
display: block;
|
||||
text-decoration: none;
|
||||
}
|
||||
div.table-val-border-col {
|
||||
display:table-cell;
|
||||
width:auto;
|
||||
padding: 1px 2px 1px 1px;
|
||||
border: 1px solid #9CACBB;
|
||||
border-collapse: collapse;
|
||||
|
||||
ul.filedirelem {
|
||||
padding: 2px;
|
||||
margin: 0 5px 5px 5px;
|
||||
}
|
||||
ul.filedirelem li {
|
||||
list-style: none;
|
||||
padding: 2px;
|
||||
margin: 0 10px 20px 10px;
|
||||
width: 160px;
|
||||
height: 120px;
|
||||
text-align: center;
|
||||
display: block;
|
||||
float: <?php print $left; ?>;
|
||||
border: solid 1px #DDDDDD;
|
||||
}
|
||||
|
||||
ui-layout-north {
|
||||
|
||||
}
|
||||
|
||||
ul.jqueryFileTree {
|
||||
font-family: Verdana, sans-serif;
|
||||
font-size: 11px;
|
||||
line-height: 18px;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
||||
ul.jqueryFileTree li {
|
||||
list-style: none;
|
||||
padding: 0px;
|
||||
padding-left: 20px;
|
||||
margin: 0px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
ul.jqueryFileTree a {
|
||||
display: float;
|
||||
padding: 0px 0px;
|
||||
font-weight:normal;
|
||||
}
|
||||
ul.jqueryFileTree a:active {
|
||||
font-weight: bold !important;
|
||||
}
|
||||
|
||||
ul.jqueryFileTree a:hover {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
/* Core Styles */
|
||||
.jqueryFileTree LI.directory { font-weight:normal; background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/directory.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.expanded { font-weight:normal; background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/folder_open.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.file { font-weight:normal; background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/file.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.wait { font-weight:normal; background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/spinner.gif',1); ?>) left top no-repeat; }
|
||||
/* File Extensions*/
|
||||
.jqueryFileTree LI.ext_3gp { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/film.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_afp { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_afpa { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_asp { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_aspx { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_avi { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/film.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_bat { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/application.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_bmp { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/picture.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_c { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_cfm { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_cgi { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_com { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/application.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_cpp { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_css { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/css.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_doc { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/doc.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_exe { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/application.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_gif { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/picture.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_fla { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/flash.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_h { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_htm { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/html.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_html { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/html.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_jar { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/java.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_jpg { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/picture.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_jpeg { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/picture.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_js { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/script.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_lasso { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_log { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/txt.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_m4p { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/music.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_mov { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/film.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_mp3 { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/music.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_mp4 { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/film.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_mpg { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/film.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_mpeg { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/film.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_ogg { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/music.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_ogv { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/film.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_pcx { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/picture.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_pdf { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/pdf.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_php { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/php.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_png { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/picture.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_ppt { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/ppt.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_psd { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/psd.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_pl { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/script.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_py { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/script.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_rb { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/ruby.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_rbx { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/ruby.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_rhtml { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/ruby.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_rpm { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/linux.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_ruby { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/ruby.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_sql { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/db.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_swf { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/flash.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_tif { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/picture.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_tiff { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/picture.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_txt { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/txt.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_vb { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_wav { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/music.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_webm { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/film.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_wmv { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/film.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_xls { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/xls.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_xml { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/code.png',1); ?>) left top no-repeat; }
|
||||
.jqueryFileTree LI.ext_zip { background: url(<?php echo dol_buildpath('/filemanager/includes/jqueryFileTree/images/zip.png',1); ?>) left top no-repeat; }
|
||||
|
||||
/* Right panel */
|
||||
|
||||
.fmvalue {
|
||||
color: #001166;
|
||||
}
|
||||
|
||||
|
||||
|
||||
<?php
|
||||
if (is_object($db)) $db->close();
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user