move alert
This commit is contained in:
parent
d95e4d1d84
commit
d037b2bef4
@ -164,19 +164,8 @@ function _msglog($type, $msg)
|
|||||||
if (isset($_SESSION['notify'])) {
|
if (isset($_SESSION['notify'])) {
|
||||||
$notify = $_SESSION['notify'];
|
$notify = $_SESSION['notify'];
|
||||||
$ntype = $_SESSION['ntype'];
|
$ntype = $_SESSION['ntype'];
|
||||||
if ($ntype == 's') {
|
$ui->assign('notify', $notify);
|
||||||
$ui->assign('notify', '<div class="alert alert-info">
|
$ui->assign('notify_t', $ntype);
|
||||||
<button type="button" class="close" data-dismiss="alert">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
<div>' . $notify . '</div></div>');
|
|
||||||
} else {
|
|
||||||
$ui->assign('notify', '<div class="alert alert-danger">
|
|
||||||
<button type="button" class="close" data-dismiss="alert">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
<div>' . $notify . '</div></div>');
|
|
||||||
}
|
|
||||||
unset($_SESSION['notify']);
|
unset($_SESSION['notify']);
|
||||||
unset($_SESSION['ntype']);
|
unset($_SESSION['ntype']);
|
||||||
}
|
}
|
||||||
|
@ -301,4 +301,11 @@
|
|||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section class="content">
|
<section class="content">
|
||||||
{if isset($notify)}{$notify}{/if}
|
{if isset($notify)}
|
||||||
|
<div class="alert alert-{if $notify_t == 's'}success{else}danger{/if}">
|
||||||
|
<button type="button" class="close" data-dismiss="alert">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
<div>{$notify}</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
@ -165,4 +165,12 @@
|
|||||||
</h1>
|
</h1>
|
||||||
</section>
|
</section>
|
||||||
<section class="content">
|
<section class="content">
|
||||||
{if isset($notify)}{$notify}{/if}
|
|
||||||
|
{if isset($notify)}
|
||||||
|
<div class="alert alert-{if $notify_t == 's'}success{else}danger{/if}">
|
||||||
|
<button type="button" class="close" data-dismiss="alert">
|
||||||
|
<span aria-hidden="true">×</span>
|
||||||
|
</button>
|
||||||
|
<div>{$notify}</div>
|
||||||
|
</div>
|
||||||
|
{/if}
|
Loading…
x
Reference in New Issue
Block a user