Files
Testing/templates/changeemail.php
sean 0e8a8b3028
Some checks are pending
deploy-testing / deploy (push) Waiting to run
Initial testing snapshot
2026-11-17 16:15:01 -05:00

223 lines
7.5 KiB
PHP

{* INCLUDE HEADER CODE *}
{include file="header_modal.tpl"}
{literal}
<div id="confirmemailaddress" style="display:none;">
<style>@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@500&display=swap');
.reportdiv{padding-left:20px;font-family: 'Ubuntu', sans-serif !important; letter-spacing: .5px!important; line-height:160%;}
.reportdiv tr{height:30px;}
.reportdiv textarea{max-width:390px; width:100%;}
.orangetitle{color: #f68302; font-family: 'Ubuntu', sans-serif;}
.modal-content{background: #000000; border:1px solid #333333;}
.upload-btn-wrapper {
position: relative;
overflow: hidden;
display: inline-block;
}
.btn {
background: #000 url("/images/uploadbutton.png") no-repeat fixed left;
background-size: 200px;
padding:0px;
background-color: none;
width:214px; height:41px;
border-radius: 8px;
font-size: 0px;
font-weight: bold;
}
.upload-btn-wrapper input[type=file] {
font-size: 100px;
position: absolute;
left: 0;
top: 0;
opacity: 0;
}
.reportsubmit{background:#f78e00 !important; padding:5px 35px!important; font-size:16px!important; border:0px !important; font-family: 'Ubuntu', sans-serif !important; letter-spacing: .5px;}
.grey{color:#8a8a8a !important; letter-spacing: .5px;}
.reportcancel{padding:5px 15px!important; background:none!important; border:none!important; margin-right:40px; font-size:16px!important; font-family: 'Ubuntu', sans-serif !important; letter-spacing: .5px;}</style>
{/literal}
{if $appop==1}
<div class="reportdiv">
<h2 class="orangetitle"><strong>Hey Bator!</strong></h2>
<div id="success_formemailcorrect" style="display: none;margin-top:20px; ">Thank you!<img src="https://bateworld.com/nocdn/emailcorrect.gif">
<img src="https://www.google-analytics.com/collect?v=2&tid=G-NR5CPDK&cid=555&t=event&en=EmailIsCorrect">
</div>
<div id="success_formemailcorrect1" style="display: none;margin-top:20px; ">Thank you!<img src="https://bateworld.com/nocdn/emailincorrect.gif"></div>
<div style="text-align:left; margin-top:20px;" id="form_formemailcorrect">
It's been a while since you updated your contact info. Is
this still the best place for us to reach you?<br>
<br>
<div class="showemailcurrent">{$user->user_info.user_email}</div>
<div id="showupdateemail" style="display:none;"><form method="post" action="emailconfirm.php" id="formemailcorrect1"><div style="font-size:18px; margin-bottom:20px;">Update Your Email:</div>
<input type="text" placeholder="Enter Email" name="emailaddressupdate" style="max-width: 390px; width: 100%;"><br>
<input type="text" placeholder="Enter Email again" name="emailaddressupdate" style="max-width: 390px; width: 100%;"> <input type="hidden" name="task" value="updateemail">
<br>
<div style="margin-top:20px;">Remember: Your email address is also your login, and how BateWorld will communicate with you about your account.</div><br>
<br>
<br>
<br>
<div class="pull-left"><a href="https://support.bateworld.com/KnowledgeBase/Details/?id=166-Do-I-have-to-have-an-email-address%3F" target="_blank" class="grey" style="font-size:10px;" previewlistener="true">Why does BateWorld need my email?</a></div>
<div class="pull-right">
<input type="submit" class=" reportsubmit" value="Update"></div>
</form>
</div>
<div class="showemailcurrent">
<br>
<br>
<br>
<div class="col-sm-3"> <input type="submit" class=" reportsubmit" value="No" onclick="jQuery('.showemailcurrent').hide();jQuery('#showupdateemail').show();" style="max-width:50%; float:left; margin-top:10px;"></div><div class="col-sm-3" style="max-width:50%; float:left; margin-top:10px;"><form action="emailconfirm.php" method="post" id="formemailcorrect"><input type="hidden" name="task" value="emailcorrect"><input type="submit" class=" reportsubmit" value="Yep!"></form></div>
</div>
<div class="clearfix clear"></div>
</div>
</div>
{elseif $appop==2}
<div class="reportdiv">
<h2 class="orangetitle"><strong>Hey Bator!</strong></h2>
<div id="success_formemailcorrect2" style="display: none;margin-top:20px; ">Thank you!</div>
<div id="success_formemailcorrect3" style="display: none;margin-top:20px; ">Thank you!<img src="https://bateworld.com/nocdn/emailcorrectforcedchange.gif"></div>
<div style="text-align:left; margin-top:20px;" id="form_formemailcorrect">
The email address connected to your BateWorld account is currently unable to recieve mail. You'll need to update it to continue enjoying the site.<br>
<br>
<div id="showupdateemail">
<form method="post" action="emailconfirm.php" id="formemailcorrect1"><div style="font-size:18px; margin-bottom:20px;">Update Your Email:</div>
<input type="text" placeholder="Enter Email" name="emailaddressupdate" style="max-width: 390px; width: 100%;"><br>
<input type="text" placeholder="Enter Email again" name="emailaddressupdate" style="max-width: 390px; width: 100%;"> <input type="hidden" name="task" value="updateemail">
<br>
<div style="margin-top:20px;">Remember: Your email address is also your login, and how BateWorld will communicate with you about your account.</div><br>
<br>
<br><div class="col-centered hidden-lg hidden-md center-block text-center center-text">
<input type="submit" class=" reportsubmit" value="Update"></div>
<br>
<div class="pull-left"><a href="https://support.bateworld.com/KnowledgeBase/Details/?id=166-Do-I-have-to-have-an-email-address%3F" target="_blank" class="grey" style="font-size:10px;" previewlistener="true">Why does BateWorld need my email?</a></div>
<div class="pull-right hidden-sm hidden-xs">
<input type="submit" class=" reportsubmit" value="Update"></div>
</form>
<div class="clearfix clear"></div>
</div>
</div>
</div>
{/if}
</div>
{if $appop==1}
<script src="/include/js/jquery.form.js"></script>
{literal}
<script>
jQuery(function(){
opendivmodal("confirmemailaddress");
jQuery('#formemailcorrect').ajaxForm({
success: function(){
jQuery('#form_formemailcorrect').hide();
jQuery('#success_formemailcorrect').show();
setTimeout("location.reload()", 5000);
}
});
jQuery('#formemailcorrect1').ajaxForm({
success: function(){
jQuery('#form_formemailcorrect').hide();
jQuery('#success_formemailcorrect1').show();
setTimeout("location.reload()", 5000);
}
});
jQuery(".close").hide();
jQuery('#myModal').unbind("click");
// jQuery(".modal-dialog").css("width", "500px");
});
</script>
{/literal}
{elseif $appop==2}
<script src="/include/js/jquery.form.js"></script>
{literal}
<script>
jQuery(function(){
opendivmodal("confirmemailaddress");
jQuery('#formemailcorrect').ajaxForm({
success: function(){
jQuery('#form_formemailcorrect').hide();
jQuery('#success_formemailcorrect2').show();
setTimeout("location.reload()", 5000);
}
});
jQuery('#formemailcorrect1').ajaxForm({
success: function(){
jQuery('#form_formemailcorrect').hide();
jQuery('#success_formemailcorrect3').show();
setTimeout("location.reload()", 5000);
}
});
jQuery(".close").hide();
jQuery('#myModal').unbind("click");
// jQuery(".modal-dialog").css("width", "500px");
});
</script>
{/literal}
{/if}
</body>
</html>