MMCT TEAM
Server IP : 2a02:4780:3:1493:0:3736:a38e:7  /  Your IP : 216.73.216.86
Web Server : LiteSpeed
System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.84.1.lve.el8.x86_64 #1 SMP Tue Nov 25 18:33:03 UTC 2025 x86_64
User : u926327694 ( 926327694)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : ON
Directory (0755) :  /home/u926327694/domains/smsoft.in/public_html/demo/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u926327694/domains/smsoft.in/public_html/demo/school-login(1).php
<?php include("config/dbconnect.php"); ?>
<html lang="en"><head>
<title>E-Vision Login</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="../evi/logo.jpg">
<link rel="stylesheet" type="text/css" href="schoolfile/css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="schoolfile/font-awesome-4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="schoolfile/css/animate.css">
<link rel="stylesheet" type="text/css" href="schoolfile/css/hamburgers.min.css">
<link rel="stylesheet" type="text/css" href="schoolfile/css/util.css">
<link rel="stylesheet" type="text/css" href="schoolfile/css/main.css">
<link rel="stylesheet" href="schoolfile/css/jquery-ui.css">
<link rel="stylesheet" href="schoolfile/css/style.css">
</head>
<body>
<div class="limiter">
<div class="container-login100">
<div class="wrap-login100">
<div class="login100-pic js-tilt" data-tilt="" style="will-change: transform; transform: perspective(300px) rotateX(0deg) rotateY(0deg);">
<img src="schoolfile/images/img-01.png" alt="IMG">
</div>
<form action="school-login.php" method="POST" id="frmSchool" class="login100-form" style="width:350px;">
<span class="login100-form-title" style="margin-top:40px;">
Login
</span>
<div class="wrap-input100 validate-input" data-validate="school is required">
    <input type="hidden" name="hdSchoolCode" id="hdSchoolCode" >
                <input class="input100" type="text" id="autocomplte" name="SchoolName" placeholder="School Name" autocomplete="off">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-envelope" aria-hidden="true"></i>
</span>
</div>
<div class="container-login100-form-btn">
<button class="login100-form-btn " type="submit">
Login
</button>
</div>
<div class="text-center p-t-12">
<span class="txt1">
Management Login
</span>
<a class="txt2" href="management-login.php">
Click here
</a>
</div>
<!--div class="text-center p-t-136">
<a class="txt2" href="#">
Create your Account
<i class="fa fa-long-arrow-right m-l-5" aria-hidden="true"></i>
</a>
</div-->
</form>
</div>
</div>
</div>

<script src="schoolfile/js/jquery-3.2.1.min.js"></script>
<script src="schoolfile/js/popper.js"></script>
<script src="schoolfile/js/bootstrap.min.js"></script>
<script src="schoolfile/js/tilt.jquery.min.js"></script>
<script>
		$('.js-tilt').tilt({
			scale: 1.1
		})
	</script>

<script src="schoolfile/js/main.js"></script>
<script defer="" src="https://static.cloudflareinsights.com/beacon.min.js" data-cf-beacon="{&quot;rayId&quot;:&quot;67567e42f9191d53&quot;,&quot;token&quot;:&quot;cd0b4b3a733644fc843ef0b185f98241&quot;,&quot;version&quot;:&quot;2021.7.0&quot;,&quot;si&quot;:10}"></script>

<script src="schoolfile/js/jquery-ui.js"></script>
      <script type="text/javascript">
        $("#autocomplte").blur(function () {
            setTimeout(function () { closeAutoCompleteBoxData(); }, 200);
        });
        $("#autocomplte").keyup(function () {
            var inp = document.getElementById("autocomplte");
            if (Number(inp.value.length) > 3) {
                $("#hdSchoolCode").val(0);
                var arr = [];
                $.ajax({
                     url: "FindSchool.php",
                     type: "GET",
                     data: "SearchText="+$("#autocomplte").val(),
                     success: function (res) {
                         arr=JSON.parse(res);
                         //console.log(arr);
                        Autocomplete(inp, arr);
                     }
                 });
            }
        });

        function Autocomplete(inp, arr) {
            //inp.addEventListener("input", function (e) {
            var a, b, i, val = inp.value;
            closeAutoCompleteBox();
            //if (!val) { return false; }
            currentFocus = -1;
            a = document.createElement("DIV");
            a.setAttribute("id", inp.id + "autocomplete-list");
            a.setAttribute("class", "autocomplete-items");
            inp.parentNode.appendChild(a);
            $.each(arr, function (key, value) {
                b = document.createElement("DIV");
                b.innerHTML += "<h3 class='AutoComTitle'>" + arr[key]["schoolname"] + "</h3>";
                b.innerHTML += "<input type='hidden' value='" + arr[key]["schoolname"] + "'>";
                b.innerHTML += "<span class='schooladdress'>Code: " + arr[key]["schoolcode"] + "</span>";
                b.addEventListener("click", function (e) {
                    inp.value = this.getElementsByTagName("input")[0].value;
                    $("#hdSchoolCode").val(arr[key]["schoolcode"]);
                    closeAutoCompleteBox();
                    //$("#frmSchool").submit();
                });
                a.appendChild(b);
            });
            //});
            function closeAutoCompleteBox(elmnt) {
                var x = document.getElementsByClassName("autocomplete-items");
                for (var i = 0; i < x.length; i++) {
                    if (elmnt != x[i] && elmnt != inp) {
                        x[i].parentNode.removeChild(x[i]);
                    }
                }
            }
        }
        function closeAutoCompleteBoxData() {
            var elmnt = "";
            var inp = document.getElementById("ContentPlaceHolder1_txtStudioName");
            var x = document.getElementsByClassName("autocomplete-items");
            for (var i = 0; i < x.length; i++) {
                if (elmnt != x[i] && elmnt != inp) {
                    x[i].parentNode.removeChild(x[i]);
                }
            }
        }
        
    </script>

</body>
</html>

<?php
    if(isset($_POST['hdSchoolCode']))
    {
        $hdSchoolCode=$_POST['hdSchoolCode'];
        if($hdSchoolCode!="" && $hdSchoolCode!="0")
        {
            $sel_school=mysqli_query($con,"SELECT * FROM schools WHERE IsActive=1 AND SchoolCode='$hdSchoolCode'");
            $start_date="";
            $end_date="";
            while($rows=mysqli_fetch_array($sel_school))
            {
                $start_date=$rows['startingDate'];
                $end_date=$rows['endingDate'];
            }
            if($start_date!="" && $end_date!="")
            {
                if((strtotime($end_date)) >= (time()))
                {
                    $SchoolCode=$hdSchoolCode;
                    $_SESSION['MasterSchoolCode']=$SchoolCode;
                    echo"<script>window.location='index.php';</script>";
                }
                else
                {
                    $end_date1=Date('d-m-Y',strtotime($end_date));
                    echo"<script>alert('Your software has been expired on $end_date1. please contact to administrator...'); window.location='school-login.php';</script>";
                }
            }
            else
            {
                echo"<script>alert('Date is not valid please contact to administrator...'); window.location='school-login.php';</script>";
            }
        }
        else
        {
            echo"<script>alert('Please select school...'); window.location='school-login.php';</script>";
        }
    }
    if(isset($_SESSION['Mng_User']))
    {
        unset($_SESSION['Mng_User']);
    }
?>

MMCT - 2023