get_results("SELECT * FROM `".WPSC_TABLE_CURRENCY_LIST."` ORDER BY `country` ASC",ARRAY_A); // foreach ($country_data as $country) // { // $selected =''; // if($selected_country == $country['isocode']) // { // $selected = "selected='true'"; // } // $output .= ""; // } // return $output; // } if(preg_match("/[a-zA-Z]{2,4}/",$_GET['isocode'])) { $country_isocode = $_GET['isocode']; } else { $country_isocode = get_option('base_country'); } $base_region = get_option('base_region'); ?>

"; } ?>
get_row("SELECT * FROM `".WPSC_TABLE_CURRENCY_LIST."` WHERE `isocode` IN('".$country_isocode."') LIMIT 1",ARRAY_A); if(($country_data['has_regions'] == 1)) { $region_data = $wpdb->get_results("SELECT `".WPSC_TABLE_REGION_TAX."`.* FROM `".WPSC_TABLE_REGION_TAX."` WHERE `".WPSC_TABLE_REGION_TAX."`.`country_id` IN('".$country_data['id']."') ",ARRAY_A) ; $region_data = array_chunk($region_data, 14); echo "\n\r"; echo " \n\r"; foreach($region_data as $region_col) { echo " \n\r"; } echo " \n\r"; echo "
\n\r"; echo "\n\r"; foreach($region_col as $region) { $tax_percentage = $region['tax']; echo " \n\r"; if($region['id'] == $base_region) { echo " \n\r"; } else { echo " \n\r"; } echo " \n\r"; echo " \n\r"; } echo "
%
\n\r"; echo "
\n\r"; } else { $tax_percentage = $country_data['tax']; echo " "; echo "%"; } ?> ' />