Merge branch 'dns' into 'master'

Dns

See merge request iimtt/iimtt.org!11
This commit is contained in:
2021-05-03 05:36:58 +00:00
21 changed files with 2059 additions and 1848 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.htaccess

View File

@@ -1,3 +1,7 @@
AuthType Basic
AuthName "Your authorization required message."
AuthUserFile /home/dev/.htpasswd
require valid-user
RewriteEngine On
#RewriteCond %{HTTPS} !=on
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301,NE]

128
_home.php
View File

@@ -1,4 +1,3 @@
<!-- Title -->
<title>International Institute of Montessori Teacher Training | IIMTT</title>
<meta name="description" content="A leading Montessori Teacher Training Institute with UK Qualifications. Offering in-classroom Montessori education globally">
@@ -823,27 +822,122 @@ include("_navbar.php");
</div>
<div class="col-12 col-md-5">
<!-- Form -->
<form>
<div class="row">
<div class="col">
<!-- Input -->
<input type="email" class="form-control" placeholder="Enter your email">
<div>
<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>
<div class="col-auto ml-n5">
<!-- Button -->
<button class="btn bt" type="submit">
Subscribe
</button>
</div>
</div> <!-- / .row -->
</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 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 (emailFooter == '') {
emailErrorFooter.style.display = "block";
} else {
if (reg.test(emailFooter) == false) {
emailErrorFooter.style.display = "block";
} else {
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);
}
}
// document.getElementById("thankMsg").style.display = "block";
}
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', 'IIMTT');
formData.append('senderMail', 'enquiry@iimtt.org');
formData.append('subject', "IIMTT Brochure");
formData.append('message', message);
fetch("https://mailapi.teenybeans.in/", {
method: "POST",
body: formData,
}).then(
function (response) {
response.json().then(function (data) {
console.log(data);
});
}
)
.catch(function (err) {
console.log('Fetch Error :-S', err);
});
}
function saveEmailFooter(email, phn) {
let formData = new FormData();
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',
body: formData
})
.then(res => res.json())
.then(json => {
// window.location.href = "contact-back";
}
);
}
function sendAdminFooter(sendEmail, email) {
// ---------Mail sent-----------------
let formData = new FormData();
formData.append("sendMail", "true");
formData.append("reciever", sendEmail);
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 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/", {
method: "POST",
body: formData
})
.then(function (response) {
response.json().then(function (data) {
// console.log(data);
});
})
.catch(function (err) {
console.log("Fetch Error :-S", err);
});
}
</script>

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

@@ -227,7 +227,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);
success.style.display = "block";
@@ -265,7 +264,7 @@ include("_navbar.php");
phn +
"</td></tr><tr><th>Address:- </th><td>:- " +
addr +
"</td></tr><tr><th>Course:- </th><td>:- " +
"</td></tr><tr><th>Service:- </th><td>:- " +
subject +
"</td></tr><tr><th>Message:- </th><td>:- " +
message +

View File

@@ -364,7 +364,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("cheranmanagar@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -351,7 +351,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("chitlapakkam@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -351,7 +351,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("dimapur@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -356,7 +356,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("hanoi@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -352,7 +352,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("howrahmaidan@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -354,7 +354,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("imphal@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -350,7 +350,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("kharagpur@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -351,7 +351,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("micolayout@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -352,7 +352,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("nabagram@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -346,7 +346,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("nairobi@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -352,7 +352,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("patuli@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

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>
@@ -1006,7 +1006,6 @@ for close to a decade now.</span>
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);
success.style.display = "block";

View File

@@ -351,7 +351,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("sodepur@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -350,7 +350,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("takiroad@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -351,7 +351,6 @@ include("_navbar.php");
// sendMail("enquiry@atheneumglobal.education");
sendMail("teenybeans.info@gmail.com");
sendMail("enquiry@beanstalkedu.com");
sendMail("enquiry@iimtt.org");
sendMail("yavatmal@iimtt.org");
// sendMail("chatterjeegouravking@gmail.com");
sendWelcomeMail(email);

View File

@@ -278,17 +278,17 @@ All applicants will go through an in-class internship for evaluation that will s
</div> <!-- / .container -->
</section>
<!----------------------------------------CTA SECTION-------------------------------------------------->
<section class="mt-6 pt-6 pt-md-8 j overlay overlay-black overlay-80">
<!--<section class="mt-6 pt-6 pt-md-8 j overlay overlay-black overlay-80">
<div class="container pb-6 pb-md-8 border-gray-300">
<div class="row align-items-center">
<div class="col-12 col-md-6">
<!-- Heading -->
<!-- Heading --
<h4 style="color: #f7a325;" class="mb-1 font-weight-bold">
Want to become a part of the global Montessori Brand?
</h4>
<!-- Text -->
<!-- Text --
<p class="font-size-lg text-white mb-6 mb-md-0">
Take a look at our detailed partnership offerings
</p>
@@ -296,32 +296,69 @@ All applicants will go through an in-class internship for evaluation that will s
</div>
<div class="col-12 col-md-6">
<!-- Form -->
<!-- Form --
<form>
<div class="row j2">
<div class="col-auto">
<!-- Input -->
<!-- Input --
<input type="email" class="form-control" placeholder="Enter your email">
</div>
<div class="col-auto">
<!-- Button -->
<!-- Button --
<button style="background-color: #f7a325;" class="btn btn-primary" type="submit">
Download Brochure
</button>
</div>
</div> <!-- / .row -->
</div> <!-- / .row --
</form>
</div>
</div> <!-- / .row --
</div> <!-- / .container --
</section>
-->
<!----------------------------------------CTA SECTION-------------------------------------------------->
<section class="pt-6 pt-md-8 j overlay overlay-black overlay-80 pb-3">
<div class="container pb-6 pb-md-8">
<div class="row align-items-center">
<div class="col-12 col-md">
<!-- Heading -->
<h3 style="color: #f7a325;" class="mb-1 font-weight-bold">
Want to become a part of the global Montessori Brand?
</h3>
<!-- Text -->
<p class="font-size-lg text-white mb-6 mb-md-0">
Take a look at our detailed partnership offerings
</p>
</div>
<div class="col-12 col-md-5 mb-3">
<div>
<p id="thankMsg" style="display: none;color: #f7a325;font-size:14px;">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"><i class="fe fe-download"></i>Brochure</button>
</span>
</div>
</form>
<p id="emailErrorFooter" style="display: none; color: red;font-size:14px;">Please Provide the fields correctly!</p>
</div>
</div>
</div> <!-- / .row -->
</div> <!-- / .container -->
</section>
<!----------------------------------------------------------------------->
<!-- CASE STUDIES (CAROUSEL) -->
<section>
@@ -693,9 +730,6 @@ Skylark Arcadia, Phase 2, Kodigehalli Main Rd, Sadaramangala, Bengaluru, Karnata
</div>
</div>
</section>
<!----------------------------------------------------------------->
<!-- SHAPE -->
<div class="position-relative">
@@ -819,9 +853,6 @@ Skylark Arcadia, Phase 2, Kodigehalli Main Rd, Sadaramangala, Bengaluru, Karnata
</div>
</div>
</section>
<!------------------------------------------------------------------------->
<!----------------------------------------------------------------------------->
<section>
<div class="container">
@@ -976,3 +1007,100 @@ Skylark Arcadia, Phase 2, Kodigehalli Main Rd, Sadaramangala, Bengaluru, Karnata
</section>
<!----------------------------------------------------------------------->
<br><br>
<!------------------------------------------------------brochure form--------------------------------------------------------->
<script type="text/javascript">
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 (emailFooter == '') {
emailErrorFooter.style.display = "block";
} else {
if (reg.test(emailFooter) == false) {
emailErrorFooter.style.display = "block";
} else {
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);
}
}
// document.getElementById("thankMsg").style.display = "block";
}
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', 'IIMTT');
formData.append('senderMail', 'enquiry@iimtt.org');
formData.append('subject', "IIMTT Brochure");
formData.append('message', message);
fetch("https://mailapi.teenybeans.in/", {
method: "POST",
body: formData,
}).then(
function (response) {
response.json().then(function (data) {
console.log(data);
});
}
)
.catch(function (err) {
console.log('Fetch Error :-S', err);
});
}
function saveEmailFooter(email, phn) {
let formData = new FormData();
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',
body: formData
})
.then(res => res.json())
.then(json => {
// window.location.href = "contact-back";
}
);
}
function sendAdminFooter(sendEmail, email) {
// ---------Mail sent-----------------
let formData = new FormData();
formData.append("sendMail", "true");
formData.append("reciever", sendEmail);
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 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/", {
method: "POST",
body: formData
})
.then(function (response) {
response.json().then(function (data) {
// console.log(data);
});
})
.catch(function (err) {
console.log("Fetch Error :-S", err);
});
}
</script>