本文整理汇总了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();
示例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();
?>