Fix: Respect W3C
This commit is contained in:
parent
90af7ee596
commit
c7cbacc132
@ -108,7 +108,7 @@ if ($_POST["action"] == 'update' && ! $_POST["cancel"])
|
|||||||
$result = $account->update($user);
|
$result = $account->update($user);
|
||||||
if (! $result)
|
if (! $result)
|
||||||
{
|
{
|
||||||
$message=$account->error();
|
$message='<div class="error">'.$account->error().'</div>';
|
||||||
$_GET["action"]='edit'; // Force chargement page edition
|
$_GET["action"]='edit'; // Force chargement page edition
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -322,18 +322,17 @@ else
|
|||||||
|
|
||||||
if ($_GET["id"] && $_GET["action"] == 'edit' && $user->rights->banque->configurer)
|
if ($_GET["id"] && $_GET["action"] == 'edit' && $user->rights->banque->configurer)
|
||||||
{
|
{
|
||||||
|
|
||||||
$account = new Account($db, $_GET["id"]);
|
$account = new Account($db, $_GET["id"]);
|
||||||
$account->fetch($_GET["id"]);
|
$account->fetch($_GET["id"]);
|
||||||
|
|
||||||
print_titre($langs->trans("EditFinancialAccount"));
|
print_titre($langs->trans("EditFinancialAccount"));
|
||||||
print "<br>";
|
print "<br>";
|
||||||
|
|
||||||
if ($message) { print "$message<br><br>\n"; }
|
if ($message) { print "$message<br>\n"; }
|
||||||
|
|
||||||
print '<form action="fiche.php?id='.$account->id.'" method="post">';
|
print '<form action="fiche.php?id='.$account->id.'" method="post">';
|
||||||
print '<input type="hidden" name="action" value="update">';
|
print '<input type="hidden" name="action" value="update">';
|
||||||
print '<input type="hidden" name="id" value="'.$_GET["id"].'">';
|
print '<input type="hidden" name="id" value="'.$_GET["id"].'">'."\n\n";
|
||||||
|
|
||||||
print '<table class="border" width="100%">';
|
print '<table class="border" width="100%">';
|
||||||
|
|
||||||
@ -341,8 +340,9 @@ else
|
|||||||
print '<td colspan="3"><input size="30" type="text" class="flat" name="label" value="'.$account->label.'"></td></tr>';
|
print '<td colspan="3"><input size="30" type="text" class="flat" name="label" value="'.$account->label.'"></td></tr>';
|
||||||
|
|
||||||
print '<tr><td valign="top">'.$langs->trans("AccountType").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("AccountType").'</td>';
|
||||||
print '<td colspan="3">'.$account->type_lib[$account->type].'</td></tr>';
|
print '<td colspan="3">'.$account->type_lib[$account->type];
|
||||||
print '<input type="hidden" name="type" value="'.$account->type.'">';
|
print '<input type="hidden" name="type" value="'.$account->type.'">';
|
||||||
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td valign="top">'.$langs->trans("Status").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("Status").'</td>';
|
||||||
print '<td colspan="3">';
|
print '<td colspan="3">';
|
||||||
@ -355,8 +355,8 @@ else
|
|||||||
if ($account->type == 2) print $langs->trans("No").' ('.$langs->trans("CashAccount").')';
|
if ($account->type == 2) print $langs->trans("No").' ('.$langs->trans("CashAccount").')';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
|
|
||||||
if ($account->type == 0 || $account->type == 1) {
|
if ($account->type == 0 || $account->type == 1)
|
||||||
|
{
|
||||||
print '<tr><td valign="top">'.$langs->trans("Bank").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("Bank").'</td>';
|
||||||
print '<td colspan="3"><input size="30" type="text" class="flat" name="bank" value="'.$account->bank.'"></td></tr>';
|
print '<td colspan="3"><input size="30" type="text" class="flat" name="bank" value="'.$account->bank.'"></td></tr>';
|
||||||
|
|
||||||
@ -378,8 +378,8 @@ else
|
|||||||
print "</textarea></td></tr>";
|
print "</textarea></td></tr>";
|
||||||
|
|
||||||
print '<tr><td valign="top">'.$langs->trans("BankAccountOwner").'</td>';
|
print '<tr><td valign="top">'.$langs->trans("BankAccountOwner").'</td>';
|
||||||
print '<td colspan="3"><input size="30" type="text" class="flat" name="proprio" value="'.$account->proprio.'"></td></tr>';
|
print '<td colspan="3"><input size="30" type="text" class="flat" name="proprio" value="'.$account->proprio.'">';
|
||||||
print "</td></tr>\n";
|
print '</td></tr>';
|
||||||
|
|
||||||
print '<tr><td valign="top">'.$langs->trans("BankAccountOwnerAddress").'</td><td colspan="3">';
|
print '<tr><td valign="top">'.$langs->trans("BankAccountOwnerAddress").'</td><td colspan="3">';
|
||||||
print "<textarea class=\"flat\" name=\"adresse_proprio\" rows=\"2\" cols=\"40\">";
|
print "<textarea class=\"flat\" name=\"adresse_proprio\" rows=\"2\" cols=\"40\">";
|
||||||
@ -390,8 +390,9 @@ else
|
|||||||
print '<tr><td align="center" colspan="4"><input value="'.$langs->trans("Modify").'" type="submit" class="button">';
|
print '<tr><td align="center" colspan="4"><input value="'.$langs->trans("Modify").'" type="submit" class="button">';
|
||||||
print ' <input name="cancel" value="'.$langs->trans("Cancel").'" type="submit" class="button">';
|
print ' <input name="cancel" value="'.$langs->trans("Cancel").'" type="submit" class="button">';
|
||||||
print '</td></tr>';
|
print '</td></tr>';
|
||||||
print '</form>';
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
print '</form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user