forked from Wavyzz/dolibarr
Enhancement in ecm module
This commit is contained in:
@@ -236,7 +236,7 @@ print '<table class="nobordernopadding" width="100%"><tr><td valign="top">';
|
||||
|
||||
if (eregi('search',$action))
|
||||
{
|
||||
//print_fiche_titre($langs->trans("ECMManualOrg"));
|
||||
//print_fiche_titre($langs->trans("ECMSectionsManual"));
|
||||
|
||||
print '<form method="post" action="'.DOL_URL_ROOT.'/ecm/search.php">';
|
||||
print '<table class="nobordernopadding" width="100%">';
|
||||
@@ -249,7 +249,7 @@ if (eregi('search',$action))
|
||||
print "</table></form>";
|
||||
//print $langs->trans("ECMManualOrgDesc");
|
||||
|
||||
//print_fiche_titre($langs->trans("ECMAutoOrg"));
|
||||
//print_fiche_titre($langs->trans("ECMSectionAuto"));
|
||||
|
||||
print '<form method="post" action="'.DOL_URL_ROOT.'/ecm/search.php">';
|
||||
print '<table class="noborder" width="100%">';
|
||||
@@ -279,7 +279,7 @@ if (eregi('search',$action))
|
||||
|
||||
print '<tr '. $bc[false].'><td colspan="4" align="center"><input type="submit" class="button" value="'.$langs->trans("Search").'"></td></tr>';
|
||||
print "</table></form>";
|
||||
//print $langs->trans("ECMAutoOrgDesc");
|
||||
//print $langs->trans("ECMSectionAutoDesc");
|
||||
}
|
||||
|
||||
|
||||
@@ -300,7 +300,7 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
|
||||
|
||||
print '<tr class="liste_titre">';
|
||||
print '<td class="liste_titre" align="left">'.$langs->trans("ECMSections").'</td>';
|
||||
print '<td class="liste_titre" colspan="4" align="right">';
|
||||
print '<td class="liste_titre" colspan="5" align="right">';
|
||||
print '<a href="'.$_SERVER["PHP_SELF"].'?action=refreshmanual'.($section?'&section='.$section:'').'">'.$langs->trans("Refresh").' '.img_picto($langs->trans("Refresh"),'refresh').'</a>';
|
||||
print '</td>';
|
||||
print '</tr>';
|
||||
@@ -313,13 +313,14 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
|
||||
print '<table class="nobordernopadding"><tr class="nobordernopadding">';
|
||||
print '<td align="left" width="24px">';
|
||||
print img_picto_common('','treemenu/base.gif');
|
||||
print '</td><td align="left">'.$langs->trans("ECMRoot").' ('.$langs->trans("ECMSectionAuto").')';
|
||||
print '</td><td align="left">'.$langs->trans("ECMRoot").' ('.$langs->trans("ECMSectionsAuto").')';
|
||||
print '</td>';
|
||||
print '</tr></table>';
|
||||
print '</td>';
|
||||
print '<td align="right"> </td>';
|
||||
print '<td align="right"> </td>';
|
||||
print '<td align="right"> </td>';
|
||||
print '<td align="right"> </td>';
|
||||
print '<td align="center">';
|
||||
$htmltooltip=$langs->trans("ECMAreaDesc2");
|
||||
print $form->textwithhelp('',$htmltooltip,1,0);
|
||||
@@ -343,15 +344,28 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
|
||||
print '<td align="left">';
|
||||
print '<table class="nobordernopadding"><tr class="nobordernopadding"><td>';
|
||||
tree_showpad($sectionauto,$key);
|
||||
print '</td><td valign="top">';
|
||||
print img_picto('','object_dir');
|
||||
print '</td><td valign="middle"> ';
|
||||
print '</td>';
|
||||
|
||||
print '<td valign="top">';
|
||||
$n=3;
|
||||
$ref=img_picto('',DOL_URL_ROOT.'/theme/common/treemenu/plustop'.$n.'.gif','',1);
|
||||
$oldref=$ecmdirstatic->ref;
|
||||
$ecmdirstatic->ref=$ref;
|
||||
print $ecmdirstatic->getNomUrl(0,$option);
|
||||
$ecmdirstatic->ref=$oldref;
|
||||
print img_picto('',DOL_URL_ROOT.'/theme/common/treemenu/folder.gif','',1);
|
||||
print '</td>';
|
||||
|
||||
print '<td valign="middle">';
|
||||
print '<a href="'.DOL_URL_ROOT.'/ecm/docother.php">';
|
||||
print $val['label'];
|
||||
print '</a></td></tr></table>';
|
||||
print "</td>\n";
|
||||
|
||||
// Nb of doc
|
||||
// Nb of doc in dir
|
||||
print '<td align="right"> </td>';
|
||||
|
||||
// Nb of doc in subdir
|
||||
print '<td align="right"> </td>';
|
||||
|
||||
// Edit link
|
||||
@@ -363,7 +377,7 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
|
||||
// Info
|
||||
print '<td align="center">';
|
||||
$htmltooltip='<b>'.$langs->trans("ECMSection").'</b>: '.$val['label'].'<br>';
|
||||
$htmltooltip='<b>'.$langs->trans("Type").'</b>: '.$langs->trans("ECMAutoOrg").'<br>';
|
||||
$htmltooltip='<b>'.$langs->trans("Type").'</b>: '.$langs->trans("ECMSectionAuto").'<br>';
|
||||
$htmltooltip.='<b>'.$langs->trans("ECMCreationUser").'</b>: '.$langs->trans("ECMTypeAuto").'<br>';
|
||||
$htmltooltip.='<b>'.$langs->trans("Description").'</b>: '.$val['desc'];
|
||||
print $form->textwithhelp('',$htmltooltip,1,0);
|
||||
@@ -382,7 +396,7 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
|
||||
print '<table class="nobordernopadding"><tr class="nobordernopadding">';
|
||||
print '<td align="left" width="24px">';
|
||||
print img_picto_common('','treemenu/base.gif');
|
||||
print '</td><td align="left">'.$langs->trans("ECMRoot").' ('.$langs->trans("ECMSectionManual").')';
|
||||
print '</td><td align="left">'.$langs->trans("ECMRoot").' ('.$langs->trans("ECMSectionsManual").')';
|
||||
print '</td>';
|
||||
print '</tr></table></td>';
|
||||
print '<td align="right">';
|
||||
@@ -390,6 +404,7 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
|
||||
print '<td align="right"> </td>';
|
||||
//print '<td align="right"><a href="'.DOL_URL_ROOT.'/ecm/docdir.php?action=create">'.img_edit_add().'</a></td>';
|
||||
print '<td align="right"> </td>';
|
||||
print '<td align="right"> </td>';
|
||||
print '<td align="center">';
|
||||
$htmltooltip=$langs->trans("ECMAreaDesc2");
|
||||
print $form->textwithhelp('',$htmltooltip,1,0);
|
||||
@@ -488,8 +503,11 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
|
||||
print '<table class="nobordernopadding"><tr class="nobordernopadding"><td>';
|
||||
$resarray=tree_showpad($fulltree,$key);
|
||||
$a=$resarray[0];
|
||||
$b=$resarray[1];
|
||||
$nbofsubdir=$resarray[1];
|
||||
$c=$resarray[2];
|
||||
$nboffilesinsubdir=$resarray[3];
|
||||
print '</td>';
|
||||
|
||||
// Show picto
|
||||
print '<td valign="top">';
|
||||
//print $val['fullpath']."(".$showline.")";
|
||||
@@ -515,7 +533,12 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
|
||||
print "</td>\n";
|
||||
|
||||
// Nb of docs
|
||||
print '<td align="right">'.$val['cachenbofdoc'].'</td>';
|
||||
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"><a href="'.DOL_URL_ROOT.'/ecm/docmine.php?section='.$val['id'].'">'.img_edit().'</a></td>';
|
||||
@@ -529,10 +552,13 @@ if (empty($action) || $action == 'file_manager' || eregi('refresh',$action) || $
|
||||
$userstatic->id=$val['fk_user_c'];
|
||||
$userstatic->nom=$val['login_c'];
|
||||
$htmltooltip='<b>'.$langs->trans("ECMSection").'</b>: '.$val['label'].'<br>';
|
||||
$htmltooltip='<b>'.$langs->trans("Type").'</b>: '.$langs->trans("ECMManualOrg").'<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>: '.dolibarr_print_date($val['date_c'],"dayhour").'<br>';
|
||||
$htmltooltip.='<b>'.$langs->trans("Description").'</b>: '.$val['description'];
|
||||
$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->textwithhelp('',$htmltooltip,1,0);
|
||||
print "</td>";
|
||||
|
||||
|
||||
@@ -13,6 +13,8 @@ ECMNbOfDocsSmall=Nb of doc.
|
||||
ECMSection=Directory
|
||||
ECMSectionManual=Manual directory
|
||||
ECMSectionAuto=Automatic directory
|
||||
ECMSectionsManual=Manual directories
|
||||
ECMSectionsAuto=Automatic directories
|
||||
ECMSections=Directories
|
||||
ECMRoot=Root
|
||||
ECMNewSection=New directory
|
||||
@@ -20,6 +22,9 @@ ECMAddSection=Add a manual directory
|
||||
ECMNewSection=New manual directory
|
||||
ECMNewDocument=New document
|
||||
ECMCreationDate=Creation date
|
||||
ECMNbOfFilesInDir=Number of files in directory
|
||||
ECMNbOfSubDir=Number of sub-directories
|
||||
ECMNbOfFilesInSubDir=Nunber of iles in sub-directories
|
||||
ECMCreationUser=Creator
|
||||
ECMArea=ECM area
|
||||
ECMAreaDesc=The ECM (Electronic Content Management) area allows you to save, share and search quickly all kind of documents in Dolibarr.
|
||||
@@ -37,8 +42,6 @@ ECMDocsByOrders=Documents linked to customers orders
|
||||
ECMDocsByContracts=Documents linked to contracts
|
||||
ECMDocsByInvoices=Documents linked to customers invoices
|
||||
ECMDocsByProducts=Documents linked to products
|
||||
ECMManualOrg=Manual directory
|
||||
ECMAutoOrg=Automatic directory
|
||||
ECMNoDirecotyYet=No directory created
|
||||
ShowECMSection=Show directory
|
||||
DeleteSection=Remove directory
|
||||
|
||||
@@ -8,28 +8,33 @@ DocsContracts=Documents contrats
|
||||
DocsProposals=Documents propositions
|
||||
DocsOrders=Documents commandes
|
||||
DocsInvoices=Documents factures
|
||||
ECMNbOfDocs=Nb de documents de la rubrique
|
||||
ECMNbOfDocs=Nb de documents du r<>pertoire
|
||||
ECMNbOfDocsSmall=Nb de doc.
|
||||
ECMSection=Rubrique
|
||||
ECMSectionManual=Rubriques manuelles
|
||||
ECMSectionAuto=Rubriques automatiques
|
||||
ECMSections=Rubriques
|
||||
ECMSection=R<EFBFBD>pertoire
|
||||
ECMSectionManual=R<EFBFBD>pertoire manuel
|
||||
ECMSectionAuto=R<EFBFBD>pertoire automatique
|
||||
ECMSectionsManual=R<>pertoires manuels
|
||||
ECMSectionsAuto=R<>pertoires automatiques
|
||||
ECMSections=R<>pertoires
|
||||
ECMRoot=Racine
|
||||
ECMNewSection=Nouvelle rubrique
|
||||
ECMAddSection=Ajouter rubrique manuelle
|
||||
ECMNewSection=Nouvelle rubrique manuelle
|
||||
ECMNewSection=Nouveau r<>pertoire
|
||||
ECMAddSection=Ajouter r<EFBFBD>pertoire manuel
|
||||
ECMNewSection=Nouveau r<>pertoire manuel
|
||||
ECMNewDocument=Nouveau document
|
||||
ECMCreationDate=Date cr<63>ation
|
||||
ECMNbOfFilesInDir=Nombre de fichiers dans le r<>pertoire
|
||||
ECMNbOfSubDir=Nombre de sous-r<>pertoires
|
||||
ECMNbOfFilesInSubDir=Nombre de fichiers dans les sous-r<>pertoires
|
||||
ECMCreationUser=Cr<43>ateur
|
||||
ECMArea=Espace GED
|
||||
ECMAreaDesc=L'espace GED (Gestion Electronique de Documents) vous permet de stocker dans Dolibarr et retrouver rapidement tout type de documents.
|
||||
ECMAreaDesc2=* Les rubriques automatiques sont aliment<6E>es automatiquement lors de l'ajout d'un document depuis une fiche objet (propal, facture...).<br>* Les rubriques manuelles peuvent etre utilis<69>es pour stocker des documents divers, non li<6C>s <20> un objet particulier.
|
||||
ECMSectionWasRemoved=La rubrique <b>%s</b> a <20>t<EFBFBD> effac<61>e.
|
||||
ECMAreaDesc2=* Les r<EFBFBD>pertoires automatiques sont aliment<6E>es automatiquement lors de l'ajout d'un document depuis une fiche objet (propal, facture...).<br>* Les r<EFBFBD>pertoires manuels peuvent etre utilis<69>es pour stocker des documents divers, non li<6C>s <20> un objet particulier.
|
||||
ECMSectionWasRemoved=Le r<EFBFBD>pertoire <b>%s</b> a <20>t<EFBFBD> effac<61>e.
|
||||
ECMDocumentsSection=Document de la section
|
||||
ECMSearchByKeywords=Recherche par mots cl<63>s
|
||||
ECMSearchByEntity=Recherche par objet
|
||||
ECMSectionOfDocuments=Rubriques des documents
|
||||
ECMTypeManual=Manuelle
|
||||
ECMSectionOfDocuments=R<EFBFBD>pertoires des documents
|
||||
ECMTypeManual=Manuel
|
||||
ECMTypeAuto=Automatique
|
||||
ECMDocsByThirdParties=Documents associ<63>s aux tiers
|
||||
ECMDocsByProposals=Documents associ<63>s aux propositions
|
||||
@@ -37,13 +42,11 @@ ECMDocsByOrders=Documents associ
|
||||
ECMDocsByContracts=Documents associ<63>s aux contrats
|
||||
ECMDocsByInvoices=Documents associ<63>s aux factures
|
||||
ECMDocsByProducts=Documents associ<63>s aux produits
|
||||
ECMManualOrg=Rubrique manuelle
|
||||
ECMAutoOrg=Rubrique automatique
|
||||
ECMNoDirecotyYet=Aucune rubrique cr<63><72>e
|
||||
ShowECMSection=Afficher rubrique
|
||||
DeleteSection=Suppression rubrique
|
||||
ConfirmDeleteSection=Confirmez-vous la suppression de la rubrique <b>%s</b> ?
|
||||
ECMNoDirecotyYet=Aucun r<>pertoire cr<63><72>e
|
||||
ShowECMSection=Afficher r<>pertoire
|
||||
DeleteSection=Suppression r<>pertoire
|
||||
ConfirmDeleteSection=Confirmez-vous la suppression du r<>pertoire <b>%s</b> ?
|
||||
ECMDirectoryForFiles=R<>pertoire relatif pour les fichiers
|
||||
CannotRemoveDirectoryContainsFiles=Suppression impossible car des fichiers sont pr<70>sents
|
||||
ECMFileManager=Gestionnaire fichier
|
||||
ECMSelectASection=Selectionner une rubrique sur l'arbre de gauche...
|
||||
ECMSelectASection=Selectionner un r<EFBFBD>pertoire sur l'arbre de gauche...
|
||||
@@ -91,6 +91,8 @@ function tree_showpad(&$fulltree,$key,$selected=0)
|
||||
|
||||
$atleastonofthislevelafter=0;
|
||||
$nbofhigherlevelafter=0;
|
||||
$nbofdirinsub=0;
|
||||
$nbofdocinsub=0;
|
||||
$found=0;
|
||||
//print 'x'.$key;
|
||||
foreach($fulltree as $key2 => $val2)
|
||||
@@ -99,6 +101,8 @@ function tree_showpad(&$fulltree,$key,$selected=0)
|
||||
{
|
||||
if ($fulltree[$key2]['level'] > $pos)
|
||||
{
|
||||
$nbofdirinsub++;
|
||||
$nbofdocinsub+=$fulltree[$key2]['cachenbofdoc'];
|
||||
$nbofhigherlevelafter++;
|
||||
}
|
||||
if ($fulltree[$key2]['level'] == $pos)
|
||||
@@ -110,7 +114,10 @@ function tree_showpad(&$fulltree,$key,$selected=0)
|
||||
break;
|
||||
}
|
||||
}
|
||||
if ($key2 == $key) $found=1;
|
||||
if ($key2 == $key)
|
||||
{
|
||||
$found=1;
|
||||
}
|
||||
}
|
||||
//print $atleastonofthislevelafter;
|
||||
|
||||
@@ -127,7 +134,7 @@ function tree_showpad(&$fulltree,$key,$selected=0)
|
||||
$pos++;
|
||||
}
|
||||
|
||||
return array($atleastonofthislevelafter,$nbofhigherlevelafter);
|
||||
return array($atleastonofthislevelafter,$nbofhigherlevelafter,$nbofdirinsub,$nbofdocinsub);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user