private function handleAJAX_contactDetails($request_data)
 {
     $id = $request_data['contact_id'];
     $contact = UserContact::getUserContact($id);
     if (!empty($contact) && is_object($contact)) {
         $html = null;
         $name = $contact->get_contact_name();
         $email = $contact->get_contact_email();
         $contact_extra = unserialize($contact->get_contact_extra());
         if (!empty($contact_extra['general'])) {
             if (!empty($contact_extra['general']['dob'])) {
                 $bday_info = date_parse($contact_extra['general']['dob']);
                 $bday = date("F dS", mktime(0, 0, 0, $bday_info['month'], $bday_info['day'], 0));
                 $contact_extra['general']['dob'] = $bday;
             }
             $html .= "<h4 style=\"margin: 0px;\">" . __("General") . "</h4>";
             $li_contents = $this->buildHtmlList($contact_extra['general']);
             $html .= xHtml::ulistTag($li_contents, array("style" => "list-style-type: none; display: inline;"));
         }
         if (!empty($contact_extra['personal'])) {
             if (!empty($contact_extra['personal']['picture'])) {
                 $img_url = $this->normalizeImgUrl($contact_extra['personal']['picture']);
                 $img_url = PA::$url . '/resize_img.php?src=' . $img_url . '&height=98&width=98';
                 $contact_extra['personal']['picture'] = "<img src=\"{$img_url}\" alt=\"picture\" title=\"picture\" />";
             }
             $html .= "<h4 style=\"margin: 0px;\">" . __("Personal") . "</h4>";
             $li_contents = $this->buildHtmlList($contact_extra['personal']);
             $html .= xHtml::ulistTag($li_contents, array("style" => "list-style-type: none; display: inline;"));
         }
         if (!empty($contact_extra['professional'])) {
             $html .= "<h4 style=\"margin: 0px;\">" . __("Professional") . "</h4>";
             $li_contents = $this->buildHtmlList($contact_extra['professional']);
             $html .= xHtml::ulistTag($li_contents, array("style" => "list-style-type: none; display: inline;"));
         }
         if (!empty($contact_extra['extra'])) {
             if (!empty($contact_extra['extra']['business_photo'])) {
                 $img_url = $this->normalizeImgUrl($contact_extra['extra']['business_photo']);
                 $img_url = PA::$url . '/resize_img.php?src=' . $img_url . '&height=98&width=98';
                 $contact_extra['extra']['business_photo'] = "<img src=\"{$img_url}\" alt=\"picture\" title=\"picture\" />";
             }
             $html .= "<h4 style=\"margin: 0px;\">" . __("Other") . "</h4>";
             $li_contents = $this->buildHtmlList($contact_extra['extra']);
             $html .= xHtml::ulistTag($li_contents, array("style" => "list-style-type: none; display: inline;"));
         }
         echo $html;
     } else {
         echo __("No details.");
     }
     exit;
 }