本文整理汇总了PHP中CAdminMessage::showMessage方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminMessage::showMessage方法的具体用法?PHP CAdminMessage::showMessage怎么用?PHP CAdminMessage::showMessage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminMessage
的用法示例。
在下文中一共展示了CAdminMessage::showMessage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: CAdminTabControl
}
$app = Application::getInstance();
$context = $app->getContext();
$request = $context->getRequest();
Loc::loadMessages($context->getServer()->getDocumentRoot() . "/bitrix/modules/main/options.php");
Loc::loadMessages(__FILE__);
$tabControl = new CAdminTabControl("tabControl", array(array("DIV" => "edit1", "TAB" => Loc::getMessage("MAIN_TAB_SET"), "TITLE" => Loc::getMessage("MAIN_TAB_TITLE_SET"))));
if ((!empty($save) || !empty($restore)) && $request->isPost() && check_bitrix_sessid()) {
if (!empty($restore)) {
Option::delete(ADMIN_MODULE_NAME);
CAdminMessage::showMessage(array("MESSAGE" => Loc::getMessage("REFERENCES_OPTIONS_RESTORED"), "TYPE" => "OK"));
} elseif ($request->getPost('max_image_size') && $request->getPost('max_image_size') > 0 && $request->getPost('max_image_size') < 100000) {
Option::set(ADMIN_MODULE_NAME, "max_image_size", $request->getPost('max_image_size'));
CAdminMessage::showMessage(array("MESSAGE" => Loc::getMessage("REFERENCES_OPTIONS_SAVED"), "TYPE" => "OK"));
} else {
CAdminMessage::showMessage(Loc::getMessage("REFERENCES_INVALID_VALUE"));
}
}
$tabControl->begin();
?>
<form method="post" action="<?php
echo sprintf('%s?mid=%s&lang=%s', $request->getRequestedPage(), urlencode($mid), LANGUAGE_ID);
?>
">
<?php
echo bitrix_sessid_post();
$tabControl->beginNextTab();
?>
<tr>
<td width="40%">
示例2: GetMessage
while (str.length > 0 && str.charCodeAt(0) == 65279)
str = str.substring(1);
return str;
}
//-->
</script>
<form method="post" enctype="multipart/form-data" action="<?php
echo $APPLICATION->GetCurPage();
?>
" name="check_file_form">
<?php
if ($okMessage) {
CAdminMessage::showMessage(array("MESSAGE" => $okMessage, "TYPE" => "OK", "HTML" => true));
}
if ($errorMessage) {
CAdminMessage::showMessage($errorMessage);
}
$tabControl->Begin();
$tabControl->BeginNextTab();
if ($tabStep == 1) {
if ($isSubscribed) {
?>
<tr class="adm-detail-required-field">
<td class="adm-detail-valign-top" width="30%" style="padding-top:16px;"><?php
echo GetMessage("MFC1_F_PWD");
?>
:<br></td>
<td width="70%"><input type="password" name="crc_password" style="width:80%;"><?php
echo BeginNote() . GetMessage("MFCW_INT_PASS_SUBSCR") . EndNote();
?>
</td>