diff --git a/htdocs/comm/fiche.php b/htdocs/comm/fiche.php index e9341ed4bb7..fc053e3cff3 100644 --- a/htdocs/comm/fiche.php +++ b/htdocs/comm/fiche.php @@ -423,93 +423,108 @@ if ($_socid > 0) * * */ - if ($action == 'changevalue') { - print "
| '.$langs->trans("Firstname").' '.$langs->trans("Lastname").' | '; + print ''.$langs->trans("Poste").' | '.$langs->trans("Tel").' | '; + print ''.$langs->trans("Fax").' | '.$langs->trans("EMail").' | '; + print "id."&action=create\">".$langs->trans("AddContact")." | "; + print ''; + print " | |
| ';
+ print '';
+ print img_file();
+ print ' '.$obj->firstname.' '. $obj->name.' ';
+
+ if ($obj->note)
+ {
+ print " ".nl2br($obj->note); + } + print " | ";
+ print "$obj->poste | "; + print ''; - print ' | |||||
| '.$langs->trans("Firstname").' '.$langs->trans("Lastname").' | '; - print ''.$langs->trans("Poste").' | '.$langs->trans("Tel").' | '; - print ''.$langs->trans("Fax").' | '.$langs->trans("EMail").' | '; - print "id."&action=create\">".$langs->trans("AddContact")." | "; - print ''; - print " | |
| ';
- print '';
- print img_file();
- print ' '.$obj->firstname.' '. $obj->name.' ';
-
- if ($obj->note)
- {
- print " ".nl2br($obj->note); - } - print " | ";
- print "$obj->poste | "; - print ''.dolibarr_print_phone($obj->phone).' | '; - print ''.dolibarr_print_phone($obj->fax).' | '; - print ''.$obj->email.' | '; - - print ''; - print "idp\">"; - print img_edit(); - print ' | '; - - print ''; - print img_actions(); - print ' | '; - - print "|
| '.$langs->trans("ActionsToDo").' | '.$langs->trans("AddActionToDo").' | |||||
| '; - - $sql = "SELECT a.id, ".$db->pdate("a.datea")." as da, 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 "; - $sql .= " WHERE a.fk_soc = $objsoc->id "; - $sql .= " AND u.rowid = a.fk_user_author"; - $sql .= " AND c.id=a.fk_action AND a.percent < 100"; - $sql .= " ORDER BY a.datea DESC, a.id DESC"; + /* + * Lien click to dial + */ + + if (strlen($obj->phone) && $user->clicktodial_enabled == 1) + { + print ''; + print img_phone_out("Appel émis") ; + } + print ' | '; + print ''.dolibarr_print_phone($obj->phone).' | '; + print ''.dolibarr_print_phone($obj->fax).' | '; + print ''.$obj->email.' | '; + + print ''; + print "idp\">"; + print img_edit(); + print ' | '; + + print ''; + print img_actions(); + print ' | '; + + print "|
| '.$langs->trans("ActionsToDo").' | '.$langs->trans("AddActionToDo").' |
| ';
+
+ $sql = "SELECT a.id, ".$db->pdate("a.datea")." as da, 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 ";
+ $sql .= " WHERE a.fk_soc = $objsoc->id ";
+ $sql .= " AND u.rowid = a.fk_user_author";
+ $sql .= " AND c.id=a.fk_action AND a.percent < 100";
+ $sql .= " ORDER BY a.datea DESC, a.id DESC";
if ( $db->query($sql) ) {
print " | |