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ü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>'; }
<div class="main-image-text text-center col-lg-12 col-md-12 col-sm-12 col-xs-12">Neuigkeiten</div> </div> <img src="' . get_bloginfo('template_url') . '/images/neuigkeiten.jpg" class="full-width-img img-responsive" alt="" /> </div> </div> <div class="clearfix"></div> <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 {
echo $To; echo $persons; include __DIR__ . '\\LMwebSoapClient\\LMwebSoapClient.php'; include __DIR__ . '\\LMwebSoapClient\\classes\\MixerRequestObject.php'; include __DIR__ . '\\LMwebSoapClient\\HollydayTemplate.php'; $wsdl = "http://web3dev.travel-it.com/TravelItMixer/SoapMixer?wsdl"; $sc = new SoapClient($wsdl); // $sc = new LMwebSoapClient(LMwebSoapClient::$wsdl); //$mro = new MixerRequestObject('88', 'HGD7777', ''); $mro = new MixerRequestObject('235', 'HR74A69Q', ''); //$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') {