403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/rsdgroup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/rsdgroup/product_detail.php
<?php
include_once("conf/settings.php");
include_once("conf/func.php");

extract($_REQUEST);

if($productId && $speciesId)
{
  $nutritional_information_details =  getNutritionalInformationByProductId('tblNutritionalInformation',$productId);
  $nutritional_information_approx_value = $nutritional_information_details[0]['nutritional_information_approx_value'];
  $nutritional_information_arr = json_decode($nutritional_information_details[0]['nutritional_information'],true);
}

$aspeciesKey = getCertificates("tblSpecies where species_key ='$speciesId'");
$prodDetail = getCertificates("tblProduct where product_key ='$productId' and Species_Id='".$aspeciesKey[0]['Species_Id']."'"); 
?>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title><?php if($prodDetail[0]['metaTitle']==''){ echo "RSD"; }else{ echo $prodDetail[0]['metaTitle']; } ?></title>
<meta name="Keywords" content="<?php if($prodDetail[0]['metaKeyword']==''){ echo "RSD"; }else{ echo $prodDetail[0]['metaKeyword']; } ?>">
<meta name="Description" content="<?php if($prodDetail[0]['metaDescription']==''){ echo "RSD"; }else{ echo $prodDetail[0]['metaDescription']; } ?>">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" type="text/css" href="css/chromestyle.css" />
<script type="text/javascript" src="js/chrome.js"></script>
<script type="text/javascript" src="js/jquery-1.4.4.min.js"></script>
<!--[if lt IE 9]>
<script src="js/html5.js"></script>
<![endif]-->

</head>
<body>
<!--header start here-->
<?php include_once("inc/header.php"); ?>
<!--header end here-->

<!--section start here-->
<section>
  <div class="ourProdetail">
    <div class="leftcontainer">
      <h4>Brands</h4>
      <a href="ananda.html" class="pronav"><?php echo str_replace('-',' ', $speciesId); ?></a>
      <ul id="chromemenu">
<?php 
    if(!isset($aspeciesKey[0]['Species_Id'])){
        header("Location:".$_SERVER['HTTP_REFERER']);
    }
    
    $sql = "SELECT * from tblCategory where  Species_Id='".$aspeciesKey[0]['Species_Id']."' ORDER BY OrderOfApperance ";    
        
    $categoryList = mysqltoarray($sql);
        
    foreach($categoryList as $list):
        $subProdSql = "SELECT Product_Id, Category_Id, Product_Name, product_key from tblProduct where  Category_Id=".$list['Category_Id'];
        $subProdList = mysqltoarray($subProdSql);
?>

          <?php if(count($subProdList)>0): ?>
          <li  class="<?php if($catId == $list['category_key']){ echo "activelnav"; } ?>" ><a class="liborderno" rel="dropmenu<?php echo $list['Category_Id']; ?>" href="<?php echo 'ananda_brand_list.html?catId='.$list['category_key'].'&speciesId='.$speciesId ?>"><?php echo $list['Category_Name']; ?></a></li>
          
		  <?php if(strtolower($list['Category_Name'])=="milk" || strtolower($list['Category_Name'])=="paneer") {  ?>       
          <div id="dropmenu<?php echo $list['Category_Id']; ?>" class="dropmenudiv">
                   <?php $count = 0; $realSize = count($subProdList); foreach($subProdList as $subProdDetail): $count++; ?>
                    <a class="<?php echo $count==$realSize?'border_bottom_none':''; ?>" href="<?php echo 'product_detail.html?catId='.$list['category_key'].'&speciesId='.$speciesId.'&productId='.$subProdDetail['product_key'] ?>"><?php echo $subProdDetail['Product_Name']; ?></a>
                   <?php  endforeach; ?>
          </div>
		  <?php } ?>
                
                
        <?php else: ?>
        <li class="<?php if($catId == $list['category_key']){ echo "activelnav"; } ?>"><a href="<?php echo 'ananda_brand_list.html?catId='.$list['category_key'].'&speciesId='.$speciesId ?>"><?php echo $list['Category_Name']; ?></a>   </li>
        <?php endif; ?>       
        
        <?php endforeach; ?>
      </ul>
      <a href="dairyIndia.html" class="pronav">Dairy India</a> 
      <a href="gplus.html" class="pronav">G +</a>
      <div class="botline"></div>
    </div>      

    <script type="text/javascript">
cssdropdown.startchrome("chromemenu")
</script>
    <div class="rightcontainer">
        <div class="braedcrumbInner"><a href="<?php echo $baseurl; ?>">Home</a>&nbsp;&nbsp;&gt;&nbsp;&nbsp;Brands&nbsp;&nbsp;&gt;&nbsp;&nbsp;<a href="ananda.html"><?php echo ucwords(str_replace('-', ' ', $speciesId)); ?></a>&nbsp;&nbsp;&gt;&nbsp;&nbsp;<span><?php echo ucwords(str_replace('-', ' ', $productId)); ?></span></div>
      <div class="ourProdetailtop">      
          
        <h1><?php echo $prodDetail[0]['Product_Name']; ?></h1>        
         <p>
            <img src="cat_images/products/<?php echo $prodDetail[0]['Product_Image']; ?>" alt="product">      
          <span><?php echo $prodDetail[0]['Tag_Line']; ?></span>
          <br />
          <br />
             <?php echo $prodDetail[0]['Product_Description']; ?>      
        </p>
        
      </div>
    </div>
    <div class="cl"></div>
  </div>
  <div class="graybg">
    <div class="graybgIn">
      <div class="benefit_imgBox"><a href="recipes.html"><img src="images/ananda_butter_img1.png" alt="Butter"></a></div>
      <div class="benefitContent">
        <h4>Benefits &amp; Usage</h4>
        <ul>            
            <?php $Benefits_Usage = array(); $Benefits_Usage = explode('###',$prodDetail[0]['Benefits_Usage']); ?>   
            <?php foreach($Benefits_Usage as $benefitsList): ?>
            <?php echo "<li>".$benefitsList."</li>"; ?>
            <?php endforeach; ?>
        </ul>
      </div>
      <div class="cl"></div>
    </div>
  </div>
  <div class="morethan">
    <h1>Availability</h1>
    <div class="availability"> 
	
	<?php if($prodDetail[0]['Large_Image']=="" || $prodDetail[0]['Medium_Image']=="" || $prodDetail[0]['Small_Image']=="") { ?>
	  <?php if($prodDetail[0]['Large_Image'] && $prodDetail[0]['Large_Image']!=''){ ?>
      <div class="availabilityIn">
        <div class="availabilityIn_img">
            <?php if(isset($prodDetail[0]['Large_Image']) && $prodDetail[0]['Large_Image']!=''){ ?>
            <img src="cat_images/products/<?php echo $prodDetail[0]['Large_Image']; ?>" alt="Ananda">
           <?php
            }?>
        </div>
        <div class="availabilityIn_gm"><?php echo $prodDetail[0]['Large_vol']; ?></div>
      </div>
	  <?php } ?>
	  
	 <?php if($prodDetail[0]['Medium_Image'] && $prodDetail[0]['Medium_Image']!=''){ ?>
      <div class="availabilityIn">
        <div class="availabilityIn_img">
            <?php if(isset($prodDetail[0]['Medium_Image']) && $prodDetail[0]['Medium_Image']!=''){ ?>
            <img src="cat_images/products/<?php echo $prodDetail[0]['Medium_Image']; ?>" alt="Ananda">
           <?php
            }?>
        </div>
        <div class="availabilityIn_gm"><?php echo $prodDetail[0]['Medium_vol']; ?></div>
      </div>
	 <?php } ?> 
	  
	  <?php if($prodDetail[0]['Small_Image'] && $prodDetail[0]['Small_Image']!=''){ ?>
      <div class="availabilityIn availabilityInbgnone">
        <div class="availabilityIn_img">
            <?php if(isset($prodDetail[0]['Small_Image']) && $prodDetail[0]['Small_Image']!=''){ ?>
            <img src="cat_images/products/<?php echo $prodDetail[0]['Small_Image']; ?>" alt="Ananda">
           <?php
            }?>
        </div>
        <div class="availabilityIn_gm"><?php echo $prodDetail[0]['Small_vol']; ?></div>
      </div>
	 <?php } ?>
	 
	 <?php } else { echo "No Availability."; }?>  
	  
    </div>
  </div>
  
  
 <div class="morethan">
    <h1>Nutritional Information</h1>
    <div class="nutbg">
    	<div class="nutbg_in">
        
		    <?php 
			if(count($nutritional_information_arr)>0)
			{
			  $s=1;
			  
			    foreach($nutritional_information_arr as $key_fc=>$val_fc) {  
				$rec_nutritional_facts_indx = $val_fc;
				foreach($rec_nutritional_facts_indx as $key1_fc=>$val1_fc) {
			
			    if($s%2==0)
				{
				  $div_class = "pro_container_gray";
				  $subdiv_class = "distance_box_whitebg";
				}
				else{
				  $div_class = "pro_container_white";
				  $subdiv_class = "";
				}
			?>
        	<div class="<?php echo $div_class; ?>">
            	<h5><?php echo $key1_fc; ?></h5>
                	<div class="distance_container <?php echo $subdiv_class; ?>">
                    	<code><?php echo $val1_fc; ?></code>
                        <p><?php echo $nutritional_information_approx_value; ?></p>
                    </div>
            </div>
            <?php $s++; } } }  else { echo "No Nutritional Information.";} ?>
            
        
        <div class="cl"></div></div>
        
        
    </div>
  <div class="cl"></div></div>
  
  
  
  <div class="morethan">
    
    <div class="compositions">
      <div class="compositionsIn">
        <div class="compositionsIn_img"><h6>Composition</h6>
            <?php
                if($prodDetail[0]['Product_Composition']){ 
                    echo $prodDetail[0]['Product_Composition'];
                } else { echo "N/A"; }
            ?>
            
        </div>
        <div class="compositionsIn_gm"></div>
      </div>
      
      
      <div class="compositionsIn">
        <div class="compositionsIn_img"><h6>Shelf Life </h6>
             <?php
                if($prodDetail[0]['Product_Shelf_Life']){ 
                    echo $prodDetail[0]['Product_Shelf_Life'];
               } else { echo "N/A"; }
            ?>
        </div>
        <div class="compositionsIn_gm"></div>
      </div>
      
       <div class="compositionsIn compositionsInbgnone">
        <div class="compositionsIn_img"><h6>Storage Condition</h6>
             <?php
                if($prodDetail[0]['Product_Storage_Condition']){
                    echo $prodDetail[0]['Product_Storage_Condition'];
                } else { echo "N/A"; }
            ?>
        </div>
        <div class="compositionsIn_gm"></div>
      </div>
    </div>
  </div>
  
  
 <?php 
  $otherVariant = array();
  $sql = "SELECT tblProduct.Product_Name,tblProduct.Product_Image,tblProduct.Product_key,tblCategory.Category_Id,tblCategory.Category_Name from tblProduct join tblCategory on tblProduct.Category_Id=tblCategory.Category_Id where  tblCategory.category_key ='$catId' and tblCategory.Species_Id=".$aspeciesKey[0]['Species_Id']." and tblProduct.product_key!='$productId'";
  $otherVariant = mysqltoarray($sql); 
  
  if(count($otherVariant)>0) {      
  ?>
		  
  <div class="greenbg">
    <div class="greenIn">
      <div class="morethan">
        <h3>Other Variant</h3>
        
      <ul>
          <?php foreach($otherVariant as $variantDetail)
		  {  
		    if($variantDetail['Product_Image']!="" && file_exists("cat_images/products/".$variantDetail['Product_Image']))
			{
			   $pimage = "cat_images/products/".$variantDetail['Product_Image'];
			}
			else{
			  $pimage = "images/pckt.png";
			}
		  ?>
		  
		  <?php  
		  if(strtolower($variantDetail['Category_Name'])=="milk" || strtolower($variantDetail['Category_Name'])=="paneer"){ 
		  ?>
          <li><span style="background:url(<?php echo $pimage; ?>) 0 0 no-repeat #ffffff; background-size:106px 106px; -ms-behavior: url(backgroundsize.min.htc);   behavior: url(backgroundsize.min.htc);
"><img src="images/ananda_thumbnail.png" border="0"></span>
              <a href="product_detail.html?catId=<?php echo $catId; ?>&speciesId=<?php echo $speciesId;?>&productId=<?php echo $variantDetail['Product_key']; ?>"><?php echo $variantDetail['Product_Name']; ?></a>
          </li>
		  <?php } else { ?>
		  <li><span style="background:url(<?php echo $pimage; ?>) 0 0 no-repeat #ffffff; background-size:106px 106px;-ms-behavior: url(backgroundsize.min.htc);   behavior: url(backgroundsize.min.htc);
"><img src="images/ananda_thumbnail.png" border="0"></span>
              <?php echo $variantDetail['Product_Name']; ?>
          </li>
		  <?php } ?>
          <?php } ?>
  
        </ul>
      </div>
      <div class="cl"></div>
    </div>
  </div>
  <?php } ?>
  
<!--footer top start here-->
<?php include_once("inc/footer-top.php"); ?>
<!--footer top end here-->

</section>
<!--section end here-->

<!--footer start here-->
<?php include_once("inc/footer.php"); ?>
<!--footer end here-->

</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit