Esempio n. 1
0
     }
     print '</td></tr>';
 }
 if ($object->fournisseur) {
     print '<tr><td>';
     print $langs->trans('SupplierCode') . '</td><td colspan="3">';
     print $object->code_fournisseur;
     if ($object->check_codefournisseur() != 0) {
         print ' <font class="error">(' . $langs->trans("WrongSupplierCode") . ')</font>';
     }
     print '</td></tr>';
 }
 print '<tr><td>' . $langs->trans("NbOfActiveNotifications") . '</td>';
 print '<td colspan="3">';
 $notify = new Notify($db);
 $tmparray = $notify->getNotificationsArray('', $object->id);
 print count($tmparray);
 print '</td></tr>';
 print '</table>';
 // Help
 print '<br>' . $langs->trans("NotificationsDesc");
 print '</div>';
 dol_fiche_end();
 print "\n";
 print '<br>';
 // Add notification form
 print load_fiche_titre($langs->trans("AddNewNotification"), '', '');
 print '<form action="' . $_SERVER["PHP_SELF"] . '?socid=' . $socid . '" method="post">';
 print '<input type="hidden" name="token" value="' . $_SESSION['newtoken'] . '">';
 print '<input type="hidden" name="action" value="add">';
 $param = "&socid=" . $socid;
Esempio n. 2
0
        //!=$langs->trans("Notify_".$notifiedevent['code'])?$langs->trans("Notify_".$notifiedevent['code']):$notifiedevent['label'];
        if ($notifiedevent['elementtype'] == 'order_supplier') {
            $elementLabel = $langs->trans('SupplierOrder');
        } elseif ($notifiedevent['elementtype'] == 'propal') {
            $elementLabel = $langs->trans('Proposal');
        } elseif ($notifiedevent['elementtype'] == 'facture') {
            $elementLabel = $langs->trans('Bill');
        } elseif ($notifiedevent['elementtype'] == 'commande') {
            $elementLabel = $langs->trans('Order');
        }
        print '<tr ' . $bc[$var] . '>';
        print '<td>' . $elementLabel . '</td>';
        print '<td>' . $notifiedevent['code'] . '</td>';
        print '<td>' . $label . '</td>';
        print '<td align="right">';
        $tmparray = $notify->getNotificationsArray($notifiedevent['code'], 0);
        print count($tmparray);
        print '</td>';
        print '</tr>';
    }
    print '</table>';
    print '* ' . $langs->trans("GoOntoContactCardToAddMore") . '<br>';
    print '<br>';
}
print_fiche_titre($langs->trans("ListOfFixedNotifications"), '', '');
print '<table class="noborder" width="100%">';
print '<tr class="liste_titre">';
print '<td>' . $langs->trans("Module") . '</td>';
print '<td>' . $langs->trans("Code") . '</td>';
print '<td>' . $langs->trans("Label") . '</td>';
print '<td>' . $langs->trans("FixedEmailTarget") . '</td>';