Correction Stickler CI
This commit is contained in:
parent
73b35f334e
commit
709822635c
@ -199,16 +199,13 @@ if ($action == "setaddadressinlist") {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Activate Set email phone town in contact list
|
//Activate Set email phone town in contact list
|
||||||
if ($action=="setaddemailphonetownincontactlist") {
|
if ($action == "setaddemailphonetownincontactlist") {
|
||||||
$val = GETPOST('value', 'int');
|
$val = GETPOST('value', 'int');
|
||||||
$res = dolibarr_set_const($db, "CONTACT_SHOW_EMAIL_PHONE_TOWN_SELECTLIST", $val, 'yesno', 0, '', $conf->entity);
|
$res = dolibarr_set_const($db, "CONTACT_SHOW_EMAIL_PHONE_TOWN_SELECTLIST", $val, 'yesno', 0, '', $conf->entity);
|
||||||
if (! $res > 0) $error++;
|
if (!$res > 0) $error++;
|
||||||
if (! $error)
|
if (!$error) {
|
||||||
{
|
|
||||||
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
setEventMessages($langs->trans("SetupSaved"), null, 'mesgs');
|
||||||
}
|
} else {
|
||||||
else
|
|
||||||
{
|
|
||||||
setEventMessages($langs->trans("Error"), null, 'errors');
|
setEventMessages($langs->trans("Error"), null, 'errors');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -816,17 +813,14 @@ print '</a></td>';
|
|||||||
print '</tr>';
|
print '</tr>';
|
||||||
|
|
||||||
print '<tr class="oddeven">';
|
print '<tr class="oddeven">';
|
||||||
print '<td width="80%">'.$langs->trans("AddEmailPhoneTownInContactList").'</td>';
|
print '<td width="80%">' . $langs->trans("AddEmailPhoneTownInContactList") . '</td>';
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
print '<td class="center">';
|
print '<td class="center">';
|
||||||
if (!empty($conf->global->CONTACT_SHOW_EMAIL_PHONE_TOWN_SELECTLIST))
|
if (!empty($conf->global->CONTACT_SHOW_EMAIL_PHONE_TOWN_SELECTLIST)) {
|
||||||
{
|
print '<a class="reposition" href="' . $_SERVER['PHP_SELF'] . '?action=setaddemailphonetownincontactlist&value=0">';
|
||||||
print '<a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action=setaddemailphonetownincontactlist&value=0">';
|
|
||||||
print img_picto($langs->trans("Activated"), 'switch_on');
|
print img_picto($langs->trans("Activated"), 'switch_on');
|
||||||
}
|
} else {
|
||||||
else
|
print '<a class="reposition" href="' . $_SERVER['PHP_SELF'] . '?action=setaddemailphonetownincontactlist&value=1">';
|
||||||
{
|
|
||||||
print '<a class="reposition" href="'.$_SERVER['PHP_SELF'].'?action=setaddemailphonetownincontactlist&value=1">';
|
|
||||||
print img_picto($langs->trans("Disabled"), 'switch_off');
|
print img_picto($langs->trans("Disabled"), 'switch_off');
|
||||||
}
|
}
|
||||||
print '</a></td>';
|
print '</a></td>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user