Viewing file: public_footer.php (24.39 KB) -rw-rw-r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<section class="footer">
<div class="container">
<div class="row">
<div class="col-12">
<div class="D-flex footer-menu">
<div>
<div class="quicklinks">
<!-- <h6>Usefull Links</h6> -->
<ul>
<li><a href="<?php echo $baseurl; ?>about-us.php">About Us</a> </li>
<li><a href="<?php echo $baseurl; ?>about-our-training.php">About Our Training</a></li>
<li><a href="<?php echo $baseurl; ?>projects.php">Academic Project</a> </li>
<li><a href="<?php echo $baseurl; ?>contact-us.php">Contact Us</a> </li>
<li><a href="<?php echo $baseurl; ?>gallery.php">Gallery</a></li>
<li><a href="<?php echo $baseurl; ?>placements.php">Placements</a> </li>
<li><a href="<?php echo $baseurl; ?>testimonials.php">Testimonials</a> </li>
<li><a href="<?php echo $baseurl; ?>terms_conditions.php">Terms & Conditions </a> </li>
</ul>
</div>
</div>
<div>
<div class="quicklinks">
<?php
$query1 = "select title from placed_students order by id desc limit 5";
$result1 = $con->query($query1);
?>
<!-- <h6>Placement Updates</h6> -->
<ul>
<?php
while ($row1 = $result1->fetch_assoc()) {
?>
<li style="text-transform: uppercase;"><a href="<?php echo $baseurl; ?>testimonials.php"><?php echo $row1['title']; ?></a></li>
<?php
}
?>
</ul>
</div>
</div>
<div>
<div class="quicklinks">
<!-- <h6>Quick Links</h6> -->
<ul>
<li><a href="https://www.srishtis.com/" target="_blank">Srishti Innovative </a></li>
<li><a href="http://www.pratheksha.com/" target="_blank">Pratheksha - Social responsibility</a></li>
<li><a href="http://itjobcell.com/" target="_blank">IT jobs</a></li>
</ul>
<ul class="social-links f-box">
<li>
<a href=" https://www.facebook.com/srishtiinnovative" target="_blank" class="green"><i class="fab fa-facebook-f" aria-hidden="true"></i></a>
</li>
<li>
<a href="https://youtube.com/channel/UCN9Ae8Xlkf-hA6jeRYmsADw" class="green"><i class="fab fa-youtube" aria-hidden="true"></i></a>
</li>
<li>
<a href="https://twitter.com/CampusSrishti" target="_blank" class="green"><i class="fa fa-twitter" aria-hidden="true"></i></a>
</li><li>
<a href="https://www.linkedin.com/in/srishti-campus-04826b207" target="_blank" class="green"><i class="fa fa-linkedin" aria-hidden="true"></i></a>
</li>
<li>
<a href="https://instagram.com/srishti__campus?utm_medium=copy_link" target="_blank" class="green"><i class="fa fa-instagram" aria-hidden="true"></i></a>
</li>
</ul>
</div>
</div>
</div>
<div class="copy-right">
<small> Copyrights© 2021 Srishti Campus. Allrights Reserved</small>
</div>
</div>
</div>
</div>
</section>
</body>
<?php
$view="select * from student_reg where user_id='$u_id'";
$resview=$con->query($view);
$co=$resview->fetch_assoc();
?>
<input type="hidden" name="txt" id="txt" value="<?php echo $co['user_id']?>">
<!-- Optional JavaScript -->
<script src="<?php echo $baseurl; ?>js/jquery.min.js"></script>
<script async src="<?php echo $baseurl; ?>js/bootstrap.min.js" ></script>
<!-- validation -->
<script src="<?php echo $baseurl; ?>js/jquery.validate.min.js"></script>
<script type="text/javascript" src="<?php echo $baseurl; ?>js/fontawesome.js"></script>
<!-- sweetalert -->
<script src="<?php echo $baseurl; ?>js/sweetalert.min.js"></script>
<script type="text/javascript">
$(window).load(function () {
// alert('1');
// $(".pageloader").fadeOut("fast");
});
$(document).ready(function () {
// alert('2');
$(".pageloader").hide();
});
function startTimer(duration, display) {
var timer = duration, minutes, seconds;
setInterval(function () {
minutes = parseInt(timer / 60, 10);
seconds = parseInt(timer % 60, 10);
minutes = minutes < 10 ? "0" + minutes : minutes;
seconds = seconds < 10 ? "0" + seconds : seconds;
display.textContent = minutes + ":" + seconds;
if(display.textContent=="00:00"){
$('#resend').show();
$('#resend1').show();
$('#time1').hide();
$('#sec1').hide();
$('#time').hide();
$('#sec').hide();
}
if (--timer < 0) {
timer = duration;
}
}, 1000);
}
// window.onload = function () {
// var fiveMinutes = 60 * 1,
// display = document.querySelector('#time');
// startTimer(fiveMinutes, display);
// display1 = document.querySelector('#time1');
// startTimer(fiveMinutes, display1);
// };
</script>
<script type="text/javascript">
$(document).ready(function () {
var user_id=$('txt').val();
$('#resend').click(function () {
var fiveMinutes = 120 * 1,
display = document.querySelector('#time');
startTimer(fiveMinutes, display);
display1 = document.querySelector('#time1');
startTimer(fiveMinutes, display1);
//$('#login-bbox').show();
$('#resend').hide();
$('#time').show();
$('#sec').show();
var email=$('#email1').val();
var data = {
email: $("#email1").val()
}
$.ajax({
url: '<?php echo $baseurl; ?>login_user_action.php',
type: "POST",
data: data,
success: function (response) {
$('#pageloaddiv').hide();
if (response == 1) {
$(".login-bbox").hide();
$(".login-otpbbox").show();
$(".otp-login-label").html("An OTP has send to your phone Kindly enter your OTP");
$(".otp-login-label").show();
// setTimeout(function () {
// $(".otp-login-label").hide();
// }, 5000);
}
if (response == 11) {
$(".login-bbox").hide();
$(".login-otpbbox").show();
$(".otp-login-label").html("An OTP has send to your Email ID Kindly enter your OTP");
$(".otp-login-label").show();
// setTimeout(function () {
// $(".otp-login-label").hide();
// }, 5000);
}
if (response == 2) {
$(".non-user-label").show();
setTimeout(function () {
$(".non-user-label").hide();
}, 5000);
}
if (response == 3) {
$(".invalid-cred").show();
setTimeout(function () {
$(".invalid-cred").hide();
}, 5000);
}
}
});
});
$('#resend1').click(function () {
//$('#login-bbox').show();
var fiveMinutes = 120 * 1,
display = document.querySelector('#time');
startTimer(fiveMinutes, display);
display1 = document.querySelector('#time1');
startTimer(fiveMinutes, display1);
$('#resend1').hide();
$('#time1').show();
$('#sec1').show();
var data = {
name: $("#name").val(),
phone: $("#phone").val(),
email: $("#email").val()
}
$.ajax({
url: '<?php echo $baseurl; ?>resend_otp.php',
type: "POST",
data: data,
success: function (response) {
$('#pageloaddiv').hide();
if (response == 1) {
$(".sign-upbox").hide();
$(".otp-enter").show();
$(".otp-label").show();
setTimeout(function () {
$(".otp-label").hide();
}, 5000);
}
if (response == 0) {
$(".sign-upbox").show();
$(".show-label").show();
setTimeout(function () {
$(".show-label").hide();
}, 5000);
}
if (response == 2) {
alert('Something went wrong');
}
}
});
});
jQuery.validator.addMethod("validate_email", function (value, element) {
if (/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/.test(value)) {
return true;
} else {
return false;
}
}, "Please enter a valid email address.");
jQuery.validator.addMethod("validate_phone", function (value, element) {
if (/^[6-9]\d{9}$/.test(value)) {
return true;
} else {
return false;
}
}, "Please enter a valid phone number.");
$("#add-form").validate({
onkeyup: function (el, e) {
$(el).valid();
},
rules: {
"name": {
required: true
},
"phone": {
required: true,
validate_phone: true
},
"email": {
required: true,
validate_email: true
}
},
submitHandler: function (form, e) {
$('#pageloaddiv').show();
var data = {
name: $("#name").val(),
phone: $("#phone").val(),
email: $("#email").val(),
course_type: $("#course_type").val()
}
$.ajax({
url: '<?php echo $baseurl; ?>signup_action.php',
type: "POST",
data: data,
success: function (response) {
$('#pageloaddiv').hide();
if (response == 1) {
$(".sign-upbox").hide();
$(".otp-enter").show();
$(".otp-label").show();
setTimeout(function () {
$(".otp-label").hide();
}, 5000);
}
if (response == 0) {
$(".sign-upbox").show();
$(".show-label").show();
setTimeout(function () {
$(".show-label").hide();
}, 5000);
}
if (response == 2) {
alert('Something went wrong');
}
}
});
}
});
//otp
$("#add-form1").validate({
rules: {
"otp": {
required: true
}
},
submitHandler: function (form, e) {
$('#pageloaddiv').show();
var data = {
otp: $("#otp").val()
}
$.ajax({
url: '<?php echo $baseurl; ?>signup_action.php',
type: "POST",
data: data,
success: function (response) {
console.log(response);
if (response == 1 || response == 2) {
window.location.href = "<?php echo $baseurl; ?>application.php";
}
if (response == 0) {
$('#pageloaddiv').hide();
$(".otp-enter").show();
$(".invalid-otp").show();
setTimeout(function () {
$(".invalid-otp").hide();
}, 5000);
}
}
});
}
});
//login form
$("#add-login-form").validate({
rules: {
"email1": {
required: true
}
},
submitHandler: function (form, e) {
var fiveMinutes = 120 * 1,
display = document.querySelector('#time');
startTimer(fiveMinutes, display);
display1 = document.querySelector('#time1');
startTimer(fiveMinutes, display1);
$('#reset').show();
$('.ot').hide();
$('#pageloaddiv').show();
var data = {
email: $("#email1").val()
}
$.ajax({
url: '<?php echo $baseurl; ?>login_user_action.php',
type: "POST",
data: data,
success: function (response) {
$('#pageloaddiv').hide();
if (response == 1) {
$(".login-bbox").hide();
$(".login-otpbbox").show();
$(".otp-login-label").html("An OTP has send to your phone Kindly enter your OTP");
$(".otp-login-label").show();
// setTimeout(function () {
// $(".otp-login-label").hide();
// }, 5000);
}
if (response == 11) {
$(".login-bbox").hide();
$(".login-otpbbox").show();
$(".otp-login-label").html("An OTP has send to your Email ID Kindly enter your OTP");
$(".otp-login-label").show();
// setTimeout(function () {
// $(".otp-login-label").hide();
// }, 5000);
}
if (response == 2) {
$(".non-user-label").show();
setTimeout(function () {
$(".non-user-label").hide();
}, 5000);
}
if (response == 3) {
$(".invalid-cred").show();
setTimeout(function () {
$(".invalid-cred").hide();
}, 5000);
}
}
});
}
});
//end of login
//login otp
$("#add-login-form1").validate({
rules: {
"login_otp": {
required: true
}
},
submitHandler: function (form, e) {
$('#pageloaddiv').show();
var data = {
login_otp: $("#login_otp").val()
}
$.ajax({
url: '<?php echo $baseurl; ?>login_user_action.php',
type: "POST",
data: data,
success: function (response) {
// alert(response);
if (response == 1) {
$(".login-otpbbox").show();
// window.location.href = "<?php //echo $baseurl; ?>profile-update.php";
window.location.href = "<?php echo $baseurl; ?>dashboard.php";
}
if(response==2){
//window.location.href = "<?php echo $baseurl; ?>application.php";
window.location.href = "<?php echo $baseurl; ?>dashboard.php";
}
if (response == 0) {
$('#pageloaddiv').hide();
$(".login-otpbbox").show();
$(".invalid-login-otp").show();
setTimeout(function () {
$(".invalid-login-otp").hide();
}, 5000);
}
}
});
}
});
$("#luckyform").validate({
onkeyup: function (el, e) {
$(el).valid();
},
rules: {
"luckyname": {
required: true
},
"luckyphone": {
required: true,
validate_phone: true
},
"luckyemail": {
required: true,
validate_email: true
}
},
submitHandler: function (form, e) {
$('#pageloaddiv').show();
var data = {
name: $("#luckyname").val(),
phone: $("#luckyphone").val(),
email: $("#luckyemail").val(),
message : $("#luckymessage").val()
}
$.ajax({
url: '<?php echo $baseurl; ?>luckysignup_action.php',
type: "POST",
data: data,
success: function (response) {
$('#pageloaddiv').hide();
if (response == 1) {
$(".lucky-upbox").hide();
$(".lotp-enter").show();
$(".lotp-label").show();
}
if (response == 0) {
$(".lucky-upbox").show();
$(".lshow-label").show();
}
if (response == 2) {
alert('Something went wrong');
}
}
});
}
});
$("#luckyotpform").validate({
rules: {
"luckyotp": {
required: true
}
},
submitHandler: function (form, e) {
$('#pageloaddiv').show();
var data = {
otp: $("#luckyotp").val()
}
$.ajax({
url: '<?php echo $baseurl; ?>luckysignup_action.php',
type: "POST",
data: data,
success: function (response) {
if (response == 1 || response == 2) {
window.location.href = "<?php echo $baseurl; ?>dashboard.php";
}
if (response == 0) {
$('#pageloaddiv').hide();
$(".lotp-enter").show();
$(".invalid-lotp").show();
}
}
});
}
});
setInterval(function(){
var isShown = $('body').hasClass('modal-open');
console.log('status = '+isShown);
var url = $(location).attr('href'),
parts = url.split("/"),
last_part = parts[parts.length-1];
if(last_part!='internship.php' && isShown==false){
<?php
if(empty($u_id))
{
?>
$.ajax({
url: '<?php echo $baseurl; ?>getsessionvalue.php',
type: "POST",
data: {session: "luckyotp"},
success: function (response) {
if (response == '0') {
$(".lucky-upbox").hide();
$(".lotp-enter").show();
$(".lotp-label").show();
$('#luckypopup').modal('show');
}
else {
$.ajax({
url: '<?php echo $baseurl; ?>getsessionvalue.php',
type: "POST",
data: {session: "luckypopup"},
success: function (response) {
var isShown1 = $('body').hasClass('modal-open');
console.log('status ajax = '+isShown1);
if (response != '1' && isShown1==false) {
$(".lucky-upbox").show();
$(".lotp-enter").hide();
$('#luckypopup').modal('show');
}
}
});
}
}
});
<?php
}
?>
}
}, 9000000000);
});
</script>
<script type="text/javascript">
$("#close_clic").click(function()
{
location.reload();
});
</script>
<script>
$(".bot-notifications").click(function(){
$(".notifications-list").fadeToggle();
});
function read(id)
{
$.ajax({
url: '<?php echo $baseurl; ?>read_notification.php',
type: "POST",
data: {id:id},
success: function (response) {
location.reload();
}
});
}
</script>
</html>
|