Debut de gestion des boites multiples
This commit is contained in:
parent
fe864d5d3e
commit
2aa2b423af
@ -190,8 +190,13 @@ if ($resql)
|
|||||||
while ($i < $num)
|
while ($i < $num)
|
||||||
{
|
{
|
||||||
$obj = $db->fetch_object($resql);
|
$obj = $db->fetch_object($resql);
|
||||||
|
|
||||||
if (in_array($obj->rowid, $actives))
|
$module=eregi_replace('.php$','',$obj->file);
|
||||||
|
include_once(DOL_DOCUMENT_ROOT."/includes/boxes/".$module.".php");
|
||||||
|
|
||||||
|
$box=new $module();
|
||||||
|
|
||||||
|
if (in_array($obj->rowid, $actives) && $box->box_multiple <> 1)
|
||||||
{
|
{
|
||||||
// La boite est déjà activée
|
// La boite est déjà activée
|
||||||
// \todo
|
// \todo
|
||||||
@ -201,11 +206,6 @@ if ($resql)
|
|||||||
{
|
{
|
||||||
$var = ! $var;
|
$var = ! $var;
|
||||||
|
|
||||||
$module=eregi_replace('.php$','',$obj->file);
|
|
||||||
include_once(DOL_DOCUMENT_ROOT."/includes/boxes/".$module.".php");
|
|
||||||
|
|
||||||
$box=new $module();
|
|
||||||
|
|
||||||
print '<form action="boxes.php" method="POST">';
|
print '<form action="boxes.php" method="POST">';
|
||||||
$logo=eregi_replace("^object_","",$box->boximg);
|
$logo=eregi_replace("^object_","",$box->boximg);
|
||||||
print '<tr '.$bc[$var].'><td>'.img_object("",$logo).' '.$box->boxlabel.'</td><td>' . $obj->file . '</td>';
|
print '<tr '.$bc[$var].'><td>'.img_object("",$logo).' '.$box->boxlabel.'</td><td>' . $obj->file . '</td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user