get_results($g_sql); if ($wpdb->num_rows > 0) { foreach ($groups as $group) { $group_id = $group->id; $group_order = $group->group_order; $group_name = stripslashes($group->group_name); $group_identifier = stripslashes($group->group_identifier); $group_description = stripslashes($group->group_description); $question = stripslashes(empty($group->question) ? '' : $group->question); $show_group_name = $group->show_group_name; $show_group_description = $group->show_group_description; $wp_user = $group->wp_user; } } if ( function_exists( 'espresso_member_data' ) ) { if (function_exists( 'espresso_is_admin' ) ) { // If the user doesn't have admin access get only user's own question groups if ( !espresso_is_admin() ) { if ( espresso_member_data('id') != $wp_user ) { echo '

' . __('Sorry, you do not have permission to edit this question group.', 'event_espresso') . '

'; return; } } } } ?>

">
  • checked="checked" />
  • checked="checked" />
  • Uncheck box to remove question from group', 'event_espresso') ?>

  • get_results($q_sql); $questions_in_group = ''; if ($wpdb->num_rows > 0) { foreach ($questions as $question) { $questions_in_group .= $question->id . ','; $checked = (!is_null($question->rel_id)) ? 'checked="checked"' : ''; $visibility = (preg_match("/fname|lname|email/", $question->system_name) == 1 && $question->system_group == 1 ) ? 'style="visibility:hidden"' : ''; echo '
  • '; } $questions_in_group = substr($questions_in_group, 0, -1); } ?>
  • get_results($q_sql2); if ($wpdb->num_rows > 0) { foreach ($questions as $question) { $checked = ''; echo '
  • '; } } ?>