• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP html_display_success_msg函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中html_display_success_msg函数的典型用法代码示例。如果您正苦于以下问题:PHP html_display_success_msg函数的具体用法?PHP html_display_success_msg怎么用?PHP html_display_success_msg使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了html_display_success_msg函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: form_submit

    echo "    <tr>\n";
    echo "      <td align=\"center\">", form_submit("save", gettext("Save")), "&nbsp;", form_submit("back", gettext("Back")), "</td>\n";
    echo "    </tr>\n";
    echo "  </table>\n";
    echo "  </form>\n";
    echo "</div>\n";
    html_draw_bottom();
} else {
    if (session::check_perm(USER_PERM_FOLDER_MODERATE, $fid)) {
        html_draw_top(sprintf('title=%s', sprintf(gettext("Thread Options - %s"), $thread_data['TITLE'])), "basetarget=_blank", 'class=window_title');
        echo "<h1>", gettext("Thread Options"), ": <a href=\"messages.php?webtag={$webtag}&amp;msg={$msg}\" target=\"_self\">#{$tid} ", 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');
            }
        }
        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";
        echo "                <tr>\n";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:thread_options.php


示例2: header_redirect

            header_redirect("admin_default_forum_settings.php?webtag={$webtag}&updated=true", gettext("Forum settings successfully updated"));
        } else {
            $valid = false;
            $error_msg_array[] = gettext("Failed to update forum settings. Please try again later.");
        }
    }
    $forum_global_settings = array_merge($forum_global_settings, $new_forum_settings);
}
// Start Output Here
html_draw_top(sprintf('title=%s', gettext("Admin - Global Forum Settings")), 'class=window_title', "admin.js", "emoticons.js");
echo "<h1>", gettext("Admin"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />", gettext("Global Forum Settings"), "</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("Preferences were successfully updated."), '600', 'center');
    } else {
        html_display_warning_msg(gettext("<b>Note:</b> These settings affect all forums. Where the setting is duplicated on the individual Forum's settings page that will take precedence over the settings you change here."), '600', 'center');
    }
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"prefsform\" action=\"admin_default_forum_settings.php\" method=\"post\" target=\"_self\">\n";
echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\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";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:admin_default_forum_settings.php


示例3: header_redirect

        header_redirect("edit_email.php?webtag={$webtag}&updated=true");
        exit;
    } else {
        $error_msg_array[] = gettext("Some or all of your user account details could not be updated. Please try again later.");
        $valid = false;
    }
}
// Check to see if we should show the set for all forums checkboxes
$show_set_all = forums_get_available_count() > 1 ? true : false;
html_draw_top(array('title' => gettext('My Controls - Email & Privacy'), 'class' => 'window_title', 'js' => array('js/prefs.js')));
echo "<h1>", htmlentities_array(gettext("Email & Privacy")), "</h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    html_display_error_array($error_msg_array, '700', 'left');
} else {
    if (isset($_GET['updated'])) {
        html_display_success_msg(gettext("Preferences were successfully updated."), '700', 'left');
    }
}
echo "<br />\n";
echo "<form accept-charset=\"utf-8\" name=\"prefs\" action=\"edit_email.php\" method=\"post\" target=\"_self\">\n";
echo "  ", form_csrf_token_field(), "\n";
echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"700\">\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";
if ($show_set_all) {
    echo "                <tr>\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:edit_email.php


示例4: header_redirect

            header_redirect("admin_viewlog.php?webtag={$webtag}&sort_dir={$sort_dir}&sort_by={$sort_by}&group_by={$group_by}&pruned=true");
            exit;
        } else {
            $error_msg_array[] = gettext("Failed To Prune Admin Log");
            $valid = false;
        }
    }
}
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";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:admin_viewlog.php


示例5: admin_user_search

        }
    }
}
if (isset($user_search) && strlen($user_search) > 0) {
    $admin_user_array = admin_user_search($user_search, $sort_by, $sort_dir, $filter, $page);
} else {
    $admin_user_array = admin_user_get_all($sort_by, $sort_dir, $filter, $page);
}
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    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";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:admin_users.php


示例6: perm_remove_user_from_group

                perm_remove_user_from_group($uid, $gid);
                if (($user_logon = user_get_logon($uid)) && ($group_name = perm_get_group_name($gid))) {
                    admin_add_log_entry(REMOVE_USER_FROM_GROUP, array($user_logon, $group_name));
                }
            }
        }
    }
}
if (!($group = perm_get_group($gid))) {
    html_draw_error(gettext("Supplied GID is not a user group"), 'admin_user_groups.php', 'get', array('back' => gettext("Back")));
}
html_draw_top(array('title' => sprintf(gettext('Admin - Manage User Groups - %s - Add/Remove Users'), $group['GROUP_NAME']), 'class' => 'window_title', 'main_css' => 'admin.css'));
$group_users_array = perm_group_get_users($gid, $start_main);
echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Manage User Groups"), html_style_image('separator'), "{$group['GROUP_NAME']}", html_style_image('separator'), "", gettext("Add/Remove Users"), "</h1>\n";
if (isset($_GET['added'])) {
    html_display_success_msg(gettext("Successfully added group. Add users to this group by searching for them below."), '800', 'center');
} else {
    if (sizeof($group_users_array['user_array']) < 1) {
        html_display_warning_msg(gettext("There are no users in this group. Add users to this group by searching for them below."), '800', 'center');
    }
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"f_folders\" action=\"admin_user_groups_edit_users.php\" method=\"post\">\n";
echo "  ", form_csrf_token_field(), "\n";
echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo "  ", form_input_hidden('gid', htmlentities_array($gid)), "\n";
echo "  ", form_input_hidden("main_page", htmlentities_array($main_page)), "\n";
echo "  ", form_input_hidden("search_page", htmlentities_array($search_page)), "\n";
echo "  ", form_input_hidden("ret", htmlentities_array($ret)), "\n";
echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"800\">\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:admin_user_groups_edit_users.php


示例7: html_draw_top

html_draw_top("title={$page_title}", 'class=window_title');
echo "<h1>{$page_title}</h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    html_display_error_array($error_msg_array, '600', 'center');
} else {
    if (isset($success_html) && strlen(trim($success_html)) > 0) {
        html_display_success_msg($success_html, '600', 'center');
    } else {
        if (isset($_GET['profile_updated'])) {
            html_display_success_msg(gettext("Profile updated."), '600', 'center');
        } else {
            if (isset($_GET['signature_updated'])) {
                html_display_success_msg(gettext("Signature Updated"), '600', 'center');
            } else {
                if (isset($_GET['approved'])) {
                    html_display_success_msg(gettext("Successfully approved user"), '600', 'center');
                }
            }
        }
    }
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"admin_user_form\" action=\"admin_user.php\" method=\"post\">\n";
echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo "  ", form_input_hidden("uid", htmlentities_array($uid)), "\n";
echo "  ", form_input_hidden("ret", htmlentities_array($ret)), "\n";
if (session::check_perm(USER_PERM_ADMIN_TOOLS, 0)) {
    echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"600\">\n";
    echo "    <tr>\n";
    echo "      <td align=\"left\">\n";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:admin_user.php


示例8: header_redirect

            header_redirect("admin_user_groups.php?webtag={$webtag}&deleted=true");
            exit;
        }
    }
}
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";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:admin_user_groups.php


示例9: gettext

}
echo "<h1>", gettext("Private Messages"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />{$pm_folder_names_array[$current_folder]}</h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    html_display_error_array($error_msg_array, '96%', 'center');
} else {
    if (isset($_GET['message_sent'])) {
        html_display_success_msg(gettext("Message sent successfully."), '96%', 'center');
    } else {
        if (isset($_GET['message_saved'])) {
            html_display_success_msg(gettext("Message was successfully saved to 'Drafts' folder"), '96%', 'center');
        } 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');
                            }
                        }
                    }
                }
            }
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:pm_messages.php


示例10: html_draw_bottom

     html_draw_bottom();
 } else {
     html_draw_top(array('title' => gettext('Admin - Manage Forums'), 'class' => 'window_title', 'js' => array('js/admin.js'), 'main_css' => 'admin.css'));
     $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";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:admin_forums.php


示例11: html_display_success_msg

        html_display_success_msg($success_html, '800', 'center');
    } else {
        if (isset($_GET['profile_updated'])) {
            html_display_success_msg(gettext("Profile updated."), '800', 'center');
        } else {
            if (isset($_GET['signature_updated'])) {
                html_display_success_msg(gettext("Signature Updated"), '800', 'center');
            } else {
                if (isset($_GET['approved'])) {
                    html_display_success_msg(gettext("Successfully approved user"), '800', 'center');
                } else {
                    if (isset($_GET['group_removed'])) {
                        html_display_success_msg(gettext("Successfully removed user from group"), '800', 'center');
                    } else {
                        if (isset($_GET['group_added'])) {
                            html_display_success_msg(gettext("Successfully added user to group"), '800', 'center');
                        }
                    }
                }
            }
        }
    }
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"admin_user_form\" action=\"admin_user.php\" method=\"post\">\n";
echo "  ", form_csrf_token_field(), "\n";
echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo "  ", form_input_hidden("uid", htmlentities_array($uid)), "\n";
echo "  ", form_input_hidden("ret", htmlentities_array($ret)), "\n";
if (session::check_perm(USER_PERM_ADMIN_TOOLS, 0)) {
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:admin_user.php


示例12: html_draw_bottom

     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');
                     }
                 }
             }
         }
     }
     echo "<br />\n";
     echo "<div align=\"center\">\n";
     echo "<form accept-charset=\"utf-8\" name=\"f_sections\" action=\"admin_prof_items.php\" method=\"post\">\n";
     echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
     echo "  ", form_input_hidden("psid", htmlentities_array($psid)), "\n";
     echo "  ", form_input_hidden("sect_page", htmlentities_array($sect_page)), "\n";
     if (isset($viewitems)) {
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:admin_prof_items.php


示例13: html_draw_bottom

     html_draw_bottom();
 } else {
     html_draw_top(array('title' => gettext("Admin - Ban Controls"), 'class' => 'window_title', 'main_css' => 'admin.css'));
     $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";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:admin_banned.php


示例14: gettext

        } else {
            $error_msg_array[] = gettext("Failed to update folder");
            $valid = false;
        }
    }
}
// Prune old messages for the current user
pm_user_prune_folders($_SESSION['UID']);
// Get the name of the pm_messages frame set.
$pm_messages_frame = html_get_frame_name('pm_messages');
// Draw the header.
html_draw_top(array('title' => gettext('Private Messages'), 'base_target' => $pm_messages_frame, 'js' => array('js/pm.js'), 'pm_popup_disabled' => true));
if (isset($manage_folder) && is_numeric($manage_folder)) {
    echo "<h1>", gettext("Private Messages"), html_style_image('separator'), gettext("Manage Folder"), html_style_image('separator'), htmlentities_array($pm_folder_names_array[$manage_folder]), "</h1>\n";
    if (isset($_GET['folder_renamed'])) {
        html_display_success_msg(gettext("Successfully Renamed Folder"), '500', 'center', 'pm_rename_success');
    } else {
        if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
            html_display_error_array($error_msg_array, '500', 'center');
        }
    }
    echo "<br />\n";
    echo "<div align=\"center\">\n";
    echo "  <form accept-charset=\"utf-8\" name=\"pm_folder_options\" action=\"pm_folders.php\" method=\"post\" target=\"_self\">\n";
    echo "  ", form_csrf_token_field(), "\n";
    echo "  ", form_input_hidden("webtag", htmlentities_array($webtag)), "\n";
    echo "  ", form_input_hidden("manage_folder", htmlentities_array($manage_folder)), "\n";
    echo "  <table cellpadding=\"0\" cellspacing=\"0\" width=\"500\">\n";
    echo "    <tr>\n";
    echo "      <td align=\"left\">\n";
    echo "        <table class=\"box\" width=\"100%\">\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:pm_folders.php


示例15: html_draw_top

    exit;
}
html_draw_top(array('title' => gettext('Admin - Manage Folders'), 'class' => 'window_title', 'main_css' => 'admin.css'));
$folder_array = folder_get_all_by_page($page);
echo "<h1>", gettext("Admin"), html_style_image('separator'), gettext("Manage Folders"), "</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 folder"), '86%', 'center');
    } else {
        if (isset($_GET['edited'])) {
            html_display_success_msg(gettext("Successfully edited folder"), '86%', 'center');
        } else {
            if (isset($_GET['deleted'])) {
                html_display_success_msg(gettext("Successfully removed selected folders"), '86%', 'center');
            } else {
                if (sizeof($folder_array['folder_array']) < 1) {
                    html_display_warning_msg(gettext("No existing folders found. To add a folder click the 'Add New' button below."), '86%', 'center');
                } else {
                    html_display_warning_msg(gettext("Folder order only applies when user has enabled 'Sort Thread List by folders' in Forum Options."), '86%', 'center');
                }
            }
        }
    }
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "<form accept-charset=\"utf-8\" name=\"f_folders\" action=\"admin_folders.php\" method=\"post\">\n";
echo "  ", form_csrf_token_field(), "\n";
echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:admin_folders.php


示例16: array

}
$uid = session::get_value('UID');
$header_text_array = array(THREAD_IGNORED => gettext("Ignored Threads"), THREAD_INTERESTED => gettext("High Interest Threads"), THREAD_SUBSCRIBED => gettext("Subscribed Threads"));
$interest_level_array = array(THREAD_IGNORED => gettext("Ignored"), THREAD_INTERESTED => gettext("Interested"), THREAD_SUBSCRIBED => gettext("Subscribe"));
if (isset($search_keyword) && strlen(trim($search_keyword)) > 0) {
    $thread_subscriptions = threads_search_user_subscriptions($search_keyword, $view, $page);
} else {
    $thread_subscriptions = threads_get_user_subscriptions($view, $page);
}
html_draw_top(sprintf('title=%s', gettext("My Controls - Thread Subscriptions")), 'edit_subscriptions.js', 'class=window_title');
echo "<h1>", gettext("Thread Subscriptions"), "<img src=\"", html_style_image('separator.png'), "\" alt=\"\" border=\"0\" />{$header_text_array[$view]}</h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    html_display_error_array($error_msg_array, '600', 'left');
} else {
    if (isset($_GET['updated'])) {
        html_display_success_msg(gettext("Thread interests updated successfully"), '600', 'left');
    } else {
        if (sizeof($thread_subscriptions['thread_array']) < 1) {
            if (isset($search_keyword) && strlen(trim($search_keyword)) > 0) {
                html_display_warning_msg(gettext("Search Returned No Results"), '600', 'left');
            } else {
                if ($view == THREAD_IGNORED) {
                    html_display_warning_msg(gettext("You are not ignoring any threads."), '600', 'left');
                } else {
                    if ($view == THREAD_INTERESTED) {
                        html_display_warning_msg(gettext("You have no high interest threads."), '600', 'left');
                    } else {
                        html_display_warning_msg(gettext("You are not subscribed to any threads."), '600', 'left');
                    }
                }
            }
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:edit_subscriptions.php


示例17: html_draw_top

            } else {
                if (isset($_POST['suggest'])) {
                    // Get more suggestions for the current word
                    $dictionary->get_more_suggestions();
                } else {
                    // We're moving to the next word;
                    $dictionary->find_next_word();
                }
            }
        }
    }
}
html_draw_top(sprintf('title=%s', gettext("Dictionary")), 'dictionary.js', 'pm_popup_disabled', 'class=window_title');
echo "<h1>", gettext("Dictionary"), "</h1>\n";
if ($dictionary->is_check_complete()) {
    html_display_success_msg(gettext("Spell check is complete. To restart spell check click restart button below."), '500', 'center');
}
echo "<br />\n";
echo "<div align=\"center\">\n";
echo "  <form accept-charset=\"utf-8\" name=\"dictionary\" action=\"dictionary.php\" method=\"post\" target=\"_self\">\n";
echo "    ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
echo "    ", form_input_hidden('obj_id', htmlentities_array($dictionary->get_obj_id())), "\n";
if ($ignored_words_array = $dictionary->get_ignored_words()) {
    foreach ($ignored_words_array as $ignored_word) {
        echo "    ", form_input_hidden('ignored_words[]', htmlentities_array($ignored_word)), "\n";
    }
}
echo "    ", form_input_hidden('content', htmlentities_array($dictionary->get_content())), "\n";
echo "    ", form_input_hidden('current_word', htmlentities_array($dictionary->get_current_word_index())), "\n";
echo "    ", form_input_hidden('offset_match', htmlentities_array($dictionary->get_offset_match())), "\n";
echo "    <table cellpadding=\"0\" cellspacing=\"0\" width=\"500\">\n";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:dictionary.php


示例18: array_merge

    }
    // Append ignored folders onto the end of the folder list.
    // This will make them appear at the bottom of the thread list.
    $folder_order = array_merge($folder_order, $ignored_folders);
} else {
    while (list($fid, $folder_data) = each($folder_info)) {
        if (!in_array($fid, $folder_order)) {
            $folder_order[] = $fid;
        }
    }
}
// Draw discussion dropdown
thread_list_draw_top($mode, $folder);
// If no threads are returned, say something to that effect
if (isset($_REQUEST['mark_read_success'])) {
    html_display_success_msg(gettext("Successfully marked selected threads as read"), '100%', 'left');
} else {
    if (!is_array($thread_info)) {
        if (is_numeric($folder) && ($folder_title = folder_get_title($folder))) {
            $all_discussions_link = sprintf("<a href=\"thread_list.php?webtag={$webtag}&amp;folder={$folder}&amp;mode=0\">%s</a>", gettext("click here"));
            html_display_warning_msg(sprintf(gettext("No &quot;%s&quot; in &quot;%s&quot; folder. Please select another folder, or %s for all threads."), $available_views[$mode], $folder_title, $all_discussions_link), '100%', 'left');
        } else {
            $all_discussions_link = sprintf("<a href=\"thread_list.php?webtag={$webtag}&amp;mode=0\">%s</a>", gettext("click here"));
            html_display_warning_msg(sprintf(gettext("No &quot;%s&quot; available. Please %s for all threads."), $available_views[$mode], $all_discussions_link), '100%', 'left');
        }
    } else {
        if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
            html_display_error_array($error_msg_array, '100%', 'left');
        } else {
            if (is_numeric($folder) && ($folder_title = folder_get_title($folder))) {
                $all_folders_link = sprintf("<a href=\"thread_list.php?webtag={$webtag}&amp;mode={$mode}\">%s</a>", gettext("click here"));
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:thread_list.php


示例19: rawurlencode

                $ret = rawurlencode($ret);
                $user_search = rawurlencode($user_search);
                header_redirect("admin_forum_access.php?webtag={$webtag}&user_search={$user_search}&ret={$ret}&removed=true");
                exit;
            }
        }
    }
}
html_dra 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP html_display_warning_msg函数代码示例发布时间:2022-05-15
下一篇:
PHP html_display_error_array函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap