$db = JFactory::getDbo();
		$uri =JURI::getInstance();
		$url= $uri->root();
$post=JRequest::get('post');
//$post['procat_id']=1;
		
		$imaga_path=$url.'components/com_naderapp/assets/procedureheader_image/';
		
	$query='SELECT * FROM #__naderapp_procedurecat WHERE published=1 AND id='.$post['procat_id'];
		$db->setQuery($query); 
		$parents=$db->loadObject();


		
		
		$procedure=array();
		
	if($parents)
	{	
		
		
			
			$procedurearray=array();
				
			$procedurearray['id']=$parents->id;
			$procedurearray['imagename']=$parents->procedurecatname;
			$procedurearray['image']=$imaga_path.$parents->header_image;
                       $procedurearray['desc']=$parents->desc;
			
			$procedure[]=$procedurearray;
		
		
		
		
		 $arr = array('success' => '1','proceduredetail' => $procedure);
   		 echo json_encode($arr);exit;
		
	}
	else
	{
		
		  $arr = array('success' => '0','proceduredetail' => 'No Record Found');
 		  echo json_encode($arr);exit;
		
	}