<?php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
// +----------------------------------------------------------------------+
// | PHP version 4/5                                                      |
// +----------------------------------------------------------------------+
// | This source file is a part of iScripts Multicart                     |
// +----------------------------------------------------------------------+
// | Authors: Programmer<programmer@armia.com>        		              |
// +----------------------------------------------------------------------+
// | Copyrights Armia Systems, Inc and iScripts.com � 2005                |
// | All rights reserved                                                  |
// +----------------------------------------------------------------------+
// | This script may not be distributed, sold, given away for free to     |
// | third party, or used as a part of any internet services such as      |
// | webdesign etc.                                                       |
// +----------------------------------------------------------------------+
?>

<?php

/*currency section starts*/

		$currency_selected = "";
		 if (function_exists('session_register'))
		 
								
		if(isset($_POST['currency_type']))
		{
		
			//activateCurrencyType($_POST['currency_type']);
			$currency_type = $_POST['currency_type'];
			
			$_SESSION['SESS_currency_type'] = $currency_type;
					
			echo "<script type='text/javascript'> window.location='".$_SERVER['HTTP_REFERER']."';</script>";
	
		}
		else
		{
		
			if (!isset($_SESSION['SESS_currency_type']) OR $_SESSION['SESS_currency_type'] == "")
			{
				$_SESSION['SESS_currency_type']	= "1";
				$currency_type					= "1";
				
			}
		
		
			/*$select_currency_id = "SELECT ncurrency_id FROM ".$tableprefix."currency_master WHERE vactive = 'Y'";
			$result_currency_id = mysql_query($select_currency_id) or die(mysql_error());
			$currency_rowid = mysql_fetch_assoc($result_currency_id);
		
			$currency_type = $currency_rowid['ncurrency_id'];*/
		}
		
		/*currency section ends*/
		
?>


<!-- categories-->

<!--categories area start

				<div align="left" id="categories">
				
				
						<div align="center"><img src="<?php echo SITE_URL ?>/<?php echo $active_template[3]?>/categories_title.gif" alt="" width="193" height="24" /></div>
						<div align="left" id="category_list">
						<ul>
 -->						
						
<?php

//$artistid = GetSQLValueString($artistid,"text");

/*if($enable_seller_friendly == "Y")
{

	$select_artist_id = "SELECT artist_id FROM ".$tableprefix."artists WHERE artist_name = ".$artistid;
	$result_artist_id = mysql_query($select_artist_id) or die(mysql_error());
	
	if(mysql_num_rows($result_artist_id) > 0)
	{
		
		$artist_row = mysql_fetch_assoc($result_artist_id);
		
		$artistid = $artist_row['artist_id'];			
	}


}*/


/*$sql = "SELECT p.product_artist_id,p.product_category,count(product_category) as cnt ,
			   c.category_name,c.category_id from ".$tableprefix."products
			   p left join ".$tableprefix."categories  c on  p.product_category= c.category_id
		WHERE product_artist_id=".$artistid."
		GROUP BY product_category 
		";*/
		
	//echo $sql;	
		

//if($enable_seller_friendly == "Y")


//echo $artistid;

//$sql=" SELECT category_id,category_name,count FROM ".$tableprefix."categories WHERE parent_id='0' ORDER BY category_name ";																
/*$resultcategories = mysql_query($sql) or die(mysql_error());
if(mysql_num_rows($resultcategories) > 0 )
{

	
	while($rowcategories = mysql_fetch_array($resultcategories))
	{
	
		$select_category_product = "SELECT product_id FROM ".$tableprefix."products WHERE product_category = ".$rowcategories['category_id'];
		$result_category_product = mysql_query($select_category_product) or die(mysql_error());
		
		if($rowcategories['cnt'] > 0)
		{
																					
			if(strlen($rowcategories["category_name"])>20)
			  $category_name=substr($rowcategories["category_name"],0,20)."...";
			else
			   $category_name =$rowcategories["category_name"];

?>						

									<li><a href="categorydetail.php?catid=<?php echo htmlentities($rowcategories["category_id"])?>"><?php echo ($category_name);?></a>&nbsp;(<?php echo htmlentities($rowcategories["cnt"]);?>)</li>
<?php


		}
																
	}
																		
}
*/

?>
				<!--</ul>
				</div>
				
				</div>-->
				
				<!--categories area end -->
				
				
				
				
				<?php

	$check_shipping_enable = checkShippingEnable();

	if($check_shipping_enable == "Y")
	{

		$shipping_information = "Shipping Enabled";
	}
	else
	{
		$shipping_information = "Shipping Disabled";
	}	

?>					
				
				<div align="left" id="categories">
<!--Shipping details area start -->
				
				<div align="center"><img src="<?php echo SITE_URL ?>/<?php echo $active_template[3]?>/shipping_title.gif" alt="" width="193" height="24" /></div>
				<div align="left" id="category_list">
				
						
				<img src="<?php echo SITE_URL ?>/images/ups_shipping_icon.jpg" border="0"><span class="text_information"><?php echo $shipping_information?></span>			
					
				
					<ul>
						<li>Digital Products [products which comes under the category Digital & Gift Certificate ]</li>
					</ul>
					<ul>
						<li>Digital & Non Digital Product purchases in a single order is not allowed</li>
					</ul>
					<ul>
						<li>Gift Certificate & Non Digital Product purchases in a single order is not allowed</li>
					</ul>
				</div>
<!--Shipping details area end -->
				</div>
				
				

