clean and update code
This commit is contained in:
parent
42fe2b78de
commit
68de0ba93b
@ -303,8 +303,6 @@ if ($object->fetch($id) >= 0)
|
|||||||
// Sort $modulenames
|
// Sort $modulenames
|
||||||
sort($modulenames);
|
sort($modulenames);
|
||||||
|
|
||||||
$var = true;
|
|
||||||
|
|
||||||
// Loop on each submodule
|
// Loop on each submodule
|
||||||
foreach($modulenames as $modulename)
|
foreach($modulenames as $modulename)
|
||||||
{
|
{
|
||||||
@ -330,16 +328,14 @@ if ($object->fetch($id) >= 0)
|
|||||||
// Si le module mailing est qualifie
|
// Si le module mailing est qualifie
|
||||||
if ($qualified)
|
if ($qualified)
|
||||||
{
|
{
|
||||||
$var = ! $var;
|
|
||||||
|
|
||||||
if ($allowaddtarget)
|
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 tagtr" 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'].'">';
|
print '<input type="hidden" name="token" value="'.$_SESSION['newtoken'].'">';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
print '<div '.$bctag[$var].'>';
|
print '<div class="oddeven tagtr">';
|
||||||
}
|
}
|
||||||
|
|
||||||
print '<div class="tagtd">';
|
print '<div class="tagtd">';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user