Fixing style errors.
This commit is contained in:
parent
e78f6e3001
commit
f71b15ac8e
@ -498,11 +498,9 @@ if ($resql) {
|
|||||||
print '<button type="submit" class="button" name="action" value="update">'.$langs->trans("Modify").'</button>';
|
print '<button type="submit" class="button" name="action" value="update">'.$langs->trans("Modify").'</button>';
|
||||||
print '<button type="submit" class="button" name="action" value="cancel">'.$langs->trans("Cancel").'</button>';
|
print '<button type="submit" class="button" name="action" value="cancel">'.$langs->trans("Cancel").'</button>';
|
||||||
print '</td>';
|
print '</td>';
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
// date_sync
|
// date_sync
|
||||||
if (!empty($arrayfields['cr.date_sync']['checked']))
|
if (!empty($arrayfields['cr.date_sync']['checked'])) {
|
||||||
{
|
|
||||||
print '<td class="tdoverflowmax200">';
|
print '<td class="tdoverflowmax200">';
|
||||||
print $obj->date_sync;
|
print $obj->date_sync;
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
@ -510,8 +508,7 @@ if ($resql) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// code
|
// code
|
||||||
if (! empty($arrayfields['m.code']['checked']))
|
if (! empty($arrayfields['m.code']['checked'])) {
|
||||||
{
|
|
||||||
print '<td class="tdoverflowmax200">';
|
print '<td class="tdoverflowmax200">';
|
||||||
print $obj->code." ".$obj->name;
|
print $obj->code." ".$obj->name;
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
@ -520,8 +517,7 @@ if ($resql) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// rate
|
// rate
|
||||||
if (! empty($arrayfields['cr.rate']['checked']))
|
if (! empty($arrayfields['cr.rate']['checked'])) {
|
||||||
{
|
|
||||||
print '<td class="tdoverflowmax200">';
|
print '<td class="tdoverflowmax200">';
|
||||||
print $obj->rate;
|
print $obj->rate;
|
||||||
print "</td>\n";
|
print "</td>\n";
|
||||||
@ -535,8 +531,7 @@ if ($resql) {
|
|||||||
|
|
||||||
// Action
|
// Action
|
||||||
print '<td class="nowrap " >';
|
print '<td class="nowrap " >';
|
||||||
if ($massactionbutton || $massaction) // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
|
if ($massactionbutton || $massaction) { // If we are in select mode (massactionbutton defined) or if we have already selected and sent an action ($massaction) defined
|
||||||
{
|
|
||||||
$selected = 0;
|
$selected = 0;
|
||||||
if (in_array($obj->rowid, $arrayofselected)) $selected = 1;
|
if (in_array($obj->rowid, $arrayofselected)) $selected = 1;
|
||||||
$par = '&id_rate='.$obj->rowid.'&page='.$page.'&sortorder='.$sortorder.'&sortfield='.$sortfield.'&search_code='.$search_code.'&search_rate='.$search_rate.'&search_date_sync='.dol_print_date($search_date_sync, "%Y-%m-%d") .'&search_date_sync_end='.dol_print_date($search_date_sync_end, "%Y-%m-%d") .'&edit_mode=1';
|
$par = '&id_rate='.$obj->rowid.'&page='.$page.'&sortorder='.$sortorder.'&sortfield='.$sortfield.'&search_code='.$search_code.'&search_rate='.$search_rate.'&search_date_sync='.dol_print_date($search_date_sync, "%Y-%m-%d") .'&search_date_sync_end='.dol_print_date($search_date_sync_end, "%Y-%m-%d") .'&edit_mode=1';
|
||||||
@ -546,7 +541,6 @@ if ($resql) {
|
|||||||
}
|
}
|
||||||
print '</td>';
|
print '</td>';
|
||||||
if (!$i) $totalarray['nbfield']++;
|
if (!$i) $totalarray['nbfield']++;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
print "</tr>\n";
|
print "</tr>\n";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user