Esempio n. 1
0
function affichage_champ_add_mails($id_resa)
{
    $affichage = "";
    // Les champs add :
    $overload_data = mrbsEntryGetOverloadDesc($id_resa);
    foreach ($overload_data as $fieldname => $field) {
        if ($field["overload_mail"] == 'y' && $field["valeur"] != "") {
            $affichage .= bbcode(htmlspecialchars($fieldname) . get_vocab("deux_points") . htmlspecialchars($field["valeur"]), 'nobbcode') . "\n";
        }
    }
    return $affichage;
}
Esempio n. 2
0
		<td>
			<b>
				<?php 
echo get_vocab("description");
?>
			</b>
		</td>
		<td>
			<?php 
echo nl2br($description);
?>
		</td>
	</tr>
	<?php 
if (!$was_del) {
    $overload_data = mrbsEntryGetOverloadDesc($id);
    foreach ($overload_data as $fieldname => $fielddata) {
        if ($fielddata["confidentiel"] == 'n') {
            $affiche_champ = 'y';
        } else {
            if ($fin_session != 'n' || getUserName() == '') {
                $affiche_champ = 'n';
            } else {
                if (authGetUserLevel(getUserName(), $room_id) >= 4 || $beneficiaire == getUserName()) {
                    $affiche_champ = 'y';
                } else {
                    $affiche_champ = 'n';
                }
                if ($affiche_champ == 'y') {
                    echo "<tr><td><b>" . bbcode(htmlspecialchars($fieldname) . get_vocab("deux_points"), '') . "</b></td>\n";
                    echo "<td>" . bbcode(htmlspecialchars($fielddata["valeur"]), '') . "</td></tr>\n";