當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CAdminMessage::show方法代碼示例

本文整理匯總了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();
 }
開發者ID:supertest223,項目名稱:bitrixtest,代碼行數:10,代碼來源:sitemapruntime.php

示例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;
開發者ID:Hawkart,項目名稱:megatv,代碼行數:31,代碼來源:contact_admin.php

示例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";
開發者ID:Satariall,項目名稱:izurit,代碼行數:31,代碼來源:seo_search_yandex_direct.php


注:本文中的CAdminMessage::show方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。