/** * Print a generic combobox with a list of users above a given access level. */ function xmlhttprequest_user_combobox() { $f_user_id = gpc_get_int('user_id'); $f_user_access = gpc_get_int('access_level'); echo '<select name="user_id">'; print_user_option_list($f_user_id, ALL_PROJECTS, $f_user_access); echo '</select>'; }
function print_project_user_option_list($p_project_id = null) { print_user_option_list(0, $p_project_id); }
</td> <td><input type="text" <?php echo helper_get_tab_index(); ?> name="name" value="<?php echo $t_name; ?> "/></td> <td><?php if (access_has_global_level(config_get('tag_edit_threshold'))) { if (ON == config_get('use_javascript')) { $t_username = prepare_user_name($t_tag_row['user_id']); echo ajax_click_to_edit($t_username, 'user_id', 'entrypoint=user_combobox&user_id=' . $t_tag_row['user_id'] . '&access_level=' . config_get('tag_create_threshold')); } else { echo '<select ', helper_get_tab_index(), ' name="user_id">'; print_user_option_list($t_tag_row['user_id'], ALL_PROJECTS, config_get('tag_create_threshold')); echo '</select>'; } } else { echo string_display_line(user_get_name($t_tag_row['user_id'])); } ?> </td> <td><?php echo date(config_get('normal_date_format'), $t_tag_row['date_created']); ?> </td> <td><?php echo date(config_get('normal_date_format'), $t_tag_row['date_updated']); ?> </td>
<span class="select"> <select id="config-user-id" name="user_id"> <option value="<?php echo ALL_USERS; ?> " <?php check_selected($t_edit_user_id, ALL_USERS); ?> > <?php echo lang_get('all_users'); ?> </option> <?php print_user_option_list($t_edit_user_id); ?> </select> </span> <span class="label-style"></span> </div> <!-- Project --> <div class="field-container"> <label for="config-project-id"><span><?php echo lang_get('project_name'); ?> </span></label> <span class="select"> <select id="config-project-id" name="project_id"> <option value="<?php
<th class="category"> <?php echo lang_get( 'to' ) ?> </th> <td> <select name="to[]" multiple="multiple" size="12" class="width20"> <?php $t_project_id = bug_get_field( $f_bug_id, 'project_id' ); $t_access_level = config_get( 'reminder_receive_threshold' ); if( $t_bug->view_state === VS_PRIVATE ) { $t_private_bug_threshold = config_get( 'private_bug_threshold' ); if( $t_private_bug_threshold > $t_access_level ) { $t_access_level = $t_private_bug_threshold; } } $t_selected_user_id = 0; print_user_option_list( $t_selected_user_id, $t_project_id, $t_access_level ); ?> </select> </td> </tr> <tr> <th class="category"> <?php echo lang_get( 'reminder' ) ?> </th> <td> <textarea name="body" cols="85" rows="10" class="width100"></textarea> </td> </tr> </table> <div class="center"> <input type="submit" class="button" value="<?php echo lang_get( 'bug_send_button' ) ?>" />
echo helper_alternate_class(); ?> valign="top"> <td> <?php echo lang_get('username'); ?> </td> <td> <select name="user_id"> <option value="0" selected="selected"><?php echo lang_get('all_users'); ?> </option> <?php print_user_option_list(auth_get_current_user_id()); ?> </select> </td> </tr> <tr <?php echo helper_alternate_class(); ?> valign="top"> <td> <?php echo lang_get('project_name'); ?> </td> <td> <select name="project_id">
function ERP_custom_function_print_reporter_option_list($p_sel_value) { $t_user_ids = (array) $p_sel_value; if (!empty($t_user_ids)) { foreach ($t_user_ids as $t_single_user_id) { if (!user_exists($t_single_user_id)) { echo '<option value="' . $t_single_user_id . '" selected class="negative">' . plugin_lang_get('missing_user', 'EmailReporting') . '</option>'; } } } print_user_option_list($t_user_ids, ALL_PROJECTS); }
<div class="field-container <?php echo helper_alternate_class_no_attribute(); ?> "> <label for="config-user-id"><span><?php echo lang_get('username'); ?> </span></label> <span class="select"> <select id="config-user-id" name="user_id"> <option value="0" selected="selected"><?php echo lang_get('all_users'); ?> </option> <?php print_user_option_list(0); ?> </select> </span> <span class="label-style"></span> </div> <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?> "> <label for="config-project-id"><span><?php echo lang_get('project_name'); ?> </span></label> <span class="select"> <select id="config-project-id" name="project_id">
<tr <?php echo helper_alternate_class(); ?> > <td class="category"><?php echo plugin_lang_get('committer'); ?> </td> <td colspan="2"><select name="committer_id"> <option value="0" <?php echo check_selected(0, $t_changeset->committer_id); ?> >--</option> <?php print_user_option_list($t_changeset->committer_id); ?> </select></td> </tr> <tr <?php echo helper_alternate_class(); ?> > <td class="category"><?php echo plugin_lang_get('branch'); ?> </td> <td colspan="2"><select name="branch"> <?php if ($t_changeset->branch == "") {
} # end for loop ?> </table> </div><?php if ( $t_read_write_access ) { ?> <div class="form-container"> <form method="post" action="adm_config_set.php"> <fieldset> <legend><span><?php echo lang_get( 'set_configuration_option' ) ?></span></legend> <?php echo form_security_field( 'adm_config_set' ) ?> <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> <label for="config-user-id"><span><?php echo lang_get( 'username' ) ?></span></label> <span class="select"> <select id="config-user-id" name="user_id"> <option value="0" selected="selected"><?php echo lang_get( 'all_users' ); ?></option> <?php print_user_option_list( 0 ) ?> </select> </span> <span class="label-style"></span> </div> <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>"> <label for="config-project-id"><span><?php echo lang_get( 'project_name' ) ?></span></label> <span class="select"> <select id="config-project-id" name="project_id"> <option value="0" selected="selected"><?php echo lang_get( 'all_projects' ); ?></option> <?php print_project_option_list( ALL_PROJECTS, false ) ?> </select> </span> <span class="label-style"></span> </div> <div class="field-container <?php echo helper_alternate_class_no_attribute(); ?>">