<td><input type="text" name="jform[import_fields][_selected_name][]" value="<?php echo $import_fields['_selected_name'][$rows]; ?> " readonly="readonly" size="35" /></td> <td><input type="text" name="jform[import_fields][_default_value][]" value="<?php echo $import_fields['_default_value'][$rows]; ?> " size="75"/></td> <td><?php echo CsviHelper::getYesNo('jform[import_fields][_process_field][' . $rows . ']', $import_fields['_process_field'][$rows], '', '_process_field' . $id); ?> <td><?php if (!array_key_exists('_combine_field', $import_fields)) { $import_fields['_combine_field'] = array(); } echo CsviHelper::getYesNo('jform[import_fields][_combine_field][' . $rows . ']', $import_fields['_combine_field'][$rows], '', '_combine_field' . $id); ?> </td> <td><?php if (!array_key_exists('_replace_field', $import_fields)) { $import_fields['_replace_field'] = array(); } if (!isset($import_fields['_replace_field'][$rows])) { $import_fields['_replace_field'][$rows] = ''; } echo JHtml::_('select.genericlist', $this->replacements, 'jform[import_fields][_replace_field][' . $rows . ']', '', 'value', 'text', $import_fields['_replace_field'][$rows], '_replace_field_' . $id); ?> </td> <td class="center"><?php echo JHtml::_('link', 'index.php?option=com_csvi&view=import', JHtml::_('image', JURI::root() . '/administrator/components/com_csvi/assets/images/csvi_delete_32.png', 'width="20" height="20" border="0" alt="' . JText::_('COM_CSVI_DELETE') . '"'), 'onclick="jQuery(this).parents(\'tr\').remove(); jQuery(\'#fieldslist\').tableDnD(); return false;"'); ?>
<td><?php echo JHtml::_('select.genericlist', $this->templatefields, '_field_name', null, 'value', 'text', null, '_field_name'); ?> </td> <!-- Default value --> <td id="newfield_defaultvalue"><input type="text" name="_default_value" id="_default_value" value="" size="55" /> </td> <!-- Process field --> <td id="newfield_processfield"><?php echo CsviHelper::getYesNo('_process_field', '1', '', '_process_field_default'); ?> </td> <!-- Combine field --> <td id="newfield_combinefield"><?php echo CsviHelper::getYesNo('_combine_field', '0', '', '_combine_field_default'); ?> </td> <!-- Replacement field --> <td id="newfield_replacementfield"><?php echo JHtml::_('select.genericlist', $this->replacements, '_replace_field[]', 'multiple="true"', 'value', 'text', '', '_replace_field_default'); ?> </td> </tr> </tbody> </table> <br /> <div id="toolbar" class="toolbar-list"> <ul> <li id="toolbar-quickadd" class="button"><?php echo JHtml::_('link', '#', '<span class="icon-32-csvi_add_32 quickadd-button" id="quickadd-button"> </span>' . JText::_('COM_CSVI_QUICKADD'));
<td id="newfield_defaultvalue"><input type="text" name="_default_value" id="_default_value" value="" size="55" /> </td> <!-- Process field --> <td id="newfield_processfield"><?php echo CsviHelper::getYesNo('_process_field', '1', '', '_process_field_default'); ?> </td> <!-- Combine field --> <td id="newfield_combinefield"><?php echo CsviHelper::getYesNo('_combine_field', '0', '', '_combine_field_default'); ?> </td> <!-- Sort field --> <td id="newfield_sortfield"><?php echo CsviHelper::getYesNo('_sort_field', '0', '', '_sort_field_default'); ?> </td> <!-- Replacement field --> <td id="newfield_replacementfield"><?php echo JHtml::_('select.genericlist', $this->replacements, '_replace_field[]', 'multiple="true"', 'value', 'text', '', '_replace_field_default'); ?> </td> </tr> </tbody> </table> <br /> <div id="toolbar" class="toolbar-list"> <ul> <li id="toolbar-quickadd" class="button"><?php echo JHtml::_('link', '#', '<span class="icon-32-csvi_add_32 quickadd-button" id="quickadd-button"> </span>' . JText::_('COM_CSVI_QUICKADD'));
" size="75"/></td> <td><?php echo CsviHelper::getYesNo('jform[export_fields][_process_field][' . $rows . ']', $export_fields['_process_field'][$rows], '', '_process_field' . $id); ?> <td><?php if (!array_key_exists('_combine_field', $export_fields)) { $export_fields['_combine_field'] = array(); } echo CsviHelper::getYesNo('jform[export_fields][_combine_field][' . $rows . ']', $export_fields['_combine_field'][$rows], '', '_combine_field' . $id); ?> </td> <td><?php if (!array_key_exists('_sort_field', $export_fields)) { $export_fields['_sort_field'] = array(); } echo CsviHelper::getYesNo('jform[export_fields][_sort_field][' . $rows . ']', $export_fields['_sort_field'][$rows], '', '_sort_field' . $id); ?> </td> <td><?php if (!array_key_exists('_replace_field', $export_fields)) { $export_fields['_replace_field'] = array(); } if (!isset($export_fields['_replace_field'][$rows])) { $export_fields['_replace_field'][$rows] = ''; } echo JHtml::_('select.genericlist', $this->replacements, 'jform[export_fields][_replace_field][' . $rows . ']', '', 'value', 'text', $export_fields['_replace_field'][$rows], '_replace_field_' . $id); ?> </td> <td class="center"><?php echo JHtml::_('link', 'index.php?option=com_csvi&view=export', JHtml::_('image', JURI::root() . '/administrator/components/com_csvi/assets/images/csvi_delete_32.png', 'width="20" height="20" border="0" alt="' . JText::_('COM_CSVI_DELETE') . '"'), 'onclick="jQuery(this).parents(\'tr\').remove(); jQuery(\'#fieldslist\').tableDnD(); return false;"'); ?>