Пример #1
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'D_HotelSearch_IDList');
    $rt = $cu->D_HotelSearch_IDList($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #2
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_HotelDescriptiveInfo');
    $rt = $cu->OTA_HotelDescriptiveInfo($_POST, 'string');
    echo "<meta charset='utf-8' />";
    echo $rt;
} else {
    require "temp.html";
}
Пример #3
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_HotelAvail');
    // 第二个参数为返回类型参数,支持string,json,xml,array,object,缺省默认执行对应方法中的respond_xml
    $rt = $cu->OTA_HotelAvail($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #4
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'GetOrdersCheckStatusInfo');
    $rt = $cu->GetOrdersCheckStatusInfo($_POST, 'array');
    echo "<meta charset='utf-8'/>";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #5
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_HotelCacheChange');
    $rt = $cu->OTA_HotelCacheChange($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #6
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_Ping');
    // 第二个参数为返回类型参数,支持string,json,xml,array,object,缺省默认执行对应方法中的respond_xml
    $rt = $cu->OTA_Ping($_POST, 'string');
    echo "<meta charset='utf-8' />";
    echo $rt;
} else {
    require "temp.html";
}
Пример #7
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'D_HotelSubRoomList');
    $rt = $cu->D_HotelSubRoomList($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #8
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_Cancel');
    $rt = $cu->OTA_Cancel($_POST);
    echo "<meta charset='utf-8' />";
    var_dump($rt);
} else {
    require "temp.html";
}
Пример #9
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'D_HotelCreditCard');
    $rt = $cu->D_HotelCreditCard($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #10
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_Read');
    $rt = $cu->OTA_Read($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #11
0
<?php

$p = isset($_REQUEST['p']) ? $_REQUEST['p'] : '';
if ($_POST) {
    echo "<meta charset='utf-8' />";
    require_once "../../API/CtripUnion.php";
    $cu_res = new CU('hotel', 'OTA_HotelRes');
    $rt_res = $cu_res->OTA_HotelRes($_POST, 'array');
    print_r($rt_res);
} elseif ($p == 'guarante') {
    require 'guarante.html';
} else {
    require "temp.html";
}
Пример #12
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'D_GetNoShowOrders');
    // 第二个参数为返回类型参数,支持string,json,xml,array,object,缺省默认执行对应方法中的respond_xml
    $rt = $cu->D_GetNoShowOrders($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #13
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'D_SearchDepositAgentAccountDetail');
    // 第二个参数为返回类型参数,支持string,json,xml,array,object,缺省默认执行对应方法中的respond_xml
    $rt = $cu->D_SearchDepositAgentAccountDetail($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #14
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_UserUniqueID');
    $rt = $cu->OTA_UserUniqueID($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #15
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_HotelIdList');
    $rt = $cu->OTA_HotelIdList($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #16
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_HotelResNotif');
    // 第二个参数为返回类型参数,支持string,json,xml,array,object,缺省默认执行对应方法中的respond_xml
    $rt = $cu->OTA_HotelResNotif($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #17
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'D_HotelPlaceInfoList');
    $rt = $cu->D_HotelPlaceInfoList($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #18
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'D_HotelPicList');
    $rt = $cu->D_HotelPicList($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #19
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'D_HotelDescription');
    $rt = $cu->D_HotelDescription($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #20
0
<?php

/*-----机票ajax操作控制器-----*/
require_once dirname(__FILE__) . "/../include/common.inc.php";
require_once SLINEINC . '/ctrip/CtripUnion.php';
require_once SLINEINC . '/ctrip/CtripFunc.php';
//获取低价日历
if ($action == 'getLowerPrice') {
    $enddate = date("Y-m-d", strtotime("+1months", strtotime($startdate)));
    $arr = array('startcity' => $dCode, 'arrivecity' => $aCode, 'startdate' => $startdate, 'enddate' => $enddate);
    $cu = new CU('flight', 'OTA_FlightLowPriceSearch');
    $rt = $cu->OTA_FlightLowPriceSearch($arr, 'array');
    $pricelist = CtripFunc::getLowerPriceList($rt);
    print_r(json_encode($pricelist));
}
//查询机票
if ($action == 'getFlight') {
    $arr = array('startcity' => $dCode, 'arrivecity' => $aCode, 'departdate' => $startdate, 'searchtype' => $searchType);
    $cu = new CU('flight', 'OTA_FlightSearch');
    $rt = $cu->OTA_FlightSearch($arr, 'array');
    $flightlist = $rt['FlightSearchResponse']['FlightRoutes']['DomesticFlightRoute']['FlightsList']['DomesticFlightData'];
    $out = CtripFunc::handleFlightList($flightlist);
    echo json_encode($out);
}
Пример #21
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_HotelSearch');
    $rt = $cu->OTA_HotelSearch($_POST, 'array');
    echo "<meta charset='utf-8'/>";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #22
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_HotelCommNotif');
    $rt = $cu->OTA_HotelCommNotif($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #23
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'D_HotelFacility');
    $rt = $cu->D_HotelFacility($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #24
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'D_HotelDetailList_Main');
    $rt = $cu->D_HotelDetailList_Main($_POST, 'array');
    echo "<meta charset='utf-8' />";
    print_r($rt);
} else {
    require "temp.html";
}
Пример #25
0
<?php

if ($_POST) {
    require_once "../../API/CtripUnion.php";
    $cu = new CU('hotel', 'OTA_HotelRatePlan');
    $rt = $cu->OTA_HotelRatePlan($_POST, 'array');
    echo "<meta charset='utf-8' />";
    foreach ($rt['HotelResponse']['OTA_HotelRatePlanRS']['RatePlans'] as $value) {
        var_dump($value['RatePlan']);
        echo '<hr/>';
    }
} else {
    require "temp.html";
}