= $timestamp) { $diff = time()- $timestamp; for($i = 0; $diff >= $length[$i] && $i < count($length)-1; $i++) { $diff = $diff / $length[$i]; } $diff = round($diff); return $diff . " " . $strTime[$i] . "(s) ago "; } } $Uid="TTEO208S99ERCL"; $email="gene@nexdigm.com"; $SecretKey="a5253881c671b5dee0aaa45d78f4a2d6"; $unix_time_stamp=time(); //$unix_time_stamp="1592810422"; //$data="integrations1@yopmail.com21680cfc06218bd911b7779a1e646fda1592810422"; $data=$email.$SecretKey.$unix_time_stamp; $hashed = hash('sha512', $data); $url="https://gene.darwinbox.in/JobsApiv2/Joblist"; $ch = curl_init( $url ); $payload = json_encode( array('Uid'=> $Uid, 'hash'=>$hashed, 'timestamp'=> $unix_time_stamp ) ); curl_setopt( $ch, CURLOPT_POSTFIELDS, $payload ); curl_setopt( $ch, CURLOPT_HTTPHEADER, array('Content-Type:application/json')); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true ); $result = curl_exec($ch); curl_close($ch); $data2 = json_decode($result, TRUE); //echo '
';
//print_r($data2);
/*echo '

'; echo "Post data : "; print_r($payload); echo '

'; echo "Result=>"; print_r($data2); echo '
';*/ //exit; $my_array=array(); foreach ($data2 as $key => $item) { $job_id=""; $job_code=""; $group_company=""; $department=""; $business_unit=""; $location=""; $location_city=""; $title=""; $employee_type=""; $job_updated_timestamp=""; $is_group_company1 = false; $post_on_carrers_page1 = false; $myString=""; $search_found=false; $location_city_arr=array(); $location_arr=array(); foreach ($item as $key2 => $item2) { if($key2=="location_city") { $location_city_arr = explode(',', $item2); $location_city_arr=array_unique($location_city_arr); $location_city = implode(',', $location_city_arr); } $temp_loc_array= array(); if($key2=="location") { $location_arr = explode(',', $item2); if (!empty($location_arr)) { foreach ($location_arr as $location_item) { if (strpos($location_item, '(') !== false && strpos($location_item, ')') !== false) { $pos=strpos($location_item, "("); $variable = substr($location_item, 0, $pos); array_push($temp_loc_array,$variable); // array_push($temp_loc_array,"
"); }else { array_push($temp_loc_array,$location_item); } } } if (!empty($temp_loc_array)) { $location = implode(',', $temp_loc_array); } //$location_city = implode(',', $location_city_arr); } } foreach ($item as $key2 => $item2) { //echo $key2; if($key2=="job_id") { $job_id= $item2; } if($key2=="job_code") { $job_code= $item2; } if($key2=="group_company") { $group_company= $item2; if($item2=="Sudit K Parekh & Co. LLP") { $is_group_company1 = true; $group_company = $item2; } } if($key2=="post_on_carrers_page") { if($item2=="1") { $post_on_carrers_page1 = true; } } if($key2=="department") { $department= $item2; } if($key2=="business_unit") { $business_unit= $item2; } if($key2=="location") { // $location= $item2; } /*if($key2=="location_city") { $location_city= $item2; }*/ if($key2=="title") { $title= $item2; } if($key2=="employee_type") { $employee_type= $item2; } if($key2=="job_created_timestamp") { $job_updated_timestamp= $item2; } } if($is_group_company1 && $post_on_carrers_page1) { $my_array[] =array("job_id"=> $job_id, "job_code" => $job_code, "group_company" => $group_company, "department" => $department, "business_unit" => $business_unit, "location" => $location, "location_city" => $location_city, "title" => $title, "employee_type" => $employee_type, "job_created_timestamp" =>$job_updated_timestamp); } } $data2=$my_array; ?> Sudit K. Parekh & Co. LLP, Chartered Accountants, Mumbai, India
";print_r($data2); foreach ($data2 as $key => $row) { $title[$key] = $row['title']; //print_r($row); } //array_multisort($title, SORT_DESC, $data2); array_multisort($title, SORT_ASC, $data2); ?>

Join Us

"; ?>
Upload your resume for future openings Upload
$item) { $title=""; $location_city=""; $job_code=""; $location=""; $job_updated_timestamp=""; $job_id=""; $group_company=""; $department=""; $employee_type=""; $business_unit=""; $group_company=""; $is_group_company = false; $location_city_arr= array(); //get city uniue foreach ($item as $key2 => $item2) { if($key2=="location_city") { $location_city_arr = explode(',', $item2); $location_city_arr=array_unique($location_city_arr); $location_city = implode(',', $location_city_arr); } } foreach ($item as $key2 => $item2) { // echo $key2; if($key2=="title") $title= $item2; if($key2=="job_id") $job_id= $item2; if($key2=="location") $location= $item2; //if($key2=="location_city") //$location_city= $item2; if($key2=="job_code") $job_code= $item2; if($key2=="group_company") $group_company= $item2; if($key2=="job_created_timestamp") { // $job_updated_timestamp= $item2; $job_updated_timestamp= timeago($item2); } if($key2=="department") $department= $item2; if($key2=="employee_type") $employee_type= $item2; if($key2=="business_unit") $business_unit= $item2; if($key2=="group_company") { //echo $item2; if($item2=="Sudit K Parekh & Co. LLP") { $is_group_company = true; $group_company = $item2; } } } // exit; $details="https://www.suditkparekh.com/join-us-detail.html?id=".$job_id; $apply="https://gene.darwinbox.in/ms/candidate/careers/".$job_id."?apply=1"; if($is_group_company) { ?>
Location City
Employee Type
Posted
"; $i++; if($i>4) $i=1; } ?>

Office Location :

Department :