$data .= "\"" . $dejson[$ind]->{'mobile'} . "\",";
         $data .= "\"" . $dejson[$ind]->{'state'} . "\"";
         $data .= "],";
     }
     $data = chop($data, ",");
     $data .= "]}";
     echo $data;
 } else {
     if ($action == 'getUserDetailsDesignationFilter') {
         $acc = new UserAccounts();
         $json = $acc->adminGetUserDetailsDesignation();
         echo $json;
     } else {
         if ($action == 'getUserDetailsStateFilter') {
             $acc = new UserAccounts();
             $json = $acc->adminGetUserDetailsState();
             echo $json;
         } else {
             if ($action == 'sendForgotPassword') {
                 $acc = new UserAccounts();
                 $util = new Utils();
                 $email = $_GET["email"];
                 $newpwd = $util->randomNumber(10);
                 $json = $acc->updatePassword($email, md5($newpwd));
                 $dejson = json_decode($json);
                 $username = $dejson->{'username'};
                 $msging = new EmailMsg();
                 $emailMsg = $msging->forgotPassword($username, $email, $password);
                 mail($email, "Samarthya Online learning Portal ::: Forgot Password", $emailMsg);
             } else {
                 if ($action == 'GetUserReports') {