Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #09890 : broken survey can break admin page if debug is set
Dev: test if defaultlanguage exist : send an alert if not Dev: send user to check integrity if there are error Dev: add an alert if 1st part of checkintegrity fix somethyning Dev: update notifications to allow alert-info
- Loading branch information
Showing
3 changed files
with
55 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,22 @@ | ||
<div id="notif-container" class="col-lg-12 content-right" style="z-index: 10100"> | ||
<?php foreach($aMessage as $message):?> | ||
<?php if(!isset($message['type'])): ?> | ||
<div class="alert alert-success alert-dismissible" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span >×</span></button> | ||
<?php echo $message['message'];?> | ||
</div> | ||
<?php else: ?> | ||
|
||
<?php if($message['type']=="success"): ?> | ||
<div class="alert alert-success alert-dismissible" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span >×</span></button> | ||
<?php echo $message['message'];?> | ||
</div> | ||
<?php elseif($message['type']=="error"):?> | ||
<div class="alert alert-danger alert-dismissible" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span >×</span></button> | ||
<?php echo $message['message'];?> | ||
</div> | ||
<?php elseif($message['type']=="warning"):?> | ||
<div class="alert alert-warning alert-dismissible" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span >×</span></button> | ||
<?php echo $message['message'];?> | ||
</div> | ||
<?php else:?> | ||
|
||
<div class="alert alert-success alert-dismissible" role="alert"> | ||
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span >×</span></button> | ||
<?php echo $message['message'];?> | ||
</div> | ||
|
||
<?php endif;?> | ||
|
||
|
||
<?php endif;?> | ||
|
||
<?php | ||
if(isset($message['type']) && in_array($message['type'],array('error','success','danger','warning','info'))) | ||
{ | ||
$sType=$message['type']; | ||
if($sType=='error') | ||
{ | ||
$sType='danger'; | ||
} | ||
} | ||
else | ||
{ | ||
$sType='success'; | ||
} | ||
echo CHtml::tag("div",array('class'=>"alert alert-{$sType} alert-dismissible",'role'=>'alert'),false,false); | ||
echo CHtml::htmlButton("<span >×</span>",array('type'=>'button','class'=>'close','data-dismiss'=>'alert','aria-label'=>gT("Close"))); | ||
echo $message['message']; | ||
echo CHtml::closeTag("div"); | ||
?> | ||
<?php endforeach;?> | ||
</div> |