$tpl->assign('member', $member); $tpl->assign('self_adh', true); $tpl->assign('dynamic_fields', $dynamic_fields); $tpl->assign('error_detected', $error_detected); $tpl->assign('warning_detected', $warning_detected); $tpl->assign('languages', $i18n->getList()); $tpl->assign('require_calendar', true); // pseudo random int $tpl->assign('time', time()); // genre $tpl->assign('titles_list', Titles::getList($zdb)); //self_adh specific $tpl->assign('spam_pass', $spam_pass); $tpl->assign('spam_img', $spam_img); if ($has_register) { $tpl->assign('has_register', $has_register); } if (isset($head_redirect)) { $tpl->assign('head_redirect', $head_redirect); } // /self_adh specific $form_elements = $fc->getFormElements(true); $tpl->assign('fieldsets', $form_elements['fieldsets']); $tpl->assign('hidden_elements', $form_elements['hiddens']); // display page $content = $tpl->fetch('member.tpl'); $tpl->assign('content', $content); $tpl->display('public_page.tpl'); if (isset($profiler)) { $profiler->stop(); }
$tpl->assign('member', $member); $tpl->assign('data', $adherent); $tpl->assign('self_adh', false); $tpl->assign('dynamic_fields', $dynamic_fields); $tpl->assign('error_detected', $error_detected); $tpl->assign('success_detected', $success_detected); if (isset($session['mail_warning'])) { //warning will be showed here, no need to keep it longer into session unset($session['mail_warning']); } $tpl->assign('warning_detected', $warning_detected); $tpl->assign('languages', $i18n->getList()); $tpl->assign('require_calendar', true); // pseudo random int $tpl->assign('time', time()); // genre $tpl->assign('titles_list', Titles::getList($zdb)); //Status $statuts = new Galette\Entity\Status(); $tpl->assign('statuts', $statuts->getList()); //Groups $groups = new Groups(); $groups_list = $groups->getSimpleList(true); $tpl->assign('groups', $groups_list); $form_elements = $fc->getFormElements(); $tpl->assign('fieldsets', $form_elements['fieldsets']); $tpl->assign('hidden_elements', $form_elements['hiddens']); // page generation $content = $tpl->fetch('member.tpl'); $tpl->assign('content', $content); $tpl->display('page.tpl');