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

PHP word_filter_add_ob_tags函数代码示例

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

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



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

示例1: gettext

    echo "                  <td align=\"center\" class=\"subhead\" width=\"150\"><a href=\"links.php?webtag={$webtag}&amp;fid={$fid}&amp;viewmode={$viewmode}&amp;page={$page}&amp;sort_by=CREATED&amp;sort_dir=ASC\">", gettext("Date"), "</a>&nbsp;</td>\n";
}
if ($sort_by == "RATING" && $sort_dir == "DESC") {
    echo "                  <td align=\"center\" class=\"subhead\" width=\"100\"><a href=\"links.php?webtag={$webtag}&amp;fid={$fid}&amp;viewmode={$viewmode}&amp;page={$page}&amp;sort_by=RATING&amp;sort_dir=ASC\">", gettext("Rating"), "</a>&nbsp;</td>";
} else {
    echo "                  <td align=\"center\" class=\"subhead\" width=\"100\"><a href=\"links.php?webtag={$webtag}&amp;fid={$fid}&amp;viewmode={$viewmode}&amp;page={$page}&amp;sort_by=RATING&amp;sort_dir=DESC\">", gettext("Rating"), "</a>&nbsp;</td>";
}
echo "                </tr>\n";
if (sizeof($links['links_array']) > 0) {
    foreach ($links['links_array'] as $key => $link) {
        if ($link['VISIBLE'] == "N") {
            echo "                <tr class=\"link_hidden\">\n";
            echo "                  <td align=\"left\" class=\"postbody\" valign=\"top\">&nbsp;<a href=\"links_detail.php?webtag={$webtag}&amp;lid={$key}&amp;fid={$fid}\" class=\"link_hidden\">", word_filter_add_ob_tags($link['TITLE'], true), "</a></td>\n";
        } else {
            echo "                <tr>\n";
            echo "                  <td align=\"left\" class=\"postbody\" valign=\"top\">&nbsp;<a href=\"links_detail.php?webtag={$webtag}&amp;lid={$key}&amp;fid={$fid}\">", word_filter_add_ob_tags($link['TITLE'], true), "</a></td>\n";
        }
        echo "                  <td align=\"center\" class=\"postbody\" valign=\"top\">", format_time($link['CREATED']), "</td>\n";
        if (isset($link['RATING']) && strlen($link['RATING']) > 0) {
            echo "                  <td align=\"center\" class=\"postbody\" valign=\"top\">", number_format($link['RATING'], 1, ".", ","), "</td>\n";
        } else {
            echo "                  <td align=\"center\" class=\"postbody\" valign=\"top\">&nbsp;</td>\n";
        }
        echo "                </tr>\n";
    }
}
echo "                <tr>\n";
echo "                  <td align=\"left\" class=\"postbody\">&nbsp;</td>\n";
echo "                </tr>\n";
echo "              </table>\n";
echo "            </td>\n";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:links.php


示例2: form_csrf_token_field

echo "<form accept-charset=\"utf-8\" name=\"f_post\" action=\"lpm_edit.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('mid', htmlentities_array($mid)), "\n";
echo "<div class=\"post\">\n";
echo "<h3>", gettext("Edit Message"), "</h3>\n";
echo "<div class=\"post_inner\">\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    light_html_display_error_array($error_msg_array);
}
echo "<div class=\"post_thread_title\">", gettext("Subject"), ":", light_form_input_text("t_subject", isset($t_subject) ? htmlentities_array($t_subject) : "", 30, 64), "</div>\n";
echo "<div class=\"post_to\">", gettext("To"), ":\n";
echo "<div class=\"recipients\">\n";
if (isset($message_data['RECIPIENTS']) && sizeof($message_data['RECIPIENTS']) > 0) {
    foreach ($message_data['RECIPIENTS'] as $recipient) {
        echo word_filter_add_ob_tags(format_user_name($recipient['LOGON'], $recipient['NICKNAME']), true), "\n";
    }
} else {
    echo gettext('Unknown User');
}
echo "</div>\n";
echo "</div>\n";
echo "<div class=\"post_content\">", light_form_textarea("t_content", htmlentities_array(strip_paragraphs($t_content)), 10, 50, null, 'textarea'), "</div>\n";
echo "<div class=\"post_buttons\">";
echo light_form_submit("apply", gettext("Apply"));
echo light_form_submit("preview", gettext("Preview"));
echo light_form_submit("cancel", gettext("Cancel"));
echo "</div>";
if (attachments_check_dir()) {
    echo "<div class=\"attachments post_attachments\">", gettext('Attachments'), ":\n";
    echo "  ", attachments_form($_SESSION['UID'], $attachments), "\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:lpm_edit.php


示例3: form_csrf_token_field

if (session::logged_in()) {
    echo "<form accept-charset=\"utf-8\" name=\"link_comment\" action=\"links_detail.php\" method=\"post\">\n";
    echo "  ", form_csrf_token_field(), "\n";
    echo "  ", form_input_hidden('webtag', htmlentities_array($webtag)), "\n";
    echo "  ", form_input_hidden("type", "comment"), "\n";
    echo "  ", form_input_hidden("lid", htmlentities_array($lid)), "\n";
    echo "  ", form_input_hidden("parent_fid", htmlentities_array($parent_fid)), "\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("Add a comment about"), " ", word_filter_add_ob_tags($link['TITLE'], true), "</td>";
    echo "                </tr>\n";
    echo "                <tr>\n";
    echo "                  <td align=\"center\">\n";
    echo "                    <table class=\"posthead\" width=\"95%\">\n";
    echo "                      <tr>\n";
    echo "                        <td align=\"left\">", form_textarea("comment", null, 6, 74), "</td>\n";
    echo "                      </tr>\n";
    echo "                      <tr>\n";
    echo "                        <td align=\"left\">&nbsp;</td>\n";
    echo "                      </tr>\n";
    echo "                    </table>\n";
    echo "                  </td>\n";
    echo "                </tr>\n";
    echo "              </table>\n";
    echo "            </td>\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:links_detail.php


示例4: form_input_text

    echo "                      </tr>\n";
    echo "                      <tr>\n";
    echo "                        <td align=\"left\">", form_input_text("t_threadtitle", htmlentities_array($t_threadtitle), 0, 0, false, "thread_title"), form_input_hidden("t_newthread", "Y"), "</td>\n";
    echo "                      </tr>\n";
} else {
    echo "                      <tr>\n";
    echo "                        <td align=\"left\"><h2>", gettext("Folder"), "</h2></td>\n";
    echo "                      </tr>\n";
    echo "                      <tr>\n";
    echo "                        <td align=\"left\">", word_filter_add_ob_tags($thread_data['FOLDER_TITLE'], true), "</td>\n";
    echo "                      </tr>\n";
    echo "                      <tr>\n";
    echo "                        <td align=\"left\"><h2>", gettext("Thread title"), "</h2></td>\n";
    echo "                      </tr>\n";
    echo "                      <tr>\n";
    echo "                        <td align=\"left\">", word_filter_add_ob_tags($thread_data['TITLE'], true), form_input_hidden("t_tid", htmlentities_array($reply_to_tid)), form_input_hidden("t_rpid", htmlentities_array($reply_to_pid)), "</td>\n";
    echo "                      </tr>\n";
}
echo "                      <tr>\n";
echo "                        <td align=\"left\"><h2>", gettext("To"), "</h2></td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\" style=\"white-space: nowrap\">", form_input_text_search("t_to_user", htmlentities_array($t_to_user), false, false, SEARCH_LOGON, false, "", "post_to_others"), "</td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\">&nbsp;</td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\"><h2>", gettext("Thread options"), "</h2></td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:post.php


示例5: links_get_folder_path_links

function links_get_folder_path_links($fid, $folders, $html = true, $link_last_too = false, $link_base = false)
{
    $webtag = get_webtag();
    forum_check_webtag_available($webtag);
    if (!is_numeric($fid)) {
        return false;
    }
    if (!is_array($folders)) {
        return false;
    }
    if (!isset($folders[$fid])) {
        return false;
    }
    $tree_fid = $fid;
    $tree_array = array();
    list($key) = array_keys($folders);
    while ($tree_fid != $key) {
        $tree_array[] = $tree_fid;
        $tree_fid = $folders[$tree_fid]['PARENT_FID'];
    }
    $link_base = $link_base ? $link_base : "links.php?webtag={$webtag}";
    if (strstr($link_base, "?")) {
        $result = $html ? "<a href=\"{$link_base}&amp;fid={$key}\">" . word_filter_add_ob_tags($folders[$key]['NAME'], true) . "</a>" : word_filter_add_ob_tags($folders[$key]['NAME'], true);
    } else {
        $result = $html ? "<a href=\"{$link_base}&amp;fid={$key}\">" . word_filter_add_ob_tags($folders[$key]['NAME'], true) . "</a>" : word_filter_add_ob_tags($folders[$key]['NAME'], true);
    }
    if (is_array($tree_array) && sizeof($tree_array) > 0) {
        while (($val = array_pop($tree_array)) !== null) {
            if ($val != $fid && $html || $link_last_too) {
                $result .= $html ? html_style_image('separator') . "<a href=\"{$link_base}&amp;fid={$val}\">" . word_filter_add_ob_tags($folders[$val]['NAME'], true) . "</a>" : " &gt; " . word_filter_add_ob_tags($folders[$val]['NAME'], true);
            } else {
                $result .= $html ? html_style_image('separator') . word_filter_add_ob_tags($folders[$val]['NAME'], true) : " &gt; " . word_filter_add_ob_tags($folders[$val]['NAME'], true);
            }
        }
    }
    return $result;
}
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:37,代码来源:links.inc.php


示例6: gettext

 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=\"center\" width=\"20\">&nbsp;</td>\n";
 echo "                  <td class=\"subhead\" align=\"left\">", gettext("Name"), "</td>\n";
 echo "                  <td class=\"subhead\" align=\"left\">", gettext("Feed Location"), "</td>\n";
 echo "                  <td class=\"subhead\" align=\"left\" width=\"20%\">", gettext("Update Frequency"), "&nbsp;</td>\n";
 echo "                </tr>\n";
 if (sizeof($rss_feeds['rss_feed_array']) > 0) {
     foreach ($rss_feeds['rss_feed_array'] as $rss_feed) {
         echo "                <tr>\n";
         echo "                  <td valign=\"top\" align=\"center\" width=\"1%\">", form_checkbox("t_delete[{$rss_feed['RSSID']}]", "Y", false), "</td>\n";
         echo "                  <td valign=\"top\" align=\"left\" width=\"35%\"><a href=\"admin_rss_feeds.php?webtag={$webtag}&amp;page={$page}&amp;feed_id={$rss_feed['RSSID']}\">", word_filter_add_ob_tags($rss_feed['NAME'], true), "</a></td>\n";
         echo "                  <td valign=\"top\" align=\"left\" width=\"45%\">{$rss_feed['URL']}</td>\n";
         echo "                  <td valign=\"top\" align=\"left\" width=\"20%\">", in_array($rss_feed['FREQUENCY'], array_keys($update_frequencies_array)) ? $update_frequencies_array[$rss_feed['FREQUENCY']] : gettext("Unknown"), "</td>\n";
         echo "                </tr>\n";
     }
 }
 echo "                <tr>\n";
 echo "                  <td align=\"left\">&nbsp;</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";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:admin_rss_feeds.php


示例7: sprintf

                break;
            case DELETE_USER_DATA:
                $index_link = "<a href=\"index.php?webtag={$webtag}&amp;final_uri=%s\" target=\"_blank\">%s</a>";
                $admin_user_link = sprintf("admin_user.php?webtag={$webtag}&uid=%s", $entry_array[0]);
                $admin_user_link = sprintf($index_link, rawurlencode($admin_user_link), $entry_array[1]);
                $action_text = sprintf(gettext("Deleted all user data for account '%s'"), $admin_user_link);
                break;
            default:
                $action_text = gettext("Unknown") . " :: {$admin_log_entry['ACTION']} :: ";
                $action_text .= implode(", ", $entry_array);
                break;
        }
        if ($auto_update === true) {
            echo "                    <td align=\"left\" valign=\"top\">", gettext("none"), "</td>\n";
        } else {
            echo "                    <td align=\"left\" valign=\"top\"><a href=\"admin_user.php?webtag={$webtag}&amp;uid=", $admin_log_entry['UID'], "\">", word_filter_add_ob_tags(format_user_name($admin_log_entry['LOGON'], $admin_log_entry['NICKNAME']), true), "</a></td>\n";
        }
        echo "                    <td align=\"left\">", $action_text, "</td>\n";
        if (isset($group_by) && $group_by != ADMIN_LOG_GROUP_NONE) {
            echo "                    <td align=\"center\">{$admin_log_entry['COUNT']}</td>\n";
        }
        echo "                  </tr>\n";
    }
}
echo "                <tr>\n";
echo "                  <td align=\"left\">&nbsp;</td>\n";
echo "                </tr>\n";
echo "              </table>\n";
echo "            </td>\n";
echo "          </tr>\n";
echo "        </table>\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:admin_viewlog.php


示例8: form_input_text

    echo "                      </tr>\n";
    echo "                      <tr>\n";
    echo "                        <td align=\"left\">", form_input_text("threadtitle", htmlentities_array($threadtitle), null, null, null, "thread_title"), form_input_hidden("newthread", "Y"), "</td>\n";
    echo "                      </tr>\n";
} else {
    echo "                      <tr>\n";
    echo "                        <td align=\"left\"><h2>", gettext("Folder"), "</h2></td>\n";
    echo "                      </tr>\n";
    echo "                      <tr>\n";
    echo "                        <td align=\"left\">", word_filter_add_ob_tags($thread_data['FOLDER_TITLE'], true), "</td>\n";
    echo "                      </tr>\n";
    echo "                      <tr>\n";
    echo "                        <td align=\"left\"><h2>", gettext("Thread title"), "</h2></td>\n";
    echo "                      </tr>\n";
    echo "                      <tr>\n";
    echo "                        <td align=\"left\">", word_filter_add_ob_tags($thread_data['TITLE'], true), form_input_hidden("reply_to", htmlentities_array("{$tid}.{$reply_to_pid}")), form_input_hidden('return_msg', htmlentities_array($return_msg)), "</td>\n";
    echo "                      </tr>\n";
}
echo "                      <tr>\n";
echo "                        <td align=\"left\"><h2>", gettext("To"), "</h2></td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\" style=\"white-space: nowrap\">", form_input_text_search("to_logon", isset($to_logon) ? htmlentities_array($to_logon) : "", null, null, SEARCH_LOGON, true, sprintf('title="%s"', gettext("Separate recipients by a comma")), "post_to_others multiple", gettext("Leave blank for all")), "</td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\">&nbsp;</td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\"><h2>", gettext("Thread options"), "</h2></td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:post.php


示例9: gettext

        exit;
    } else {
        $error_msg_array[] = gettext("Relationship updated failed!");
        $valid = false;
    }
}
if (isset($_POST['reset_nickname_x']) || isset($_POST['reset_nickname_y'])) {
    $peer_nickname = user_get_nickname($peer_uid);
    $peer_relationship = user_get_peer_relationship($_SESSION['UID'], $peer_uid);
    user_rel_update($_SESSION['UID'], $peer_uid, $peer_relationship, $peer_nickname);
}
$peer_user_display = format_user_name($user_peer['LOGON'], $user_peer['NICKNAME']);
html_draw_top(array('title' => sprintf(gettext('User Relationship - %s'), $peer_user_display), 'class' => 'window_title'));
$peer_relationship = user_get_relationship($_SESSION['UID'], $peer_uid);
$peer_nickname = user_get_peer_nickname($_SESSION['UID'], $peer_uid);
echo "<h1>", gettext("User Relationship"), html_style_image('separator'), "<a href=\"user_profile.php?webtag={$webtag}&amp;uid={$peer_uid}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags($peer_user_display, true), "</a></h1>\n";
if (isset($error_msg_array) && sizeof($error_msg_array) > 0) {
    html_display_error_array($error_msg_array, '600', 'left');
} else {
    if ($peer_perms & USER_PERM_FOLDER_MODERATE && !session::check_perm(USER_PERM_CAN_IGNORE_ADMIN, 0)) {
        html_display_warning_msg(gettext("You cannot ignore this user, as they are a moderator."), '600', 'left');
    }
}
if (isset($_POST['preview_signature'])) {
    if (($t_sig_content = user_get_sig($peer_uid)) !== false) {
        $preview_message['RECIPIENTS'] = array();
        $preview_from_user = user_get($peer_uid);
        $preview_message['FROM_LOGON'] = $preview_from_user['LOGON'];
        $preview_message['FROM_NICKNAME'] = $preview_from_user['NICKNAME'];
        $preview_message['FROM_UID'] = $preview_from_user['UID'];
        $preview_message['CONTENT'] = gettext("Signature Preview");
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:user_rel.php


示例10: gettext

 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\" width=\"20\">&nbsp;</td>\n";
 echo "                  <td align=\"left\" class=\"subhead\">", gettext("Name"), "</td>\n";
 echo "                  <td align=\"left\" class=\"subhead\">", gettext("Forum Link Location"), "</td>\n";
 echo "                  <td align=\"left\" class=\"subhead\">&nbsp;</td>\n";
 echo "                </tr>\n";
 if (sizeof($forum_links_array['forum_links_array']) > 0) {
     foreach ($forum_links_array['forum_links_array'] as $key => $forum_link) {
         echo "                <tr>\n";
         echo "                  <td valign=\"top\" align=\"center\" width=\"1%\">", form_checkbox("t_delete[{$forum_link['LID']}]", "Y"), "</td>\n";
         echo "                  <td align=\"left\"><a href=\"admin_forum_links.php?webtag={$webtag}&amp;page={$page}&amp;lid={$forum_link['LID']}\">", word_filter_add_ob_tags($forum_link['TITLE'], true), "</a></td>\n";
         echo "                  <td align=\"left\">", $forum_link['URI'], "</a></td>\n";
         echo "                  <td align=\"center\" width=\"50\" style=\"white-space: nowrap\">", form_submit_image('move_up', "move_up[{$forum_link['LID']}]", "Move Up", "title=\"Move Up\"", "move_up_ctrl"), form_submit_image('move_down', "move_down[{$forum_link['LID']}]", "Move Down", "title=\"Move Down\"", "move_down_ctrl"), "</td>\n";
         echo "                </tr>\n";
     }
 }
 echo "                <tr>\n";
 echo "                  <td align=\"left\">&nbsp;</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";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:admin_forum_links.php


示例11: light_pm_display

function light_pm_display($message_data, $preview = false)
{
    $webtag = get_webtag();
    forum_check_webtag_available($webtag);
    if (!$preview) {
        if (strlen(trim($message_data['SUBJECT'])) > 0) {
            echo "<h3 class=\"message_subject\">", word_filter_add_ob_tags($message_data['SUBJECT'], true), "</h3>\n";
        } else {
            echo "<h3 class=\"message_subject\">", gettext("No Subject"), "</h3>\n";
        }
    }
    echo "<div class=\"message\">\n";
    echo "<div class=\"message_header\">\n";
    echo "<div class=\"message_from\">\n";
    echo gettext("From"), ": ", word_filter_add_ob_tags(format_user_name($message_data['FROM_LOGON'], $message_data['FROM_NICKNAME']), true), "\n";
    echo "<span class=\"message_time\">", format_date_time($message_data['CREATED']), "</span>\n";
    echo "<div class=\"clearer\"></div>\n";
    echo "</div>\n";
    echo "<div class=\"message_to\">", gettext("To"), ": ";
    if (isset($message_data['RECIPIENTS']) && sizeof($message_data['RECIPIENTS']) > 0) {
        foreach ($message_data['RECIPIENTS'] as $recipient) {
            echo "<span>", word_filter_add_ob_tags(format_user_name($recipient['LOGON'], $recipient['NICKNAME']), true), "</span>\n";
        }
    } else {
        echo gettext('Unknown User');
    }
    echo "<div class=\"clearer\"></div>\n";
    echo "</div>\n";
    echo "</div>\n";
    $message_data['CONTENT'] = message_apply_formatting($message_data['CONTENT']);
    $message_data['CONTENT'] = word_filter_add_ob_tags($message_data['CONTENT']);
    echo "<div class=\"message_links\">&nbsp;</div>\n";
    echo "<div class=\"message_body\">", $message_data['CONTENT'], "</div>\n";
    if (isset($message_data['ATTACHMENTS']) && sizeof($message_data['ATTACHMENTS']) > 0) {
        if (($attachments_array = attachments_get($message_data['FROM_UID'], $message_data['ATTACHMENTS'])) !== false) {
            echo "<div class=\"message_attachments\">\n";
            echo "  <span>", gettext("Attachments"), ":</span>\n";
            echo "  <ul>\n";
            foreach ($attachments_array as $attachment) {
                if (($attachment_link = light_attachments_make_link($attachment)) !== false) {
                    echo "<li>", html_style_image('attach'), $attachment_link, "</li>\n";
                }
            }
            echo "  </ul>\n";
            echo "</div>\n";
        }
    }
    if ($preview === false) {
        $links_array = array();
        if (($message_data['TYPE'] & PM_INBOX_ITEMS) > 0) {
            $links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&amp;reply_to={$message_data['MID']}\" class=\"reply\">" . html_style_image('post') . gettext("Reply") . "</a>";
            if (isset($message_data['RECIPIENTS']) && sizeof($message_data['RECIPIENTS']) > 1) {
                $links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&amp;replyall={$message_data['MID']}\" class=\"replyall\">" . html_style_image('reply_all') . gettext("Reply All") . "</a>";
            }
            $links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&amp;fwdmsg={$message_data['MID']}\" class=\"forward\">" . html_style_image('forward') . gettext("Forward") . "</a>";
            $links_array[] = "<a href=\"lpm.php?webtag={$webtag}&amp;delete_msg={$message_data['MID']}\" class=\"delete\">" . html_style_image('delete') . gettext("Delete") . "</a>";
        } else {
            if (($message_data['TYPE'] & PM_OUTBOX_ITEMS) > 0) {
                $links_array[] = "<a href=\"lpm_edit.php?webtag={$webtag}&amp;mid={$message_data['MID']}\" class=\"edit\">" . html_style_image('edit') . gettext("Edit") . "</a>";
                $links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&amp;fwdmsg={$message_data['MID']}\" class=\"forward\">" . html_style_image('forward') . gettext("Forward") . "</a>";
                $links_array[] = "<a href=\"lpm.php?webtag={$webtag}&amp;delete_msg={$message_data['MID']}\" class=\"delete\">" . html_style_image('delete') . gettext("Delete") . "</a>";
            } else {
                if (($message_data['TYPE'] & PM_DRAFT_ITEMS) > 0) {
                    $links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&amp;editmsg={$message_data['MID']}\" class=\"edit\">" . html_style_image('edit') . gettext("Edit") . "</a>";
                    $links_array[] = "<a href=\"lpm.php?webtag={$webtag}&amp;delete_msg={$message_data['MID']}\" class=\"delete\">" . html_style_image('delete') . gettext("Delete") . "</a>";
                } else {
                    $links_array[] = "<a href=\"lpm_write.php?webtag={$webtag}&amp;fwdmsg={$message_data['MID']}\" class=\"forward\">" . html_style_image('forward') . gettext("Forward") . "</a>";
                    $links_array[] = "<a href=\"lpm.php?webtag={$webtag}&amp;delete_msg={$message_data['MID']}\" class=\"delete\">" . html_style_image('delete') . gettext("Delete") . "</a>";
                }
            }
        }
        if (sizeof($links_array) > 0) {
            echo "<div class=\"message_footer_links\">", implode('&nbsp;&nbsp;', $links_array), "</div>\n";
        }
    }
    echo "</div>";
}
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:77,代码来源:light.inc.php


示例12: poll_public_ballot_user_callback

function poll_public_ballot_user_callback($user_data)
{
    $webtag = get_webtag();
    if (isset($user_data['UID']) && $user_data['UID'] > 0) {
        $user_profile_link_html = "<a href=\"user_profile.php?webtag={$webtag}&amp;uid=%1\$s\" target=\"_blank\" class=\"popup 650x500\" style=\"white-space: nowrap\">%2\$s</a>";
        return sprintf($user_profile_link_html, $user_data['UID'], word_filter_add_ob_tags(format_user_name($user_data['LOGON'], $user_data['NICKNAME']), true), $webtag);
    } else {
        if (isset($user_data['LOGON'])) {
            return $user_data['LOGON'];
        } else {
            if (is_string($user_data)) {
                return $user_data;
            }
        }
    }
    return gettext("Unknown user");
}
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:17,代码来源:poll.inc.php


示例13: gettext

 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=\"25\">&nbsp;</td>\n";
 echo "                  <td class=\"subhead\" align=\"left\">", gettext("Item Name"), "</td>\n";
 echo "                  <td class=\"subhead\" align=\"left\" width=\"50\">&nbsp;</td>\n";
 echo "                  <td class=\"subhead\" align=\"left\" width=\"150\">", gettext("Type"), "</td>\n";
 echo "                </tr>\n";
 if (sizeof($profile_items['profile_items_array']) > 0) {
     foreach ($profile_items['profile_items_array'] as $profile_item) {
         echo "                <tr>\n";
         echo "                  <td valign=\"top\" align=\"center\" width=\"25\">", form_checkbox("delete_item[{$profile_item['PIID']}]", "Y"), "</td>\n";
         echo "                  <td valign=\"top\" align=\"left\"><a href=\"admin_prof_items.php?webtag={$webtag}&amp;psid={$psid}&amp;piid={$profile_item['PIID']}&amp;sect_page={$sect_page}\">", word_filter_add_ob_tags($profile_item['NAME'], true), "</a></td>\n";
         echo "                  <td align=\"center\" width=\"50\" style=\"white-space: nowrap\">", form_submit_image('move_up', "move_up[{$profile_item['PIID']}]", "Move Up", "title=\"Move Up\"", "move_up_ctrl"), form_submit_image('move_down', "move_down[{$profile_item['PIID']}]", "Move Down", "title=\"Move Down\"", "move_down_ctrl"), "</td>\n";
         if (isset($item_types_array[$profile_item['TYPE']])) {
             echo "                  <td valign=\"top\" align=\"left\" width=\"100\">{$item_types_array[$profile_item['TYPE']]}</td>\n";
         } else {
             echo "                  <td valign=\"top\" align=\"left\" width=\"100\">", gettext("Text Field"), "</td>\n";
         }
         echo "                </tr>\n";
     }
 }
 echo "                <tr>\n";
 echo "                  <td align=\"left\" colspan=\"4\">&nbsp;</td>\n";
 echo "                </tr>\n";
 echo "              </table>\n";
 echo "            </td>\n";
 echo "          </tr>\n";
开发者ID:DeannaG65,项目名称:BeehiveForum,代码行数:31,代码来源:admin_prof_items.php


示例14: gettext

echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\"><h2>", gettext("Thread title"), "</h2></td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\">", word_filter_add_ob_tags($thread_data['TITLE'], true), "</td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\"><h2>", gettext("To"), "</h2></td>\n";
echo "                      </tr>\n";
echo "                      <tr>\n";
echo "                        <td align=\"left\">";
if ($edit_message['TO_UID'] > 0) {
    echo "<a href=\"user_profile.php?webtag={$webtag}&amp;uid={$edit_message['TO_UID']}\" target=\"_blank\" class=\"popup 650x500\">", word_filter_add_ob_tags(format_user_name($edit_message['TLOGON'], $edit_message['TNICK']), true), "</a>\n";
} else {
    echo word_filter_add_ob_tags(format_user_name($edit_message['TLOGON'], $edit_message['TNICK']), true);
}
echo "                        </td>\n";
echo "                      </tr>\n";
if (($user_emoticon_pack = session::get_value('EMOTICONS')) === false) {
    $user_emoticon_pack = forum_get_setting('default_emoticons', null, 'default');
}
if ($emoticon_preview_html = emoticons_preview($user_emoticon_pack)) {
    echo "                      <tr>\n";
    echo "                        <td align=\"left\">&nbsp;</td>\n";
    echo "                      </tr>\n";
    echo "                      <tr>\n";
    echo "                        <td align=\"left\">\n";
    echo "                          <table width=\"196\" class=\"messagefoot\" cellspacing=\"0\">\n";
    echo "                            <tr>\n";
    echo "                              <td align=\"left\" class=\"subhead\">", gettext("Emoticons"), "</td>\n";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:edit.php


示例15: gettext

 echo "    <tr>\n";
 echo "      <td align=\"left\" class=\"posthead\">\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\" colspan=\"2\">", gettext("Search Results"), "</td>\n";
 echo "                </tr>\n";
 echo "                <tr>\n";
 echo "                  <td align=\"center\">\n";
 echo "                    <table class=\"posthead\" width=\"95%\">\n";
 if (sizeof($user_search_array['user_array']) > 0) {
     foreach ($user_search_array['user_array'] as $user_search_result) {
         echo "                      <tr>\n";
         echo "                        <td align=\"left\">", form_checkbox("add_user[]", $user_search_result['UID'], ''), "&nbsp;", word_filter_add_ob_tags(format_user_name($user_search_result['LOGON'], $user_search_result['NICKNAME']), true), "</td>\n";
         echo "                      </tr>\n";
     }
 }
 echo "                      <tr>\n";
 echo "                        <td align=\"left\">&nbsp;</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";
开发者ID:richstokoe,项目名称:BeehiveForum,代码行数:31,代码来源:admin_forum_access.php


示例16: gettext

 echo "      <td align=\"left\">\n";
 echo &q 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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