This commit is contained in:
Kevin Adametz 2019-02-06 15:11:58 +01:00
parent 98bd71c760
commit 8b2ec705c9
83 changed files with 3467 additions and 1214 deletions

View file

@ -75,7 +75,6 @@ class DefaultController extends Controller
{
$destinationIds[] = $data['c2']->getId();
}
$r = $this->getDoctrine()->getRepository('AppBundle:TravelPeriod')->getTravelProgramsWithTravelDatesForTimePeriod(
$data['b'], $data['e'], $destinationIds, count($destinationIds) > 1);
}
@ -149,6 +148,7 @@ class DefaultController extends Controller
}
}
//https://dtps-ibe.traveltainment.de/hotel?taid=DRS32&ddate=2018-07-25&rdate=2018-08-08&adult=2&rid=2202
//http://dtps-ibe.traveltainment.de/hotel?taid=DRS32&ddate=2018-07-25&rdate=2018-08-08&dur=6,14&adult=1&child=0&rgid=2202
else
@ -266,10 +266,43 @@ class DefaultController extends Controller
$child .= $p.",";
}
}
$board = "";
$room = "";
if($sleist != "" && strpos($sleist, ";")) {
$eleist = explode(';', $sleist);
$v = end($eleist);
if(strpos($v, "F") !== false){
$board = 2;
}
if(strpos($v, "H") !== false){
$board = 3;
}
if(strpos($v, "V") !== false){
$board = 4;
}
if(strpos($v, "A") !== false){
$board = 5;
}
if(strpos($v, "EZ") !== false){
$room = 1;
}
if(strpos($v, "DZ") !== false){
$room = 2;
}
if(strpos($v, "FZ") !== false){
$room = 3;
}
}
$child = rtrim($child, ',');
$url = "http://dtps-ibe.traveltainment.de/offer?taid=DRS32";
$url .= '&ibe=package&adult='.$adult.'&ddate='.date("Y-m-d", $hin).'&rdate='.date("Y-m-d", $rueck).'&depap='.$airp.'&aid='.$iff.'&brand='.$va.'&dur='.$dau.'&child='.$child;
$url = "https://dtps-ibe.traveltainment.de/offer?taid=DRS32";
$url .= '&ibe=package&adult='.$adult.'&ddate='.date("Y-m-d", $hin).'&rdate='.date("Y-m-d", $rueck).'&depap='.$airp.'&aid='.$iff.'&brand='.$va.'&dur='.$dau.'&child='.$child.'&board='.$board.'&room='.$room.'&dur=exact';
$ttUrl = urldecode($url);
}