Fix: Corrige bug affiche selecteur date si en mode non calendrier

This commit is contained in:
Laurent Destailleur 2006-10-30 23:37:38 +00:00
parent 83908de2e5
commit 300ff9f9e7
2 changed files with 20 additions and 7 deletions

View File

@ -621,6 +621,11 @@ if ($_GET["id"])
$html->select_array("contactid", $act->societe->contact_array(), $act->contact->id, 1);
print '</td></tr>';
// Priorite
print '<tr><td nowrap>'.$langs->trans("Priority").'</td><td colspan="3">';
print $langs->trans("FeatureNotYetSupported");
print '</td></tr>';
// Affecte a
print '<tr><td nowrap>'.$langs->trans("ActionAffectedTo").'</td><td colspan="3">';
print $langs->trans("FeatureNotYetSupported");
@ -704,6 +709,11 @@ if ($_GET["id"])
print '</td></tr>';
// Priorite
print '<tr><td nowrap>'.$langs->trans("Priority").'</td><td colspan="3">';
print $langs->trans("FeatureNotYetSupported");
print '</td></tr>';
// Affecte a
print '<tr><td nowrap>'.$langs->trans("ActionAffectedTo").'</td><td colspan="3">';
print $langs->trans("FeatureNotYetSupported");

View File

@ -2093,21 +2093,24 @@ class Form
*/
if (! $conf->use_javascript || ! $conf->use_popup_calendar)
{
// Jour
print '<select class="flat" name="'.$prefix.'day">';
if ($empty || $set_time == -1)
/*
if ($set_time == -1)
{
$sday = 0;
$smonth = 0;
$syear = 0;
$shour = 0;
$smin = 0;
}
*/
// Jour
print '<select class="flat" name="'.$prefix.'day">';
if ($empty || $set_time == -1)
{
print '<option value="0" selected="true">&nbsp;</option>';
}
for ($day = 1 ; $day <= 31; $day++)
{
if ($day == $sday)
@ -2141,7 +2144,7 @@ class Form
// Année
if ($empty || $set_time == -1)
{
print '<input class="flat" type="text" size="3" maxlength="4" name="'.$prefix.'year">';
print '<input class="flat" type="text" size="3" maxlength="4" name="'.$prefix.'year" value="'.$syear.'">';
}
else
{