IBE / Ticket 1376 + 1377
git-svn-id: http://78.47.251.156/svn/dev/sterntours-3@3389 f459cee4-fb09-11de-96c3-f9c5f16c3c76
This commit is contained in:
parent
ee9a1ce0ec
commit
83de9a1ae5
5 changed files with 152 additions and 53 deletions
|
|
@ -112,7 +112,53 @@ class DefaultController extends Controller
|
|||
{
|
||||
$data = $form->getData();
|
||||
|
||||
$ttUrl = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&showresult=1';
|
||||
$ttUrl = "http://dtps-ibe.traveltainment.de/search?&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 .= '&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']);
|
||||
}
|
||||
|
||||
if (!empty($data['t']))
|
||||
{
|
||||
$ttUrl .= '&adult='. $data['t'];
|
||||
$count = 0;
|
||||
for ($i = 0; $i < 3; ++$i)
|
||||
{
|
||||
if (!empty($data['child'.$i]))
|
||||
{
|
||||
$count++;
|
||||
}
|
||||
}
|
||||
$ttUrl .= '&child='. $count;
|
||||
}
|
||||
$ttUrl .= '&ibe=';
|
||||
if (!empty($data['topRegion']) && isset(TtSearchRequestType::$DESTINATION_CHOICES[$data['topRegion']]))
|
||||
{
|
||||
$ttUrl .= 'hotel&rgid='. TtSearchRequestType::$DESTINATION_CHOICES[$data['topRegion']];
|
||||
}
|
||||
else
|
||||
{
|
||||
$ttUrl .= 'package';
|
||||
}
|
||||
if (!empty($data['abflughafen'])) $ttUrl .= '&depap='. $data['abflughafen'];
|
||||
if (!empty($data['shotel'])) $ttUrl .= '&accom='. urlencode($data['shotel']);
|
||||
if (!empty($data['kategorie'])) $ttUrl .= '&stars='. $data['kategorie'];
|
||||
if (!empty($data['zimmer'])) $ttUrl .= '&room='. $data['zimmer'];
|
||||
if (!empty($data['verpflegung'])) $ttUrl .= '&board='. $data['verpflegung'];
|
||||
if (!empty($data['hbfges'])) $ttUrl .= '&raavg='. $data['hbfges'];
|
||||
if (!empty($data['hbfanz'])) $ttUrl .= '&hbfanz='. $data['hbfanz'];
|
||||
if (!empty($data['hbfempf'])) $ttUrl .= '&racnt='. $data['hbfempf'];
|
||||
//if ($data['familie_kinder'] ?? false) $ttUrl .= '&familie_kinder=0';
|
||||
//if ($data['strand'] ?? false) $ttUrl .= '&beach=0';
|
||||
//if ($data['wellness'] ?? false) $ttUrl .= '&wellness=0';
|
||||
//if ($data['typ'] ?? false) $ttUrl .= '&typ=0';
|
||||
if (!empty($data['sportangebot'])) $ttUrl .= '&sports='. $data['sportangebot'];
|
||||
|
||||
/*$ttUrl = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&showresult=1';
|
||||
$ttUrl .= '&termin=' . $data['termin']->format('d.m.Y');
|
||||
$ttUrl .= '&ruecktermin=' . $data['ruecktermin']->format('d.m.Y');
|
||||
if (!empty($data['dauer'])) $ttUrl .= '&dauer='. $data['dauer'];
|
||||
|
|
@ -149,9 +195,59 @@ class DefaultController extends Controller
|
|||
if ($data['wellness'] ?? false) $ttUrl .= '&wellness=0';
|
||||
if ($data['typ'] ?? false) $ttUrl .= '&typ=0';
|
||||
if (!empty($data['sportangebot'])) $ttUrl .= '&sportangebot='. $data['sportangebot'];
|
||||
*/
|
||||
|
||||
}else{
|
||||
if(strpos($_SERVER['QUERY_STRING'], 'ttexpedient')){
|
||||
$ttUrl = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&showresult=1&'.$_SERVER['QUERY_STRING'];
|
||||
|
||||
if(isset($_GET['formular'])) { $form=$_GET['formular']; }
|
||||
else { $form=""; }
|
||||
|
||||
if(isset($_GET['detail'])) { $det=$_GET['detail']; }
|
||||
else { $det=""; }
|
||||
|
||||
if(isset($_GET['IFF'])) { $hotel=$_GET['IFF']; }
|
||||
else { $hotel=""; }
|
||||
|
||||
if(isset($_GET['abflughafen'])) { $airp=$_GET['abflughafen']; }
|
||||
else { $airp=""; }
|
||||
|
||||
if(isset($_GET['sleistung'])) { $sleist=$_GET['sleistung']; }
|
||||
else { $sleist=""; }
|
||||
|
||||
if(isset($_GET['showresult'])) { $show=$_GET['showresult']; }
|
||||
else { $show=""; }
|
||||
|
||||
if(isset($_GET['personen'])) { $pers=$_GET['personen']; }
|
||||
else { $pers=""; }
|
||||
|
||||
if(isset($_GET['marke'])) { $va=$_GET['marke']; }
|
||||
else { $va=""; }
|
||||
|
||||
if(isset($_GET['termin'])) { $hin=$_GET['termin']; }
|
||||
else { $hin=""; }
|
||||
|
||||
if(isset($_GET['ruecktermin'])) { $rueck=$_GET['ruecktermin']; }
|
||||
else { $rueck=""; }
|
||||
|
||||
if(isset($_GET['dauer'])) { $dau=$_GET['dauer']; }
|
||||
else { $dau=""; }
|
||||
|
||||
if(isset($_GET['bplink'])) { $bli=$_GET['bplink']; }
|
||||
else { $bli=""; }
|
||||
|
||||
if(isset($_GET['ttexpedient'])) { $exp=$_GET['ttexpedient']; }
|
||||
else { $exp=""; }
|
||||
|
||||
$url = "http://dtps-ibe.traveltainment.de/search?&taid=DRS32"; //&ibe=package";
|
||||
|
||||
|
||||
$url = $url."&adult=".substr_count($pers, '25')."&aid=$hotel&ddate=".date("Y-m-d", $hin)."&rdate=".date("Y-m-d", $rueck)."&dur=".str_replace("_", ",", $dau)."&brand=$va&depap=$airp";
|
||||
$url .= "&aidList=".str_replace(";", ",", $sleist);
|
||||
$ttUrl = urldecode($url);
|
||||
|
||||
|
||||
/*$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";*///'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&showresult=1&'.$_SERVER['QUERY_STRING'];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue