26require
'../../main.inc.php';
27require_once DOL_DOCUMENT_ROOT.
'/contact/class/contact.class.php';
28require_once DOL_DOCUMENT_ROOT.
'/datapolicy/class/datapolicy.class.php';
30$idcontact =
GETPOST(
'idc',
'int');
31$idcompany =
GETPOST(
'ids',
'int');
32$idmember =
GETPOST(
'ida',
'int');
35if (!isModEnabled(
"datapolicy")) {
47if (!empty($idcontact)) {
49 $contact->fetch($idcontact);
51} elseif (!empty($idcompany)) {
53 $company->fetch($idcompany);
55} elseif (!empty($idmember)) {
57 $member->fetch($idmember);
63 $contacts->getAllContactNotInformed();
64 $contacts->getAllCompaniesNotInformed();
65 $contacts->getAllAdherentsNotInformed();
73echo $langs->trans(
'AllAgreementSend');
Class to manage members of a foundation.
static sendMailDataPolicyAdherent($adherent)
sendMailDataPolicyAdherent
static sendMailDataPolicyContact($contact)
sendMailDataPolicyContact
static sendMailDataPolicyCompany($societe)
sendMailDataPolicyCompany
Class to manage third parties objects (customers, suppliers, prospects...)
GETPOST($paramname, $check='alphanohtml', $method=0, $filter=null, $options=null, $noreplace=0)
Return value of a param into GET or POST supervariable.
accessforbidden($message='', $printheader=1, $printfooter=1, $showonlymessage=0, $params=null)
Show a message to say access is forbidden and stop program.