示例#1
0
         alert('Drop Districts OK!');
     } else {
         alertDanger('Drop Districts Failed');
     }
     break;
 case 'dropCounties':
     if ($is->dropCounties()) {
         alert('Drop Counties OK!');
     } else {
         alertDanger('Drop Counties Failed');
     }
     break;
     //SYNC
 //SYNC
 case 'syncCountries':
     $insertCountryResult = $is->insertCountry($valueset);
     if ($insertCountryResult) {
         if ($insertCounrtyResult != 'INVALID-VALUESET') {
             alert('Sync was OK!');
         } else {
             alertDanger('Sync Failed. Valueset "' . $valueset . '" does not exist');
         }
     } else {
         alertDanger('Country Sync Failed');
     }
     break;
 case 'syncRegions':
     if ($_POST['regionsDropdown'] == "NONE") {
         alertDanger("Please select a country to sync region value-sets with");
     } else {
         $region = $_POST['regionsDropdown'];