File "only_message.php"
Full Path: /home/ichhrkpd/public_html/application/core/only_message.php
File size: 1.59 KB
MIME-type: text/x-php
Charset: utf-8
<?php
$msg_type = isset($msg_type) ? $msg_type : "err";
$msg = isset($msg) ? $msg : "A problem has been occurred while submitting your data.";
$redirectUrl = isset($redirectUrl) ? $redirectUrl : site_url();
?>
<script type="text/javascript">
var redirectUrl = "<?php echo isset($redirectUrl) ? $redirectUrl : ""; ?>";
if(redirectUrl == "" || redirectUrl == null){
redirectUrl = "<?php echo site_url(); ?>";
}
$(document).ready(function(){
setTimeout(function(){
window.location = redirectUrl;
}, 3500);
});
</script>
<section class="pad100">
<div class="container">
<div class="row">
<div class="col-md-12">
<?php if($msg_type == 'err'){?>
<div class="alert alert-danger fade in">
<a href="#" class="close" data-dismiss="alert">×</a>
<strong>Error!</strong> <?php echo $msg;?>
</div>
<?php } elseif($msg_type == 'suc') {?>
<div class="alert alert-success fade in">
<a href="#" class="close" data-dismiss="alert">×</a>
<strong>Success!</strong> <?php echo $msg;?>
</div>
<?php }elseif($msg_type == 'info'){?>
<div class="alert alert-info fade in">
<a href="#" class="close" data-dismiss="alert">×</a>
<strong>Info!</strong> <?php echo $msg;?>
</div>
<?php } else {?>
<div class="alert alert-warning alert-dismissable fade in">
<a href="#" class="close" data-dismiss="alert" aria-label="close">×</a>
<strong>Welcome</strong>
</div>
<?php }?>
</div>
</div>
</div>
</section>