Subversion Repositories wpShopGermany4

Rev

Rev 5896 | Rev 5934 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5896 Rev 5911
Line 13... Line 13...
13
    <thead>
13
    <thead>
14
        <tr>
14
        <tr>
15
            <th class="wpsg_mod_export_col_name"><?php echo __('Spaltenname', 'wpsg'); ?></th>
15
            <th class="wpsg_mod_export_col_name"><?php echo __('Spaltenname', 'wpsg'); ?></th>
16
            <th class="wpsg_mod_export_col_value"><?php echo __('Wert', 'wpsg'); ?></th>
16
            <th class="wpsg_mod_export_col_value"><?php echo __('Wert', 'wpsg'); ?></th>
17
            <th class="wpsg_mod_export_col_format"><?php echo __('Format', 'wpsg'); ?></th>
17
            <th class="wpsg_mod_export_col_format"><?php echo __('Format', 'wpsg'); ?></th>
-
 
18
            
-
 
19
            <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>            
-
 
20
            <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>
-
 
21
            
18
            <th class="wpsg_mod_export_col_remove">
22
            <th class="wpsg_mod_export_col_remove">
19
                
23
                
20
                <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>
24
                <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>
21
                
25
                
22
            </th>
26
            </th>
Line 52... Line 56...
52
            ?></div></td>
56
            ?></div></td>
53
            <td class="wpsg_mod_export_col_format">
57
            <td class="wpsg_mod_export_col_format">
54
                
58
                
55
                <div class="wpsg_editable" id="field_format_<?php echo $f_id; ?>"><?php echo $this->view['arFieldFormats'][$f['format']]; ?></div>
59
                <div class="wpsg_editable" id="field_format_<?php echo $f_id; ?>"><?php echo $this->view['arFieldFormats'][$f['format']]; ?></div>
56
            
60
            
-
 
61
            </td> 
-
 
62
            
-
 
63
            <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; ?>">
-
 
64
                
-
 
65
                <input type="checkbox" onchange="wpsg_mod_export_setAtt(this, <?php echo $f['id']; ?>);" value="1" <?php echo ((wpsg_isSizedInt($f['xml_att']))?'checked="checked"':''); ?> />
-
 
66
                                
57
            </td>
67
            </td>
-
 
68
            <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>
-
 
69
                        
58
            <td>
70
            <td>
59
                
71
                
60
                <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>
72
                <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>
61
                               
73
                               
62
            </td>
74
            </td>
63
            
75
            
64
        </tr>
76
        </tr>
65
        <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'); ?>">
77
        <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'); ?>">
66
            <td class="wpsg_mod_export_col_format_user" colspan="3">
78
            <td class="wpsg_mod_export_col_format_user" colspan="4">
67
            
79
            
68
                <?php echo __('Format', 'wpsg'); ?>:
80
                <?php echo __('Format', 'wpsg'); ?>:
69
                
81
                
70
                <div class="wpsg_editable" id="field_userformat_<?php echo $f_id; ?>"><?php echo wpsg_hspc(wpsg_getStr($f['userformat'])); ?></div>
82
                <div class="wpsg_editable" id="field_userformat_<?php echo $f_id; ?>"><?php echo wpsg_hspc(wpsg_getStr($f['userformat'])); ?></div>
71
            
83
            
Line 85... Line 97...
85
                            'data': '<?php echo json_encode($this->view['fields']); ?>'                            
97
                            'data': '<?php echo json_encode($this->view['fields']); ?>'                            
86
                        } );
98
                        } );
87
                        
99
                        
88
                        jQuery('#field_format_<?php echo $f_id; ?>').wspg_editable('<?php echo $inlineEdit_url; ?>', {
100
                        jQuery('#field_format_<?php echo $f_id; ?>').wspg_editable('<?php echo $inlineEdit_url; ?>', {
89
                            'type': 'select',
101
                            'type': 'select',
90
                            'data': <?php echo json_encode($this->view['arFieldFormats']); ?>,
102
                            'data': <?php echo wpsg_prepare_for_inlineEdit($this->view['arFieldFormats']); ?>,
91
                            'callback': function(response, newValue) {
103
                            'callback': function(response, newValue) {
92
                                
104
                                
93
                                if (newValue === "700") jQuery('#userformatrow_<?php echo $f_id; ?>').show();
105
                                if (newValue === "700") jQuery('#userformatrow_<?php echo $f_id; ?>').show();
94
                                else jQuery('#userformatrow_<?php echo $f_id; ?>').hide();
106
                                else jQuery('#userformatrow_<?php echo $f_id; ?>').hide();
95
                                
107
                                
Line 108... Line 120...
108
    <?php } ?>
120
    <?php } ?>
109
 
121
 
110
</table>
122
</table>
111
 
123
 
112
<script type="text/javascript">/* <![CDATA[ */
124
<script type="text/javascript">/* <![CDATA[ */
113
 
125
    
114
    wpsg_ajaxBind();
126
    wpsg_ajaxBind();
115
 
127
 
116
    jQuery("#wpsg_mod_export_fieldtable").sortable( { 
128
    jQuery("#wpsg_mod_export_fieldtable").sortable( { 
117
        helper: wpsg_Tablefix,
129
        helper: wpsg_Tablefix,
118
        items: 'tbody',
130
        items: 'tbody',