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:
adametz 2018-04-13 13:39:14 +00:00
parent ee9a1ce0ec
commit 83de9a1ae5
5 changed files with 152 additions and 53 deletions

View file

@ -37,37 +37,7 @@
</div><!-- end col -->
<div class="col-md-6 col-sm-6 col-xs-12">
<p class="hl4">NEWSLETTER:</p>
<div class="newsletterwidget">
<p>Erhalten Sie ca. einmal wöchentlich mit dem Newsletter von STERN TOURS aktuelle Angebote, indem Sie sich hier eintragen:</p>
<form id="newsletter" class="row">
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="form-group">
<input type="text" class="form-control border-radius" placeholder="Ihr Vorname">
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="form-group">
<input type="text" class="form-control border-radius" placeholder="Ihr Nachname">
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12">
<div class="form-group">
<input type="text" class="form-control border-radius" placeholder="Ihre E-Mail Adresse">
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12">
<button type="submit" class="btn btn-primary btn-lg border-radius btn-block">anmelden</button>
</div>
</form>
</div><!-- end newsletter widget -->
</div><!-- end col -->
</div><!-- end row -->
<div class="clearfix padding-bottom"></div>
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12">
<p class="hl4">ANGESCHLOSSEN AN PROFIS DER REISEBRANCHE:</p>
<p class="hl4">ANGESCHLOSSEN AN PROFIS DER REISEBRANCHE:</p>
<div class="row text-center">
<div class="col-md-6 col-sm-6 col-xs-6">
{% image '@AppBundle/Resources/public/images/logos/iata.png' %}<img class="img-responsive" src="{{ asset_url }}" alt="IATA">{% endimage %}
@ -80,24 +50,26 @@
{% image '@AppBundle/Resources/public/images/logos/DB.png' %}<img class="img-responsive" src="{{ asset_url }}" alt="DB Bahn">{% endimage %}
</div>
</div>
</div>
</div><!-- end col -->
</div><!-- end row -->
<div class="clearfix padding-bottom"></div>
<div class="row">
<div class="col-md-6 col-sm-6 col-xs-12">
<p class="hl4">Sicherheit &amp; starke Marken:</p>
<p class="hl4">Sicherheit &amp; starke Marken:</p>
<div class="row text-center">
<div class="col-md-12">
{% image '@AppBundle/Resources/public/images/logos/ssl.png' %}<img class="left-img" src="{{ asset_url }}" alt="SSL" style="margin-top: 14px;">{% endimage %}
</div>
<div class="clearfix padding-bottom"></div>
<div class="col-md-6 col-sm-6 col-xs-6">
{% image '@AppBundle/Resources/public/images/logos/logo-jugendreisen-spezialist.png' %}<img class="img-responsive" src="{{ asset_url }}" alt="jugendreisen spezialist" style="margin-top: 15px">{% endimage %}
</div>
<div class="col-md-6 col-sm-6 col-xs-6">
{% image '@AppBundle/Resources/public/images/logos/fairliners_g.png' %}<img class="img-responsive" src="{{ asset_url }}" alt="fairliners" style="margin-top: 15px">{% endimage %}
</div>
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12">
</div>
</div><!-- end row -->
<div class="clearfix padding-bottom"></div>
</div><!-- end container -->

View file

@ -15,7 +15,7 @@
<div id="contact_form" class="contact_form">
<form id="contactform" action="/kontakt" name="contactform" method="post">
<form id="contactform" action="/kontakt" name="contactform" method="post" data-toggle="validator">
<div class="form-box">
<div class="col-md-12 col-sm-12 col-xs-12">
@ -44,17 +44,47 @@
<h2>Persönliche Daten</h2>
</div>
<div class="form-group col-md-12 col-sm-12 col-xs-12">{{ form_field_pho(contact_form.salutation) }}</div>
<div class="col-md-6 col-sm-6 col-xs-12">{{ form_field_pho(contact_form.firstName, 'Vorname') }}</div>
<div class="col-md-6 col-sm-6 col-xs-12">{{ form_field_pho(contact_form.lastName, 'Nachname') }}</div>
<div class="form-group col-md-12 col-sm-12 col-xs-12">
<div class="required">
{{ form_field_pho(contact_form.salutation) }}
</div>
<div class="help-block with-errors"></div>
</div>
<div class="form-group col-md-6 col-sm-6 col-xs-12">
<div class="required">
{{ form_field_pho(contact_form.firstName, 'Vorname') }}
</div>
<div class="help-block with-errors"></div>
</div>
<div class="form-group col-md-6 col-sm-6 col-xs-12">
<div class="required">
{{ form_field_pho(contact_form.lastName, 'Nachname') }}
</div>
<div class="help-block with-errors"></div>
</div>
<div class="col-md-12 col-sm-12 col-xs-12">{{ form_field_pho(contact_form.streetAddress, 'Straße, Hausnummer') }}</div>
<div class="col-md-6 col-sm-6 col-xs-12">{{ form_field_pho(contact_form.zipCode, 'Postleitzahl') }}</div>
<div class="col-md-6 col-sm-6 col-xs-12">{{ form_field_pho(contact_form.city, 'Ort') }}</div>
<div class="form-group col-md-12 col-sm-12 col-xs-12">{{ form_field_pho(contact_form.nation) }}</div>
<div class="col-md-6 col-sm-6 col-xs-12">{{ form_field_pho(contact_form.phone, 'Telefon tagsüber') }}</div>
<div class="form-group col-md-6 col-sm-6 col-xs-12">
<div class="required">
{{ form_field_pho(contact_form.phone, 'Telefon tagsüber') }}
</div>
<div class="help-block with-errors"></div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12">{{ form_field_pho(contact_form.mobilePhone, 'Telefon mobil') }}</div>
<div class="col-md-12 col-sm-12 col-xs-12">{{ form_field_pho(contact_form.email, 'E-Mail-Adresse') }}</div>
<div class="form-group col-md-12 col-sm-12 col-xs-12">{{ form_field_pho(contact_form.travelerCount) }}</div>
<div class="form-group col-md-12 col-sm-12 col-xs-12">
<div class="required">
{{ form_field_pho(contact_form.email, 'E-Mail-Adresse') }}
</div>
<div class="help-block with-errors"></div>
</div>
<div class="form-group col-md-12 col-sm-12 col-xs-12">
<div class="required">
{{ form_field_pho(contact_form.travelerCount) }}
</div>
<div class="help-block with-errors"></div>
</div>
<div class="col-md-12 col-sm-12 col-xs-12">
{{ form_field_pho(contact_form.notes, 'Bitte Reiseland und Programmwunsch angeben', {attr: {rows: 8}}) }}

View file

@ -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'];
}
}

View file

@ -58,4 +58,5 @@ class TravelerType extends AbstractType
]
*/
}
}
}

View file

@ -18,9 +18,9 @@ jQuery(document).ready(function($) {
$('<iframe />')
.attr({
width: 680,
height: 466,
src: '//www.youtube.com/embed/'+ expl,
width: '100%',
height: 500,
src: '//www.youtube-nocookie.com/embed/'+ expl,
frameborder: 0,
allowfullscreen: true,
'data-st-video': this.id