Exemplo n.º 1
0
        }
    }
    print '</div>';
    print "<br>\n";
    if (!empty($conf->global->MAIN_REPEATCONTACTONEACHTAB)) {
        print '<br>';
        // List of contacts
        show_contacts($conf, $langs, $db, $object, $_SERVER["PHP_SELF"] . '?socid=' . $object->id);
    }
    // Addresses list
    if (!empty($conf->global->SOCIETE_ADDRESSES_MANAGEMENT) && !empty($conf->global->MAIN_REPEATADDRESSONEACHTAB)) {
        $result = show_addresses($conf, $langs, $db, $object, $_SERVER["PHP_SELF"] . '?socid=' . $object->id);
    }
    if (!empty($conf->global->MAIN_REPEATTASKONEACHTAB)) {
        print load_fiche_titre($langs->trans("ActionsOnCompany"), '', '');
        if ($conf->lead->enabled) {
            // Leads list
            $result = show_leads($conf, $langs, $db, $object);
        }
        // List of todo actions
        show_actions_todo($conf, $langs, $db, $object);
        // List of done actions
        show_actions_done($conf, $langs, $db, $object);
    }
} else {
    dol_print_error($db, 'Bad value for socid parameter');
}
dol_htmloutput_mesg('', $mesgs);
// End of page
llxFooter();
$db->close();
Exemplo n.º 2
0
            print '<a class="butAction" title="' . dol_escape_js($langs->trans("NotAllowed")) . '" href="#">' . $langs->trans("AddAction") . '</a>';
        }
    }
    print '</div>';
    print '<br>';
    if (!empty($conf->global->MAIN_REPEATCONTACTONEACHTAB)) {
        print '<br>';
        // List of contacts
        show_contacts($conf, $langs, $db, $object, $_SERVER["PHP_SELF"] . '?socid=' . $object->id);
    }
    if (!empty($conf->global->MAIN_REPEATTASKONEACHTAB)) {
        print load_fiche_titre($langs->trans("ActionsOnCompany"), '', '');
        // List of todo actions
        show_actions_todo($conf, $langs, $db, $object);
        // List of done actions
        show_actions_done($conf, $langs, $db, $object);
    }
    if ($conf->lead->enabled) {
        print '<table width="100%" class="notopnoleftnoright">';
        print '<tr><td valign="top" width="50%" class="notopnoleft">';
        // Leads list
        $result = show_leads($conf, $langs, $db, $societe);
        print "</td>\n";
        print '<td valign="top" width="50%" class="notopnoleft">';
        print "</td>\n";
        print "</tr>\n";
        print "</table>\n";
    }
}
llxFooter();
$db->close();