|
@@ -76,8 +76,6 @@ if ($action == 'add')
|
|
|
$module=GETPOST("module");
|
|
|
$result=-1;
|
|
|
|
|
|
- $var=true;
|
|
|
-
|
|
|
foreach ($modulesdir as $dir)
|
|
|
{
|
|
|
// Load modules attributes in arrays (name, numero, orders) from dir directory
|
|
@@ -278,8 +276,6 @@ if ($object->fetch($id) >= 0)
|
|
|
|
|
|
clearstatcache();
|
|
|
|
|
|
- $var = true;
|
|
|
-
|
|
|
foreach ($modulesdir as $dir)
|
|
|
{
|
|
|
$modulenames=array();
|
|
@@ -332,16 +328,15 @@ if ($object->fetch($id) >= 0)
|
|
|
// Si le module mailing est qualifie
|
|
|
if ($qualified)
|
|
|
{
|
|
|
- $var = !$var;
|
|
|
|
|
|
if ($allowaddtarget)
|
|
|
{
|
|
|
- print '<form '.$bctag[$var].' name="'.$modulename.'" action="'.$_SERVER['PHP_SELF'].'?action=add&id='.$object->id.'&module='.$modulename.'" method="POST" enctype="multipart/form-data">';
|
|
|
+ print '<form class="oddeven" name="'.$modulename.'" action="'.$_SERVER['PHP_SELF'].'?action=add&id='.$object->id.'&module='.$modulename.'" method="POST" enctype="multipart/form-data">';
|
|
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- print '<div '.$bctag[$var].'>';
|
|
|
+ print '<div class="oddeven">';
|
|
|
}
|
|
|
|
|
|
print '<div class="tagtd">';
|