187 lines
5.6 KiB
PHP
187 lines
5.6 KiB
PHP
<? global $lang;?>
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div id="scontainer-32">
|
|
<div class="scontainer-content" id="scontainer-32-content">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<p>
|
|
<strong>Michalovce OBCHODNÉ ZASTÚPENIE PART CLUB s.r.o.</strong><br>
|
|
Špitálska 33 Michalovce mobil<br>
|
|
<a href="tel:+421918886956">+421918886956</a><br>
|
|
<a href="mailto:mail-inwest@parttrans.eu">mail-inwest@parttrans.eu</a>
|
|
</p>
|
|
<p>
|
|
Kamil Drąg<br>
|
|
<strong>Obchodný zástupca</strong><br>
|
|
<a href="mailto:dragkamil@inwestprofil.pl">dragkamil@inwestprofil.pl</a><br>
|
|
<a href="tel:+48601840625">+48 601 840 625</a><br>
|
|
<a href="tel:+421940553053">+421 940 553 053</a>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<form class="form-horizontal" id="contact-form">
|
|
<div id="contact-form">
|
|
<div class="form-group row">
|
|
<div class="col-12">
|
|
<label for="email">E-mail*</label>
|
|
<input type="text" id="email" name="email" class="form-control" placeholder="E-mail*">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-12">
|
|
<label for="phone">Telefón č*</label>
|
|
<input type="text" id="phone" name="phone" class="form-control" placeholder="Telefón č*">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-12">
|
|
<label for="subject">Téma*</label>
|
|
<input type="text" id="subject" name="subject" placeholder="Temat" value="Dopyt z inwestprofil.sk" class="form-control">
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-12">
|
|
|
|
<label for="text">Správa*</label>
|
|
<textarea id="text" name="text" class="form-control" rows="5" placeholder="Správa"></textarea>
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-12 small">
|
|
<input type="checkbox" id="agreement" name="agreement" required="required" style="position: relative; top: 2px;"> Správcom osobných údajov je Inwest Profil. Údaje zadané v kontaktnom formulári budú spracované za účelom odpovede na zaslaný dopyt.
|
|
</div>
|
|
</div>
|
|
<div class="form-group row">
|
|
<div class="col-12 text-center">
|
|
<a class="btn btn-success" id="contact-form-send" onclick="send_message(); return false;">poslať</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
|
|
<script class="footer" type="text/javascript">
|
|
function send_message() {
|
|
var email = $.trim($('#contact-form #email').val());
|
|
var phone = $.trim($('#contact-form #phone').val());
|
|
var subject = $.trim($('#contact-form #subject').val());
|
|
var text = $.trim($('#contact-form #text').val());
|
|
|
|
if (email === '' && phone === '') {
|
|
$.alert({
|
|
title: 'Omyl',
|
|
content: 'Vyplňte svoju e-mailovú adresu a telefónne číslo.',
|
|
type: 'orange',
|
|
closeIcon: true,
|
|
closeIconClass: 'fa fa-close',
|
|
typeAnimated: true,
|
|
animation: 'opacity',
|
|
autoClose: 'confirm|10000',
|
|
columnClass: 'col-sm-6',
|
|
buttons: {
|
|
confirm: {
|
|
text: 'Zavrieť',
|
|
btnClass: 'btn-blue',
|
|
keys: ['enter'],
|
|
action: function() {}
|
|
}
|
|
}
|
|
});
|
|
return false;
|
|
}
|
|
|
|
if (!$('#contact-form #agreement').is(':checked')) {
|
|
$.alert({
|
|
title: 'Omyl',
|
|
content: 'Vyjadrite svoj súhlas so zasielaním obchodnej ponuky.',
|
|
type: 'orange',
|
|
closeIcon: true,
|
|
closeIconClass: 'fa fa-close',
|
|
typeAnimated: true,
|
|
animation: 'opacity',
|
|
autoClose: 'confirm|10000',
|
|
columnClass: 'col-sm-6',
|
|
buttons: {
|
|
confirm: {
|
|
text: 'Zavrieť',
|
|
btnClass: 'btn-blue',
|
|
keys: ['enter'],
|
|
action: function() {}
|
|
}
|
|
}
|
|
});
|
|
return false;
|
|
}
|
|
|
|
$.ajax({
|
|
type: 'POST',
|
|
cache: false,
|
|
url: 'ajax.php',
|
|
data: {
|
|
a: 'contact_form',
|
|
email: email,
|
|
phone: phone,
|
|
subject: subject,
|
|
text: text
|
|
},
|
|
beforeSend: function() {
|
|
alert1 = $.alert({
|
|
title: 'Informácie',
|
|
content: 'Čakajte prosím',
|
|
type: 'blue',
|
|
closeIcon: true,
|
|
closeIconClass: 'fa fa-close',
|
|
typeAnimated: true,
|
|
animation: 'opacity',
|
|
autoClose: 'confirm|60000',
|
|
columnClass: 'col-sm-6',
|
|
buttons: {
|
|
confirm: {
|
|
text: 'Zavrieť',
|
|
btnClass: 'btn-blue',
|
|
keys: ['enter'],
|
|
action: function() {}
|
|
}
|
|
}
|
|
});
|
|
},
|
|
success: function(data) {
|
|
response = jQuery.parseJSON(data);
|
|
alert1.close();
|
|
|
|
if (response.status === 'ok')
|
|
return document.location.href = "/kontakt-sent";
|
|
else
|
|
var msg = 'Pri odosielaní správy sa vyskytla chyba. Skúste to znova. Ospravedlňujeme sa.';
|
|
|
|
$('#contact-formp-big #email, #contact-form-big #text').val('');
|
|
|
|
$.alert({
|
|
title: 'Informácie',
|
|
content: msg,
|
|
type: 'blue',
|
|
closeIcon: true,
|
|
closeIconClass: 'fa fa-close',
|
|
typeAnimated: true,
|
|
animation: 'opacity',
|
|
autoClose: 'confirm|10000',
|
|
columnClass: 'col-sm-6',
|
|
buttons: {
|
|
confirm: {
|
|
text: 'Zavrieť',
|
|
btnClass: 'btn-blue',
|
|
keys: ['enter'],
|
|
action: function() {}
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
}
|
|
</script>
|