Fix: HTML incorrect
This commit is contained in:
parent
aca42cb11c
commit
ddb7e52d26
@ -357,6 +357,7 @@ if ($_GET["id"])
|
|||||||
//print $sql;
|
//print $sql;
|
||||||
|
|
||||||
$fieldlist=split(',',$tabfield[$_GET["id"]]);
|
$fieldlist=split(',',$tabfield[$_GET["id"]]);
|
||||||
|
print '<form action="dict.php" method="post">';
|
||||||
print '<table class="noborder" width="100%">';
|
print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
// Ligne d'ajout
|
// Ligne d'ajout
|
||||||
@ -366,10 +367,7 @@ if ($_GET["id"])
|
|||||||
$var=false;
|
$var=false;
|
||||||
|
|
||||||
$fieldlist=split(',',$tabfield[$_GET["id"]]);
|
$fieldlist=split(',',$tabfield[$_GET["id"]]);
|
||||||
print '<table class="noborder" width="100%">';
|
// print '<table class="noborder" width="100%">';
|
||||||
|
|
||||||
print '<form action="dict.php" method="post">';
|
|
||||||
print '<input type="hidden" name="id" value="'.$_GET["id"].'">';
|
|
||||||
|
|
||||||
// Ligne de titre d'ajout
|
// Ligne de titre d'ajout
|
||||||
print '<tr class="liste_titre">';
|
print '<tr class="liste_titre">';
|
||||||
@ -396,11 +394,11 @@ if ($_GET["id"])
|
|||||||
if ($fieldlist[$field]=='libelle') $alabelisused=1;
|
if ($fieldlist[$field]=='libelle') $alabelisused=1;
|
||||||
}
|
}
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
print '<td> </td>';
|
print '<td><input type="hidden" name="id" value="'.$_GET["id"].'"></td>';
|
||||||
print '</td>';
|
print '</tr>';
|
||||||
|
|
||||||
// Ligne d'ajout
|
// Ligne d'ajout
|
||||||
print "<tr $bc[$var] class=\"value\">";
|
print "<tr $bc[$var]>";
|
||||||
$html = new Form($db);
|
$html = new Form($db);
|
||||||
foreach ($fieldlist as $field => $value)
|
foreach ($fieldlist as $field => $value)
|
||||||
{
|
{
|
||||||
@ -483,8 +481,6 @@ if ($_GET["id"])
|
|||||||
print '<tr><td colspan="'.(count($fieldlist)+2).'">* '.$langs->trans("LabelUsedByDefault").'.</td></tr>';
|
print '<tr><td colspan="'.(count($fieldlist)+2).'">* '.$langs->trans("LabelUsedByDefault").'.</td></tr>';
|
||||||
}
|
}
|
||||||
print '<tr><td colspan="'.(count($fieldlist)+2).'"> </td></tr>';
|
print '<tr><td colspan="'.(count($fieldlist)+2).'"> </td></tr>';
|
||||||
|
|
||||||
print '</form>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Affiche table des valeurs
|
// Affiche table des valeurs
|
||||||
@ -525,7 +521,7 @@ if ($_GET["id"])
|
|||||||
$obj = $db->fetch_object();
|
$obj = $db->fetch_object();
|
||||||
$var=!$var;
|
$var=!$var;
|
||||||
|
|
||||||
print "<tr $bc[$var] class=\"value\">";
|
print "<tr $bc[$var]>";
|
||||||
foreach ($fieldlist as $field => $value) {
|
foreach ($fieldlist as $field => $value) {
|
||||||
$valuetoshow=$obj->$fieldlist[$field];
|
$valuetoshow=$obj->$fieldlist[$field];
|
||||||
|
|
||||||
@ -555,7 +551,7 @@ if ($_GET["id"])
|
|||||||
}
|
}
|
||||||
print "</td>";
|
print "</td>";
|
||||||
if ($iserasable) {
|
if ($iserasable) {
|
||||||
print '<td><a href="dict.php?sortfield='.$sortfield.'&sortorder='.$sortorder.'&rowid='.($obj->rowid?$obj->rowid:$obj->code).'&code='.$obj->code.'&id='.$_GET["id"].'&action=delete"'.img_delete().'</a></td>';
|
print '<td><a href="dict.php?sortfield='.$sortfield.'&sortorder='.$sortorder.'&rowid='.($obj->rowid?$obj->rowid:$obj->code).'&code='.$obj->code.'&id='.$_GET["id"].'&action=delete">'.img_delete().'</a></td>';
|
||||||
} else {
|
} else {
|
||||||
print '<td> </td>';
|
print '<td> </td>';
|
||||||
}
|
}
|
||||||
@ -569,6 +565,8 @@ if ($_GET["id"])
|
|||||||
}
|
}
|
||||||
|
|
||||||
print '</table>';
|
print '</table>';
|
||||||
|
|
||||||
|
print '</form>';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user