本文整理汇总了PHP中html_display_warning_msg函数的典型用法代码示例。如果您正苦于以下问题:PHP html_display_warning_msg函数的具体用法?PHP html_display_warning_msg怎么用?PHP html_display_warning_msg使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了html_display_warning_msg函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: html_display_success_msg
if (isset($_GET['deleted'])) {
html_display_success_msg(gettext("Successfully deleted selected groups"), '86%', 'center');
} else {
if (isset($_GET['default'])) {
if (isset($user_group_name_array[$_GET['default']])) {
html_display_success_msg(sprintf(gettext('Successfully set default group to "%s".'), $user_group_name_array[$_GET['default']]), '86%', 'center');
} else {
if ($_GET['default'] == 0) {
html_display_success_msg(gettext('Successfully cleared default group'), '86%', 'center');
}
}
} else {
if (sizeof($user_groups_array['user_groups_array']) < 1) {
html_display_warning_msg(gettext("No User Groups have been set up. To add a group click the 'Add New' button below."), '86%', 'center');
} else {
html_display_warning_msg(gettext("To change the default group, click the tick in the right-hand column. Note: The default group will be applied the first time a user visits your forum. It will not be applied retrospectively."), '86%', 'center');
}
}
}
}
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"f_folders\" action=\"admin_user_groups.php\" method=\"post\">\n";
echo " ", form_csrf_token_field(), "\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"86%\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
示例2: gettext
echo " <tr>\n";
echo " <td align=\"left\" style=\"white-space: nowrap\">", gettext("Display AdSense Ads after post"), ":</td>\n";
echo " <td align=\"left\">", form_input_text('adsense_message_number', isset($forum_global_settings['adsense_message_number']) && is_numeric($forum_global_settings['adsense_message_number']) ? $forum_global_settings['adsense_message_number'] : 1, 15, 40), "</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" colspan=\"2\"> </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" colspan=\"2\">\n";
echo " <p class=\"smalltext\">", gettext("Your Beehive Forum supports 2 different sizes of <b>Google AdSense</b> adverts. Enter the slot ids of the relevant sized ads into the boxes above and Beehive will automatically choose the correct ad for each page."), "</p>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"center\" colspan=\"2\">\n";
html_display_warning_msg(gettext("If you do not have a Google AdSense Account you will need to sign up for one by clicking <a href=\"https://www.google.com/adsense/\" target=\"_blank\">here</a>."), '95%', 'center');
html_display_warning_msg(gettext("If you wish to enable or disable Google AdSense ads on a particular forum you can do so by visiting that forum's Forum Settings page."), '95%', 'center');
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " <br />\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
echo " <tr>\n";
示例3: forum_check_password
function forum_check_password($forum_fid)
{
if (!is_numeric($forum_fid)) {
return false;
}
$webtag = get_webtag();
if (!($forum_passhash = forum_get_password($forum_fid))) {
return true;
}
$forum_passhash_check = session::get_value("{$webtag}_PASSWORD");
if (isset($_POST['forum_password']) && strlen($_POST['forum_password']) > 0) {
$forum_passhash_check = md5($_POST['forum_password']);
}
if ($forum_passhash == $forum_passhash_check) {
session::set_value("{$webtag}_PASSWORD", $forum_passhash_check);
return true;
}
html_draw_top(sprintf("title=%s", gettext("Password Protected Forum")));
echo "<h1>", gettext("Password Protected Forum"), "</h1>\n";
if (session::get_value("{$webtag}_PASSWORD")) {
html_display_error_msg(gettext("The username or password you supplied is not valid."), '550', 'center');
}
if ($password_protected_message = forum_get_setting('password_protected_message')) {
echo fix_html($password_protected_message);
} else {
html_display_warning_msg(gettext("This forum is password protected. To gain access enter the password below."), '400', 'center');
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo " <form accept-charset=\"utf-8\" method=\"post\" action=\"", get_request_uri(), "\" target=\"_self\" autocomplete=\"off\">\n";
if (isset($_POST) && is_array($_POST) && sizeof($_POST) > 0) {
echo form_input_hidden_array($_POST);
}
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"400\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"400\">\n";
echo " <tr>\n";
echo " <td class=\"posthead\" align=\"center\">\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"subhead\" colspan=\"2\">", gettext("Enter Password"), "</td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " <table class=\"posthead\" width=\"90%\">\n";
echo " <tr>\n";
echo " <td align=\"left\">", gettext("Password"), ":</td>\n";
echo " <td align=\"left\">", form_input_password('forum_password', '', 40, false, ''), "</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" colspan=\"2\"> </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\"> </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"center\">", form_submit("logon", gettext("Logon")), " ", form_submit("cancel", gettext("Cancel")), "</td>\n";
echo " </tr>\n";
echo " </table>\n";
if (session::check_perm(USER_PERM_ADMIN_TOOLS, 0) || session::check_perm(USER_PERM_FORUM_TOOLS, 0)) {
html_display_warning_msg(gettext("If you want to change some settings on your forum click the Admin link in the navigation bar above."), '400', 'center');
}
echo " </form>\n";
echo "</div>\n";
html_draw_bottom();
exit;
}
示例4: html_draw_top
}
}
}
html_draw_top(array('title' => gettext('Admin - Admin Access Log'), 'class' => 'window_title', 'main_css' => 'admin.css'));
$admin_log_array = admin_get_log_entries($page, $group_by, $sort_by, $sort_dir);
echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Admin Access Log"), "</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['pruned'])) {
html_display_success_msg(gettext("Successfully Pruned Admin Log"), '86%', 'center');
} else {
if (sizeof($admin_log_array['admin_log_array']) < 1) {
html_display_warning_msg(gettext("Admin Log is empty"), '86%', 'center');
} else {
html_display_warning_msg(gettext("This list shows the last actions sanctioned by users with Admin privileges."), '86%', 'center');
}
}
}
echo "<div align=\"center\">\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"86%\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table width=\"100%\">\n";
echo " <tr>\n";
echo " <td class=\"subhead\" width=\"10%\" align=\"left\">\n";
if ($sort_by == 'CREATED' && $sort_dir == 'ASC') {
echo " <a href=\"admin_viewlog.php?webtag={$webtag}&sort_by=CREATED&sort_dir=DESC&group_by={$group_by}&page={$page}\">", gettext("Date/Time"), "</a>\n";
示例5: html_display_error_array
html_display_error_array($error_msg_array, '86%', 'center');
} else {
if (isset($_GET['kicked'])) {
html_display_success_msg(gettext("Successfully ended sessions for selected users"), '86%', 'center');
} else {
if (isset($_GET['approved'])) {
html_display_success_msg(gettext("Successfully approved selected users"), '86%', 'center');
} else {
if (sizeof($admin_user_array['user_array']) < 1) {
if (isset($user_search) && strlen($user_search) > 0) {
html_display_error_msg(gettext("Your search did not return any matches. Try simplifying your search parameters and try again."), '86%', 'center');
} else {
html_display_error_msg(gettext("No user accounts matching filter"), '86%', 'center');
}
} else {
html_display_warning_msg(sprintf(gettext("This list shows a selection of users who have logged on to your forum, sorted by %s. To alter a user's permissions click their name."), htmlentities_array($sort_by_array[$sort_by])), '86%', 'center');
}
}
}
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" action=\"admin_users.php\" method=\"post\">\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden('user_search', htmlentities_array($user_search)), "\n";
echo " ", form_input_hidden("sort_by", htmlentities_array($sort_by)), "\n";
echo " ", form_input_hidden("sort_dir", htmlentities_array($sort_dir)), "\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"86%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" colspan=\"3\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
示例6: html_draw_bottom
html_draw_bottom();
exit;
}
} else {
$error_msg_array[] = gettext("Error creating user record");
$valid = false;
}
}
}
html_draw_top(sprintf('title=%s', gettext("User Registration")), 'emoticons.js', 'register.js', "basetarget={$frame_top_target}", 'class=window_title');
echo "<h1>", gettext("User Registration"), "</h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
html_display_error_array($error_msg_array, '600', 'center');
}
if (isset($user_agree_rules) && $user_agree_rules == 'Y') {
html_display_warning_msg(gettext("More Profile and Preference options are available once you register"), '600', 'center');
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"form_register\" action=\"register.php\" method=\"post\" target=\"_self\">\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden('user_agree_rules', htmlentities_array($user_agree_rules)), "\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"subhead\">", gettext("Registration Information (Required)"), "</td>\n";
echo " </tr>\n";
echo " </table>\n";
示例7: html_display_warning_msg
echo " <td align=\"left\" colspan=\"4\"> </td>\n";
echo " </tr>\n";
echo " </table>\n";
}
echo " </div>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td>\n";
html_display_warning_msg(gettext("Note: This user may be inheriting additional permissions from any user groups listed below."), '95%', 'center');
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " <br />\n";
}
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
示例8: gettext
echo " <td align=\"center\">\n";
echo " <table class=\"posthead\" width=\"95%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" width=\"220\">", gettext("Display AdSense Ads for"), ":</td>\n";
echo " <td align=\"left\">", form_dropdown_array('adsense_display_users', $adsense_user_type_array, isset($forum_global_settings['adsense_display_users']) && in_array($forum_global_settings['adsense_display_users'], array_keys($adsense_user_type_array)) ? $forum_global_settings['adsense_display_users'] : ADSENSE_DISPLAY_NONE), "</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" style=\"white-space: nowrap\">", gettext("Display AdSense Ads on"), ":</td>\n";
echo " <td align=\"left\">", form_dropdown_array('adsense_display_pages', $adsense_page_type_array, isset($forum_global_settings['adsense_display_pages']) && in_array($forum_global_settings['adsense_display_pages'], array_keys($adsense_page_type_array)) ? $forum_global_settings['adsense_display_pages'] : ADSENSE_DISPLAY_TOP_OF_ALL_PAGES), "</td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"left\" colspan=\"2\"> </td>\n";
echo " </tr>\n";
echo " <tr>\n";
echo " <td align=\"center\" colspan=\"2\">\n";
html_display_warning_msg(gettext("To change Google AdSense account details and other settings please see Global Forum Settings"), '95%', 'center');
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " </td>\n";
echo " </tr>\n";
echo " </table>\n";
echo " <br />\n";
}
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"700\">\n";
示例9: html_display_success_msg
} else {
if (isset($_GET['deleted'])) {
html_display_success_msg(gettext("Successfully deleted selected messages"), '96%', 'center', 'pm_delete_success');
} else {
if (isset($_GET['archived'])) {
html_display_success_msg(gettext("Successfully archived selected messages"), '96%', 'center', 'pm_archive_success');
} else {
if (isset($_GET['search_no_results'])) {
html_display_warning_msg(gettext("Search Returned No Results"), '96%', 'center');
} else {
if (isset($_GET['search_frequency_error'])) {
$search_frequency = forum_get_setting('search_min_frequency', null, 0);
html_display_warning_msg(sprintf(gettext("You can only search once every %s seconds. Please try again later."), $search_frequency), '96%', 'center');
} else {
if (isset($pm_messages_array['message_array']) && sizeof($pm_messages_array['message_array']) < 1) {
html_display_warning_msg(sprintf(gettext("Your %s folder is empty"), htmlentities_array($pm_folder_names_array[$current_folder])), '96%', 'center');
}
}
}
}
}
}
}
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"pm\" action=\"pm_messages.php\" method=\"post\" target=\"_self\">\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden('mid', htmlentities_array($mid)), "\n";
echo " ", form_input_hidden('folder', htmlentities_array($current_folder)), "\n";
echo " ", form_input_hidden('page', htmlentities_array($page)), "\n";
示例10: admin_get_forum_list
$forums_array = admin_get_forum_list($page);
echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Manage Forums"), "</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 created new forum"), '86%', 'center', 'forum_created');
} else {
if (isset($_GET['edited'])) {
html_display_success_msg(gettext("Successfully updated forum"), '86%', 'center', 'forum_updated');
} else {
if (isset($_GET['deleted'])) {
html_display_success_msg(gettext("Successfully deleted selected forums"), '86%', 'center', 'forum_removed');
} else {
if (sizeof($forums_array['forums_array']) < 1) {
html_display_warning_msg(gettext("No existing forums found. To create a new forum click the 'Add New' button below."), '86%', 'center');
}
}
}
}
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"forums\" action=\"admin_forums.php\" method=\"post\">\n";
echo " ", form_csrf_token_field(), "\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden('page', htmlentities_array($page)), "\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"86%\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
示例11: html_draw_top
}
}
html_draw_top(sprintf('title=%s', gettext("Admin - User Groups")), 'class=window_title');
$user_groups_array = perm_get_user_groups($page, $sort_by, $sort_dir);
echo "<h1>", gettext("Admin"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />", gettext("User Groups"), "</h1>\n";
if (isset($_GET['added'])) {
html_display_success_msg(gettext("Successfully added group"), '86%', 'center');
} else {
if (isset($_GET['edited'])) {
html_display_success_msg(gettext("Successfully edited group"), '86%', 'center');
} else {
if (isset($_GET['deleted'])) {
html_display_success_msg(gettext("Successfully deleted selected groups"), '86%', 'center');
} else {
if (sizeof($user_groups_array['user_groups_array']) < 1) {
html_display_warning_msg(gettext("No User Groups have been set up. To add a group click the 'Add New' button below."), '86%', 'center');
}
}
}
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"f_folders\" action=\"admin_user_groups.php\" method=\"post\">\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"86%\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
示例12: admin_get_ban_data
$ban_list_array = admin_get_ban_data($sort_by, $sort_dir, $page);
echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Ban Controls"), "</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 ban"), '86%', 'center');
} else {
if (isset($_GET['removed'])) {
html_display_success_msg(gettext("Successfully removed selected bans"), '86%', 'center');
} else {
if (isset($_GET['edited'])) {
html_display_success_msg(gettext("Successfully updated ban"), '86%', 'center');
} else {
if (sizeof($ban_list_array['ban_array']) < 1) {
html_display_warning_msg(gettext("There is no existing ban data. To add a ban click the 'Add New' button below."), '86%', 'center');
}
}
}
}
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"admin_banned_form\" action=\"admin_banned.php\" method=\"post\">\n";
echo " ", form_csrf_token_field(), "\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden("ret", htmlentities_array($ret)), "\n";
echo " ", form_input_hidden("page", htmlentities_array($page)), "\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"86%\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
示例13: header_redirect
if ($valid) {
header_redirect("thread_options.php?webtag={$webtag}&msg={$msg}&updated=true");
exit;
}
}
if ($thread_data['DELETED'] == 'N') {
html_draw_top(sprintf('title=%s', sprintf(gettext("Thread Options - %s"), $thread_data['TITLE'])), "basetarget=_blank", 'search_popup.js', 'class=window_title');
echo "<h1>", gettext("Thread Options"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" /><a href=\"messages.php?webtag={$webtag}&msg={$msg}\" target=\"_self\">", word_filter_add_ob_tags($thread_data['TITLE'], true), "</a></h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
html_display_error_array($error_msg_array, '600', 'center');
} else {
if (isset($_GET['updated'])) {
html_display_success_msg(gettext("Updates saved successfully"), '600', 'center');
} else {
if (thread_is_poll($tid)) {
html_display_warning_msg(gettext("To rename this thread you must edit the poll."), '600', 'center');
}
}
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo " <form accept-charset=\"utf-8\" name=\"thread_options\" action=\"thread_options.php\" method=\"post\" target=\"_self\">\n";
echo " ", form_input_hidden("webtag", htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden("msg", htmlentities_array($msg)), "\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
示例14: form_submit
echo " <tr>\n";
echo " <td align=\"center\">", form_submit("approve", gettext("Approve")), " ", form_submit("delete", gettext("Delete")), " ", form_submit("cancel", gettext("Cancel")), "</td>\n";
echo " </tr>\n";
echo " </table>\n";
echo "</form>\n";
echo "</div>\n";
html_draw_bottom();
} else {
html_draw_error(gettext("Invalid link ID!"), 'admin_link_approve.php', 'post', array('cancel' => gettext("Cancel")), array('ret' => $ret), '_self', 'center');
}
} else {
html_draw_top(sprintf('title=%s', gettext("Admin - Link Approval Queue")), 'class=window_title');
$link_approval_array = admin_get_link_approval_queue($page);
echo "<h1>", gettext("Admin"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />", gettext("Link Approval Queue"), "</h1>\n";
if (sizeof($link_approval_array['link_array']) < 1) {
html_display_warning_msg(gettext("No links are awaiting approval"), '86%', 'center');
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"86%\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td align=\"left\" class=\"posthead\">\n";
echo " <table class=\"posthead\" width=\"100%\">\n";
echo " <tr>\n";
echo " <td class=\"subhead\" align=\"left\" width=\"20\"> </td>\n";
echo " <td class=\"subhead\" align=\"left\">", gettext("Name"), "</td>\n";
echo " <td class=\"subhead\" align=\"left\">", gettext("Folder"), "</td>\n";
echo " <td class=\"subhead\" align=\"left\" width=\"200\">", gettext("User"), "</td>\n";
示例15: profile_sections_get_by_page
$profile_sections = profile_sections_get_by_page($page);
echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Manage Profile Sections"), "</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 profile section"), '86%', 'center');
} else {
if (isset($_GET['edited'])) {
html_display_success_msg(gettext("Successfully edited profile section"), '86%', 'center');
} else {
if (isset($_GET['deleted'])) {
html_display_success_msg(gettext("Successfully removed selected profile sections"), '86%', 'center');
} else {
if (sizeof($profile_sections['profile_sections_array']) < 1) {
html_display_warning_msg(gettext("No existing profile sections found. To add a profile section click the 'Add New' button below."), '86%', 'center');
}
}
}
}
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"f_sections\" action=\"admin_prof_sect.php\" method=\"post\">\n";
echo " ", form_csrf_token_field(), "\n";
echo " ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo " ", form_input_hidden('page', htmlentities_array($page)), "\n";
echo " <table cellpadding=\"0\" cellspacing=\"0\" width=\"86%\">\n";
echo " <tr>\n";
echo " <td align=\"left\">\n";
echo " <table class=\"box\" width=\"100%\">\n";