Пример #1
0
 include_once '../LMwebSoapClient.php';
 include_once '../classes/MixerRequestObject.php';
 include_once '../HollydayTemplate.php';
 $wsdl = "http://web3dev.travel-it.com/TravelItMixer/SoapMixer?wsdl";
 $option = array("trace" => true);
 $sc = new SoapClient($wsdl, ['trace' => true, 'cache_wsdl' => WSDL_CACHE_MEMORY]);
 //var_dump($sc);
 //	$sc = new LMwebSoapClient(LMwebSoapClient::$wsdl);
 //$mro = new MixerRequestObject('88', 'HGD7777', '');
 $_GET['destination'] = array("PMI", $_GET['destination']);
 $mro = new MixerRequestObject('235', 'HR74A69Q', '');
 //$mro->setParamsByArray($_GET);
 //if (isset($_GET['mro'])) {
 //    $mro = unserialize(base64_decode($_GET['mro']));
 //}
 $mro->setParamsByArray($_GET);
 //	$mro->setJourneyType('JOURNEY');
 //	$mro->setDestination('Asien');
 //	$mro->setRegionGIATAidDestination('Asien');
 //$mro->setDepartureAirport('Munich');
 //$mro->setDestination($destination);
 /*if(isset($jType)&&$jType=="JOURNEY"){
 		$mro->setDepartureAirport('MUC');
 		echo $jType;
 	}*/
 //$mro->setPerson('3');
 //$mro->setMgrp(1);
 //$mro->setDepartureDate('2015-10-15');
 //$mro->setReturnDate('2015-10-28');
 //$params = array('SF' => 'JOURNEY');
 //var_dump($mro);
Пример #2
0
 } else {
     $dst = $mro->getDestination();
     if (!($dst[0] == null)) {
         //  echo 'index controller search offers';
         $offers = $sc->searchOffers($mro);
         //var_dump($offers);
         if ($offers != null) {
             $temp = 1;
             $m = 0;
             $c = 0;
             for ($i = 0; $i < count($offers); $i++) {
                 $m = $temp;
                 $c = $temp + 1;
                 $temp = $c + 1;
                 $offerMro = new MixerRequestObject($mro->getCfg(), $mro->getXpwp(), $mro->getIp());
                 $offerMro->setParamsByArray($mro->getParamsAsArray());
                 $offerMro->setHotel('|' . $offers[$i]->getLc() . '|' . $offers[$i]->getUc());
                 $offerMro->setSource($offers[$i]->getSource());
                 $offerMro->setHotelGiataCode($offers[$i]->getGid());
                 $offerMro->setBookingCode($offers[$i]->getUc());
                 $ratings_plus = $offers[$i]->getCat();
                 $ratings_minus = 5 - $ratings_plus;
                 echo '
   <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 nospacing country_details_white">
            <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 nospacing">
             <div class="col-lg-4 col-md-4 col-sm-4 col-xs-12 nospacing">
                 <div class="span12">
                     <div id="sync' . $m . '" class="owl-carousel">
                         <div class="item"><img src="' . get_bloginfo('template_url') . '/images/hotel1-29.jpg" class="img-responsive full-width-img" alt="" /></div>
                         <div class="item"><img src="' . get_bloginfo('template_url') . '/images/hotel2-29.jpg" class="img-responsive full-width-img" alt="" /></div>
                         <div class="item"><img src="' . get_bloginfo('template_url') . '/images/hotel3-29.jpg" class="img-responsive full-width-img" alt="" /></div>
Пример #3
0
     echo '<tr bgcolor="#E6E6E6">';
     echo '<th align="left"><font size="3">Abflughafen</th>';
     echo '<th align="left" ><font size="3">Datum
     <table ><th >von/bis</th></table></th>';
     echo '<th align="left">Dauer</th>';
     echo '<th align="left">Unterkunft</th>';
     echo '<th align="left">Verpflegung</th>';
     echo '<th align="left">Veranstalter</th>';
     echo '<th align="left">Gesamtpreis<table ><th >' . $mro->getPersons() . ' Persons</th></table>   </th>';
     echo '<th align="left">Pr&uuml;fen</th>';
     echo '</tr>';
     $date = $result->getDatesList();
     //var_dump($result);
     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());
         $color = $i % 2 == 0 ? '#ffffff' : '#b0bec5';
         echo '<tr bgcolor="' . $color . '" width="100%">';
         echo '<td>' . $date[$i]->getDeparture() . '</td>';
         echo '<td>' . $date[$i]->getDate() . '<br>' . $date[$i]->getBday() . '</td>';
         echo '<td>' . $date[$i]->getDays() . '</td>';
         echo '<td>' . $result->getZt() . '</td>';
         echo '<td>' . $result->getVt() . '</td>';
         echo '<td>' . $result->getTourOperator() . '</td>';
         echo '<td>' . $date[$i]->getGPrice() . '</td>';
         echo '<td><a href="./SearchDateListController.php?mro=' . base64_encode(serialize($dateListMro)) . '">prüfen</a></td>';
         echo '</tr>';
     }
     echo '</table>';
 }
Пример #4
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>';
 }