Example #1
0
function showShippingInfo()
{
    $no = isset($_POST['ship_no']) ? $_POST['ship_no'] : '';
    $name = isset($_POST['ship_name']) ? $_POST['ship_name'] : '';
    $no = substr($no, 1);
    $info = Shipping::get($name, $no);
    if (!$info) {
        ABase::toJson(1, 'showShippingInfo : No Data');
    } else {
        ABase::toJson(0, 'ok', $info);
    }
}