$titel = vmText::_('COM_VIRTUEMART_CUSTOM_INHERITED') . '</br>'; } } if (!empty($titel)) { $text = '<span style="white-space: nowrap;" class="hasTip" title="' . htmlentities(vmText::_('COM_VIRTUEMART_CUSTOMFLD_DIS_DER_TIP')) . '">d:' . VmHtml::checkbox('field[' . $i . '][disabler]', $customfield->disabler, $checkValue) . '</span> <span style="white-space: nowrap;" class="hasTip" title="' . htmlentities(vmText::_('COM_VIRTUEMART_DIS_DER_CUSTOMFLD_OVERR_DER_TIP')) . '">o:' . VmHtml::checkbox('field[' . $i . '][override]', $customfield->override, $checkValue) . '</span>'; } $tables['fields'] .= '<tr class="removable"> <td > <b>' . vmText::_($type) . '</b> ' . vmText::_($customfield->custom_title) . '</span><br/> ' . $titel . ' ' . $text . ' <span class="vmicon vmicon-16-' . $cartIcone . '"></span> <span class="vmicon vmicon-16-move"></span> <span class="vmicon vmicon-16-remove"></span> ' . VirtueMartModelCustomfields::setEditCustomHidden($customfield, $i) . '</td> <td ' . $colspan . '>' . $customfield->display . '</td> </tr>'; } $i++; } } $emptyTable = ' <tr> <td colspan="8">' . vmText::_('COM_VIRTUEMART_CUSTOM_NO_TYPES') . '</td> <tr>'; ?> <fieldset style="background-color:#F9F9F9;"> <legend><?php echo vmText::_('COM_VIRTUEMART_RELATED_CATEGORIES'); ?>
} } if (!empty($title)) { $text = '<span style="white-space: nowrap;" class="hasTip" title="' . htmlentities(vmText::_('COM_VIRTUEMART_CUSTOMFLD_DIS_DER_TIP')) . '">d:' . VmHtml::checkbox('field[' . $i . '][disabler]', $customfield->disabler, $checkValue) . '</span> <span style="white-space: nowrap;" class="hasTip" title="' . htmlentities(vmText::_('COM_VIRTUEMART_DIS_DER_CUSTOMFLD_OVERR_DER_TIP')) . '">o:' . VmHtml::checkbox('field[' . $i . '][override]', $customfield->override, $checkValue) . '</span>'; } $tables['fields'] .= '<tr class="removable"> <td > <b>' . vmText::_($type) . '</b> ' . vmText::_($customfield->custom_title) . '</span><br/> ' . $title . ' ' . $text . ' <span class="vmicon vmicon-16-' . $cartIcone . '"></span>'; if ($customfield->virtuemart_product_id == $this->product->virtuemart_product_id or $customfield->override != 0) { $tables['fields'] .= '<span class="vmicon vmicon-16-move"></span> <span class="vmicon vmicon-16-remove"></span>'; } $tables['fields'] .= VirtueMartModelCustomfields::setEditCustomHidden($customfield, $i) . '</td> <td ' . $colspan . '>' . $customfield->display . '</td> </tr>'; } $i++; } } $emptyTable = ' <tr> <td colspan="8">' . vmText::_('COM_VIRTUEMART_CUSTOM_NO_TYPES') . '</td> <tr>'; ?> <fieldset style="background-color:#F9F9F9;"> <legend><?php echo vmText::_('COM_VIRTUEMART_RELATED_CATEGORIES'); ?>
if ($customfield->override != 0) { $titel = vmText::sprintf('COM_VIRTUEMART_CUSTOM_OVERRIDE', $checkValue); } } else { if ($customfield->virtuemart_product_id == $this->product->product_parent_id) { $titel = vmText::_('COM_VIRTUEMART_CUSTOM_INHERITED') . '<br/>'; } } if (!empty($titel)) { $text = '<span style="white-space: nowrap;" > d:' . VmHtml::checkbox('field[' . $i . '][disabler]', $customfield->disabler, $checkValue) . ' o:' . VmHtml::checkbox('field[' . $i . '][override]</span>', $customfield->override, $checkValue); } $tables['fields'] .= '<tr class="removable"> <td><span >' . $titel . $text . '<br />' . vmText::_($customfield->custom_title) . '</span></td> <td>' . $customfield->display . '</td> <td> <span class="vmicon vmicon-16-' . $cartIcone . '"></span>' . vmText::_($this->fieldTypes[$customfield->field_type]) . VirtueMartModelCustomfields::setEditCustomHidden($customfield, $i) . '</td> <td><span class="vmicon vmicon-16-move"></span> <span class="vmicon vmicon-16-remove"></span>' . '</td> </tr>'; } $i++; } } $emptyTable = ' <tr> <td colspan="8">' . vmText::_('COM_VIRTUEMART_CUSTOM_NO_TYPES') . '</td> <tr>'; ?> <fieldset style="background-color:#F9F9F9;"> <legend><?php echo vmText::_('COM_VIRTUEMART_RELATED_CATEGORIES');
foreach ($product->customfields as $customRow) { ?> <?php if ($customRow->field_type == 'E') { ?> <fieldset class="removable"> <legend><?php echo JText::_($customRow->custom_title); ?> </legend> <span><?php echo $customRow->display . $customRow->custom_tip; ?> </span> <?php echo VirtueMartModelCustomfields::setEditCustomHidden($customRow, $i); ?> <span class="vmicon icon-nofloat vmicon-16-<?php echo $customRow->is_cart_attribute ? 'default' : 'default-off'; ?> "></span> <span class="vmicon vmicon-16-remove"></span> </fieldset> <?php } ?> <?php $i++; } ?> </div>
<td ><span class="vmicon vmicon-16-move"></span></td> </tr>'; /*$tables['fields'] .= ' <tr class="removable"> <td>'.JText::_($customfield->custom_title).'</td> <td colspan="3"><span>'.$customfield->display.$customfield->custom_tip.'</span>'. VirtueMartModelCustomfields::setEditCustomHidden($customfield, $i) .'</td><span class="vmicon icon-nofloat vmicon-16-'.$cartIcone.'"></span> <span class="vmicon vmicon-16-remove"></span> </tr>';*/ } else { $tables['fields'] .= '<tr class="removable"> <td>' . JText::_($customfield->custom_title) . '</td> <td>' . $customfield->custom_tip . '</td> <td>' . $customfield->display . '</td> <td>' . JText::_($this->fieldTypes[$customfield->field_type]) . VirtueMartModelCustomfields::setEditCustomHidden($customfield, $i) . '</td> <td> <span class="vmicon vmicon-16-' . $cartIcone . '"></span> </td> <td><span class="vmicon vmicon-16-remove"></span><input class="ordering" type="hidden" value="' . $customfield->ordering . '" name="field[' . $i . '][ordering]" /></td> <td ><span class="vmicon vmicon-16-move"></span></td> </tr>'; } $i++; } } $emptyTable = ' <tr> <td colspan="8">' . JText::_('COM_VIRTUEMART_CUSTOM_NO_TYPES') . '</td> <tr>'; ?>