brochure add
This commit is contained in:
92
_home.php
92
_home.php
@@ -822,50 +822,48 @@ include("_navbar.php");
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-12 col-md-5">
|
<div class="col-12 col-md-5">
|
||||||
|
|
||||||
<!-- Form -->
|
<div>
|
||||||
<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">
|
|
||||||
|
|
||||||
<!-- Input -->
|
<p id="thankMsg" style="display: none;">Thank you! Please check your email for the brochure.</p>
|
||||||
<input type="email" aria-required="true" name="widget-subscribe-form-email" class="form-control required email" placeholder="Enter your email" id="email2">
|
<form action="#" role="form" method="post" novalidate="novalidate">
|
||||||
|
<div class="input-group">
|
||||||
</div>
|
<input aria-required="true" name="email" class="form-control" placeholder="Email" type="email" id="emailFooter">
|
||||||
<div class="col-auto ml-n5">
|
<!--<input aria-required="true" class="form-control" id="phnFooter" type="number" name="telephone" placeholder="Phone" required>-->
|
||||||
|
<span class="input-group-btn">
|
||||||
<!-- Button -->
|
<button id="widget-subscribe-submit-button dBtn" type="button" onclick="downloadBrFooter();" class="btn bt">Submit</button>
|
||||||
<button id="widget-subscribe-submit-button dBtn" class="btn bt" onclick="downloadBr();" type="submit">
|
</span>
|
||||||
Subscribe
|
</div>
|
||||||
</button>
|
</form>
|
||||||
|
<p id="emailErrorFooter" style="display: none; color: red;">Please Provide the fields correctly!</p>
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- / .row -->
|
|
||||||
</form>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div> <!-- / .row -->
|
</div> <!-- / .row -->
|
||||||
</div> <!-- / .container -->
|
</div> <!-- / .container -->
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
<!------------------------------------------------------brochure form--------------------------------------------------------->
|
<!------------------------------------------------------brochure form--------------------------------------------------------->
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function modalSubmit() {
|
function downloadBrFooter() {
|
||||||
var email = document.getElementById("modalEmail").value;
|
var emailFooter = document.getElementById("emailFooter").value;
|
||||||
var emailError2 = document.getElementById("emailError2");
|
<!--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})$/;
|
var reg = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/;
|
||||||
if (email == '') {
|
if (emailFooter == '') {
|
||||||
emailError2.style.display = "block";
|
emailErrorFooter.style.display = "block";
|
||||||
} else {
|
} else {
|
||||||
if (reg.test(email) == false) {
|
if (reg.test(emailFooter) == false) {
|
||||||
emailError2.style.display = "block";
|
emailErrorFooter.style.display = "block";
|
||||||
} else {
|
} else {
|
||||||
emailError2.style.display = "none";
|
emailErrorFooter.style.display = "none";
|
||||||
document.getElementById("modalEmail").value = '';
|
document.getElementById("emailFooter").value = '';
|
||||||
document.getElementById("thankMsg").style.display = "block";
|
<!--document.getElementById("phnFooter").value = ''; -->
|
||||||
saveEmail(email);
|
document.getElementById("thankMsg").style.display = "block";
|
||||||
sendEmail(email);
|
<!--saveEmailFooter(emailFooter, phnFooter); -->
|
||||||
sendAdmin("enquiry@beanstalkedu.com", email);
|
sendEmailFooter(emailFooter);
|
||||||
sendAdmin("teenybeans.info@gmail.com", email);
|
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>';
|
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 sendEmail(email) {
|
function sendEmailFooter(email) {
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
formData.append('sendMail', 'true');
|
formData.append('sendMail', 'true');
|
||||||
formData.append('reciever', email);
|
formData.append('reciever', email);
|
||||||
formData.append('sender', 'Teenybeans');
|
formData.append('sender', 'IIMTT');
|
||||||
formData.append('senderMail', 'no-reply@teenybeans.in');
|
formData.append('senderMail', 'enquiry@iimtt.org');
|
||||||
formData.append('subject', "Teenybeans Brochure");
|
formData.append('subject', "IIMTT Brochure");
|
||||||
formData.append('message', message);
|
formData.append('message', message);
|
||||||
fetch("https://mailapi.teenybeans.in/", {
|
fetch("https://mailapi.teenybeans.in/", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
@@ -896,10 +894,11 @@ include("_navbar.php");
|
|||||||
console.log('Fetch Error :-S', err);
|
console.log('Fetch Error :-S', err);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
function saveEmail(email, phn) {
|
function saveEmailFooter(email, phn) {
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
formData.append('formName', 'teenyBeansBrochure');
|
formData.append('formName', 'IIMTTBrochure');
|
||||||
formData.append('Email', email);
|
formData.append('Email', email);
|
||||||
|
<!--formData.append('Phone', phn);
|
||||||
// formData.append('Address', addr);
|
// formData.append('Address', addr);
|
||||||
fetch('https://api.teenybeans.in/API/contactFormProcessor/v1/', {
|
fetch('https://api.teenybeans.in/API/contactFormProcessor/v1/', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
@@ -911,19 +910,20 @@ include("_navbar.php");
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
function sendAdmin(sendEmail, email) {
|
function sendAdminFooter(sendEmail, email) {
|
||||||
// ---------Mail sent-----------------
|
// ---------Mail sent-----------------
|
||||||
|
|
||||||
let formData = new FormData();
|
let formData = new FormData();
|
||||||
formData.append("sendMail", "true");
|
formData.append("sendMail", "true");
|
||||||
formData.append("reciever", sendEmail);
|
formData.append("reciever", sendEmail);
|
||||||
formData.append("sender", "Teenybeans");
|
formData.append("sender", "IIMTT");
|
||||||
formData.append("senderMail", "no-reply@teenybeans.in");
|
formData.append("senderMail", "enquiry@iimtt.org");
|
||||||
formData.append("subject", "New Modal Brochure Form Fillup");
|
formData.append("subject", "New IIMTT Brochure Form Fillup");
|
||||||
formData.append(
|
formData.append(
|
||||||
"message",
|
"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 +
|
email +
|
||||||
|
<!--"</td></tr><tr><th>Phone:- </th><td>:- " +
|
||||||
|
<!--phn + -->
|
||||||
"</td></tr></table></body></html>"
|
"</td></tr></table></body></html>"
|
||||||
);
|
);
|
||||||
fetch("https://mailapi.teenybeans.in/", {
|
fetch("https://mailapi.teenybeans.in/", {
|
||||||
|
|||||||
@@ -230,7 +230,7 @@ hover:label {
|
|||||||
.j{
|
.j{
|
||||||
background-image: url(/assets/img/Find-an-IIMTT-training-centre-near-you.jpeg);
|
background-image: url(/assets/img/Find-an-IIMTT-training-centre-near-you.jpeg);
|
||||||
background-repeat:no-repeat;
|
background-repeat:no-repeat;
|
||||||
height:23vh;
|
height:28vh;
|
||||||
width:100%;
|
width:100%;
|
||||||
background-size:cover;
|
background-size:cover;
|
||||||
background-position:center;
|
background-position:center;
|
||||||
|
|||||||
@@ -276,19 +276,19 @@ include("_navbar.php");
|
|||||||
<td>Diploma in MTT(Regular)</td>
|
<td>Diploma in MTT(Regular)</td>
|
||||||
<td>College Graduation</td>
|
<td>College Graduation</td>
|
||||||
<td>6 months - 1 year</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>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Diploma in MTT(Weekend)</td>
|
<td>Diploma in MTT(Weekend)</td>
|
||||||
<td>College Graduation</td>
|
<td>College Graduation</td>
|
||||||
<td>1 year</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>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Advanced Diploma in MTT</td>
|
<td>Advanced Diploma in MTT</td>
|
||||||
<td>College Graduation</td>
|
<td>College Graduation</td>
|
||||||
<td>9 months - 1 Year</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>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
2084
partnership.php
2084
partnership.php
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user