summaryrefslogtreecommitdiff
path: root/views/mods/mod_export/fields.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-11-16 10:47:54 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-11-16 10:47:54 +0000
commit4e788242bdb85682ba13dcb0caf2d72348479cf4 (patch)
tree92676d224610d7d27d25b0d030fb183f662b4b8d /views/mods/mod_export/fields.phtml
parent60862ddf25ead18d565fbf5d5fc3129e0822106e (diff)
- Export Profil (FTP Speicherung / Cron ausführung / XML Erstellung)
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5911 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_export/fields.phtml')
-rw-r--r--views/mods/mod_export/fields.phtml18
1 files changed, 15 insertions, 3 deletions
diff --git a/views/mods/mod_export/fields.phtml b/views/mods/mod_export/fields.phtml
index abb1034..08f19f7 100644
--- a/views/mods/mod_export/fields.phtml
+++ b/views/mods/mod_export/fields.phtml
@@ -15,6 +15,10 @@
<th class="wpsg_mod_export_col_name"><?php echo __('Spaltenname', 'wpsg'); ?></th>
<th class="wpsg_mod_export_col_value"><?php echo __('Wert', 'wpsg'); ?></th>
<th class="wpsg_mod_export_col_format"><?php echo __('Format', 'wpsg'); ?></th>
+
+ <th style="display:<?php echo (($this->view['profil']['format'] == wpsg_mod_export::FORMAT_XML)?'table-cell':'none'); ?>;" title="<?php echo __('Feld im XML als Attribut exportieren', 'wpsg'); ?>" class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_XML; ?> wpsg_mod_export_col_att"><?php echo __('Att'); ?></th>
+ <th style="display:<?php echo (($this->view['profil']['format'] != wpsg_mod_export::FORMAT_XML)?'table-cell; padding:0px':'none'); ?>;" class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_CSV; ?>">&nbsp;</th>
+
<th class="wpsg_mod_export_col_remove">
<a style="float:right;" onclick="return wpsg_mod_export_addField(<?php echo $this->view['profil']['id']; ?>);" title="<?php echo __('Neues Feld einfügen', 'wpsg'); ?>" href="#" class="glyphicon glyphicon-plus"></a>
@@ -54,7 +58,15 @@
<div class="wpsg_editable" id="field_format_<?php echo $f_id; ?>"><?php echo $this->view['arFieldFormats'][$f['format']]; ?></div>
+ </td>
+
+ <td style="display:<?php echo (($this->view['profil']['format'] == wpsg_mod_export::FORMAT_XML)?'table-cell':'none'); ?>;" class="wpsg_mod_export_col_att wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_XML; ?>">
+
+ <input type="checkbox" onchange="wpsg_mod_export_setAtt(this, <?php echo $f['id']; ?>);" value="1" <?php echo ((wpsg_isSizedInt($f['xml_att']))?'checked="checked"':''); ?> />
+
</td>
+ <td style="display:<?php echo (($this->view['profil']['format'] != wpsg_mod_export::FORMAT_XML)?'table-cell; padding:0px':'none'); ?>;" class="wpsg_mod_export_format wpsg_mod_export_format_<?php echo wpsg_mod_export::FORMAT_CSV; ?>">&nbsp;</td>
+
<td>
<a style="float:right;" onclick="return wpsg_mod_export_removeField(<?php echo $f_id; ?>);" title="<?php echo __('Feld löschen', 'wpsg'); ?>" href="#" class="glyphicon glyphicon-trash"></a>
@@ -63,7 +75,7 @@
</tr>
<tr id="userformatrow_<?php echo $f_id; ?>" style="<?php echo (($f['format'] != 700)?'display:none;':''); ?>" class="wpsg_mod_export_row2 wpsg_tablerow wpsg_mod_export_fieldrow_<?php echo $f_id; ?> <?php echo (($i % 2 == 0)?'odd':'even'); ?>">
- <td class="wpsg_mod_export_col_format_user" colspan="3">
+ <td class="wpsg_mod_export_col_format_user" colspan="4">
<?php echo __('Format', 'wpsg'); ?>:
@@ -87,7 +99,7 @@
jQuery('#field_format_<?php echo $f_id; ?>').wspg_editable('<?php echo $inlineEdit_url; ?>', {
'type': 'select',
- 'data': <?php echo json_encode($this->view['arFieldFormats']); ?>,
+ 'data': <?php echo wpsg_prepare_for_inlineEdit($this->view['arFieldFormats']); ?>,
'callback': function(response, newValue) {
if (newValue === "700") jQuery('#userformatrow_<?php echo $f_id; ?>').show();
@@ -110,7 +122,7 @@
</table>
<script type="text/javascript">/* <![CDATA[ */
-
+
wpsg_ajaxBind();
jQuery("#wpsg_mod_export_fieldtable").sortable( {