// Correct html
            foreach ($adherent as $field => $data) {
                if (is_string($adherent[$field])) {
                    $adherent[$field] = htmlentities($data);
                }
            }
        }
    }
}
// picture data
if ($adherent["id_adh"] != '') {
    $picture = new picture($adherent["id_adh"]);
} else {
    $picture = new picture();
}
if ($picture->hasPicture()) {
    $adherent["has_picture"] = 1;
} else {
    $adherent["has_picture"] = 0;
}
$adherent['picture_height'] = $picture->getOptimalHeight();
$adherent['picture_width'] = $picture->getOptimalWidth();
// - declare dynamic fields for display
$disabled['dyn'] = array();
if (!isset($adherent['dyn'])) {
    $adherent['dyn'] = array();
}
$dynamic_fields = prepare_dynamic_fields_for_display($DB, 'adh', $_SESSION["admin_status"], $adherent['dyn'], $disabled['dyn'], 1);
// template variable declaration
$tpl->assign("required", $required);
$tpl->assign("disabled", $disabled);