Fixing style errors.
This commit is contained in:
parent
be82fd73ed
commit
63b8c126d0
@ -73,7 +73,7 @@ if (empty($reshook)) {
|
|||||||
dol_print_error('', $object->error, $object->errors);
|
dol_print_error('', $object->error, $object->errors);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// TODO do action
|
// TODO do action
|
||||||
if ($action == 'save') {
|
if ($action == 'save') {
|
||||||
$error = 0;
|
$error = 0;
|
||||||
|
|
||||||
@ -107,11 +107,11 @@ if (empty($reshook)) {
|
|||||||
$object->setValues($_POST);
|
$object->setValues($_POST);
|
||||||
|
|
||||||
if ($apply_to == 'U') {
|
if ($apply_to == 'U') {
|
||||||
$object->fk_user = (int)$fk_user;
|
$object->fk_user = (int) $fk_user;
|
||||||
$object->fk_usergroup = 0;
|
$object->fk_usergroup = 0;
|
||||||
$object->is_for_all = 0;
|
$object->is_for_all = 0;
|
||||||
} elseif ($apply_to == 'G') {
|
} elseif ($apply_to == 'G') {
|
||||||
$object->fk_usergroup = (int)$fk_usergroup;
|
$object->fk_usergroup = (int) $fk_usergroup;
|
||||||
$object->fk_user = 0;
|
$object->fk_user = 0;
|
||||||
$object->is_for_all = 0;
|
$object->is_for_all = 0;
|
||||||
} elseif ($apply_to == 'A') {
|
} elseif ($apply_to == 'A') {
|
||||||
@ -179,7 +179,7 @@ if (empty($reshook)) {
|
|||||||
echo '<span class="opacitymedium">' . $langs->trans('ExpenseReportRulesDesc') . '</span>';
|
echo '<span class="opacitymedium">' . $langs->trans('ExpenseReportRulesDesc') . '</span>';
|
||||||
print '<br><br>';
|
print '<br><br>';
|
||||||
|
|
||||||
if ($action != 'edit') {
|
if ($action != 'edit') {
|
||||||
echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
|
echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
|
||||||
echo '<input type="hidden" name="token" value="' . newToken() . '" />';
|
echo '<input type="hidden" name="token" value="' . newToken() . '" />';
|
||||||
echo '<input type="hidden" name="action" value="save" />';
|
echo '<input type="hidden" name="action" value="save" />';
|
||||||
@ -215,16 +215,16 @@ if (empty($reshook)) {
|
|||||||
|
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
echo '</form>';
|
echo '</form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
|
echo '<form action="' . $_SERVER['PHP_SELF'] . '" method="post">';
|
||||||
echo '<input type="hidden" name="token" value="' . newToken() . '" />';
|
echo '<input type="hidden" name="token" value="' . newToken() . '" />';
|
||||||
|
|
||||||
if ($action == 'edit') {
|
if ($action == 'edit') {
|
||||||
echo '<input type="hidden" name="id" value="' . $object->id . '" />';
|
echo '<input type="hidden" name="id" value="' . $object->id . '" />';
|
||||||
echo '<input type="hidden" name="action" value="save" />';
|
echo '<input type="hidden" name="action" value="save" />';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<table class="noborder centpercent">';
|
echo '<table class="noborder centpercent">';
|
||||||
|
|
||||||
@ -239,7 +239,7 @@ if (empty($reshook)) {
|
|||||||
echo '<th> </th>';
|
echo '<th> </th>';
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
|
|
||||||
foreach ($rules as $rule) {
|
foreach ($rules as $rule) {
|
||||||
echo '<tr class="oddeven">';
|
echo '<tr class="oddeven">';
|
||||||
|
|
||||||
echo '<td>';
|
echo '<td>';
|
||||||
@ -335,7 +335,7 @@ if (empty($reshook)) {
|
|||||||
echo '</td>';
|
echo '</td>';
|
||||||
|
|
||||||
echo '</tr>';
|
echo '</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
echo '</table>';
|
echo '</table>';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user