| '.$langs->trans("Type").' | '; print ''; - if ( ! empty($object->fk_type) ) { - $adht->fetch($object->fk_type); - print $adht->getNomUrl(1); - } else { - print $langs->trans("NoType"); - } + if (! empty($object->fk_type) ) { + $adht->fetch($object->fk_type); + print $adht->getNomUrl(1); + } else { + print $langs->trans("NoType"); + } print ' | ||||||
| '.$subscription->getNomUrl(1).' | '; if (! $i) $totalarray['nbfield']++; } - // Type - if (! empty($arrayfields['d.fk_type']['checked'])) + // Type + if (! empty($arrayfields['d.fk_type']['checked'])) { - print ''; - if ( ! empty($obj->fk_type) ) print $adht->getNomUrl(1); - print ' | '; - if (! $i) $totalarray['nbfield']++; + print ''; + if ( ! empty($obj->fk_type) ) print $adht->getNomUrl(1); + print ' | '; + if (! $i) $totalarray['nbfield']++; } // Lastname diff --git a/htdocs/admin/dict.php b/htdocs/admin/dict.php index caa0ba91a97..2a4ee7c7bd6 100644 --- a/htdocs/admin/dict.php +++ b/htdocs/admin/dict.php @@ -1117,19 +1117,19 @@ if ($id) if ($id == 2) // Special cas for state page { - if ($fieldlist[$field]=='region_id') { $valuetoshow=' '; $showfield=1; } - if ($fieldlist[$field]=='region') { $valuetoshow=$langs->trans("Country").'/'.$langs->trans("Region"); $showfield=1; } + if ($fieldlist[$field]=='region_id') { $valuetoshow=' '; $showfield=1; } + if ($fieldlist[$field]=='region') { $valuetoshow=$langs->trans("Country").'/'.$langs->trans("Region"); $showfield=1; } } if ($valuetoshow != '') { print ''; - if (! empty($tabhelp[$id][$value]) && preg_match('/^http(s*):/i', $tabhelp[$id][$value])) print ''.$valuetoshow.' '.img_help(1, $valuetoshow).''; - elseif (! empty($tabhelp[$id][$value])) print $form->textwithpicto($valuetoshow, $tabhelp[$id][$value]); - else print $valuetoshow; + if (! empty($tabhelp[$id][$value]) && preg_match('/^http(s*):/i', $tabhelp[$id][$value])) print ''.$valuetoshow.' '.img_help(1, $valuetoshow).''; + elseif (! empty($tabhelp[$id][$value])) print $form->textwithpicto($valuetoshow, $tabhelp[$id][$value]); + else print $valuetoshow; print ' | '; - } - if ($fieldlist[$field]=='libelle' || $fieldlist[$field]=='label') $alabelisused=1; + } + if ($fieldlist[$field]=='libelle' || $fieldlist[$field]=='label') $alabelisused=1; } if ($id == 4) print ''; diff --git a/htdocs/admin/mailman.php b/htdocs/admin/mailman.php index 50688e5a491..517ec9b9dc5 100644 --- a/htdocs/admin/mailman.php +++ b/htdocs/admin/mailman.php @@ -127,7 +127,7 @@ if (($action == 'testsubscribe' || $action == 'testunsubscribe') && ! empty($con if ($action == 'testunsubscribe') { $result=$mailmanspip->del_to_mailman($object); - if ($result < 0) + if ($result < 0) { $error++; setEventMessages($mailmanspip->error, $mailmanspip->errors, 'errors'); @@ -160,7 +160,7 @@ if (! empty($conf->global->ADHERENT_USE_MAILMAN)) print ' | |||
| '.$langs->trans("NoItem").' | |||||||
| '.$langs->trans("NoItem").' | |||||||
| "; - print dol_print_date($data['date'], 'day'); - print " | \n"; - print ''.$data['item'].' | '; - print ''.$data['ref'].' | '; - - // File link - print '".$data['name']." | \n"; - - print ''.$data['paid'].' | '; - print ''.(($data['amount'] > 0) ? price(abs($data['amount'])) : '')." | \n"; - $totalDebit += ($data['amount'] > 0) ? abs($data['amount']) : 0; - print ''.(($data['amount'] > 0) ? '' : price(abs($data['amount'])))." | \n"; - $totalCredit += ($data['amount'] > 0) ? 0 : abs($data['amount']); - // Balance - print ''.price($data['balance'])." | \n"; - print "
| '; - print ' | '.price($totalDebit).' | '; - print ''.price($totalCredit).' | '; - print ''.price(price2num($totalDebit - $totalCredit, 'MT')).' | '; - print "||||
| "; + print dol_print_date($data['date'], 'day'); + print " | \n"; + print ''.$data['item'].' | '; + print ''.$data['ref'].' | '; + + // File link + print '".$data['name']." | \n"; + + print ''.$data['paid'].' | '; + print ''.(($data['amount'] > 0) ? price(abs($data['amount'])) : '')." | \n"; + $totalDebit += ($data['amount'] > 0) ? abs($data['amount']) : 0; + print ''.(($data['amount'] > 0) ? '' : price(abs($data['amount'])))." | \n"; + $totalCredit += ($data['amount'] > 0) ? 0 : abs($data['amount']); + // Balance + print ''.price($data['balance'])." | \n"; + print "
| '; + print ' | '.price($totalDebit).' | '; + print ''.price($totalCredit).' | '; + print ''.price(price2num($totalDebit - $totalCredit, 'MT')).' | '; + print "||||
| '; - print ' | '; - print ' | '; - print ' | '; - print ' | '; - $searchpicto=$form->showFilterButtons(); - print $searchpicto; - print ' | '; - print '
| '; - - print ''.$obj->ref." | \n"; - - print ''.dol_print_date($db->jdate($obj->datec), 'day')." | \n"; - - print ''.price($obj->amount)." | \n"; - - print ''; - print $bon->LibStatut($obj->statut, 3); - print ' | '; - - print ''."\n"; - - print " |
| '; + print ' | '; + print ' | '; + print ' | '; + print ' | '; + $searchpicto=$form->showFilterButtons(); + print $searchpicto; + print ' | '; + print '
| '; + + print ''.$obj->ref." | \n"; + + print ''.dol_print_date($db->jdate($obj->datec), 'day')." | \n"; + + print ''.price($obj->amount)." | \n"; + + print ''; + print $bon->LibStatut($obj->statut, 3); + print ' | '; + + print ''."\n"; + + print " |