Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
sayhoChun
/
kcSpecialVehicle
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
651414d7
authored
2017-02-13 17:05:44 +0900
by
sayhoChun
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
province, city added
1 parent
d6570ba4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
common/classes/ApiStatic.php
common/classes/ApiStatic.php
View file @
651414d
...
...
@@ -104,6 +104,29 @@ if (! class_exists("ApiStatic")){
$reusult
=
$this
->
getRow
(
$sql
);
return
$this
->
makeResultJson
(
"1"
,
""
,
$result
);
}
function
getListOfProvince
(){
$sql
=
"
SELECT `provinceNumber`, `desc`, `abbreviation`
FROM tblZipProvince
ORDER BY provinceNumber ASC
"
;
$result
=
$this
->
getArray
(
$sql
);
return
$this
->
makeResultJson
(
"1"
,
""
,
$result
);
}
function
getListOfCity
(){
$provinceNumber
=
$this
->
req
[
"provinceNumber"
];
$sql
=
"
SELECT `cityNumber`, `desc`, `abbreviation`
FROM tblZipCity
ORDER BY cityNumber ASC
"
;
$result
=
$this
->
getArray
(
$sql
);
return
$this
->
makeResultJson
(
"1"
,
""
,
$result
);
}
}
}
...
...
Please
register
or
sign in
to post a comment