<?php
//call for db
$currentbasketdata='';

if($resultofinfo){
    
$currentbasket = $queries -> gettempfactors("EXEC gettempfactors @p1= ".$_SESSION['uzi']." , @p2 = ".$_SESSION['pzi'].", @ucid = ".$_SESSION['ucid']);
}else{
    
$currentbasket = array();
}


       
       if(is_array($currentbasket) && sizeof($currentbasket)>0){
           
           $currentbasket = $currentbasket[0]['getfactors'];
           
               if(is_array($currentbasket) && sizeof($currentbasket) > 0){
        
                   for($i=0;$i<sizeof($currentbasket);$i++){
            
                       $currentz = $currentbasket[$i];
					   $priceforcardcartitem = $queries -> fa_number($currentz['price']);
					    //$countforcardcartitem = $queries -> fa_number($currentz['numb']);
					    $countforcardcartitem = $currentz['numb'];
           
                       $urltocall = $iscatcalled ? $calledcatcode."&cart=".$currentz['cod_kala']: $calledcatcode."?cart=".$currentz['cod_kala'];
 
                       
                                  
                        $currentbasketdata .= '<div class="col-12 mt-2"><div class="bg-white rounded p-2 cart-side-holder    rad-10 mx-2 " style="borders:1px solid #ffe38f;"><a href="'.$urltocall.'" class="text-decoration-none"><div class="cart-side-delete d-flex align-items-center justify-content-center"><i class="fa-trash fa"></i></div></a><div class="cart-side-info"><div class="text-right cart-side-items text-dark">'.$currentz['nam'].'</div><div class="text-right cart-side-sub mt-2 text-secondary"><span class="ml-2">تعداد: '.$countforcardcartitem.'</span><span> قیمت واحد: '.$priceforcardcartitem.'</span></div></div></div></div>';
                       
                       
            
                   }
        
        
               }
           
           
}

echo $currentbasketdata;
?> 
