diff --git a/agc_2-X/trunk/UPGRADE b/agc_2-X/trunk/UPGRADE index 46e4bfaf..b28d4fdc 100644 --- a/agc_2-X/trunk/UPGRADE +++ b/agc_2-X/trunk/UPGRADE @@ -664,6 +664,9 @@ OTHER CHANGES: See the "agc/options-example.php" file for more information. *This will not affect custom webform query strings that start with "VAR" +185. Added display of the Phone Codes and Postal Codes that are loaded into the + system. Linked from the System Settings page. + diff --git a/agc_2-X/trunk/www/vicidial/admin.php b/agc_2-X/trunk/www/vicidial/admin.php index fd4bbbc0..120cec77 100644 --- a/agc_2-X/trunk/www/vicidial/admin.php +++ b/agc_2-X/trunk/www/vicidial/admin.php @@ -5676,12 +5676,13 @@ if ($SSscript_remove_js > 0) # 210702-0848 - Added transfer_no_dispo campaign setting # 210705-1037 - Added User override for campaign manual_dial_filter setting # 210706-0128 - Added display of Call Time Holidays to the agent screen Scheduled Callbacks calendar +# 210707-0731 - Added display of phone codes and postal codes, linked from System Settings page # # make sure you have added a user to the vicidial_users MySQL table with at least user_level 9 to access this page the first time -$admin_version = '2.14-819a'; -$build = '210706-0128'; +$admin_version = '2.14-820a'; +$build = '210707-0731'; $STARTtime = date("U"); $SQLdate = date("Y-m-d H:i:s"); @@ -6726,6 +6727,8 @@ if ($ADD==999991) {$hh='reports'; echo _QXZ("SERVERS VERSIONS");} if ($ADD==999990) {$hh='reports'; echo _QXZ("SYSTEM SNAPSHOT STATS");} if ($ADD==999989) {$hh='reports'; echo _QXZ("USER CHANGE LANGUAGE");} if ($ADD==999988) {$hh='reports'; echo _QXZ("AVAILABLE TIMEZONES");} +if ($ADD==999987) {$hh='reports'; echo _QXZ("PHONE CODES");} +if ($ADD==999986) {$hh='reports'; echo _QXZ("POSTAL CODES");} echo "\n"; @@ -48273,6 +48276,173 @@ date_default_timezone_set($orig_zone); ##### END available timezones display page ##### +###################### +# ADD=999987 - phone_codes display page +###################### +if ($ADD==999987) + { + $orig_zone = date_default_timezone_get(); + + $PCfilterSQL=''; + $PCfilterTEXT=''; + if ( (strlen($stage) > 2) and (preg_match("/-/",$stage)) ) + { + $PSstage = explode('-',$stage); + $PCfilterSQL = "and country_code='$PSstage[0]' and state='$PSstage[1]'"; + $PCfilterTEXT = " ("._QXZ("Country Code").": $PSstage[0] "._QXZ("State").": $PSstage[1]) "._QXZ("reset")." "; + } + + echo "
| \n";
+ echo "";
+
+ # country_code | country | areacode | state | GMT_offset | DST | DST_range | geographic_description | tz_code | php_tz
+ $stmt="SELECT count(*),tz_code,GMT_offset,country_code,country,country_name,areacode,state,geographic_description,dst,php_tz FROM vicidial_phone_codes p,vicidial_country_iso_tld i where i.iso3=p.country and php_tz!='' $PCfilterSQL group by country_code,areacode,state,tz_code,GMT_offset,dst,php_tz order by country_code,areacode,CAST(GMT_offset as SIGNED INTEGER) desc,tz_code,dst,php_tz;";
+ $rslt=mysql_to_mysqli($stmt, $link);
+ $zones_to_print = mysqli_num_rows($rslt);
+
+ echo " "._QXZ("PHONE CODES")." \n"; + echo " $zones_to_print "._QXZ("RECORDS")." $PCfilterTEXT \n"; + echo "
|