|
|
@@ -35,7 +35,8 @@ class destination_delivery {
|
|
|
$term = $_POST['term'];
|
|
|
$term = trim($term);
|
|
|
$sql = "select DISTINCT category AS country_code from public.kerry_system_code
|
|
|
- where category ilike '" . common::check_input($term) . "%'";
|
|
|
+ where description='COUNTRY-STATION'
|
|
|
+ and category ilike '" . common::check_input($term) . "%'";
|
|
|
$sql .= " order by category";
|
|
|
|
|
|
$rs = common::excuteListSql($sql);
|
|
|
@@ -56,7 +57,10 @@ class destination_delivery {
|
|
|
*/
|
|
|
if ($operate == "station") {
|
|
|
$country = common::check_input($_REQUEST['country']);
|
|
|
- $sql = "select code from public.kerry_system_code where category = '".$country."' and code NOT LIKE 'Online_%'";
|
|
|
+ $sql = "select code from public.kerry_system_code
|
|
|
+ where description='COUNTRY-STATION'
|
|
|
+ and category = '".$country."'
|
|
|
+ and code NOT LIKE 'Online_%'";
|
|
|
$rs = common::excuteListSql($sql);
|
|
|
foreach($rs as $key => $val){
|
|
|
if(!empty($val['code'])){
|