Fix: bug #15945 : mise en page fiche action

This commit is contained in:
Laurent Destailleur 2006-03-23 18:26:17 +00:00
parent 39854b8918
commit 60a95d3e26

View File

@ -349,23 +349,20 @@ if ($_GET["action"] == 'create')
if ($_GET["afaire"] == 1) if ($_GET["afaire"] == 1)
{ {
$html->select_date('','ac','','','',"action"); $html->select_date('','ac','','','',"action");
print '<tr><td>'.$langs->trans("Hour").'</td><td>'; print '</tr><tr><td>'.$langs->trans("Hour").'</td><td>';
print_heure_select("heure",8,20); print_heure_select("heure",8,20);
print '</td></tr>';
} }
else if ($_GET["afaire"] == 2) else if ($_GET["afaire"] == 2)
{ {
$html->select_date('','ac','','','',"action"); $html->select_date('','ac','','','',"action");
print '<tr><td>'.$langs->trans("Hour").'</td><td>'; print '</tr><tr><td>'.$langs->trans("Hour").'</td><td>';
print_heure_select("heure",8,20); print_heure_select("heure",8,20);
print '</td></tr>';
} }
else else
{ {
$html->select_date('','ac','','','',"action"); $html->select_date('','ac','','','',"action");
print '<tr><td>'.$langs->trans("Hour").'</td><td>'; print '</tr><tr><td>'.$langs->trans("Hour").'</td><td>';
print_heure_select("heure",8,20); print_heure_select("heure",8,20);
print '</td></tr>';
} }
print '</td></tr>'; print '</td></tr>';
@ -375,7 +372,7 @@ if ($_GET["action"] == 'create')
print '<tr><td valign="top">'.$langs->trans("Note").'</td><td>'; print '<tr><td valign="top">'.$langs->trans("Note").'</td><td>';
print '<textarea cols="60" rows="6" name="note"></textarea></td></tr>'; print '<textarea cols="60" rows="6" name="note"></textarea></td></tr>';
print '<tr><td align="center" colspan="2"><input type="submit" class="button" value="'.$langs->trans("Add").'"</td></tr>'; print '<tr><td align="center" colspan="2"><input type="submit" class="button" value="'.$langs->trans("Add").'"></td></tr>';
print '</table>'; print '</table>';
@ -479,7 +476,7 @@ if ($_GET["id"])
else else
{ {
// Affichage fiche action en mode visu // Affichage fiche action en mode visu
print '<table class="border" width="100%"'; print '<table class="border" width="100%">';
print '<tr><td width="30%">'.$langs->trans("Ref").'</td><td colspan="3">'.$act->id.'</td></tr>'; print '<tr><td width="30%">'.$langs->trans("Ref").'</td><td colspan="3">'.$act->id.'</td></tr>';
print '<tr><td>'.$langs->trans("Type").'</td><td colspan="3">'.$act->type.'</td></tr>'; print '<tr><td>'.$langs->trans("Type").'</td><td colspan="3">'.$act->type.'</td></tr>';
print '<tr><td>'.$langs->trans("Title").'</td><td colspan="3">'.$act->label.'</td></tr>'; print '<tr><td>'.$langs->trans("Title").'</td><td colspan="3">'.$act->label.'</td></tr>';