コード例 #1
0
<?php

require_once "../../../class/Utils.php";
require_once "../../../class/DBWork.php";
require_once "../../../class_tax/DBAdminWork.php";
$aWork = new DBAdminWork(true);
try {
    $aWork->createWork($_POST, true);
    $ret = array();
    if ($_POST['type'] == 'T') {
        $res = $aWork->selectLinkUserListForTax();
    } else {
        $res = $aWork->selectLinkUserList();
    }
    $aWork->destoryWork();
    $ret['DATA'] = $res;
    $ret['CODE'] = '00';
    echo json_encode($ret);
} catch (Exception $e) {
    $aWork->destoryWork();
    $err = $e->getMessage();
    Util::serverLog($e);
    echo "{ CODE: '99' }";
    exit;
}
コード例 #2
0
<?php

require_once "../../../class/Utils.php";
require_once "../../../class/DBWork.php";
require_once "../../../class_tax/DBAdminWork.php";
$aWork = new DBAdminWork(true);
try {
    $aWork->createWork(-1, true);
    $ret = array();
    $res = $aWork->selectCompList();
    $aWork->destoryWork();
    $ret['DATA'] = $res;
    $ret['CODE'] = '00';
    echo json_encode($ret);
} catch (Exception $e) {
    $aWork->destoryWork();
    $err = $e->getMessage();
    Util::serverLog($e);
    echo "{ CODE: '99' }";
    exit;
}