configuration multi-langue obsolete
This commit is contained in:
parent
4b6cb90b12
commit
8749d17dbd
@ -134,20 +134,6 @@ else if ($_GET["action"] == 'disable_sousproduits')
|
|||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Multilangs
|
|
||||||
if ($_GET['action'] == 'enable_multilangs')
|
|
||||||
{
|
|
||||||
dolibarr_set_const($db, "PRODUIT_MULTILANGS", "1");
|
|
||||||
Header("Location: produit.php");
|
|
||||||
|
|
||||||
}
|
|
||||||
else if ($_GET['action'] == 'disable_multilangs')
|
|
||||||
{
|
|
||||||
dolibarr_del_const($db, "PRODUIT_MULTILANGS");
|
|
||||||
Header("Location: produit.php");
|
|
||||||
exit;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Affiche page
|
* Affiche page
|
||||||
@ -225,6 +211,7 @@ if($conf->global->PRODUIT_MULTIPRICES == 1)
|
|||||||
print '</table>';
|
print '</table>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
// sousproduits activation/desactivation
|
// sousproduits activation/desactivation
|
||||||
print '<br>';
|
print '<br>';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
@ -251,30 +238,6 @@ print '</tr>';
|
|||||||
print '</table>';
|
print '</table>';
|
||||||
print '</form>';
|
print '</form>';
|
||||||
|
|
||||||
// multilangs activation/desactivation
|
|
||||||
print '<br />';
|
|
||||||
print '<table class="noborder" width="100%">';
|
|
||||||
print '<tr class="liste_titre">';
|
|
||||||
print '<td width="140">'.$langs->trans("Name").'</td>';
|
|
||||||
print '<td align="center"> </td>';
|
|
||||||
print '<td align="center">'.$langs->trans("Active").'</td>';
|
|
||||||
print "</tr>\n";
|
|
||||||
print "<tr ".$bc[false].">";
|
|
||||||
print '<td width="80%">'.$langs->trans("MultilangsAbility").'</td>';
|
|
||||||
print '<td align="center">';
|
|
||||||
if($conf->global->PRODUIT_MULTILANGS == 1)
|
|
||||||
print img_tick();
|
|
||||||
print '</td>';
|
|
||||||
print "<td align=\"center\">";
|
|
||||||
if($conf->global->PRODUIT_MULTILANGS == 0)
|
|
||||||
print '<a href="produit.php?action=enable_multilangs">'.$langs->trans("Activate").'</a>';
|
|
||||||
else if($conf->global->PRODUIT_MULTILANGS == 1)
|
|
||||||
print '<a href="produit.php?action=disable_multilangs">'.$langs->trans("Disable").'</a>';
|
|
||||||
print "</td>";
|
|
||||||
print '</tr>';
|
|
||||||
print '</table>';
|
|
||||||
|
|
||||||
|
|
||||||
$db->close();
|
$db->close();
|
||||||
|
|
||||||
llxFooter();
|
llxFooter();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user