Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <select id="team_id" name="team_id">
- <?php $i = 0; ?>
- <?php if ( bp_has_groups('type=alphabetical') ) : while ( bp_groups() ) : bp_the_group(); ?>
- <?php if ( bp_get_group_status() == ('public')) {
- $team_id = $bp->group->id; ?>
- <option id="field_reg_groups_<?php echo $i; ?>" name="field_reg_groups[]" value="<?php $team_id; ?>" <?php if ($team_id == $team_id_check) {echo ' selected="selected"';} ?> /><?php echo $team_id; ?>:<?php bp_group_name(); ?></option>
- <?php } ?>
- <?php $i++; ?>
- <?php endwhile; /* endif; */ ?>
- <?php else: ?>
- <p class="reg_groups_none">No teams are available at this time.</p>
- <?php endif; ?>
- </select>
Advertisement
Add Comment
Please, Sign In to add comment