MMCT TEAM
Server IP : 2a02:4780:3:1493:0:3736:a38e:7  /  Your IP : 216.73.216.112
Web Server : LiteSpeed
System : Linux sg-nme-web1393.main-hosting.eu 4.18.0-553.40.1.lve.el8.x86_64 #1 SMP Wed Feb 12 18:54:57 UTC 2025 x86_64
User : u926327694 ( 926327694)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : OFF  |  Python : OFF
Directory (0755) :  /home/u926327694/domains/smsoft.in/public_html/api/../smart/../help2/../api/

[  Home  ][  C0mmand  ][  Upload File  ]

Current File : /home/u926327694/domains/smsoft.in/public_html/api/../smart/../help2/../api/Att_Teacher2.php
<?php
if(isset($_REQUEST['att_data']) && isset($_REQUEST['URL']) && isset($_REQUEST['present_sms']) && isset($_REQUEST['absent_sms']) && isset($_REQUEST['present_notification']) && isset($_REQUEST['absent_notification']) && isset($_REQUEST['Subject'])){
	require_once("dbFunctions.php");
	$url = $_REQUEST['URL'];
	 $obj=new dbFunctions($url,"StudMgmt");
	$arra=json_decode($_REQUEST['att_data'],true);
	
	$subject=$_REQUEST['Subject'];
	$present_sms=$_REQUEST['present_sms'];
	$absent_sms=$_REQUEST['absent_sms'];
	$present_notification=$_REQUEST['present_notification'];
	$absent_notification=$_REQUEST['absent_notification'];
	$today=date('Y-m-d');
	$date=date('d');
	$month=date('m');
	$year=date('Y');
	
	for($i=0;$i<sizeof($arra);$i++){
     if($arra[$i]['Status'] == 'P'){
	        $status="PRESENT";
	    }else if($arra[$i]['Status'] == 'A'){
	        $status="ABSENT";
	    }
	        $data= $obj->getStudent($arra[$i]['S_id']);
	        $obj->setAttendance($arra[$i]['S_id'],$data['Class'],$data['Division'],$subject,$data['Roll_number'],$data['Name'],$data['Sex'],$data['Communication_number'],
	                            $today,$status,$date,$month,$year,$data['Nature_Student'],$present_sms,$absent_sms,$present_notification,$absent_notification,$url,$data['Physical_challenge_percent']);
	    }
	        $response['Success']="true";
            $response['Message']="Attendance Taken Successfully";
            echo json_encode($response);
}else
{
	 $response['Success']="false";
	//$response['Data']="";
	$response['Message']="Fields Cannot be Blank";
	echo json_encode($response);
}
?>


MMCT - 2023