Enhancement in ecm module
This commit is contained in:
parent
32801a3655
commit
e40543db23
@ -114,7 +114,7 @@ $formecm=new FormEcm($db);
|
|||||||
|
|
||||||
|
|
||||||
$head = ecm_prepare_head($ecmdir);
|
$head = ecm_prepare_head($ecmdir);
|
||||||
dolibarr_fiche_head($head, 'card', $langs->trans("ECMManualOrg"));
|
dolibarr_fiche_head($head, 'card', $langs->trans("ECMSectionManual"));
|
||||||
|
|
||||||
if ($_GET["action"] == 'edit')
|
if ($_GET["action"] == 'edit')
|
||||||
{
|
{
|
||||||
|
|||||||
@ -223,7 +223,7 @@ foreach($filearray as $key => $file)
|
|||||||
|
|
||||||
|
|
||||||
$head = ecm_prepare_head($ecmdir);
|
$head = ecm_prepare_head($ecmdir);
|
||||||
dolibarr_fiche_head($head, 'card', $langs->trans("ECMManualOrg"));
|
dolibarr_fiche_head($head, 'card', $langs->trans("ECMSectionManual"));
|
||||||
|
|
||||||
if ($_GET["action"] == 'edit')
|
if ($_GET["action"] == 'edit')
|
||||||
{
|
{
|
||||||
@ -353,6 +353,7 @@ if ($_GET['action'] == 'delete_dir')
|
|||||||
|
|
||||||
$formfile=new FormFile($db);
|
$formfile=new FormFile($db);
|
||||||
|
|
||||||
|
/*
|
||||||
// Affiche formulaire upload
|
// Affiche formulaire upload
|
||||||
if ($user->rights->ecm->create)
|
if ($user->rights->ecm->create)
|
||||||
{
|
{
|
||||||
@ -360,12 +361,12 @@ if ($user->rights->ecm->create)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// List of document
|
// List of document
|
||||||
// TODO: prevoir un droit sur la suppression des documents
|
|
||||||
if ($user->rights->ecm->read)
|
if ($user->rights->ecm->read)
|
||||||
{
|
{
|
||||||
$param='&section='.$section;
|
$param='&section='.$section;
|
||||||
$formfile->list_of_documents($filearray,'','ecm',$param,1,$relativepath,$user->rights->ecm->create);
|
$formfile->list_of_documents($filearray,'','ecm',$param,1,$relativepath,$user->rights->ecm->create);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
// End of page
|
// End of page
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|||||||
@ -247,7 +247,7 @@ if (eregi('search',$action))
|
|||||||
print "<tr ".$bc[false]."><td>".$langs->trans("Keyword").':</td><td align="right"><input type="text" name="search_keyword" class="flat" size="14"></td></tr>';
|
print "<tr ".$bc[false]."><td>".$langs->trans("Keyword").':</td><td align="right"><input type="text" name="search_keyword" class="flat" size="14"></td></tr>';
|
||||||
print "<tr ".$bc[false].'><td colspan="2" align="center"><input type="submit" class="button" value="'.$langs->trans("Search").'"></td></tr>';
|
print "<tr ".$bc[false].'><td colspan="2" align="center"><input type="submit" class="button" value="'.$langs->trans("Search").'"></td></tr>';
|
||||||
print "</table></form>";
|
print "</table></form>";
|
||||||
//print $langs->trans("ECMManualOrgDesc");
|
//print $langs->trans("ECMSectionManualDesc");
|
||||||
|
|
||||||
//print_fiche_titre($langs->trans("ECMSectionAuto"));
|
//print_fiche_titre($langs->trans("ECMSectionAuto"));
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user