%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux sh00666.bluehost.com 5.14.0-687.26.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Jul 14 16:32:02 EDT 2026 x86_64 User : ndkhermy ( 1200) PHP Version : 8.5.12 Disable Function : NONE Directory : /home1/ndkhermy/public_html/website_1ec2d7c2/apps/helpers/ |
Upload File : |
<?php
function validation_message($style="")// by default On Page - set 'alert' for pop-up
{
$processing_result=validation_errors();
if($processing_result!='')
{
if($style=="alert")
{
?>
<div id="alert_box">
<div class="alert_area">
<div class="close"> <span onclick="$('#alert_box').remove();" class="txt">Close [x]</span> </div>
<div style=" width:100%; text-align:left;">
<?php
}
?>
<div class="validation" >
<div style="margin-bottom:6px;"> <strong><span class="red"> <?php echo lang('ERROR'); ?>!</span> <br />
<?php echo lang('INVALID_ENTRIES'); ?></strong> </div>
<div class="validation_msg" ><?php echo $processing_result; ?></div>
</div>
<?php
if($style=="alert")
{
?>
</div>
</div>
</div>
<?php
}
}
}
function error_message($style="")// by default On Page - set 'alert' for pop-up
{
$ci = &get_instance();
$msgtypes=array('success','warning','error');
$msgtype='';
$msg='';
foreach($msgtypes as $msgt)
{
$msg=$ci->session->flashdata($msgt);
if($msg!='')
{
$msgtype=$msgt;
break;
}
}
if( $msgtype!='' && $msg!='' )
{
if($style=="alert")
{
?>
<div id="alert_box">
<div class="alert_area">
<div class="close"> <span onclick="$('#alert_box').remove();" class="txt">Close [x]</span> </div>
<div style=" width:100%; text-align:left;">
<?php
}
?>
<div class="<?php echo $msgtype;?>" >
<?php echo $msg;?>
</div>
<?php if($style=="alert")
{
?>
</div>
</div>
</div>
<?php
}
}
}
function frontend_breadcrumb($title="",$crumbs=""){ $ci = CI();
$title=@ucfirst($title);
?> <h1 class="fl"><?php echo $title?></h1> <?php if($ci->uri->rsegment(1)=="products" && $ci->uri->rsegment(2)=='index'){ ?> <p class="fr mt5"> <input name="" type="button" class="btn btn3 radius-3 trans_eff" onclick="window.open('<?php echo site_url('cart') ?>','_parent');" value=" View Cart"> <input name="" type="button" class="btn btn3 radius-3 trans_eff" onclick="window.open('<?php echo site_url('cart/checkout') ?>','_parent');" value=" Checkout"> </p> <?php } ?> <p class="clearfix"></p> <div class="tree"> <div itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb" class="dib"><a href="<?php echo site_url()?>" itemprop="url" title="Home"><span itemprop="title">Home</span></a></div> <?php if(@is_array($crumbs)){ foreach($crumbs as $key=>$val){ ?> <div itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb" class="dib"><a href="<?php echo site_url($val)?>" itemprop="url" title="<?php echo $key?>"><span itemprop="title"><?php echo $key?></span></a></div> <?php } }else if($crumbs!=""){ echo $crumbs; } ?> <div itemscope="" itemtype="http://data-vocabulary.org/Breadcrumb" class="dib"><span itemprop="title"><?php echo $title?></span></div> </div>
<?php
}
function print_no_record($len=0,$mess=""){
if($len==0){
echo '<div class=" b pt5 red" style=\'text-align:center\'>';
echo ($mess=="")?"No record found.":$mess;
echo "</div>";
}
}