当前位置: 首页>>代码示例>>PHP>>正文


PHP CEventMessage::GetLang方法代码示例

本文整理汇总了PHP中CEventMessage::GetLang方法的典型用法代码示例。如果您正苦于以下问题:PHP CEventMessage::GetLang方法的具体用法?PHP CEventMessage::GetLang怎么用?PHP CEventMessage::GetLang使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在CEventMessage的用法示例。


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

示例1: array

// LIST
$lAdmin->NavText($rsData->GetNavPrint(GetMessage("PAGES")));
// Header
$lAdmin->AddHeaders(array(array("id" => "ID", "content" => "ID", "sort" => "id", "default" => true, "align" => "right"), array("id" => "TIMESTAMP_X", "content" => GetMessage('TIMESTAMP'), "default" => true, "align" => "center"), array("id" => "ACTIVE", "content" => GetMessage('ACTIVE'), "sort" => "active", "default" => true, "align" => "center"), array("id" => "LID", "content" => GetMessage('LANG'), "default" => true, "align" => "center"), array("id" => "EVENT_NAME", "content" => GetMessage("EVENT_TYPE"), "sort" => "event_name", "default" => true), array("id" => "EVENT_TYPE", "content" => GetMessage("EVENT_TYPE")), array("id" => "SUBJECT", "content" => GetMessage('SUBJECT'), "sort" => "subject", "default" => true), array("id" => "EMAIL_FROM", "content" => GetMessage("F_FROM"), "sort" => "from"), array("id" => "EMAIL_TO", "content" => GetMessage("F_TO"), "sort" => "to"), array("id" => "BCC", "content" => GetMessage("F_BCC"), "sort" => "bcc"), array("id" => "BODY_TYPE", "content" => GetMessage("F_BODY_TYPE"), "sort" => "body_type")));
$arText_HTML = array("text" => GetMessage("MAIN_TEXT"), "html" => GetMessage("MAIN_HTML"));
$arEventTypes = array();
$rsType = CEventType::GetListEx(array(), array(), array("LID" => LANG, "type" => "type"));
while ($arType = $rsType->Fetch()) {
    $arEventTypes[$arType["EVENT_NAME"]] = $arType["NAME"];
}
// Body
while ($arRes = $rsData->NavNext(true, "f_")) {
    $row =& $lAdmin->AddRow($f_ID, $arRes, "message_edit.php?lang=" . LANGUAGE_ID . "&ID=" . $f_ID, GetMessage("MAIN_ADMIN_MENU_EDIT_TITLE"));
    $row->AddViewField("ID", '<a href="message_edit.php?lang=' . LANGUAGE_ID . '&ID=' . $f_ID . '" title="' . GetMessage("MAIN_ADMIN_MENU_EDIT_TITLE") . '">' . $f_ID . '</a>');
    $strSITE_ID = '';
    $db_LID = CEventMessage::GetLang($f_ID);
    while ($ar_LID = $db_LID->Fetch()) {
        $strSITE_ID .= htmlspecialcharsbx($ar_LID["LID"]) . "<br>";
    }
    $row->AddViewField("LID", $strSITE_ID);
    $row->AddCheckField("ACTIVE");
    $row->AddInputField("SUBJECT", array("size" => 30));
    $row->AddSelectField("BODY_TYPE", $arText_HTML);
    $row->AddViewField("EMAIL_FROM", TxtToHtml($arRes["EMAIL_FROM"]));
    $row->AddInputField("EMAIL_FROM");
    $row->AddViewField("EMAIL_TO", TxtToHtml($arRes["EMAIL_TO"]));
    $row->AddInputField("EMAIL_TO");
    $row->AddViewField("BCC", TxtToHtml($arRes["BCC"]));
    $row->AddInputField("BCC");
    $row->AddSelectField("EVENT_NAME", $arEventTypes);
    $arActions = array();
开发者ID:k-kalashnikov,项目名称:geekcon_new,代码行数:31,代码来源:message_admin.php

示例2: foreach

    if (is_array($arParams["DATA"]["TEMPLATES"])) {
        foreach ($arParams["DATA"]["TEMPLATES"] as $k => $v) {
            ?>
<tr>
	<td colspan="2">[<a href="/bitrix/admin/message_edit.php?ID=<?php 
            echo $v["ID"];
            ?>
"><?php 
            echo $v["ID"];
            ?>
</a>]<?php 
            echo (strlen(trim($v["SUBJECT"])) > 0 ? " " : "") . htmlspecialcharsEx($v["SUBJECT"]);
            ?>
	<?php 
            $arLID = array();
            $db_LID = CEventMessage::GetLang($v["ID"]);
            while ($arrLID = $db_LID->Fetch()) {
                $arLID[] = $arrLID["LID"];
            }
            if (!empty($arLID)) {
                echo " (" . implode(", ", $arLID) . ")";
            }
            ?>
</td>
</tr><?php 
        }
    }
}
$tabControl->Buttons(array("disabled" => !$isAdmin, "back_url" => "type_admin.php?lang=" . LANGUAGE_ID));
$tabControl->End();
?>
开发者ID:Satariall,项目名称:izurit,代码行数:31,代码来源:type_edit.php


注:本文中的CEventMessage::GetLang方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。