{ var currentId = idstring.substring(2); jQuery("tr.moduleline").hide(); if (currentId != openedId) { openedId=currentId; jQuery("#tr1"+currentId).show(); jQuery("#tr2"+currentId).show(); } else openedId = ""; } }); }); </script>'; llxHeaderVierge($langs->trans("DolibarrDemo"), $head); print "\n"; print '<table style="font-size:14px;" class="centpercent" summary="Main table for Dolibarr demos">'; print '<tr><td>'; print '<div class="center"><img src="'.DOL_URL_ROOT.'/theme/dolibarr_logo.png" alt="Dolibarr logo"></div><br>'; print '<br>'; print $langs->trans("DemoDesc").'<br>'; print '<br>'; print '<font color="#555577"><b>'.$langs->trans("ChooseYourDemoProfil").'</b></font>'; print '</td></tr>';
print '<br>'; print '<center>'; print $langs->trans("NewMemberbyWeb"); print '</center>'; llxFooterVierge(); exit; } /* * View */ $form = new Form($db); $formcompany = new FormCompany($db); $adht = new AdherentType($db); $extrafields->fetch_name_optionals_label('adherent'); // fetch optionals attributes and labels llxHeaderVierge($langs->trans("NewSubscription")); print_titre($langs->trans("NewSubscription")); if (!empty($conf->global->MEMBER_NEWFORM_TEXT)) { print $langs->trans($conf->global->MEMBER_NEWFORM_TEXT) . "<br>\n"; } else { print $langs->trans("NewSubscriptionDesc", $conf->global->MAIN_INFO_SOCIETE_MAIL) . "<br>\n"; } dol_htmloutput_errors($errmsg); print '<div align="center">'; print '<br>' . $langs->trans("FieldsWithAreMandatory", '*') . '<br>'; //print $langs->trans("FieldsWithIsForPublic",'**').'<br>'; print '<script type="text/javascript"> jQuery(document).ready(function () { jQuery(document).ready(function () { function initmorphy() {
/** * Show a message to say access is forbidden and stop program * Calling this function terminate execution of PHP. * * @param string $message Force error message * @param int $printheader Show header before * @param int $printfooter Show footer after * @param int $showonlymessage Show only message parameter. Otherwise add more information. * @return void */ function accessforbidden($message = '', $printheader = 1, $printfooter = 1, $showonlymessage = 0) { global $conf, $db, $user, $langs; if (!is_object($langs)) { include_once DOL_DOCUMENT_ROOT . '/core/class/translate.class.php'; $langs = new Translate('', $conf); } $langs->load("errors"); if ($printheader) { if (function_exists("llxHeader")) { llxHeader(''); } else { if (function_exists("llxHeaderVierge")) { llxHeaderVierge(''); } } } print '<div class="error">'; if (!$message) { print $langs->trans("ErrorForbidden"); } else { print $message; } print '</div>'; print '<br>'; if (empty($showonlymessage)) { if ($user->login) { print $langs->trans("CurrentLogin") . ': <font class="error">' . $user->login . '</font><br>'; print $langs->trans("ErrorForbidden2", $langs->trans("Home"), $langs->trans("Users")); } else { print $langs->trans("ErrorForbidden3"); } } if ($printfooter && function_exists("llxFooter")) { llxFooter(); } exit(0); }
$sortorder = "ASC"; } if (!$sortfield) { $sortfield = "lastname"; } /* * View */ $form = new Form($db); $morehead = ''; if (!empty($conf->global->MEMBER_PUBLIC_CSS)) { $morehead = '<link rel="stylesheet" type="text/css" href="' . $conf->global->MEMBER_PUBLIC_CSS . '">'; } else { $morehead = '<link rel="stylesheet" type="text/css" href="' . DOL_URL_ROOT . '/theme/eldy/style.css.php' . '">'; } llxHeaderVierge($langs->trans("ListOfValidatedPublicMembers"), $morehead); $sql = "SELECT rowid, firstname, lastname, societe, zip, town, email, birth, photo"; $sql .= " FROM " . MAIN_DB_PREFIX . "adherent"; $sql .= " WHERE entity = " . $entity; $sql .= " AND statut = 1"; $sql .= " AND public = 1"; $sql .= $db->order($sortfield, $sortorder); $sql .= $db->plimit($conf->liste_limit + 1, $offset); //$sql = "SELECT d.rowid, d.firstname, d.lastname, d.societe, zip, town, d.email, t.libelle as type, d.morphy, d.statut, t.cotisation"; //$sql .= " FROM ".MAIN_DB_PREFIX."adherent as d, ".MAIN_DB_PREFIX."adherent_type as t"; //$sql .= " WHERE d.fk_adherent_type = t.rowid AND d.statut = $statut"; //$sql .= " ORDER BY $sortfield $sortorder " . $db->plimit($conf->liste_limit, $offset); $result = $db->query($sql); if ($result) { $num = $db->num_rows($result); $i = 0;
$outputencoding = 'UTF-8'; if ($contenttype) { header('Content-Type: ' . $contenttype . ($outputencoding ? '; charset=' . $outputencoding : '')); } if ($attachment) { header('Content-Disposition: attachment; filename="' . $filename . '"'); } // Ajout directives pour resoudre bug IE //header('Cache-Control: Public, must-revalidate'); //header('Pragma: public'); if ($cachedelay) { header('Cache-Control: max-age=' . $cachedelay . ', private, must-revalidate'); } else { header('Cache-Control: private, must-revalidate'); } // Clean parameters $outputfile = $conf->agenda->dir_temp . '/' . $filename; $result = readfile($outputfile); if (!$result) { print 'File ' . $outputfile . ' was empty.'; } // header("Location: ".DOL_URL_ROOT.'/document.php?modulepart=agenda&file='.urlencode($filename)); exit; } else { print 'Error ' . $agenda->error; exit; } } llxHeaderVierge(); print '<div class="error">' . $agenda->error . '</div>'; llxFooterVierge();
$object = new Adherent($db); $extrafields = new ExtraFields($db); /* * Actions */ // None /* * View */ $morehead = ''; if (!empty($conf->global->MEMBER_PUBLIC_CSS)) { $morehead = '<link rel="stylesheet" type="text/css" href="' . $conf->global->MEMBER_PUBLIC_CSS . '">'; } else { $morehead = '<link rel="stylesheet" type="text/css" href="' . DOL_URL_ROOT . '/theme/eldy/style.css.php' . '">'; } llxHeaderVierge($langs->trans("MemberCard"), $morehead); // fetch optionals attributes and labels $extralabels = $extrafields->fetch_name_optionals_label('adherent'); if ($id > 0) { $res = $object->fetch($id); if ($res < 0) { dol_print_error($db, $object->error); exit; } $res = $object->fetch_optionals($object->id, $extralabels); print load_fiche_titre($langs->trans("MemberCard"), '', ''); if (empty($object->public)) { print $langs->trans("ErrorThisMemberIsNotPublic"); } else { print '<table class="public_border" cellspacing="0" width="100%" cellpadding="3">'; print '<tr><td width="15%">' . $langs->trans("Type") . '</td><td class="valeur">' . $object->type . "</td></tr>\n";
} $langs->load("main"); $langs->load("members"); $langs->load("companies"); $langs->load("other"); $id = GETPOST('id', 'int'); $object = new Adherent($db); $extrafields = new ExtraFields($db); /* * Actions */ // None /* * View */ llxHeaderVierge($langs->trans("MemberCard")); // fetch optionals attributes and labels $extralabels = $extrafields->fetch_name_optionals_label('adherent'); if ($id > 0) { $res = $object->fetch($id); if ($res < 0) { dol_print_error($db, $object->error); exit; } $res = $object->fetch_optionals($object->id, $extralabels); print_titre($langs->trans("MemberCard")); if (empty($object->public)) { print $langs->trans("ErrorThisMemberIsNotPublic"); } else { print '<table class="border" cellspacing="0" width="100%" cellpadding="3">'; print '<tr><td width="15%">' . $langs->trans("Type") . '</td><td class="valeur">' . $object->type . "</td></tr>\n";