mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
unified error msg variable
This commit is contained in:
parent
306907270e
commit
849d536993
7 changed files with 36 additions and 35 deletions
|
@ -213,23 +213,24 @@ function send_email($to,$subject,$mailtext,$from) {
|
|||
function display_error_block() {
|
||||
if (!empty($_SESSION['error_msg'])) {
|
||||
echo '
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$( "#dialog:ui-dialog" ).dialog( "destroy" );
|
||||
$( "#dialog-message" ).dialog({
|
||||
modal: true,
|
||||
buttons: {
|
||||
Ok: function() {
|
||||
$( this ).dialog( "close" );
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div id="dialog-message" title="Error">
|
||||
<p>';
|
||||
echo $_SESSION['error_msg'];
|
||||
echo "</p>\n </div>\n";
|
||||
<div>
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$( "#dialog:ui-dialog" ).dialog( "destroy" );
|
||||
$( "#dialog-message" ).dialog({
|
||||
modal: true,
|
||||
buttons: {
|
||||
Ok: function() {
|
||||
$( this ).dialog( "close" );
|
||||
}
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<div id="dialog-message" title="">
|
||||
<p>'. $_SESSION['error_msg'] .'</p>
|
||||
</div>
|
||||
</div>'."\n";
|
||||
unset($_SESSION['error_msg']);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue