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


PHP Alert::display方法代碼示例

本文整理匯總了PHP中Alert::display方法的典型用法代碼示例。如果您正苦於以下問題:PHP Alert::display方法的具體用法?PHP Alert::display怎麽用?PHP Alert::display使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Alert的用法示例。


在下文中一共展示了Alert::display方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: foreach

</div>';
// Load the Core Navigation Panel
require ROOT_PATH . "/parent-apps/Standard/includes/core_panel_" . ENVIRONMENT . ".php";
echo '
<div id="content-wrap">
	<div style="padding-top:60px;"></div>';
// Load the widgets contained in the "UniFactionMenu" container, if applicable
$widgetList = WidgetLoader::get("UniFactionMenu");
foreach ($widgetList as $widgetContent) {
    echo $widgetContent;
}
echo '
	<div id="viewport-wrap">';
// Draw the Left Panel
echo '
<!-- Side Panel -->
<div id="panel">';
echo '
<div id="panel-left">';
// Load the widgets contained in the "SidePanel" container
$widgetList = WidgetLoader::get("SidePanel");
foreach ($widgetList as $widgetContent) {
    echo $widgetContent;
}
echo '
</div> <!-- Panel Nav -->
</div>';
echo '
<div id="panel-right"></div>
<div id="content">' . Alert::display();
開發者ID:SkysteedDevelopment,項目名稱:Deity,代碼行數:30,代碼來源:header.php

示例2: header

    } else {
        Alert::error("DB Admin", "The `" . $dbName . "` database does not exist, or you do not have administrative privileges.");
    }
}
// If everything is successful:
if (Validate::pass()) {
    // Check if the form was submitted (to continue to the next page)
    if (Form::submitted("install-db-connect")) {
        header("Location: /install/classes-core");
        exit;
    }
}
// Run Global Script
require dirname(ROUTE_SECOND_PATH) . "/includes/install_global.php";
// Display the Header
require HEADER_PATH;
echo Alert::display();
echo '
<form class="uniform" action="/install/config-database" method="post">' . Form::prepare("install-db-connect");
echo '
<h3>Update Your Database Configurations:</h3>
<p>Config File: ' . PUBLIC_PATH . '/index.php</p>
<p>You are working with the `<span style="font-weight:bold;">' . $dbName . '</span>` database.</p>';
if (Validate::pass()) {
    echo '
	<p><input type="submit" name="submit" value="Continue to Next Step" /></p>';
}
echo '
</form>';
// Display the Footer
require FOOTER_PATH;
開發者ID:SkysteedDevelopment,項目名稱:Deity,代碼行數:31,代碼來源:config-database.php


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