remove some deprecated html attributes

https://developer.mozilla.org/en-US/docs/web/html/element/td#attr-align
This commit is contained in:
Christian Foellmann 2021-08-27 15:31:31 +02:00
parent 1fa3e9f37d
commit 819a76e16a
4 changed files with 10 additions and 6 deletions

View File

@ -54,7 +54,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
echo '</td>'; echo '</td>';
echo '<td class="linkedcol-name nowraponall" >'.$objectlink->getNomUrl(1).'</td>'; echo '<td class="linkedcol-name nowraponall" >'.$objectlink->getNomUrl(1).'</td>';
echo '<td class="linkedcol-ref" align="center">'; echo '<td class="linkedcol-ref">';
$result = $product_static->fetch($objectlink->fk_product); $result = $product_static->fetch($objectlink->fk_product);
if ($result < 0) { if ($result < 0) {
setEventMessage($product_static->error, 'errors'); setEventMessage($product_static->error, 'errors');
@ -62,7 +62,7 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
$product_static->getNomUrl(1); $product_static->getNomUrl(1);
} }
print '</td>'; print '</td>';
echo '<td class="linkedcol-date" align="center">'.dol_print_date($objectlink->date_creation, 'day').'</td>'; echo '<td class="linkedcol-date">'.dol_print_date($objectlink->date_creation, 'day').'</td>';
echo '<td class="linkedcol-amount right">'; echo '<td class="linkedcol-amount right">';
if ($user->rights->commande->lire) { if ($user->rights->commande->lire) {
$total = $total + $objectlink->total_ht; $total = $total + $objectlink->total_ht;

View File

@ -52,8 +52,8 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
} }
echo '</td>'; echo '</td>';
echo '<td class="linkedcol-name nowraponall" >'.$objectlink->getNomUrl(1).'</td>'; echo '<td class="linkedcol-name nowraponall" >'.$objectlink->getNomUrl(1).'</td>';
echo '<td class="linkedcol-ref" align="center">'.$objectlink->ref_client.'</td>'; echo '<td class="linkedcol-ref">'.$objectlink->ref_client.'</td>';
echo '<td class="linkedcol-date" align="center">'.dol_print_date($objectlink->date, 'day').'</td>'; echo '<td class="linkedcol-date">'.dol_print_date($objectlink->date, 'day').'</td>';
echo '<td class="linkedcol-amount right">'; echo '<td class="linkedcol-amount right">';
if ($user->rights->commande->lire) { if ($user->rights->commande->lire) {
$total = $total + $objectlink->total_ht; $total = $total + $objectlink->total_ht;

View File

@ -56,8 +56,8 @@ foreach ($linkedObjectBlock as $key => $objectlink) {
} ?> } ?>
</td> </td>
<td class="linkedcol-name nowraponall" ><?php echo $objectlink->getNomUrl(1); ?></td> <td class="linkedcol-name nowraponall" ><?php echo $objectlink->getNomUrl(1); ?></td>
<td class="linkedcol-ref center"></td> <td class="linkedcol-ref"></td>
<td class="linkedcol-date center"><?php echo dol_print_date($objectlink->date_delivery, 'day'); ?></td> <td class="linkedcol-date"><?php echo dol_print_date($objectlink->date_delivery, 'day'); ?></td>
<td class="linkedcol-amount right"><?php <td class="linkedcol-amount right"><?php
if ($user->rights->reception->lire) { if ($user->rights->reception->lire) {
$total = $total + $objectlink->total_ht; $total = $total + $objectlink->total_ht;

View File

@ -1444,6 +1444,10 @@ table[summary="list_of_modules"] .fa-cog {
min-width: 100px; min-width: 100px;
} }
.linkedcol-date {
text-align: center;
}
.img-skinthumb { .img-skinthumb {
width: 160px; width: 160px;
height: 100px; height: 100px;