Example #1
0
function print_profile_option_list_for_project($p_project_id, $p_select_id = '', $p_profiles = null)
{
    if ('' === $p_select_id) {
        $p_select_id = profile_get_default(auth_get_current_user_id());
    }
    if ($p_profiles != null) {
        $t_profiles = $p_profiles;
    } else {
        $t_profiles = profile_get_all_for_project($p_project_id);
    }
    print_profile_option_list_from_profiles($t_profiles, $p_select_id);
}
Example #2
0
function print_profile_option_list_for_project($p_project_id, $p_select_id = '')
{
    if ('' === $p_select_id) {
        $p_select_id = profile_get_default($p_user_id);
    }
    $t_profiles = profile_get_all_for_project($p_project_id);
    print '<option value=""></option>';
    foreach ($t_profiles as $t_profile) {
        extract($t_profile, EXTR_PREFIX_ALL, 'v');
        $v_platform = string_display($v_platform);
        $v_os = string_display($v_os);
        $v_os_build = string_display($v_os_build);
        print "<option value=\"{$v_id}\"";
        check_selected($p_select_id, $v_id);
        print ">{$v_platform} {$v_os} {$v_os_build}</option>";
    }
}