';
+ print '';
+ print_liste_field_titre($langs->trans("Contact"),"fiche.php","c.name",'',$param,'"width="45%"',$sortfield,$sortorder);
+ print_liste_field_titre($langs->trans("Action"),"fiche.php","a.titre",'',$param,'"width="35%"',$sortfield,$sortorder);
print_liste_field_titre($langs->trans("Type"),"fiche.php","",'',$param,'"width="10%"',$sortfield,$sortorder);
- print '| | ';
- print '
';
+ print_liste_field_titre('');
+ print '';
- $var=false;
- if (count($soc->thirdparty_and_contact_email_array()) > 0)
- {
- $actions=array();
+ $var=false;
+ $listofemails=$object->thirdparty_and_contact_email_array();
+ if (count($listofemails) > 0)
+ {
+ $actions=array();
// Load array of available notifications
$notificationtrigger=new InterfaceNotification($db);
@@ -178,173 +239,174 @@ if ( $soc->fetch($soc->id) )
$label=$langs->trans("Notify_".$notifiedevent['code'])!=$langs->trans("Notify_".$notifiedevent['code'])?$langs->trans("Notify_".$notifiedevent['code']):$notifiedevent['label'];
$actions[$notifiedevent['rowid']]=$label;
}
- print '';
- print '| ';
- print $html->selectarray("contactid",$soc->thirdparty_and_contact_email_array());
- print ' | ';
- print '';
- print $html->selectarray("actionid",$actions,'',1);
- print ' | ';
+ print '
| ';
+ print $html->selectarray("contactid",$listofemails);
+ print ' | ';
+ print '';
+ print $html->selectarray("actionid",$actions,'',1);
+ print ' | ';
print '';
$type=array('email'=>$langs->trans("EMail"));
print $html->selectarray("typeid",$type);
print ' | ';
- print ' | ';
- print '
';
- }
- else
- {
- print '| ';
- print $langs->trans("YouMustCreateContactFirst");
- print ' |
';
- }
+ print ' | ';
+ print '';
+ }
+ else
+ {
+ print '| ';
+ print $langs->trans("YouMustCreateContactFirst");
+ print ' |
';
+ }
- print '
';
+ print '