Files
Testing/templates/modal_contact.tpl
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

529 lines
18 KiB
Smarty

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Bateworld Contact Form</title>
{literal}
<style>
body {
top: 0px !important;
}
body > .skiptranslate {
display: none;
}
.goog-te-banner-frame {
display: none !important;/* top: initial !important; */
/* bottom: 0 !important; */
}
.goog-te-gadget {
display: none !important;
}
input {
padding-left: 10px !important;
}
input[type="text"], textarea {
background-color: #ffffff !important;
color: #ff9900 !important
}
*::-webkit-input-placeholder {
color: #ff9900 !important;
font-size: 10px !important;
}
*:-moz-placeholder {
/* FF 4-18 */
color: #ff9900 !important;
font-size: 8px !important;
}
*::-moz-placeholder {
/* FF 19+ */
color: #ff9900 !important;
font-size: 8px !important;
}
*:-ms-input-placeholder {
/* IE 10+ */
color: #ff9900 !important;
font-size: 8px !important;
}
body {
top: 0px !important;
}
body > .skiptranslate {
display: none;
}
.goog-te-banner-frame {
display: none !important;/* top: initial !important; */
/* bottom: 0 !important; */
}
.goog-te-gadget {
display: none !important;
}
input.brws::-webkit-input-placeholder {
color: rgb(98, 26, 98) !important;
}
input.brws:-moz-placeholder {
/* FF 4-18 */
color: rgb(98, 26, 98) !important;
}
input.brws::-moz-placeholder {
/* FF 19+ */
color: rgb(98, 26, 98) !important;
}
input.brws:-ms-input-placeholder {
/* IE 10+ */
color: rgb(98, 26, 98) !important;
}
.form-group {
width: 100%;
}
input {
color: #ff9900 !important;
}
.txt-ppercase {
text-transform: uppercase;
}
.stile {
color: white !important;
font-size: 10px !important;
}
.help-block {
margin-top: 0px !important;
margin-bottom: 0px !important;
}
.btn-group {
line-height: 29px !important;
height: 29px !important;
}
.dropdown-toggle {
font-size: 12px !important;
}
.fa-sort {
font-size: 14px !important;
}
.fa-sort:hover, fa-sort:focus {
color: #333;
}
.selectDiv {
line-height: 28px;
margin: 0px;
padding: 0px;
position: relative;
z-index: 100;
border-top-right-radius: 15px;
border-bottom-right-radius: 15px;
}
.selectDefault {
padding-left: 8px;
}
.selectDiv select {
margin: 0px;
padding: 0px;
opacity: 0;
filter: alpha(opacity=0);
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: block;
z-index: 101;
}
.selectDiv select:focus {
outline: none;
}
input {
line-height: 29px !important;
height: 29px !important;
border-top-right-radius: 15px !important;
border-bottom-right-radius: 15px !important;
}
.add-on {
padding-right: 2px !important;
}
#test-setDate {
border-top-right-radius: 15px !important;
border-bottom-right-radius: 15px !important;
}
select {
line-height: 29px !important;
height: 29px !important;
}
.selectDefaultA {
line-height: 29px !important;
height: 29px !important;
}
.selectDefault, .selectDiv option {
font-family: arial;
font-size: 12px;
}
.selectDiv {
font-size: 12px;
}
.small-def {
font-size: 10px !important;
line-height: normal !important;
padding-top: 1px !important;
}
#comMent {
background: url(/graphics/comment_bg.png) left top no-repeat; /* This ruins default border */
background-size: cover !important;
width: 100%;
border-radius: 12px;
padding-left: 10px;
padding-top: 10px;
}
/* medium screen desktops ----------- */
@media only screen and (min-width : 1200px) {
textarea {
height: 160px !important;
}
}
@media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : portrait) {
#iphon5-pRight {
padding-left: 0 !important;
}
#iphon5-pLeft {
padding-right: 0 !important;
}
}
#lan-desk::-webkit-scrollbar {
width: 9px;
height: 9px;
}
#lan-desk::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: #ff9900;
color: #fff;
}
#lan-desk::-webkit-scrollbar-track {
background: #7C200F;
border-radius: 4px;
border: 1px solid #ff9900;
}
.generic-title p {
font-family: 'exo_2.0medium';
}
.generic-title::-webkit-scrollbar {
width: 9px;
height: 9px;
}
.generic-title::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: #ff9900;
color: #fff;
}
.generic-title::-webkit-scrollbar-track {
background: rgba(124, 32, 15, 0.49);
border-radius: 4px;
border: 1px solid rgba(255, 153, 0, 0.06);
}
.orangebg {
background: #fea611 !important;
}
/* iPad 2 (portrait) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) {
.modal {
overflow-y: auto !important;
}
}
/* iPad 3 (portrait) ----------- */
@media only screen and (min-device-width: 768px) and (max-device-width: 1024px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
.modal {
overflow-y: auto !important;
}
}
/* iPhone 4 (landscape) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation: landscape) and (-webkit-min-device-pixel-ratio: 2) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
padding-top: 4px;
margin-top: -157px !important;
}
}
/* iPhone 4 (portrait) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-width: 480px) and (orientation: portrait) and (-webkit-min-device-pixel-ratio: 2) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
padding-top: 4px;
}
}
/* iPhone 5 (landscape) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 568px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
padding-top: 4px;
margin-top: -157px !important;
}
}
/* iPhone 5 (portrait) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 568px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
}
}
/* iPhone 6 (landscape) ----------- */
@media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
padding-top: 4px;
margin-top: -157px !important;
}
}
/* iPhone 6 (portrait) ----------- */
@media only screen and (min-device-width: 375px) and (max-device-height: 667px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
}
}
/* iPhone 6+ (landscape) ----------- */
@media only screen and (min-device-width: 414px) and (max-device-height: 736px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
padding-top: 4px;
margin-top: -157px !important;
}
}
/* iPhone 6+ (portrait) ----------- */
@media only screen and (min-device-width: 414px) and (max-device-height: 736px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
}
}
/* Samsung Galaxy S3 (landscape) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 2) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
padding-top: 4px;
margin-top: -157px !important;
}
}
/* Samsung Galaxy S3 (portrait) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 2) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
}
}
/* Samsung Galaxy S4 (landscape) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
padding-top: 4px;
margin-top: -157px !important;
}
}
/* Samsung Galaxy S4 (portrait) ----------- */
@media only screen and (min-device-width: 320px) and (max-device-height: 640px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
}
}
/* Samsung Galaxy S5 (landscape) ----------- */
@media only screen and (min-device-width: 360px) and (max-device-height: 640px) and (orientation: landscape) and (-webkit-device-pixel-ratio: 3) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
padding-top: 4px;
margin-top: -157px !important;
}
}
/* Samsung Galaxy S5 (portrait) ----------- */
@media only screen and (min-device-width: 360px) and (max-device-height: 640px) and (orientation: portrait) and (-webkit-device-pixel-ratio: 3) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
}
}
/* Smartphones (portrait) -- -- -- -- -- - */
@media only screen and (max-width : 320px) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
}
}
/* Smartphones (landscape) ----------- */
@media only screen and (min-device-width : 321px) and (max-device-width : 480px) {
.modal {
overflow-y: auto !important;
z-index: 51000 !important;
padding-top: 4px;
margin-top: -157px !important;
}
}
</style>
{/literal}
</head>
<body>
<div class="modal-header" style="border:none;">
<button type="button" class="close main-bg-color alt-text-color orangebg" data-dismiss="modal" aria-hidden="true"><i class="fa fa-times"></i></button>
<h4 class="modal-title" id="myModalLabel"><span style="color:#fea611;text-transform:uppercase;font-family:'exo_2.0medium';" lang="en">{lang_print id=754}</span></h4>
</div>
<div class="modal-body" style="margin-top:0;">
<div class="generic-title" style="overflow-y:auto;height:210px;color:white;text-align:justify;padding-right:10px;">
<p lang="en">{lang_print id=1035}</p>
<p>
{* SHOW SUCCESS MESSAGE *}
{if $result != 0}
<br />
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='success'><img src='./images/success.gif' border='0' class='icon'>{lang_print id=$result}</td>
</tr>
</table>
{/if}
{* SHOW ERROR MESSAGE *}
{if $is_error != 0}
<br />
<table cellpadding='0' cellspacing='0'>
<tr>
<td class='error'><img src='./images/error.gif' border='0' class='icon'>{lang_print id=$is_error}</td>
</tr>
</table>
{/if}
<br>
{* SHOW FORM IF NOT ALREADY SUBMITTED *}
{if $success == 0}
<form id="myform" class="form-inline" action="modal_contact.php" method="post">
<div class="col-sm-12 text-pad main-el lap lap-left">
<ul class="adult-content itab" id="left-clmn" style="font-size: calc(1em + 0.1vw);list-style: none;text-align: left;padding-bottom: 20px;padding-left:0 !important;">
<li style="padding-bottom:10px;">
<div class="form-group">
<label class="sr-only" for="naMe">Name</label>
<div class="input-group" style="border-radius: 20px;background: white;">
<div class="input-group-addon frmLbl-pad" style="border: none;background: transparent;font-family: 'exo_2.0medium';color: rgb(98, 26, 98);padding-top: 0;padding-bottom: 0;min-width:125px;text-align:left;"><i class="fa fa-asterisk" style="font-size: calc(1em + 0.1vw);color: #ff9900;"></i> <span lang="en">NAME</span></div>
<input type="text" class="form-control" name="contact_name" id="naMe" placeholder="(6 CHARACTERS OR MORE)" style="border: none;padding: 0;border-radius:20px !important;" lang="en" required>
<div class="help-block with-errors"></div>
</div>
</div>
</li>
<li style="padding-bottom:10px;">
<div class="form-group">
<label class="sr-only" for="emailAddress">Email Address</label>
<div class="input-group" style="border-radius: 20px;background: white;">
<div class="input-group-addon frmLbl-pad" style="border: none;background: transparent;font-family: 'exo_2.0medium';color: rgb(98, 26, 98);padding-top: 0;padding-bottom: 0;min-width: 125px;">
<div class="astersk" style="float: left;height: 28px;vertical-align: middle;"><i class="fa fa-asterisk" style="font-size: calc(1em + 0.1vw);color: #ff9900;margin-top: 50%;margin-bottom: 50%;"></i></div>
<div class="astersk" style="text-align: left;padding-top: 1px;height:28px;">&nbsp;<span lang="en">EMAIL</span><br>
&nbsp;<span lang="en">ADDRESS</span></div>
</div>
<input type="text" class="form-control" name="contact_email" id="emailAddress" placeholder="(USE YOUR EMAIL ADDRESS TO LOG IN)" style="border: none;padding: 0;border-radius:20px !important;" lang="en" required>
<div class="help-block with-errors"></div>
</div>
</div>
</li>
<li style="padding-bottom:10px;">
<div class="form-group">
<label class="sr-only" for="usernaMe">Username</label>
<div class="input-group" style="border-radius: 20px;background: white;">
<div class="input-group-addon frmLbl-pad" style="border: none;background: transparent;font-family: 'exo_2.0medium';color: rgb(98, 26, 98);padding-top: 0;padding-bottom: 0;min-width:125px;text-align:left;"><!-- <i class="fa fa-asterisk" style="font-size: calc(1em + 0.1vw);color: #ff9900;"></i> --> <span lang="en">USERNAME</span></div>
<input type="text" class="form-control" name="username" id="usernaMe" placeholder="(4 CHARACTERS OR MORE)" style="border: none;padding: 0;border-radius:20px !important;" lang="en">
<div class="help-block with-errors"></div>
</div>
</div>
</li>
<li style="padding-bottom:10px;"> <span id="sent"></span> </li>
<li style="padding-bottom:10px;">
<div class="form-group">
<label class="sr-only" for="subJect">Subject</label>
<div class="input-group" style="border-radius: 20px;background: white;">
<div class="input-group-addon frmLbl-pad" style="border: none;background: transparent;font-family: 'exo_2.0medium';color: rgb(98, 26, 98);padding-top: 0;padding-bottom: 0;min-width:125px;text-align:left;"><i class="fa fa-asterisk" style="font-size: calc(1em + 0.1vw);color: #ff9900;"></i> <span lang="en">SUBJECT</span></div>
<input type="text" class="form-control" name="contact_subject" id="subJect" placeholder="(6 CHARACTERS OR MORE)" style="border: none;padding: 0;border-radius:20px !important;" lang="en" required>
<div class="help-block with-errors"></div>
</div>
</div>
</li>
<li style="padding-bottom:5px;">
<textarea name="contact_message" id="comMent" style="height: 100px;"></textarea>
</li>
{if !empty($setting.setting_contact_code)}
<li style="padding-bottom:10px;">
<div class="form-group">
<label class="sr-only" for="usernaMe">Username</label>
<div class="input-group" style="border-radius: 20px;background: white;">
<div class="input-group-addon frmLbl-pad" style="border: none;background: transparent;font-family: 'exo_2.0medium';color: rgb(98, 26, 98);padding-top: 0;padding-bottom: 0;min-width:125px;text-align:left;"><!-- <i class="fa fa-asterisk" style="font-size: calc(1em + 0.1vw);color: #ff9900;"></i> --> <span lang="en">USERNAME</span></div>
<input type="text" class="form-control" name="contact_secure" id="contactSecure" placeholder="(COPY THE CODE ON THE IMAGE)" style="border: none;padding: 0;border-radius:20px !important;" lang="en">
<img src='./images/secure.php' id='secure_image' border='0' height='20' width='67' class='signup_code' /><br />
<a href="javascript:void(0);" onClick="$('secure_image').src = './images/secure.php?' + (new Date()).getTime();">{lang_print id=975}</a>
<div class="help-block with-errors"></div>
</div>
</div>
</li>
{/if}
</ul>
</div>
<h1 class="main-size" style="text-align: left;padding-top: 0px;font-size: calc(1em + 0.2vw); color: white;">
<button type="submit" name="SubmitMe" id="submitme" class="btn btn-primary disabled" style="pointer-events: all; cursor: pointer; font-size: calc(1em + 0.1vw); font-family: 'exo_2.0black'; border: none; color: white; text-shadow: none; opacity: 1; font-weight: 600; line-height: 1.1; padding: 0px; background: transparent;" value="Send Message" lang="en">{lang_print id=839}&nbsp;&nbsp;</button>
<i class="fa fa-play" style="color: #ff9900;"></i></h1>
<input type="hidden" name="task" value="dosend">
<input type="hidden" name="contactusnounce" value="<?php echo $contact_nonce; ?>" />
</form>
<span id="done-contact" style="display:none;" lang="en">THANK YOU FOR CONTACTING US</span>
{/if}
</div>
<div class="clearfix"></div>
</div>
{literal}
<script>
$('#comMent')
.focus(function() { $(this).css("background", "white") })
.blur(function() { if ($(this)[0].value == '') { $(this).css("background", "url(graphics/comment_bg.png) left top no-repeat") } });
// lets change this to post
$(document).on('submit', 'form#myform', function(e) {
e.preventDefault();
$.post('/modal_contact.php', $(this).serialize(), function(response) {
//$('#myform')[0].reset();
$('#myform').hide();
$('#done-contact').css('display', 'block');
});
});
</script>
{/literal}
</html>