<script>

    <?php if(isset($_SESSION['error']) && $_SESSION['error']){ ?>
        my_type = 'error';
        my_msg  = '<?=$_SESSION['error'];?>';
        Lobibox.notify(my_type, {
            title:'Eroare',
            msg: my_msg,
            icon: 'fa fa-times',
            position: "top right"
        });
    <?php } ?>
        
    <?php if(isset($_SESSION['success']) && $_SESSION['success']){ ?>
        my_type = 'success';
        my_msg  = '<?=$_SESSION['success'];?>';
        Lobibox.notify(my_type, {
            title:'Informare',
            msg: my_msg,
            icon: 'fa fa-check',
            position: "top right"
        });
    <?php } ?> 
        
    <?php if(isset($_SESSION['warning']) && $_SESSION['warning']){ ?>
        my_type = 'warning';
        my_msg  = '<?php echo $_SESSION['warning'];?>';
        Lobibox.notify(my_type, {
            title:'Atentie',
            msg: my_msg,
            icon: 'fa fa-info',
            position: "top right"
        });
    <?php } ?>                
</script>