Compare commits

...

3 commits

Author SHA1 Message Date
Kevin Adametz
14d83b7d79 On master: Tower Auto-Stash: 2018-04-12 16:38:07 +0200 2018-04-12 16:38:07 +02:00
Kevin Adametz
72da75d859 index on master: a669ce7 Ticket 1376 2018-04-12 16:38:07 +02:00
Kevin Adametz
a669ce7c32 Ticket 1376 2018-04-12 16:37:55 +02:00
5 changed files with 136 additions and 8 deletions

View file

@ -109,7 +109,6 @@
{#TODO ausmisten und im gleichen zuge das CSS für den Datepicker einfügen#}
{% block javascripts %}
<script src="https://maps.google.com/maps/api/js?sensor=false"></script>
{% javascripts
'@AppBundle/Resources/public/js/jquery-3.1.1.js'
'@AppBundle/Resources/public/js/jquery-ui-1.12.1.js'

View file

@ -101,8 +101,8 @@
<div class="col-md-12 col-xs-12">
<div class="home-message text-center small">
<div class="home-info-box">
<div id="eKomiSeal_default" class="eKomi-header">
<a id="eKomiSeal_BBBA4ECJTK29MA5_eKomiSeal_default" href="https://www.ekomi.de/bewertungen-stern-tours.html" title="eKomi - The Feedback Company: " target="_blank" rel="nofollow"><img border="0" src="https://connect.ekomi.de/seal/BBBA4ECJTK29MA5-70x70.png" alt="eKomi - The Feedback Company: "></a>
<div id="eKomiSeal_default" class="eKomi-header" style="padding-top: 5px;padding-left: 2px;">
<img border="0" src="/bundles/app/images/logo-qualitaet.png" alt="Top Kundenservice" height="78">
</div>
<ul class="c4">
<li>Spezialist für Kulturreisen </li>
@ -163,7 +163,6 @@
{% embed 'default/components/embed/modal.html.twig' with {id: 'default'} %}{% endembed %}
{% block javascripts %}
<script src="https://maps.google.com/maps/api/js?sensor=false"></script>
{% javascripts
'@AppBundle/Resources/public/js/jquery-3.1.1.js'
'@AppBundle/Resources/public/js/jquery-ui-1.12.1.js'

View file

@ -16,8 +16,6 @@
<div class="col-md-3 col-sm-12 col-xs-12">
<div class="social-footer text-right">
<a href="/ueber-uns" title="Über uns"><i class="fa fa-users"></i></a>
<a href="https://de-de.facebook.com/sterntours/" title="Facebook" target="_blank" rel="nofollow"><i class="fa fa-facebook"></i></a>
<a href="https://plus.google.com/+sterntours" title="Google" target="_blank" rel="nofollow"><i class="fa fa-google-plus"></i></a>
</div>
</div>
</div>

View file

@ -97,6 +97,7 @@ class DefaultController extends Controller
*/
public function ttSearchAction(Request $request)
{
$form = $this->createForm(TtSearchRequestType::class);
if (empty($request->query->get('termin')))
{
@ -115,6 +116,7 @@ class DefaultController extends Controller
$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'];
if (!empty($data['t']))
{
@ -150,9 +152,139 @@ class DefaultController extends Controller
if ($data['typ'] ?? false) $ttUrl .= '&typ=0';
if (!empty($data['sportangebot'])) $ttUrl .= '&sportangebot='. $data['sportangebot'];
}else{
/*
http://www.sterntours.de/tt-suche?termin=&ruecktermin=&dauer=&topRegion=&abflughafen=&shotel=&kategorie=&zimmer=&t=1&child0=&child1=&child2&&KID=
formular=
detail=termine
showresult=1
personen=25;25
IFF=49720
termin=1523397600
ruecktermin=1524002400
dauer=6_7
marke=FTI
sleistung=MCT328;PAUS;;DX%20F
abflughafen=TXL
bplink=1
ttexpedient=Leoni%20Stern
ttbueroid=DRS32
$form="";
$det="termine";
$hotel="49720";
&formular=$form&detail=$det&IFF=$hotel&abflughafen=$airp&sleistung=$sleist&showresult=$show&personen=$pers&marke=$va&termin=$hin&ruecktermin=$rueck&dauer=$dau&bplink=$bli&ttexpedient=$exp'
//$ttUrl = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&showresult=1&'.$_SERVER['QUERY_STRING'];
http://sterntours.local/tt-suche?termin=&ruecktermin=&dauer=&topRegion=&abflughafen=&shotel=&kategorie=&zimmer=&t=1&child0=&child1=&child2&&KID=&formular=&detail=termine&showresult=1&personen=25;25&IFF=49720&termin=1523397600&ruecktermin=1524002400&dauer=6_7&marke=FTI&sleistung=MCT328;PAUS;;DX%20F&abflughafen=TXL&bplink=1&ttexpedient=Leoni%20Stern&ttbueroid=DRS32
http://sterntours.local/tt-suche?termin=&ruecktermin=&dauer=&topRegion=&abflughafen=&shotel=&kategorie=&zimmer=&t=1&child0=&child1=&child2&&KID=&formular=&detail=termine&showresult=1&personen=25;25&IFF=19146&termin=1528063200&ruecktermin=1528322400&dauer=6_3&marke=ITS&sleistung=EF02UXT;;F;AP2N&abflughafen=DUS&bplink=1&ttexpedient=Thomas%20Stern&ttbueroid=DRS32
http://sterntours.local/tt-suche?&formular=4&engine=erde&detail=termine&IFF=54145&sleistung=RGOLRGOL%3B%3B%3B2SAU&showresult=1&personen=25%3B25&termin=1365026400&ruecktermin=1365458400&dauer=6_5&bplink=1&marke=ATK&ttexpedient=Max+Musterman
http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=&detail=termine&showresult=1&personen=25;25&IFF=49720&termin=1523397600&ruecktermin=1524002400&dauer=6_7&marke=FTI&sleistung=MCT328;PAUS;;DX%20F&abflughafen=TXL&bplink=1&ttexpedient=Leoni%20Stern&ttbueroid=DRS32&detail=termine&showresult=1&personen=25;25&IFF=49720&termin=1523397600&ruecktermin=1524002400&dauer=6_7&marke=FTI&sleistung=MCT328;PAUS;;DX%20F&abflughafen=TXL&bplink=1&ttexpedient=Leoni%20Stern&ttbueroid=DRS32
*/
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'];
}
/* $data = $form->getData();
var_dump($data);
die();*/
/* 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=""; }
*/
$hin = date("d.m.Y", 1523397600);
$rueck = date("d.m.Y", 1524002400);
/* &formular=4&detail=termine&IFF=19907&abflughafen=29&sleistung=AALKDVA%3B%3BH%3BD01U&showresult=1&personen=25%3B25&termin=1360623600&ruecktermin=1361228400&dauer=6_7&bplink=1&marke=GTI&ttexpedient=Ma+Mustermann
*/
/* if($this->input->get('IFF')) {
$requests = str_replace("/travelsearch/tt?", "", $_SERVER['REQUEST_URI']);
$url = "http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&detail=".($destination > 0 ? 'hotel' : $detail)."&showresult=1";
$url .= $requests;
}*/
// $url = "detail=".($destination > 0 ? 'hotel' : $detail)
/*$ttUrl = "http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&detail=termine&IFF=49720&abflughafen=TXL&sleistung=MCT328;PAUS;;DX F&showresult=1&personen=25;25&marke=FTI&termin=1523397600&ruecktermin=1524002400&dauer=6_7&bplink=1&ttexpedient=Leoni Stern";*/
/* $ttUrl = "http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=$form&engine=pauschal&showresult=1&detail=$det&IFF=$hotel&abflughafen=$airp&sleistung=$sleist&showresult=$show&personen=$pers&marke=$va&termin=$hin&ruecktermin=$rueck&dauer=$dau&bplink=$bli&ttexpedient=$exp";
die($ttUrl);*/
$ttUrl = "http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7&formular=4&engine=pauschal&showresult=1&detail=zielgebiet&IFF=49720&abflughafen=TXL&sleist
ung=MCT328;PAUS;;DX%20F&&showresult=1&personen=25;25&marke=NEC&termin=1523397600&ruecktermin=1524002400&dauer=6_7&bplink=1&
ttexpedient=Leoni%20Stern";
$urlLastMinute = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7';
$urlPauschal = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7';
$urlCharter = 'http://www.vidado.com/booking/ibe_bp2/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7';
$urlHotel = 'http://www.vidado.com/booking/ibe_bp2/erde/index.php?CID=8ce65750ce5af9d9a6b22c9b04772ea7';
if (isset($_GET['ttibe']) && $_GET['ttibe'] == 'pauschal') {
$url = $urlPauschal;
} else if (isset($_GET['ttibe']) && $_GET['ttibe'] == 'charter') {
$url = $urlCharter;
} else if (isset($_GET['ttibe']) && $_GET['ttibe'] == 'hotel') {
$url = $urlHotel;
} else {
$url = $urlLastMinute;
}
$url .= '&' . $_SERVER['QUERY_STRING'];
/*$url .= '&detail=termine&showresult=1&personen=25;25&IFF=49720&termin=1523397600&ruecktermin=1524002400&dauer=6_7&marke=FTI&sleistung=MCT328;PAUS;;DX%20F&abflughafen=TXL&bplink=1&ttexpedient=Leoni%20Stern&ttbueroid=DRS32';*/
die($url);
echo '<iframe src="' . $url . '" frameborder="0" width="592"
height="10000"></iframe>';
die();
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB