modifs pour date en popup

This commit is contained in:
Andre Cianfarani 2006-03-01 16:59:18 +00:00
parent b0542b730b
commit eb912a3774
23 changed files with 103 additions and 105 deletions

View File

@ -193,7 +193,7 @@ if ($_GET["action"] == 'create')
$contact->fetch($_GET["contactid"]);
}
print '<form action="fiche.php" method="post">';
print '<form name="action" action="fiche.php" method="post">';
print '<input type="hidden" name="from" value="'.$_SERVER["HTTP_REFERER"].'">';
print '<input type="hidden" name="action" value="add_action">';
@ -237,7 +237,7 @@ if ($_GET["action"] == 'create')
}
print '<tr><td>'.$langs->trans("Date").'</td><td>';
$html->select_date('','ac');
$html->select_date('','ac','','','',"action");
print '</td></tr>';
print '<tr><td>'.$langs->trans("Hour").'</td><td>';
print_heure_select("heure",8,20);
@ -348,21 +348,21 @@ if ($_GET["action"] == 'create')
print '<tr><td>'.$langs->trans("Date").'</td><td>';
if ($_GET["afaire"] == 1)
{
$html->select_date('','ac');
$html->select_date('','ac','','','',"action");
print '<tr><td>'.$langs->trans("Hour").'</td><td>';
print_heure_select("heure",8,20);
print '</td></tr>';
}
else if ($_GET["afaire"] == 2)
{
$html->select_date('','ac');
$html->select_date('','ac','','','',"action");
print '<tr><td>'.$langs->trans("Hour").'</td><td>';
print_heure_select("heure",8,20);
print '</td></tr>';
}
else
{
$html->select_date('','ac');
$html->select_date('','ac','','','',"action");
print '<tr><td>'.$langs->trans("Hour").'</td><td>';
print_heure_select("heure",8,20);
print '</td></tr>';
@ -578,5 +578,3 @@ function add_row_for_webcal_link()
?>

View File

@ -237,7 +237,7 @@ if ($result)
$i++;
print "<form method=\"post\" action=\"ligne.php?rowid=$objp->rowid\">";
print "<form name='update' method=\"post\" action=\"ligne.php?rowid=$objp->rowid\">";
print "<input type=\"hidden\" name=\"action\" value=\"update\">";
print "<input type=\"hidden\" name=\"orig_account\" value=\"".$orig_account."\">";
@ -280,7 +280,7 @@ if ($result)
if (! $objp->rappro)
{
print '<td colspan="3">';
$html->select_date($objp->do,'do');
$html->select_date($objp->do,'do','','','','update');
print '</td><td align="center"><input type="submit" class="button" value="'.$langs->trans("Update").'"></td>';
}
else
@ -295,7 +295,7 @@ if ($result)
if (! $objp->rappro)
{
print '<td colspan="3">';
$html->select_date($objp->dv,'dv');
$html->select_date($objp->dv,'dv','','','','update');
print ' &nbsp; ';
print '<a href="ligne.php?action=dvprev&amp;account='.$_GET["account"].'&amp;rowid='.$objp->rowid.'">';
print img_edit_remove() . "</a> ";

View File

@ -92,7 +92,7 @@ if ($mesg) {
print "En saisissant un virement d'un de vos comptes bancaire vers un autre, Dolibarr crée deux écritures comptables (une de débit dans un compte et l'autre de crédit, du même montant, dans l'autre compte. Le même libellé de transaction, et la même date, sont utilisés pour les 2 écritures)<br><br>";
print "<form method=\"post\" action=\"virement.php\">";
print "<form name='add' method=\"post\" action=\"virement.php\">";
print '<input type="hidden" name="action" value="add">';
@ -144,7 +144,7 @@ if ($resql)
print "</select></td>\n";
print "<td>";
$html->select_date();
$html->select_date('','','','','','add');
print "</td>\n";
print '<td><input name="label" class="flat" type="text" size="40"></td>';
print '<td><input name="amount" class="flat" type="text" size="8"></td>';

View File

@ -106,7 +106,7 @@ $html = new Form($db);
*/
if ($_GET["action"] == 'create')
{
print "<form action=\"fiche.php\" method=\"post\">\n";
print "<form name='add' action=\"fiche.php\" method=\"post\">\n";
print '<input type="hidden" name="action" value="add">';
print_fiche_titre($langs->trans("NewTrip"));
@ -121,7 +121,7 @@ if ($_GET["action"] == 'create')
print "<tr>";
print '<td>'.$langs->trans("Date").'</td><td>';
print $html->select_date();
print $html->select_date('','','','','','add');
print '</td></tr>';
print '<tr><td>'.$langs->trans("Kilometers").'</td><td><input name="km" size="10" value=""></td></tr>';
@ -150,7 +150,7 @@ else
dolibarr_fiche_head($head, $hselected, $langs->trans("Ref").' '.$deplacement->id);
print "<form action=\"fiche.php\" method=\"post\">\n";
print "<form name='update' action=\"fiche.php\" method=\"post\">\n";
print '<input type="hidden" name="action" value="update">';
print '<input type="hidden" name="id" value="'.$id.'">';
@ -167,7 +167,7 @@ else
print '</td></tr>';
print '<tr><td>'.$langs->trans("Date").'</td><td>';
print $html->select_date($deplacement->date);
print $html->select_date($deplacement->date,'','','','','update');
print '</td></tr>';
print '<tr><td>'.$langs->trans("Kilometers").'</td><td><input name="km" class="flat" size="10" value="'.$deplacement->km.'"></td></tr>';

View File

@ -181,13 +181,13 @@ if ($_GET["action"] == 'create')
{
print_titre($langs->trans("AddDonation"));
print '<form action="fiche.php" method="post">';
print '<form name="add" action="fiche.php" method="post">';
print '<table class="border" width="100%">';
print '<input type="hidden" name="action" value="add">';
print '<tr><td>'.$langs->trans("Date").'</td><td>';
$html->select_date();
$html->select_date('','','','','',"add");
print '</td>';
$nbrows=11;
@ -252,14 +252,14 @@ if ($_GET["rowid"] && $_GET["action"] == 'edit')
dolibarr_fiche_head($head, $hselected, $langs->trans("Ref").": ".$_GET["rowid"]);
print '<form action="fiche.php" method="post">';
print '<form name="update" action="fiche.php" method="post">';
print '<table class="border" width="100%">';
print '<input type="hidden" name="action" value="update">';
print '<input type="hidden" name="rowid" value="'.$don->id.'">';
print "<tr>".'<td>'.$langs->trans("Date").'</td><td>';
$html->select_date($don->date);
$html->select_date($don->date,'','','','',"update");
print '</td>';
$nbrows=12;

View File

@ -655,7 +655,7 @@ if ($_GET['action'] == 'create')
}
print '<form action="facture.php" method="post">';
print '<form name="add" action="facture.php" method="post">';
print '<input type="hidden" name="action" value="add">';
print '<input type="hidden" name="socid" value="'.$soc->id.'">' ."\n";
@ -672,7 +672,7 @@ if ($_GET['action'] == 'create')
print '</tr>';
print '<tr><td>'.$langs->trans('Date').'</td><td>';
$html->select_date();
$html->select_date('','','','','',"add");
print '</td></tr>';
// Conditions de réglement
@ -815,9 +815,9 @@ if ($_GET['action'] == 'create')
{
print '<td nowrap="nowrap">';
print $langs->trans('From').' ';
print $html->select_date('','date_start'.$i,0,0,1);
print $html->select_date('','date_start'.$i,0,0,1,"add");
print '<br>'.$langs->trans('to').' ';
print $html->select_date('','date_end'.$i,0,0,1);
print $html->select_date('','date_end'.$i,0,0,1,"add");
print '</td>';
}
print "</tr>\n";
@ -1520,7 +1520,7 @@ else
// Ligne en mode update
if ($_GET['action'] == 'editline' && $user->rights->facture->creer && $_GET['rowid'] == $objp->rowid)
{
print '<form action="facture.php" method="post">';
print '<form name="updateligne" action="facture.php" method="post">';
print '<input type="hidden" name="action" value="updateligne">';
print '<input type="hidden" name="facid" value="'.$fac->id.'">';
print '<input type="hidden" name="rowid" value="'.$_GET['rowid'].'">';
@ -1552,9 +1552,9 @@ else
{
print '<tr '.$bc[$var].'>';
print '<td colspan="9">'.$langs->trans('ServiceLimitedDuration').' '.$langs->trans('From').' ';
print $html->select_date($objp->date_start,'date_start',0,0,$objp->date_start?0:1);
print $html->select_date($objp->date_start,'date_start',0,0,$objp->date_start?0:1,"updateligne");
print ' '.$langs->trans('to').' ';
print $html->select_date($objp->date_end,'date_end',0,0,$objp->date_end?0:1);
print $html->select_date($objp->date_end,'date_end',0,0,$objp->date_end?0:1,"updateligne");
print '</td>';
print '</tr>';
}
@ -1590,7 +1590,7 @@ else
print "</tr>\n";
// Ajout produit produits/services personalisés
print '<form action="'.$_SERVER['PHP_SELF'].'" method="post">';
print '<form name="addligne" action="'.$_SERVER['PHP_SELF'].'" method="post">';
print '<input type="hidden" name="facid" value="'.$fac->id.'">';
print '<input type="hidden" name="action" value="addligne">';
@ -1613,9 +1613,9 @@ else
{
print '<tr '.$bc[$var].'>';
print '<td colspan="9">'.$langs->trans('ServiceLimitedDuration').' '.$langs->trans('From').' ';
print $html->select_date('','date_start',0,0,1);
print $html->select_date('','date_start',0,0,1,"addligne");
print ' '.$langs->trans('to').' ';
print $html->select_date('','date_end',0,0,1);
print $html->select_date('','date_end',0,0,1,"addligne");
print '</td>';
print '</tr>';
}
@ -1624,7 +1624,7 @@ else
// Ajout de produits/services prédéfinis
if ($conf->produit->enabled)
{
print '<form action="'.$_SERVER['PHP_SELF'].'" method="post">';
print '<form name="addligne_predef" action="'.$_SERVER['PHP_SELF'].'" method="post">';
print '<input type="hidden" name="facid" value="'.$fac->id.'">';
print '<input type="hidden" name="action" value="addligne">';
@ -1647,9 +1647,9 @@ else
{
print '<tr '.$bc[$var].'>';
print '<td colspan="5">'.$langs->trans('ServiceLimitedDuration').' '.$langs->trans('From').' ';
print $html->select_date('','date_start',0,0,1);
print $html->select_date('','date_start',0,0,1,"addligne_predef");
print ' '.$langs->trans('to').' ';
print $html->select_date('','date_end',0,0,1);
print $html->select_date('','date_end',0,0,1,"addligne_predef");
print '</td>';
print '</tr>';
}

View File

@ -220,7 +220,7 @@ if ($_GET['action'] == 'create' || $_POST['action'] == 'add_paiement')
print_titre($langs->trans('DoPayment'));
print '<form action="paiement.php" method="post">';
print '<form name="add_paiement" action="paiement.php" method="post">';
print '<input type="hidden" name="action" value="add_paiement">';
print '<input type="hidden" name="facid" value="'.$facid.'">';
print '<input type="hidden" name="facnumber" value="'.$obj->facnumber.'">';
@ -236,7 +236,7 @@ if ($_GET['action'] == 'create' || $_POST['action'] == 'add_paiement')
$sel_date=mktime(12, 0 , 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']);
else
$sel_date='';
$html->select_date($sel_date);
$html->select_date($sel_date,'','','','',"add_paiement");
print '</td>';
print '<td>'.$langs->trans('Comments').'</td></tr>';

View File

@ -165,7 +165,7 @@ if ($_GET["action"] == 'create')
print_titre("Emettre un paiement d'une charge");
print "<br>\n";
print '<form action="paiement_charge.php" method="post">';
print '<form name="add_paiement" action="paiement_charge.php" method="post">';
print "<input type=\"hidden\" name=\"id\" value=\"$charge->id\">";
print '<input type="hidden" name="action" value="add_paiement">';
print '<table cellspacing="0" class="border" width="100%" cellpadding="2">';
@ -194,7 +194,7 @@ if ($_GET["action"] == 'create')
print "<input type=\"hidden\" name=\"chid\" value=\"$chid\">";
print '<tr><td>'.$langs->trans("Date").' :</td><td>';
$html->select_date();
$html->select_date('','','','','',"add_paiement");
print "</td>";
print '<td>'.$langs->trans("Comments").'</td></tr>';

View File

@ -190,7 +190,7 @@ if ($_GET["id"])
print '<input type="hidden" name="action" value="infotrans">';
print '<table class="border" width="100%">';
print '<tr><td width="20%">Date Transmission</td><td>';
print $html->select_date();
print $html->select_date('','','','','',"userfile");
print '</td></tr>';
print '<tr><td width="20%">Méthode Transmission</td><td>';
print $html->select_array("methode",$bon->methodes_trans);
@ -206,11 +206,11 @@ if ($_GET["id"])
if($bon->date_trans <> 0 && $bon->date_credit == 0)
{
print '<form method="post" action="fiche.php?id='.$bon->id.'">';
print '<form name="infocredit" method="post" action="fiche.php?id='.$bon->id.'">';
print '<input type="hidden" name="action" value="infocredit">';
print '<table class="border" width="100%">';
print '<tr><td width="20%">Crédité le</td><td>';
print $html->select_date();
print $html->select_date('','','','','',"infocredit");
print '</td></tr>';
print '<tr><td colspan="2" align="center">';
print '<input type="submit" class="button" value="'.$langs->trans("Send").'">';

View File

@ -135,7 +135,7 @@ if ($_GET["id"])
$rej = new RejetPrelevement($db, $user);
print '<form method="post" action="ligne.php?id='.$_GET["id"].'">';
print '<form name="confirm_rejet" method="post" action="ligne.php?id='.$_GET["id"].'">';
print '<input type="hidden" name="action" value="confirm_rejet">';
print '<table class="border" width="100%">';
print '<tr><td colspan="3">Rejet de prélèvement</td></tr>';
@ -149,7 +149,7 @@ if ($_GET["id"])
print '<tr><td class="valid">Date du rejet</td>';
print '<td colspan="2" class="valid">';
print $html->select_date();
print $html->select_date('','','','','',"confirm_rejet");
print '</td></tr>';
print '<tr><td class="valid">Motif du rejet</td>';
print '<td class="valid">';

View File

@ -75,7 +75,7 @@ $html = new Form($db);
// Formulaire saisie tva
if ($_GET["action"] == 'create')
{
print "<form action=\"fiche.php\" method=\"post\">\n";
print "<form name='add' action=\"fiche.php\" method=\"post\">\n";
print '<input type="hidden" name="action" value="add">';
print_fiche_titre($langs->trans("NewVATPayment"));
@ -86,11 +86,11 @@ if ($_GET["action"] == 'create')
print "<tr>";
print '<td>'.$langs->trans("DatePayment").'</td><td>';
print $html->select_date("","datev");
print $html->select_date("","datev",'','','','add');
print '</td></tr>';
print '<tr><td>'.$langs->trans("DateValue").'</td><td>';
print $html->select_date("","datep");
print $html->select_date("","datep",'','','','add');
print '</td></tr>';
print '<tr><td>'.$langs->trans("Type").'</td><td>';

View File

@ -100,7 +100,7 @@ if ($_GET["action"] == 'edit')
print '<table class="border" width="100%">';
print '<form method="post" action="perso.php?id='.$_GET["id"].'">';
print '<form name="perso" method="post" action="perso.php?id='.$_GET["id"].'">';
print '<input type="hidden" name="action" value="update">';
print '<input type="hidden" name="contactid" value="'.$contact->id.'">';
@ -130,9 +130,9 @@ if ($_GET["action"] == 'edit')
$html=new Form($db);
if ($contact->birthday && $contact->birthday > 0)
{
print $html->select_date($contact->birthday,'birthday',0,0,0);
print $html->select_date($contact->birthday,'birthday',0,0,0,"perso");
} else {
print $html->select_date(0,'birthday',0,0,1);
print $html->select_date(0,'birthday',0,0,1,"perso");
}
print '</td>';

View File

@ -270,7 +270,7 @@ if ($_GET["action"] == 'create')
$soc = new Societe($db);
$soc->fetch($obj->idp);
print '<form action="fiche.php" method="post">';
print '<form name="contrat" action="fiche.php" method="post">';
print '<input type="hidden" name="action" value="add">';
print '<input type="hidden" name="soc_id" value="'.$soc->id.'">'."\n";
@ -337,7 +337,7 @@ if ($_GET["action"] == 'create')
print '</select></td></tr>';
print '<tr><td>'.$langs->trans("Date").'</td><td>';
$html->select_date();
$html->select_date('','','','','',"contrat");
print "</td></tr>";
if ($conf->projet->enabled)
@ -716,7 +716,7 @@ else
// Ligne en mode update
else
{
print "<form action=\"fiche.php?id=$id\" method=\"post\">";
print "<form name='update' action=\"fiche.php?id=$id\" method=\"post\">";
print '<input type="hidden" name="action" value="updateligne">';
print '<input type="hidden" name="elrowid" value="'.$_GET["rowid"].'">';
// Ligne carac
@ -747,19 +747,19 @@ else
print "<tr $bc[$var]>";
print '<td colspan="5">';
print $langs->trans("DateStartPlanned").' ';
$html->select_date($objp->date_debut,"date_start_update",0,0,($objp->date_debut>0?0:1));
$html->select_date($objp->date_debut,"date_start_update",0,0,($objp->date_debut>0?0:1),"update");
print ' &nbsp; '.$langs->trans("DateEndPlanned").' ';
$html->select_date($objp->date_fin,"date_end_update",0,0,($objp->date_fin>0?0:1));
$html->select_date($objp->date_fin,"date_end_update",0,0,($objp->date_fin>0?0:1),"update");
if ($objp->statut >= 4)
{
print '<br>';
print $langs->trans("DateStartReal").' ';
$html->select_date($objp->date_debut_reelle,"date_start_real_update",0,0,($objp->date_debut_reelle>0?0:1));
$html->select_date($objp->date_debut_reelle,"date_start_real_update",0,0,($objp->date_debut_reelle>0?0:1),"update");
print ' &nbsp; ';
if ($objp->statut == 5)
{
print $langs->trans("DateEndReal").' ';
$html->select_date($objp->date_fin_reelle,"date_end_real_update",0,0,($objp->date_fin_reelle>0?0:1));
$html->select_date($objp->date_fin_reelle,"date_end_real_update",0,0,($objp->date_fin_reelle>0?0:1),"update");
}
}
print '</td>';
@ -795,7 +795,7 @@ else
$var=false;
// Service sur produit prédéfini
print '<form action="fiche.php?id='.$id.'" method="post">';
print '<form name="addligne" action="fiche.php?id='.$id.'" method="post">';
print '<input type="hidden" name="action" value="addligne">';
print '<input type="hidden" name="mode" value="predefined">';
print '<input type="hidden" name="id" value="'.$id.'">';
@ -819,9 +819,9 @@ else
print "<tr $bc[$var]>";
print '<td colspan="8">';
print $langs->trans("DateStartPlanned").' ';
$html->select_date('',"date_start",0,0,1);
$html->select_date('',"date_start",0,0,1,"addligne");
print ' &nbsp; '.$langs->trans("DateEndPlanned").' ';
$html->select_date('',"date_end",0,0,1);
$html->select_date('',"date_end",0,0,1,"addligne");
print '</td>';
print '</tr>';
@ -830,7 +830,7 @@ else
$var=!$var;
// Service libre
print '<form action="fiche.php?id='.$id.'" method="post">';
print '<form name="addligne_sl" action="fiche.php?id='.$id.'" method="post">';
print '<input type="hidden" name="action" value="addligne">';
print '<input type="hidden" name="mode" value="libre">';
print '<input type="hidden" name="id" value="'.$id.'">';
@ -851,9 +851,9 @@ else
print "<tr $bc[$var]>";
print '<td colspan="8">';
print $langs->trans("DateStartPlanned").' ';
$html->select_date('',"date_start",0,0,1);
$html->select_date('',"date_start",0,0,1,"addligne_sl");
print ' &nbsp; '.$langs->trans("DateEndPlanned").' ';
$html->select_date('',"date_end",0,0,1);
$html->select_date('',"date_end",0,0,1,"addligne_sl");
print '</td>';
print '</tr>';

View File

@ -374,7 +374,7 @@ if ($id > 0)
*/
$form = new Form($db);
print '<form action="ligne.php?id='.$contrat->id.'&amp;ligne='.$_GET["ligne"].'&amp;action=active" method="post">';
print '<form name="active" action="ligne.php?id='.$contrat->id.'&amp;ligne='.$_GET["ligne"].'&amp;action=active" method="post">';
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre"><td colspan="5">'.$langs->trans("ActivateService").'</td></tr>';
@ -395,11 +395,11 @@ if ($id > 0)
}
print '<tr '.$bc[$var].'><td>'.$langs->trans("DateServiceActivate").'</td><td>';
print $form->select_date($dateactstart);
print $form->select_date($dateactstart,'','','','',"active");
print '</td>';
print '<td>'.$langs->trans("DateEndPlanned").'</td><td>';
print $form->select_date($dateactend,"end");
print $form->select_date($dateactend,"end",'','','',"active");
print '</td>';
print '<td align="center" rowspan="2" valign="middle"><input type="submit" class="button" value="'.$langs->trans("Activate").'"></td>';
@ -420,7 +420,7 @@ if ($id > 0)
*/
$form = new Form($db);
print '<form action="ligne.php?id='.$contrat->id.'&amp;ligne='.$_GET["ligne"].'&amp;action=close" method="post">';
print '<form name="close" action="ligne.php?id='.$contrat->id.'&amp;ligne='.$_GET["ligne"].'&amp;action=close" method="post">';
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre"><td colspan="3">'.$langs->trans("CloseService").'</td></tr>';
@ -441,7 +441,7 @@ if ($id > 0)
}
print '<tr '.$bc[$var].'><td>'.$langs->trans("DateEndReal").'</td><td>';
print $form->select_date($dateactend,"end");
print $form->select_date($dateactend,"end",'','','',"close");
print '</td>';
print '<td align="right"><input type="submit" class="button" value="'.$langs->trans("Close").'"></td></tr>';

View File

@ -155,7 +155,7 @@ else
$html = new Form($db);
print '<form action="compteur.php?id='.$compteur->id.'" method="post">';
print '<form name="addvalue" action="compteur.php?id='.$compteur->id.'" method="post">';
print '<input type="hidden" name="action" value="addvalue">';
print '<table class="border" width="100%">';
@ -163,7 +163,7 @@ else
print "<tr $bc[$var]>";
print '<td>Date</td><td>';
print $html->select_date();
print $html->select_date('','','','','',"addvalue");
print '</td><td>Valeur relevée</td>';
print '<td align="center"><input type="text" size="11" maxlength="10" name="releve"></td>';

View File

@ -144,7 +144,7 @@ if ($_GET["action"] == 'create')
$fix = new Fichinter($db);
$numpr = $fix->get_new_num($objsoc->prefix_comm);
print "<form action=\"fiche.php\" method=\"post\">";
print "<form name='fichinter' action=\"fiche.php\" method=\"post\">";
$smonth = 1;
$syear = date("Y", time());
@ -154,7 +154,7 @@ if ($_GET["action"] == 'create')
print "<tr><td>".$langs->trans("Company")."</td><td><b>".$objsoc->nom."</td></tr>";
print "<tr><td>".$langs->trans("Date")."</td><td>";
$sel->select_date(time(),"p");
$sel->select_date(time(),"p",'','','','fichinter');
print "</td></tr>";
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
@ -230,7 +230,7 @@ if ($_GET["action"] == 'edit')
/*
* Initialisation de la liste des projets
*/
print "<form action=\"fiche.php\" method=\"post\">";
print "<form name='update' action=\"fiche.php\" method=\"post\">";
print "<input type=\"hidden\" name=\"action\" value=\"update\">";
print "<input type=\"hidden\" name=\"id\" value=\"".$_GET["id"]."\">";
@ -240,7 +240,7 @@ if ($_GET["action"] == 'edit')
print '<tr><td>'.$langs->trans("Ref").'</td><td>'.$fichinter->ref.'</td></tr>';
print "<tr><td>".$langs->trans("Date")."</td><td>";
$sel->select_date($fichinter->date);
$sel->select_date($fichinter->date,'','','','','update');
print "</td></tr>";
print '<tr><td>'.$langs->trans("Duration")." (".$langs->trans("days").')</td><td><input name="duree" value="'.$fichinter->duree.'"></td></tr>';

View File

@ -642,11 +642,11 @@ if ($_GET["id"] > 0)
$form = new Form($db);
print '<br>';
print '<form action="fiche.php?id='.$commande->id.'&amp;action=commande" method="post">';
print '<form name="commande" action="fiche.php?id='.$commande->id.'&amp;action=commande" method="post">';
print '<table class="noborder">';
print '<tr class="liste_titre"><td colspan="2">Commander</td></tr>';
print '<tr><td>Date commande</td><td>';
print $form->select_date();
print $form->select_date('','','','','',"commande");
print '</td></tr>';
$commande->get_methodes_commande();
@ -678,7 +678,7 @@ if ($_GET["id"] > 0)
print '<table class="noborder">';
print '<tr class="liste_titre"><td colspan="2">Réceptionner</td></tr>';
print '<tr><td>Date de livraison</td><td>';
print $form->select_date();
print $form->select_date('','','','','',"commande");
print "</td></tr>\n";
print "<tr><td>Livraison</td><td>\n";

View File

@ -232,7 +232,7 @@ if ($_GET['action'] == 'create' or $_GET['action'] == 'copy')
$fac_ori->fetch($_GET['facid']);
}
print '<form action="fiche.php" method="post">';
print '<form name="add" action="fiche.php" method="post">';
print '<input type="hidden" name="action" value="add">';
print '<table class="border" width="100%">';
print '<tr><td>'.$langs->trans('Company').'</td>';
@ -254,11 +254,11 @@ if ($_GET['action'] == 'create' or $_GET['action'] == 'copy')
print '<tr><td>'.$langs->trans('Label').'</td><td><input size="30" name="libelle" type="text"></td></tr>';
}
print '<tr><td>'.$langs->trans('Date').'</td><td>';
$html->select_date();
$html->select_date('','','','','',"add");
print '</td></tr>';
print '<tr><td>'.$langs->trans('DateEcheance').'</td><td>';
$html->select_date('','ech');
$html->select_date('','ech','','','',"add");
print '</td></tr>';
print '</table><br>';
@ -327,7 +327,7 @@ else
print_titre($langs->trans('Bill').': '.$fac->ref);
print '<form action="fiche.php?facid='.$fac->id.'" method="post">';
print '<form name="update" action="fiche.php?facid='.$fac->id.'" method="post">';
print '<input type="hidden" name="action" value="update">';
print '<table class="border" width="100%">';
@ -351,11 +351,11 @@ else
print '<td>'.price($fac->total_ht).' / '.price($fac->total_ttc).'</td></tr>';
print '<tr><td>'.$langs->trans('DateBill').'</td><td>';
$html->select_date($fac->datep);
$html->select_date($fac->datep,'','','','',"update");
print '</td></tr>';
print '<tr><td>'.$langs->trans('DateEcheance').'</td><td>';
$html->select_date($fac->date_echeance,'ech');
$html->select_date($fac->date_echeance,'ech','','','',"update");
print '</td></tr>';
$authorfullname='&nbsp;';

View File

@ -212,7 +212,7 @@ if ($action == 'create' || $action == 'add_paiement')
$total = $obj->total;
print_titre($langs->trans('DoPayment'));
print '<form action="paiement.php" method="post">';
print '<form name="addpaiement action="paiement.php" method="post">';
print '<input type="hidden" name="action" value="add_paiement">';
print '<input type="hidden" name="facid" value="'.$facid.'">';
print '<input type="hidden" name="facnumber" value="'.$obj->facnumber.'">';
@ -228,7 +228,7 @@ if ($action == 'create' || $action == 'add_paiement')
$sel_date=mktime(12, 0 , 0, $_POST['remonth'], $_POST['reday'], $_POST['reyear']);
else
$sel_date='';
$html->select_date($sel_date);
$html->select_date($sel_date,'','','','',"addpaiement");
print '</td>';
print '<td>'.$langs->trans('Comments').'</td></tr>';
print '<tr><td>'.$langs->trans('PaymentMode').'</td><td>';

View File

@ -61,7 +61,7 @@ if ($action == 'updateosc') {
if ($action == 'create')
{
print "<form action=\"fiche.php?id=$id\" method=\"post\">\n";
print "<form name='add' action=\"fiche.php?id=$id\" method=\"post\">\n";
print "<input type=\"hidden\" name=\"action\" value=\"add\">";
print '<div class="titre">Nouveau concert</div><br>';
@ -73,7 +73,7 @@ if ($action == 'create')
$ga = new Groupart($db);
print "<tr><td>Date</td><td>";
$htmls->select_date();
$htmls->select_date('','','','','','add');
print "</td></tr>";
print "<tr><td>Lieu</td><td>";

View File

@ -65,7 +65,7 @@ Function PLines(&$inc, $parent, $lines, &$level, $actors)
print '<td><input size="4" type="text" class="flat" name="task'.$lines[$i][2].'" value="">';
print '&nbsp;<input type="submit" class="flat" value="'.$langs->trans("Save").'"></td>';
print "\n<td>";
print $form->select_date('',$lines[$i][2]);
print $form->select_date('',$lines[$i][2],'','','',"addtime");
print '</td>';
}
else
@ -307,7 +307,7 @@ if ($_GET["action"] == 'create' && $user->rights->projet->creer)
print '</table></form><br />';
print '<form method="POST" action="fiche.php?id='.$projet->id.'">';
print '<form name="addtime" method="POST" action="fiche.php?id='.$projet->id.'">';
print '<input type="hidden" name="action" value="addtime">';
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';

View File

@ -683,11 +683,11 @@ if ( $user->rights->telephonie->adsl->commander && $ligne->statut == 1)
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
print '<form action="fiche.php?id='.$ligne->id.'&amp;action=commandefourn" method="POST">';
print '<form name="commandefourn" action="fiche.php?id='.$ligne->id.'&amp;action=commandefourn" method="POST">';
print '<table class="noborder" cellpadding="2" cellspacing="0">';
print '<tr class="liste_titre"><td colspan="2">Commande chez le fournisseur</td><td>';
print '<tr><td>Date de la commande</td><td>';
print $form->select_date();
print $form->select_date('','','','','',"commandefourn");
print '</td>';
print '<td colspan="2"><input type="submit" name="Commander"></td></tr>';
print '<tr><td colspan="3">Commentaire <input size="30" type="text" name="commentaire"></td></tr>';
@ -706,11 +706,11 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 2)
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
print '<form action="fiche.php?id='.$ligne->id.'&amp;action=activefourn" method="POST">';
print '<form name="activefourn" action="fiche.php?id='.$ligne->id.'&amp;action=activefourn" method="POST">';
print '<table class="noborder" cellpadding="2" cellspacing="0">';
print '<tr class="liste_titre"><td colspan="2">Activée chez le fournisseur</td><td>';
print "<tr><td>Date de l'activation</td><td>";
print $form->select_date();
print $form->select_date('','','','','',"activefourn");
print '</td></tr>';
print '<tr><td>Commentaire</td><td><input size="30" type="text" name="commentaire"></td></tr>';
@ -736,11 +736,11 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 3)
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
print '<form action="fiche.php?id='.$ligne->id.'&amp;action=livraison" method="POST">';
print '<form name="livraison" action="fiche.php?id='.$ligne->id.'&amp;action=livraison" method="POST">';
print '<table class="noborder" cellpadding="2" cellspacing="0">';
print '<tr class="liste_titre"><td colspan="2">Livrée au client</td><td>';
print "<tr><td>Date de la livraison client</td><td>";
print $form->select_date();
print $form->select_date('','','','','',"livraison");
print '</td>';
print '<td colspan="2"><input type="submit" name="Commander"></td></tr>';
print '<tr><td colspan="3">Commentaire <input size="30" type="text" name="commentaire"></td></tr>';
@ -752,11 +752,11 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 3)
if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 4)
{
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
print '<form action="fiche.php?id='.$ligne->id.'&amp;action=resilier" method="POST">';
print '<form name="resilier" action="fiche.php?id='.$ligne->id.'&amp;action=resilier" method="POST">';
print '<table class="noborder" cellpadding="4" cellspacing="0">';
print '<tr class="liste_titre"><td colspan="2">A résilier</td><td>';
print '<tr class="pair"><td>Date de résiliation demandée</td><td>';
print $form->select_date();
print $form->select_date('','','','','',"resilier");
print '</td></tr>';
print '<tr class="pair"><td>Commentaire</td><td><input size="30" type="text" name="commentaire"></td></tr>';
print '<tr class="pair"><td colspan="2" align="center"><input type="submit" name="Commander"></td></tr>';
@ -767,11 +767,11 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 4)
if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 5)
{
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
print '<form action="fiche.php?id='.$ligne->id.'&amp;action=resilierfourn" method="POST">';
print '<form name="resilierfourn" action="fiche.php?id='.$ligne->id.'&amp;action=resilierfourn" method="POST">';
print '<table class="noborder" cellpadding="4" cellspacing="0">';
print '<tr class="liste_titre"><td colspan="2">Demande de résiliatin fournisseur</td><td>';
print '<tr class="pair"><td>Date de la demande de résiliation</td><td>';
print $form->select_date();
print $form->select_date('','','','','',"resilierfourn");
print '</td></tr>';
print '<tr class="pair"><td>Commentaire</td><td><input size="30" type="text" name="commentaire"></td></tr>';
print '<tr class="pair"><td colspan="2" align="center"><input type="submit" name="Commander"></td></tr>';
@ -782,11 +782,11 @@ if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 5)
if ( $user->rights->telephonie->adsl->gerer && $ligne->statut == 6)
{
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
print '<form action="fiche.php?id='.$ligne->id.'&amp;action=acquitresilierfourn" method="POST">';
print '<form name="acquitresilierfourn" action="fiche.php?id='.$ligne->id.'&amp;action=acquitresilierfourn" method="POST">';
print '<table class="noborder" cellpadding="4" cellspacing="0">';
print '<tr class="liste_titre"><td colspan="2">Confirmation de résiliatin fournisseur</td><td>';
print '<tr class="pair"><td>Date de la confirmation de résiliation</td><td>';
print $form->select_date();
print $form->select_date('','','','','',"acquitresilierfourn");
print '</td></tr>';
print '<tr class="pair"><td>Commentaire</td><td><input size="30" type="text" name="commentaire"></td></tr>';
print '<tr class="pair"><td colspan="2" align="center"><input type="submit" name="Commander"></td></tr>';

View File

@ -1216,11 +1216,11 @@ if ( $user->rights->telephonie->ligne_activer && $ligne->statut == 2 && $ligne->
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td valign="top">';
print '<form action="fiche.php?id='.$ligne->id.'&amp;action=active" method="post">';
print '<form name="active" action="fiche.php?id='.$ligne->id.'&amp;action=active" method="post">';
print '<table class="noborder" cellpadding="2" cellspacing="0">';
print '<tr class="liste_titre"><td colspan="2">Activer</td><td>';
print '<tr><td>Date</td><td>';
print $form->select_date();
print $form->select_date('','','','','',"active");
print '</td>';
print '<td colspan="2"><input type="submit" name="Activer"></td></tr>';
print '</table>';
@ -1228,11 +1228,11 @@ if ( $user->rights->telephonie->ligne_activer && $ligne->statut == 2 && $ligne->
print '</form></td><td>';
print '<form action="fiche.php?id='.$ligne->id.'&amp;action=refuse" method="post">';
print '<form name="refuse" action="fiche.php?id='.$ligne->id.'&amp;action=refuse" method="post">';
print '<table class="noborder" cellpadding="2" cellspacing="0">';
print '<tr class="liste_titre"><td colspan="2">Refuser</td><td>';
print '<tr><td>Date</td><td>';
print $form->select_date();
print $form->select_date('','','','','',"refuse");
print '</td>';
print '<td colspan="2"><input type="submit" name="Activer"></td></tr>';
print '<tr><td colspan="3">Commentaire <input size="30" type="text" name="commentaire"></td></tr>';
@ -1250,11 +1250,11 @@ if ( $user->rights->telephonie->ligne_activer && ( $ligne->statut == 5 || $ligne
print '<table class="noborder" cellpadding="2" cellspacing="0" width="100%"><tr><td>';
print '<form action="fiche.php?id='.$ligne->id.'&amp;action=confirmresilier" method="post">';
print '<form name="confirmresilier" action="fiche.php?id='.$ligne->id.'&amp;action=confirmresilier" method="post">';
print '<table class="noborder" cellpadding="2" cellspacing="0">';
print '<tr class="liste_titre"><td colspan="2">Confirmation de la résiliation</td><td>';
print '<tr><td>Date</td><td>';
print $form->select_date();
print $form->select_date('','','','','',"confirmresilier");
print '</td>';
print '<td colspan="2"><input type="submit" name="Activer"></td></tr>';
print '<tr><td colspan="3">Commentaire <input size="30" type="text" name="commentaire"></td></tr>';