Anpassung IBE
git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3429 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
71ece603e2
commit
783e179dfe
1 changed files with 14 additions and 7 deletions
|
|
@ -112,16 +112,16 @@ class DefaultController extends Controller
|
|||
{
|
||||
$data = $form->getData();
|
||||
|
||||
$ttUrl = "http://dtps-ibe.traveltainment.de/offer/?&taid=DRS32"; //ibe=package";
|
||||
//$ttUrl = "http://dtps-ibe.traveltainment.de/hotel/?&taid=DRS32"; //ibe=package";
|
||||
|
||||
/*$requests = "&ibe=package&aidgiata=49720&ddate=".date("Y-m-d", 1523397600)."&depap=TXL&rdate=".date("Y-m-d", 1524002400)."&dur=6,2&brand=FTI&oid=ASW318;PAUS;;DSQF&adult=2";*/
|
||||
|
||||
$ttUrl = "";
|
||||
$ttUrl .= '&ddate=' . $data['termin']->format('d.m.Y');
|
||||
$ttUrl .= '&rdate=' . $data['ruecktermin']->format('d.m.Y');
|
||||
if (!empty($data['dauer'])){
|
||||
$ttUrl .= '&dur='.str_replace("_", ",", $data['dauer']);
|
||||
}
|
||||
|
||||
$ttUrl .= '&adult=2';
|
||||
if (!empty($data['t']))
|
||||
{
|
||||
$ttUrl .= '&adult='. $data['t'];
|
||||
|
|
@ -135,19 +135,26 @@ class DefaultController extends Controller
|
|||
}
|
||||
$ttUrl .= '&child='. $count;
|
||||
}
|
||||
$ttUrl .= '&ibe=';
|
||||
// $ttUrl .= '&ibes=';
|
||||
if (!empty($data['topRegion']))
|
||||
{
|
||||
if(isset(TtSearchRequestType::$DESTINATION_CHOICES[$data['topRegion']])){
|
||||
$ttUrl .= 'package&rgid='. TtSearchRequestType::$DESTINATION_CHOICES[$data['topRegion']];
|
||||
// $ttUrl .= 'hotel&rgid='. TtSearchRequestType::$DESTINATION_CHOICES[$data['topRegion']];
|
||||
$ttUrl .= '&rid='. TtSearchRequestType::$DESTINATION_CHOICES[$data['topRegion']];
|
||||
$ttUrl = "https://dtps-ibe.traveltainment.de/hotel/?&taid=DRS32".$ttUrl;
|
||||
}else{
|
||||
$ttUrl .= 'package&rgid='. $data['topRegion'];
|
||||
// $ttUrl .= 'package&rgid='. $data['topRegion'];
|
||||
$ttUrl .= '&rid='. $data['topRegion'];
|
||||
$ttUrl = "https://dtps-ibe.traveltainment.de/offer/?&taid=DRS32".$ttUrl;
|
||||
}
|
||||
|
||||
}
|
||||
//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
|
||||
{
|
||||
$ttUrl .= 'package';
|
||||
//$ttUrl .= 'package';
|
||||
$ttUrl = "https://dtps-ibe.traveltainment.de/offer/?&taid=DRS32".$ttUrl;
|
||||
}
|
||||
if (!empty($data['abflughafen'])) $ttUrl .= '&depap='. $data['abflughafen'];
|
||||
if (!empty($data['shotel'])) $ttUrl .= '&accom='. urlencode($data['shotel']);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue