Advertisement
Guest User

Untitled

a guest
Dec 22nd, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.87 KB | None | 0 0
  1. <?php
  2. public function GetAdditionalFieldTemplate($live = true) {
  3.         $return = '';
  4.         $additionalFields = $this->pm->GetDealLineFormFieldsValues($this->deal_line_id);
  5.         if(!empty($additionalFields['SelectedAdditionalFields'])) {
  6.             foreach(json_decode($additionalFields['SelectedAdditionalFields']) as $label => $fldID) {
  7.                 if(in_array(strtolower($label),CMODA_AmericanColonial_Soap::$skipProperties)) {
  8.                     continue;
  9.                 }
  10.                 $return .= sprintf('<tr>
  11.                    <td class="item-label">
  12.                    %s
  13.                    </td>
  14.                    <td class="item-data">
  15.                     #|#pfld_%s#|#
  16.                    </td>
  17.                </tr>', $label, $fldID);
  18.             }
  19.         } else {
  20.             return '';
  21.         }
  22.  
  23.         return $return;
  24.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement