brochure add

This commit is contained in:
2021-04-20 05:43:41 +00:00
parent 33b1feb853
commit 6608f18467
4 changed files with 1156 additions and 1028 deletions

View File

@@ -822,50 +822,48 @@ include("_navbar.php");
</div>
<div class="col-12 col-md-5">
<!-- Form -->
<form widget-search-form-sidebar class="widget-subscribe-form p-r-40" action="#" role="form" method="post"
novalidate="novalidate">
<div class="row">
<div class="col">
<div>
<!-- Input -->
<input type="email" aria-required="true" name="widget-subscribe-form-email" class="form-control required email" placeholder="Enter your email" id="email2">
</div>
<div class="col-auto ml-n5">
<!-- Button -->
<button id="widget-subscribe-submit-button dBtn" class="btn bt" onclick="downloadBr();" type="submit">
Subscribe
</button>
</div>
</div> <!-- / .row -->
</form>
<p id="thankMsg" style="display: none;">Thank you! Please check your email for the brochure.</p>
<form action="#" role="form" method="post" novalidate="novalidate">
<div class="input-group">
<input aria-required="true" name="email" class="form-control" placeholder="Email" type="email" id="emailFooter">
<!--<input aria-required="true" class="form-control" id="phnFooter" type="number" name="telephone" placeholder="Phone" required>-->
<span class="input-group-btn">
<button id="widget-subscribe-submit-button dBtn" type="button" onclick="downloadBrFooter();" class="btn bt">Submit</button>
</span>
</div>
</form>
<p id="emailErrorFooter" style="display: none; color: red;">Please Provide the fields correctly!</p>
</div>
</div>
</div> <!-- / .row -->
</div> <!-- / .container -->
</section>
<!------------------------------------------------------brochure form--------------------------------------------------------->
<script type="text/javascript">
function modalSubmit() {
var email = document.getElementById("modalEmail").value;
var emailError2 = document.getElementById("emailError2");
function downloadBrFooter() {
var emailFooter = document.getElementById("emailFooter").value;
<!--var phnFooter = document.getElementById("phnFooter").value; -->
var emailErrorFooter = document.getElementById("emailErrorFooter");
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
if (email == '') {
emailError2.style.display = "block";
if (emailFooter == '') {
emailErrorFooter.style.display = "block";
} else {
if (reg.test(email) == false) {
emailError2.style.display = "block";
if (reg.test(emailFooter) == false) {
emailErrorFooter.style.display = "block";
} else {
emailError2.style.display = "none";
document.getElementById("modalEmail").value = '';
document.getElementById("thankMsg").style.display = "block";
saveEmail(email);
sendEmail(email);
sendAdmin("enquiry@beanstalkedu.com", email);
sendAdmin("teenybeans.info@gmail.com", email);
emailErrorFooter.style.display = "none";
document.getElementById("emailFooter").value = '';
<!--document.getElementById("phnFooter").value = ''; -->
document.getElementById("thankMsg").style.display = "block";
<!--saveEmailFooter(emailFooter, phnFooter); -->
sendEmailFooter(emailFooter);
sendAdminFooter("enquiry@beanstalkedu.com", emailFooter);
sendAdminFooter("teenybeans.info@gmail.com", emailFooter);
}
}
@@ -873,14 +871,14 @@ include("_navbar.php");
}
var message = '<html><body><p>Welcome to Teenybeans. You have showed interest to know more about us and here it is. You will find our Brochure Link in this mail. Download the brochure and know everything about us. <br>And for more information you can visit our website <a href="https://teenybeans.in">here</a>.<br><a href="https://teenybeans.in/DOCS/Preschool-Business-Proposal.pdf" download>Download Your Brochure Now!</a><br>-Team Teenybeans</p></body></html>';
function sendEmail(email) {
var message = '<html><body><p>Welcome to IIMTT. You have showed interest to know more about us and here it is. You will find our Brochure Link in this mail. Download the brochure and know everything about us. <br>And for more information you can visit our website <a href="https://iimtt.org/">click here</a>.<br><a href="https://drive.google.com/file/d/11JW1i7annvdjF6rG5vwSFBjIBaMDfAqZ/view?usp=sharing" download>Download Your Brochure Now!</a><br>-Team IIMTT</p></body></html>';
function sendEmailFooter(email) {
let formData = new FormData();
formData.append('sendMail', 'true');
formData.append('reciever', email);
formData.append('sender', 'Teenybeans');
formData.append('senderMail', 'no-reply@teenybeans.in');
formData.append('subject', "Teenybeans Brochure");
formData.append('sender', 'IIMTT');
formData.append('senderMail', 'enquiry@iimtt.org');
formData.append('subject', "IIMTT Brochure");
formData.append('message', message);
fetch("https://mailapi.teenybeans.in/", {
method: "POST",
@@ -896,10 +894,11 @@ include("_navbar.php");
console.log('Fetch Error :-S', err);
});
}
function saveEmail(email, phn) {
function saveEmailFooter(email, phn) {
let formData = new FormData();
formData.append('formName', 'teenyBeansBrochure');
formData.append('formName', 'IIMTTBrochure');
formData.append('Email', email);
<!--formData.append('Phone', phn);
// formData.append('Address', addr);
fetch('https://api.teenybeans.in/API/contactFormProcessor/v1/', {
method: 'POST',
@@ -911,19 +910,20 @@ include("_navbar.php");
}
);
}
function sendAdmin(sendEmail, email) {
function sendAdminFooter(sendEmail, email) {
// ---------Mail sent-----------------
let formData = new FormData();
formData.append("sendMail", "true");
formData.append("reciever", sendEmail);
formData.append("sender", "Teenybeans");
formData.append("senderMail", "no-reply@teenybeans.in");
formData.append("subject", "New Modal Brochure Form Fillup");
formData.append("sender", "IIMTT");
formData.append("senderMail", "enquiry@iimtt.org");
formData.append("subject", "New IIMTT Brochure Form Fillup");
formData.append(
"message",
"<html><body><p>New Modal form (Blog) is filled up.</p><br><p>User Details:-</p><table><tr><th>Email:- </th><td>:- " +
"<html><body><p>New Contact form is filled up.</p><br><p>User Details:-</p><table><tr><th>Email:- </th><td>:- " +
email +
<!--"</td></tr><tr><th>Phone:- </th><td>:- " +
<!--phn + -->
"</td></tr></table></body></html>"
);
fetch("https://mailapi.teenybeans.in/", {

View File

@@ -230,7 +230,7 @@ hover:label {
.j{
background-image: url(/assets/img/Find-an-IIMTT-training-centre-near-you.jpeg);
background-repeat:no-repeat;
height:23vh;
height:28vh;
width:100%;
background-size:cover;
background-position:center;

View File

@@ -276,19 +276,19 @@ include("_navbar.php");
<td>Diploma in MTT(Regular)</td>
<td>College Graduation</td>
<td>6 months - 1 year</td>
<td>UK Level 4 Qualification: A Global Certification by government regulated awarding body in UK.</td>
<td>UK Level 5 Qualification: A Global Certification by government regulated awarding body in UK.</td>
</tr>
<tr>
<td>Diploma in MTT(Weekend)</td>
<td>College Graduation</td>
<td>1 year</td>
<td>UK Level 4 Qualification: A Global Certification by government regulated awarding body in UK.</td>
<td>UK Level 5 Qualification: A Global Certification by government regulated awarding body in UK.</td>
</tr>
<tr>
<td>Advanced Diploma in MTT</td>
<td>College Graduation</td>
<td>9 months - 1 Year</td>
<td>UK Level 4 Qualification: A Global Certification by government regulated awarding body in UK.</td>
<td>UK Level 5 Qualification: A Global Certification by government regulated awarding body in UK.</td>
</tr>
</tbody>
</table>

File diff suppressed because it is too large Load Diff