From cf8d15fd5f23efe4b35810038a4e6cc9b4c908cd Mon Sep 17 00:00:00 2001 From: Regis Houssin Date: Fri, 16 Feb 2007 13:56:17 +0000 Subject: [PATCH] =?UTF-8?q?corrections=20propos=E9es=20par=20Jean-Ren=E9?= =?UTF-8?q?=20Athanase?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/comm/action/fiche.php | 6 +++--- htdocs/comm/prospect/fiche.php | 10 +++++----- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index cec21712ec0..c0b3cc73e20 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -509,11 +509,11 @@ if ($_GET["action"] == 'create') print ''.$langs->trans("DateActionPlanned").''; if ($_GET["afaire"] == 1 || $_GET["afaire"] == 2) { - $html->select_date(-1,'ap',1,1,1,"action"); + $html->select_date('','ap',1,1,0,"action"); } else { - $html->select_date(-1,'ap',1,1,1,"action"); + $html->select_date('','ap',1,1,0,"action"); } print ''; @@ -523,7 +523,7 @@ if ($_GET["action"] == 'create') { $html->select_date(-1,'ad',1,1,1,"action"); } - else + elseif ($_GET["afaire"] != 1) { $html->select_date(-1,'ad',1,1,1,"action"); } diff --git a/htdocs/comm/prospect/fiche.php b/htdocs/comm/prospect/fiche.php index 141ea3cc192..c380c915626 100644 --- a/htdocs/comm/prospect/fiche.php +++ b/htdocs/comm/prospect/fiche.php @@ -221,9 +221,9 @@ if ($socid > 0) print '
'; - print ''.$langs->trans("AddContact").''; + print ''.$langs->trans("AddContact").''; - print ''.$langs->trans("AddAction").''; + print ''.$langs->trans("AddAction").''; if ($conf->propal->enabled && defined("MAIN_MODULE_PROPALE") && MAIN_MODULE_PROPALE && $user->rights->propale->creer) @@ -326,7 +326,7 @@ if ($socid > 0) * */ print ''; - print ''; + print ''; $sql = "SELECT a.id, a.label, ".$db->pdate("a.datep")." as dp, c.code as acode, c.libelle, u.code, a.propalrowid, a.fk_user_author, fk_contact, u.rowid "; $sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."c_actioncomm as c, ".MAIN_DB_PREFIX."user as u "; @@ -393,7 +393,7 @@ if ($socid > 0) } else { - print '
'.$langs->trans("ActionsToDo").' 
'.$langs->trans("ActionsToDo").' 
'.img_object($langs->trans("ShowAction"),"task"); + print ''.img_object($langs->trans("ShowAction"),"task"); $transcode=$langs->trans("Action".$obj->acode); $libelle=($transcode!="Action".$obj->acode?$transcode:$obj->libelle); print $libelle; @@ -425,7 +425,7 @@ if ($socid > 0) * Listes des actions effectuées */ print ''; - print ''; + print ''; $sql = "SELECT a.id, ".$db->pdate("a.datea")." as da, c.code as acode, c.libelle, a.propalrowid, a.fk_user_author, fk_contact, u.code, u.rowid "; $sql .= " FROM ".MAIN_DB_PREFIX."actioncomm as a, ".MAIN_DB_PREFIX."c_actioncomm as c, ".MAIN_DB_PREFIX."user as u ";
'.$langs->trans("ActionsDone").'
'.$langs->trans("ActionsDone").'