sample_display_ratecard.php
<?php /* * @return string * @param string $url * @desc Return string content from a remote file */ function open_url($url) { $ch = curl_init(); curl_setopt ($ch, CURLOPT_URL, $url); curl_setopt ($ch, CURLOPT_HEADER, 0); ob_start(); curl_exec ($ch); curl_close ($ch); $string = ob_get_contents(); ob_end_clean(); return $string; } $private_key = "Ae87v56zzl34v"; $private_key_md5 = md5($private_key); $api_url = "http://localhost/a2b_api/display_ratecard.php?" . "key=$private_key_md5" . "&page_url=http://localhost/a2b_api/sample_display_ratecard.php" . "&field_to_display=t1.destination,t1.dialprefix,t1.rateinitial" . "&column_name=Destination,Prefix,Rate/Min" . "&field_type=,,money" . "&fullhtmlpage=1&filter=countryname,prefix". "&".$_SERVER['QUERY_STRING']; // ----------------- USAGE ------------------------- #usage: $content = open_url ($api_url); print ($content); ?>
Tips:
編輯 display_ratecard.php:將 1000 改成 3000 試試
// fix for Country Select display_ratecard.php if ($FILTER_COUNTRY) { $QUERY = 'SELECT DISTINCT destination FROM cc_prefix ORDER BY destination LIMIT 0, 1000'; $country_list = $instance_table->SQLExec($DBHandle, $QUERY, 1, $caching_query); }
編輯 Misc.php: 將最下方 3 改成 4
function display_2bill($var, $currency = BASE_CURRENCY) { global $currencies_list, $choose_currency; if (isset ($choose_currency) && strlen($choose_currency) == 3) $currency = $choose_currency; if ((!isset ($currencies_list)) || (!is_array($currencies_list))) $currencies_list = get_currencies(); $var = $var / $currencies_list[strtoupper($currency)][2]; echo number_format($var, 3) . ' ' . strtoupper($currency); }
Images 0 | ||
---|---|---|
No images to display in the gallery. |