コード例 #1
0
    public static function pageNotFound()
    {
        ?>
			<div class="container">
		        <div class="starter-template">
		          <h1>Page Not Found</h1>
		          <p class="lead">The page that you have requested was not found. EveAdmin is still in active development and is available as an Alpha, which means any features have not been completed. If you believe you have come to this page in error, please submit a bug.</a></p>
		        </div>
		        <?php 
        showAlerts();
        ?>
	    	</div> <!-- /container -->
	    <?php 
    }
コード例 #2
0
ファイル: services.php プロジェクト: ArgusDrise/eveadmin
if (isset($_POST['slack_email'])) {
    $sendSlackInvite = sendSlackInvite($_POST['slack_email'], $user->getUsername(), $settings->getSlackAuthToken());
    if ($sendSlackInvite) {
        setAlert('success', 'Slack Invitation Sent', 'Check your email for your Slack invite, and remember to register with your Auth username (replacing spaces with underscores).');
    }
}
?>
<div class="opaque-container">

    <div class="row" style="width: 100%; margin-top: 20px; margin-bottom: 20px">
		<div class="col-md-12 opaque-section" style="padding: 0px">
			<div class="row box-title-section">
				<h1 style="text-align: center">External Services Authentication</h1>
			</div>
			<?php 
showAlerts();
?>
			<div class="row" style="padding-left: 10px; padding-right: 10px; padding-top: 15px; padding-bottom: 15px">
				<!-- Voice Comms -->
				<div class="col-md-4 col-sm-12">
					<div class="row opaque-section" style="background-image: none; background-color: transparent">
						<div class="row box-title-section">
							<h3 style="text-align: center"><?php 
echo $settings->getGroupTicker() . ' ' . $settings->getVoiceCommunications();
?>
</h3>
							<h4 style="text-align: center; color: #01b43a">Synced</h4>
						</div>
						<div class="row" style="text-align: center; padding-top: 10px">

							<a class="btn btn-primary" href="<?php 
コード例 #3
0
ファイル: message.php プロジェクト: sks40gb/sks
<?php

if (isset($this->message)) {
    showAlerts(array($this->message), "success");
}
if (isset($this->error)) {
    showAlerts(array($this->error), "danger");
}
if (isset($this->messages)) {
    showAlerts($this->messages, "success");
}
if (isset($this->errors)) {
    showAlerts($this->errors, "danger");
}
if (isset($this->warnings)) {
    showAlerts($this->warnings, "warning");
}
if (isset($this->infos)) {
    showAlerts($this->infos, "info");
}
function showAlerts($messages, $type)
{
    echo "<div class='alert alert-{$type}' role='alert'>";
    foreach ($messages as $message) {
        echo "<div>{$message}</div>";
    }
    echo "</div>";
}