|
@@ -316,14 +316,14 @@ if ($mode == 'supplier') {
|
|
|
}
|
|
|
print '<tr><td>'.$cat_label.'</td><td>';
|
|
|
print img_picto('', 'category', 'class="pictofixedwidth"');
|
|
|
-print $formother->select_categories($cat_type, $categ_id, 'categ_id', true);
|
|
|
+print $formother->select_categories($cat_type, $categ_id, 'categ_id', 0, 1, 'widthcentpercentminusx maxwidth300');
|
|
|
print '</td></tr>';
|
|
|
// User
|
|
|
-print '<tr><td class="left">'.$langs->trans("CreatedBy").'</td><td class="left">';
|
|
|
+print '<tr><td>'.$langs->trans("CreatedBy").'</td><td>';
|
|
|
print img_picto('', 'user', 'class="pictofixedwidth"');
|
|
|
print $form->select_dolusers($userid, 'userid', 1, '', 0, '', '', 0, 0, 0, '', 0, '', 'widthcentpercentminusx maxwidth300');
|
|
|
// Status
|
|
|
-print '<tr><td class="left">'.$langs->trans("Status").'</td><td class="left">';
|
|
|
+print '<tr><td>'.$langs->trans("Status").'</td><td>';
|
|
|
if ($mode == 'customer') {
|
|
|
$liststatus = array(
|
|
|
Commande::STATUS_DRAFT=>$langs->trans("StatusOrderDraft"),
|
|
@@ -388,11 +388,11 @@ foreach ($data as $val) {
|
|
|
print '<tr class="oddeven" height="24">';
|
|
|
print '<td align="center"><a href="'.$_SERVER["PHP_SELF"].'?year='.$year.'&mode='.$mode.($socid > 0 ? '&socid='.$socid : '').($userid > 0 ? '&userid='.$userid : '').'">'.$year.'</a></td>';
|
|
|
print '<td class="right">'.$val['nb'].'</td>';
|
|
|
- print '<td class="right" style="'.(($val['nb_diff'] >= 0) ? 'color: green;' : 'color: red;').'">'.round($val['nb_diff']).'</td>';
|
|
|
+ print '<td class="right opacitylow" style="'.(($val['nb_diff'] >= 0) ? 'color: green;' : 'color: red;').'">'.round($val['nb_diff']).'%</td>';
|
|
|
print '<td class="right">'.price(price2num($val['total'], 'MT'), 1).'</td>';
|
|
|
- print '<td class="right" style="'.(($val['total_diff'] >= 0) ? 'color: green;' : 'color: red;').'">'.round($val['total_diff']).'</td>';
|
|
|
+ print '<td class="right opacitylow" style="'.(($val['total_diff'] >= 0) ? 'color: green;' : 'color: red;').'">'.round($val['total_diff']).'%</td>';
|
|
|
print '<td class="right">'.price(price2num($val['avg'], 'MT'), 1).'</td>';
|
|
|
- print '<td class="right" style="'.(($val['avg_diff'] >= 0) ? 'color: green;' : 'color: red;').'">'.round($val['avg_diff']).'</td>';
|
|
|
+ print '<td class="right opacitylow" style="'.(($val['avg_diff'] >= 0) ? 'color: green;' : 'color: red;').'">'.round($val['avg_diff']).'%</td>';
|
|
|
print '</tr>';
|
|
|
$oldyear = $year;
|
|
|
}
|