echo " <tr>\n"; echo " <td align=\"left\"> </td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"center\">", form_submit("edititemsubmit", gettext("Save")), " ", form_submit("delete", gettext("Delete")), " ", form_submit("cancel", gettext("Cancel")), "</td>\n"; echo " </tr>\n"; echo " </table>\n"; html_display_warning_msg(gettext("To create Radio Buttons or a Drop Down List you need to enter each individual value on a separate line in the Options field."), '700', 'center'); html_display_warning_msg(gettext("To create clickable links enter the URL in the Options field and use <i>[ProfileEntry]</i> where the entry from the user's profile should appear. Examples: <p>MySpace: <i>http://www.myspace.com/[ProfileEntry]</i><br />Xbox LIVE: <i>http://profile.mygamercard.net/[ProfileEntry]</i></p>"), '700', 'center'); echo "</form>\n"; echo "</div>\n"; html_draw_bottom(); } else { html_draw_top(array('title' => sprintf(gettext('Admin - Manage Profile Sections - %s - View Items'), profile_section_get_name($psid)), 'class' => 'window_title', 'main_css' => 'admin.css')); $profile_items = profile_items_get_by_page($psid, $page); echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Manage Profile Sections"), html_style_image('separator'), profile_section_get_name($psid), html_style_image('separator'), gettext("View items"), "</h1>\n"; if (isset($error_msg_array) && sizeof($error_msg_array) > 0) { html_display_error_array($error_msg_array, '86%', 'center'); } else { if (isset($_GET['added'])) { html_display_success_msg(gettext("Successfully added new profile item"), '86%', 'center'); } else { if (isset($_GET['edited'])) { html_display_success_msg(gettext("Successfully edited profile item"), '86%', 'center'); } else { if (isset($_GET['deleted'])) { html_display_success_msg(gettext("Successfully removed selected profile items"), '86%', 'center'); } else { if (sizeof($profile_items['profile_items_array']) < 1) { html_display_warning_msg(gettext("There are no existing profile items in this section. To add an item click the 'Add New' button below."), '86%', 'center'); }
$valid = true; if (isset($_POST['psid']) && is_numeric($_POST['psid'])) { $psid = $_POST['psid']; } else { $error_msg_array[] = gettext("Must specify a profile section ID"); $valid = false; } if (isset($_POST['t_name_new']) && strlen(trim($_POST['t_name_new'])) > 0) { $t_new_name = trim($_POST['t_name_new']); } else { $error_msg_array[] = gettext("Must specify a profile section name"); $valid = false; } if ($valid) { if (profile_section_update($psid, $t_new_name)) { $t_section_name = profile_section_get_name($psid); if ($t_new_name != $t_section_name) { admin_add_log_entry(CHANGE_PROFILE_SECT, array($t_section_name, $t_new_name)); } header_redirect("admin_prof_sect.php?webtag={$webtag}&edited=true"); exit; } } } else { if (isset($_POST['addsection'])) { $redirect = "admin_prof_sect.php?webtag={$webtag}&page={$page}&addsection=true"; header_redirect($redirect); exit; } else { if (isset($_POST['viewitems']) && is_array($_POST['viewitems'])) { list($psid) = array_keys($_POST['viewitems']);
echo " <tr>\n"; echo " <td align=\"left\"> </td>\n"; echo " </tr>\n"; echo " <tr>\n"; echo " <td align=\"center\">", form_submit("edititemsubmit", gettext("Save")), " ", form_submit("delete", gettext("Delete")), " ", form_submit("cancel", gettext("Cancel")), "</td>\n"; echo " </tr>\n"; echo " </table>\n"; html_display_warning_msg(gettext("To create Radio Buttons or a Drop Down List you need to enter each individual value on a separate line in the Options field."), '500', 'center'); html_display_warning_msg(gettext("To create clickable links enter the URL in the Options field and use <i>[ProfileEntry]</i> where the entry from the user's profile should appear. Examples: <p>MySpace: <i>http://www.myspace.com/[ProfileEntry]</i><br />Xbox LIVE: <i>http://profile.mygamercard.net/[ProfileEntry]</i></p>"), '500', 'center'); echo "</form>\n"; echo "</div>\n"; html_draw_bottom(); } else { html_draw_top(sprintf('title=%s', sprintf(gettext("Admin - Manage Profile Sections - %s - View Items"), profile_section_get_name($psid))), 'class=window_title'); $profile_items = profile_items_get_by_page($psid, $page); echo "<h1>", gettext("Admin"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />", gettext("Manage Profile Sections"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />", profile_section_get_name($psid), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />", gettext("View items"), "</h1>\n"; if (isset($error_msg_array) && sizeof($error_msg_array) > 0) { html_display_error_array($error_msg_array, '75%', 'center'); } else { if (isset($_GET['added'])) { html_display_success_msg(gettext("Successfully added new profile item"), '75%', 'center'); } else { if (isset($_GET['edited'])) { html_display_success_msg(gettext("Successfully edited profile item"), '75%', 'center'); } else { if (isset($_GET['deleted'])) { html_display_success_msg(gettext("Successfully removed selected profile items"), '75%', 'center'); } else { if (sizeof($profile_items['profile_items_array']) < 1) { html_display_warning_msg(gettext("There are no existing profile items in this section. To add an item click the 'Add New' button below."), '75%', 'center'); }