function addTableRow($intPropID, $arPropInfo)
    {
        return '<tr id="hlbl_property_tr_' . $intPropID . '">
					<td style="vertical-align: top;"><div style="background: url(/bitrix/panel/main/images/bx-admin-sprite-small-1.png) no-repeat 6px -2446px; display: inline-block; cursor: pointer; height: 23px; margin:0px 0px 0 0; opacity: 0.7; vertical-align: middle;	width: 23px;" onClick="this.parentNode.parentNode.style.display = \'none\'; BX(\'PROPERTY_VALUES_DELETE_' . $intPropID . '\').value = \'Y\'"></div></td>
					<td style="vertical-align: top;">' . addTableNameCell($intPropID, $arPropInfo) . addTableIdCell($intPropID, $arPropInfo) . addTableDelField($intPropID, $arPropInfo) . '</td>
					<td style="vertical-align: top;">' . addTableSortCell($intPropID, $arPropInfo) . '</td>
					<td style="vertical-align: top; text-align:center">' . addTableXmlIDCell($intPropID, $arPropInfo) . '</td>
					<td style="vertical-align: top;">' . addTableFileCell($intPropID, $arPropInfo) . '</td>
					<td style="vertical-align: top; text-align:center">' . addTableLinkCell($intPropID, $arPropInfo) . '</td>
					<td style="vertical-align: top; text-align:center">' . addTableDefCell($intPropID, $arPropInfo) . '</td>
					<td style="vertical-align: top; text-align:center">' . addTableDescriptionCell($intPropID, $arPropInfo) . '</td>
					<td style="vertical-align: top; text-align:center">' . addTableFullDescriptionCell($intPropID, $arPropInfo) . '</td>
				</tr>
				';
    }
 function addTableRow($intPropID, $arPropInfo, $fields, $json = false)
 {
     if (empty($fields)) {
         return '';
     }
     if ($json) {
         $result = array();
         $result[] = array('style' => array('verticalAlign' => 'top'), 'html' => addTableDelField($intPropID) . addTableIdCell($intPropID, $arPropInfo));
         if (isset($fields['UF_NAME'])) {
             $result[] = array('style' => array('verticalAlign' => 'top'), 'html' => addTableNameCell($intPropID, $arPropInfo));
         }
         if (isset($fields['UF_SORT'])) {
             $result[] = array('style' => array('verticalAlign' => 'top'), 'html' => addTableSortCell($intPropID, $arPropInfo));
         }
         if (isset($fields['UF_XML_ID'])) {
             $result[] = array('style' => array('verticalAlign' => 'top'), 'html' => addTableXmlIDCell($intPropID, $arPropInfo));
         }
         if (isset($fields['UF_FILE'])) {
             $result[] = array('style' => array('verticalAlign' => 'top'), 'html' => addTableFileCell($intPropID, $arPropInfo));
         }
         if (isset($fields['UF_LINK'])) {
             $result[] = array('style' => array('verticalAlign' => 'top'), 'html' => addTableLinkCell($intPropID, $arPropInfo));
         }
         if (isset($fields['UF_DEF'])) {
             $result[] = array('style' => array('verticalAlign' => 'top', 'textAlign' => 'center'), 'html' => addTableDefCell($intPropID, $arPropInfo));
         }
         if (isset($fields['UF_DESCRIPTION'])) {
             $result[] = array('style' => array('verticalAlign' => 'top'), 'html' => addTableDescriptionCell($intPropID, $arPropInfo));
         }
         if (isset($fields['UF_FULL_DESCRIPTION'])) {
             $result[] = array('style' => array('verticalAlign' => 'top'), 'html' => addTableFullDescriptionCell($intPropID, $arPropInfo));
         }
     } else {
         $result = '<tr id="hlbl_property_tr_' . $intPropID . '">';
         $result .= '<td style="vertical-align: top;">' . addTableDelField($intPropID) . addTableIdCell($intPropID, $arPropInfo) . '</td>';
         if (isset($fields['UF_NAME'])) {
             $result .= '<td style="vertical-align: top;">' . addTableNameCell($intPropID, $arPropInfo) . '</td>';
         }
         if (isset($fields['UF_SORT'])) {
             $result .= '<td style="vertical-align: top;">' . addTableSortCell($intPropID, $arPropInfo) . '</td>';
         }
         if (isset($fields['UF_XML_ID'])) {
             $result .= '<td style="vertical-align: top;">' . addTableXmlIDCell($intPropID, $arPropInfo) . '</td>';
         }
         if (isset($fields['UF_FILE'])) {
             $result .= '<td style="vertical-align: top;">' . addTableFileCell($intPropID, $arPropInfo) . '</td>';
         }
         if (isset($fields['UF_LINK'])) {
             $result .= '<td style="vertical-align: top;">' . addTableLinkCell($intPropID, $arPropInfo) . '</td>';
         }
         if (isset($fields['UF_DEF'])) {
             $result .= '<td style="vertical-align: top; text-align:center;">' . addTableDefCell($intPropID, $arPropInfo) . '</td>';
         }
         if (isset($fields['UF_DESCRIPTION'])) {
             $result .= '<td style="vertical-align: top;">' . addTableDescriptionCell($intPropID, $arPropInfo) . '</td>';
         }
         if (isset($fields['UF_FULL_DESCRIPTION'])) {
             $result .= '<td style="vertical-align: top;">' . addTableFullDescriptionCell($intPropID, $arPropInfo) . '</td>';
         }
         $result .= '</tr>';
     }
     return $result;
 }