本文整理汇总了PHP中CAdminMessage::show方法的典型用法代码示例。如果您正苦于以下问题:PHP CAdminMessage::show方法的具体用法?PHP CAdminMessage::show怎么用?PHP CAdminMessage::show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CAdminMessage
的用法示例。
在下文中一共展示了CAdminMessage::show方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: showProgress
public static function showProgress($text, $title, $v)
{
$v = $v >= 0 ? $v : 0;
if ($v < 100) {
$msg = new \CAdminMessage(array("TYPE" => "PROGRESS", "HTML" => true, "MESSAGE" => $title, "DETAILS" => "#PROGRESS_BAR#<div style=\"width: " . self::PROGRESS_WIDTH . "px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 20px;\">" . Converter::getHtmlConverter()->encode($text) . "</div>", "PROGRESS_TOTAL" => 100, "PROGRESS_VALUE" => $v, "PROGRESS_TEMPLATE" => '#PROGRESS_PERCENT#', "PROGRESS_WIDTH" => self::PROGRESS_WIDTH));
} else {
$msg = new \CAdminMessage(array("TYPE" => "OK", "MESSAGE" => $title, "DETAILS" => $text));
}
return $msg->show();
}
示例2: GetMessage
counterAddressNew = <?php
echo $arPullResult['COUNT_NEW'];
?>
;
counterAddressError = <?php
echo $arPullResult['COUNT_ERROR'];
?>
;
</script>
<?php
}
} else {
$message = GetMessage("CONTACT_CONNECTOR_NOT_FOUND");
}
$adminMessage = new CAdminMessage($message);
echo $adminMessage->show();
if ($isPulling) {
?>
<script>MoveProgress();</script>
<?php
}
if ($isUpdateList) {
?>
<script><?php
echo $sTableID;
?>
.GetAdminList('<?php
echo $APPLICATION->GetCurPage();
?>
?lang=<?php
echo LANGUAGE_ID;
示例3: CAdminMessage
}
else
{
BX.adminPanel.closeWait(btn);
}
if(!!res.error && (!!res.error.message || !!res.error.code))
{
alert(res.error.message||res.error.code);
}
else
{
window['<?php
echo $tableID;
?>
'].GetAdminList(window.location.href.replace(/#.*/, ''));
}
});
}
</script>
<?php
require_once "tab/seo_search_yandex_direct_auth.php";
$adminList->DisplayList();
$messageText = '<ul>';
foreach (Adv\YandexCampaignTable::$supportedStrategy as $startegy) {
$messageText .= '<li>' . Loc::getMessage('SEO_CAMPAIGN_STRATEGY_' . $startegy) . '</li>';
}
$messageText .= '</ul>';
$message = new CAdminMessage(array('TYPE' => 'OK', 'MESSAGE' => Loc::getMessage('SEO_SUPPORTED_STRATEGY_NOTE'), "DETAILS" => $messageText, 'HTML' => 'Y'));
echo $message->show();
require_once $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_admin.php";