当前位置: 首页>>代码示例>>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;未经允许,请勿转载。