Ejemplo n.º 1
0
 public static function searchDateListTemplateDetails($hotel, $mro)
 {
     Template::setHeader();
     echo '<table border="1" cellpadding="5" cellspacing="0" width="80%" rules="all">';
     echo '<tr bgcolor="#b0c4de">';
     echo '<th>Abflughafen</th>';
     echo '<th>Anreise</th>';
     echo '<th>R&uuml;ckreise</th>';
     echo '<th>Dauer</th>';
     echo '<th>Unterkunft</th>';
     echo '<th>Verpflegung</th>';
     echo '<th>Veranstalter</th>';
     echo '<th>Preis</th>';
     echo '<th>Prüfen</th>';
     echo '<th>FlightDetails</th>';
     echo '</tr>';
     $date = $hotel->getDatesList();
     for ($i = 0; $i < count($date); $i++) {
         $dateListMro = new MixerRequestObject($mro->getCfg(), $mro->getXpwp(), $mro->getIp());
         $dateListMro->setParamsByArray($mro->getParamsAsArray());
         $dateListMro->setBook($date[$i]->getRef());
         $flightMro = new MixerRequestObject($mro->getCfg(), $mro->getXpwp(), $mro->getIp());
         $flightMro->setParamsByArray($mro->getParamsAsArray());
         //  $flightMro->setDestination($mro->getDestination());
         $flightMro->setDepartureDate($date[$i]->getDate());
         $flightMro->setReturnDate($date[$i]->getBday());
         $flightMro->setJourneyType('FLIGHT');
         $flightMro->setDepartureAirport();
         //$flightMro->setDestination($mro->getDestination());
         $color = $i % 2 == 0 ? '#ffffff' : '#d3d3d3';
         echo '<tr bgcolor="' . $color . '" width="100%">';
         echo '<td>' . $date[$i]->getDeparture() . '</td>';
         echo '<td>' . $date[$i]->getDate() . '</td>';
         echo '<td>' . $date[$i]->getBday() . '</td>';
         echo '<td>' . $date[$i]->getDays() . '</td>';
         echo '<td>' . $hotel->getZt() . '</td>';
         echo '<td>' . $hotel->getVt() . '</td>';
         echo '<td>' . $hotel->getTourOperator() . '</td>';
         echo '<td>' . $date[$i]->getPrice() . '<br>' . $date[$i]->getGPrice() . '</td>';
         echo '<td><a href="./SearchDateListController.php?mro=' . base64_encode(serialize($dateListMro)) . '">prüfen</a></td>';
         echo '<td><a href="./SearchDateFlightController.php?mro=' . base64_encode(serialize($flightMro)) . '">flightDetails</a></td>';
         echo '</tr>';
     }
     echo '</table>';
 }
Ejemplo n.º 2
0
        <div class="voffset2"></div>

        <div class="container nospacing content"> ';
    include __DIR__ . '/LMwebSoapClient/LMwebSoapClient.php';
    include __DIR__ . '/LMwebSoapClient/classes/MixerRequestObject.php';
    include __DIR__ . '/LMwebSoapClient/Template.php';
    $wsdl = "http://web3dev.travel-it.com/TravelItMixer/SoapMixer?wsdl";
    $sc = new LMwebSoapClient(LMwebSoapClient::$wsdl);
    $mro = new MixerRequestObject('235', 'HR74A69Q', '');
    $mro->setJourneyType($journeytype);
    $mro->setDestination($nach);
    if (isset($journeytype) && $journeytype == "JOURNEY") {
        $mro->setDepartureAirport($von);
    }
    $mro->setPerson('2');
    $mro->setDepartureDate($abreiseDate->format('Y-m-d'));
    $mro->setReturnDate($ruckreiseDate->format('Y-m-d'));
    try {
        if ($mro->getJourneyType() == 'FLIGHT') {
            echo 'index controller search flights';
            $result = $sc->searchFlights($mro);
            if ($result != null) {
                //	Template::searchFlightsTemplate($result, $mro);
            }
        } else {
            $dst = $mro->getDestination();
            if (!($dst[0] == null)) {
                //  echo 'index controller search offers';
                $offers = $sc->searchOffers($mro);
                //var_dump($offers);
                if ($offers != null) {
Ejemplo n.º 3
0
 //$mro->setParamsByArray($_GET);
 //if (isset($_GET['mro'])) {
 //    $mro = unserialize(base64_decode($_GET['mro']));
 //}
 //$mro->setParamsByArray($_GET);
 $mro->setJourneyType($jType);
 //	$mro->setDestination('Asien');
 //	$mro->setRegionGIATAidDestination('Asien');
 //$mro->setDepartureAirport('Munich');
 $mro->setDestination($destination);
 if (isset($jType) && $jType == "JOURNEY") {
     $mro->setDepartureAirport('MUC');
     echo $jType;
 }
 $mro->setPerson($persons);
 $mro->setDepartureDate('2015-10-15');
 $mro->setReturnDate('2015-10-28');
 try {
     $result = $this->sc->searchDestinations(array('mro' => $mro->getParamsAsArray()))->return;
     var_dump($result);
     /* if ($mro->getJourneyType() == 'FLIGHT') {
     //        echo 'searchFlights<br>';
                 echo 'index controller search flights';
     
                 $result = $sc->searchFlights($mro);
                 //var_dump($result);
                 if ($result != null) {
                     //	Template::searchFlightsTemplate($result, $mro);
                 }
             } else {
                 $dst = $mro->getDestination();