Example #1
0
function show_profile_form($profile, $warning = null)
{
    if ($profile) {
        page_head(tra("Edit your profile"), null, null, null, recaptcha_get_head_extra());
    } else {
        page_head(tra("Create a profile"), null, null, null, recaptcha_get_head_extra());
    }
    if ($warning) {
        echo "<p class=\"text-danger\">{$warning}</p>\n        ";
    }
    echo "\n        <form action=", $_SERVER['PHP_SELF'], " method=\"POST\", ENCTYPE=\"multipart/form-data\">\n    ";
    start_table_noborder();
    show_description();
    show_questions($profile);
    show_picture_option($profile);
    show_submit();
    end_table();
    echo "</form>";
    page_tail();
}
function show_profile_form($profile, $warning = null)
{
    if ($profile) {
        page_head(tra("Edit your profile"), null, null, null, IE_COMPAT_MODE);
    } else {
        page_head(tra("Create a profile"), null, null, null, IE_COMPAT_MODE);
    }
    if ($warning) {
        echo "<span class=error>{$warning}</span><p>\n        ";
    }
    echo "\n        <form action=", $_SERVER['PHP_SELF'], " method=\"POST\", ENCTYPE=\"multipart/form-data\">\n    ";
    start_table_noborder();
    show_description();
    show_questions($profile);
    show_picture_option($profile);
    show_submit();
    end_table();
    echo "</form>";
    page_tail();
}