File "only_message-20260225183519.php"

Full Path: /home/ichhrkpd/public_html/application/hooks/only_message-20260225183519.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">&times;</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">&times;</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">&times;</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">&times;</a>
					    <strong>Welcome</strong>
					  </div>					
					<?php }?>
				</div>
		  </div>
	</div>
</section>