switch ($_GET['action']) { case "show_attendings": $irl_data = irl_fetch_information(); $out .= irl_header($irl_data); $rounded_corners_tabs_options['return'] = TRUE; $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '?action=show_information&irl=' . $_GET['irl'] . '', 'label' => 'Information'); $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '?action=show_attendings&irl=' . $_GET['irl'] . '', 'label' => 'Deltagare', 'current' => TRUE); $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . $irl_data['forumthread_url'], 'label' => 'Forumtråd'); $out .= rounded_corners_tabs_top($rounded_corners_tabs_options); if (!isset($_GET['irl'])) { $out .= 'Inget IRL valt'; break; } $out .= isset($_GET['updated']) ? '<span>Din IRL information har uppdateras. Klad Hest.</span>' : ''; $out .= irl_attending(array('attending' => 'yes')); $out .= irl_attending(array('attending' => 'maybe')); $out .= irl_attending_form(); $out .= rounded_corners_tabs_bottom(array('return' => TRUE)); break; case "show": case "show_information": $irl_data = irl_fetch_information(); $out .= irl_header($irl_data); $rounded_corners_tabs_options['return'] = TRUE; $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '?action=show_information&irl=' . $_GET['irl'] . '', 'label' => 'Information', 'current' => TRUE); $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '?action=show_attendings&irl=' . $_GET['irl'] . '', 'label' => 'Deltagare'); $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . $irl_data['forumthread_url'], 'label' => 'Forumtråd'); $out .= rounded_corners_tabs_top($rounded_corners_tabs_options); $out .= nl2br($irl_data['information']); $out .= rounded_corners_tabs_bottom(array('return' => TRUE)); break;
switch ($_GET['action']) { case "show_attendings": $irl_data = irl_fetch_information(); $out .= irl_header($irl_data); $rounded_corners_tabs_options['return'] = TRUE; $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '?action=show_information&irl=' . $_GET['irl'] . '', 'label' => 'Information'); $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '?action=show_attendings&irl=' . $_GET['irl'] . '', 'label' => 'Deltagare', 'current' => TRUE); $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . $irl_data['forumthread_url'], 'label' => 'Forumtråd'); $out .= rounded_corners_tabs_top($rounded_corners_tabs_options); if (!isset($_GET['irl'])) { $out .= 'Inget IRL valt'; break; } $out .= isset($_GET['updated']) ? '<div class="form_notice_success">Din IRL information har uppdateras. Klad Hest.</div>' : ''; $out .= irl_attending(array('attending' => 'yes', 'id' => $_GET['irl'])); $out .= irl_attending(array('attending' => 'maybe', 'id' => $_GET['irl'])); $out .= irl_attending_form(); $out .= rounded_corners_tabs_bottom(array('return' => TRUE)); break; case "show": case "show_information": $irl_data = irl_fetch_information(); $out .= irl_header($irl_data); $rounded_corners_tabs_options['return'] = TRUE; $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '?action=show_information&irl=' . $_GET['irl'] . '', 'label' => 'Information', 'current' => TRUE); $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . '?action=show_attendings&irl=' . $_GET['irl'] . '', 'label' => 'Deltagare'); $rounded_corners_tabs_options['tabs'][] = array('href' => $paths_prefix . $irl_data['forumthread_url'], 'label' => 'Forumtråd'); $out .= rounded_corners_tabs_top($rounded_corners_tabs_options); $out .= nl2br($irl_data['information']); $out .= rounded_corners_tabs_bottom(array('return' => TRUE)); break;