Subversion Repositories wpShopGermany4

Rev

Rev 7787 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7787 Rev 8131
Line 34... Line 34...
34
            <td class="wpsg_mod_export_col">
34
            <td class="wpsg_mod_export_col">
35
                <div class="name wpsg_editable" id="field_name_<?php echo $f_id; ?>"><?php echo $f['name']; ?></div>
35
                <div class="name wpsg_editable" id="field_name_<?php echo $f_id; ?>"><?php echo $f['name']; ?></div>
36
            </td>
36
            </td>
37
            <td class="wpsg_mod_export_col_field"><div class="wpsg_editable" id="field_typ_<?php echo $f_id; ?>"><?php
37
            <td class="wpsg_mod_export_col_field"><div class="wpsg_editable" id="field_typ_<?php echo $f_id; ?>"><?php
38
    
38
    
39
                foreach ($this->view['fields'] as $fieldgroup)
39
                foreach ($this->view['fields'] as $fieldgroup) {
40
                {
-
 
41
    
40
    
42
                    foreach ($fieldgroup['fields'] as $field_key => $field)
41
                    foreach ($fieldgroup['fields'] as $field_key => $field) {
43
                    {
-
 
44
    
42
    
45
                        if ($field_key == $f['value_key'])
43
                        if ($field_key == $f['value_key']) {
46
                        {
-
 
47
                            
44
                            
48
                            echo $field;
45
                            echo $field;
49
                            
46
                            
50
                        }
47
                        }
51
    
48
    
Line 72... Line 69...
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>
69
                <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>
73
                               
70
                               
74
            </td>
71
            </td>
75
            
72
            
76
        </tr>
73
        </tr>
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'); ?>">
74
        <tr id="staticformat_<?php echo $f_id; ?>" style="<?php echo (($f['value_key'] != 'general_static')?'display:none;':''); ?>" class="wpsg_mod_export_row2 wpsg_tablerow wpsg_mod_export_fieldrow_<?php echo $f_id; ?> <?php echo (($i % 2 == 0)?'odd':'even'); ?>">
78
            <td class="wpsg_mod_export_col_format_user" colspan="4">
75
            <td class="wpsg_mod_export_col_format_user" colspan="4">
-
 
76
                
-
 
77
                <?php echo __('Statischer Wert', 'wpsg'); ?>:
-
 
78
                
-
 
79
                <div class="wpsg_editable" id="field_static_<?php echo $f_id; ?>"><?php echo wpsg_hspc(wpsg_getStr($f['static'])); ?></div>
-
 
80
                
-
 
81
            </td>
-
 
82
            <td></td>
-
 
83
        </tr>
-
 
84
        <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'); ?>">
-
 
85
            <td class="wpsg_mod_export_col_format_user" colspan="4">                
79
            
86
            
80
                <?php echo __('Format', 'wpsg'); ?>:
87
                <?php echo __('Format', 'wpsg'); ?>:
81
                
88
                
82
                <div class="wpsg_editable" id="field_userformat_<?php echo $f_id; ?>"><?php echo wpsg_hspc(wpsg_getStr($f['userformat'])); ?></div>
89
                <div class="wpsg_editable" id="field_userformat_<?php echo $f_id; ?>"><?php echo wpsg_hspc(wpsg_getStr($f['userformat'])); ?></div>
83
            
90
            
Line 92... Line 99...
92
                        
99
                        
93
                        jQuery('#field_name_<?php echo $f_id; ?>').wpsg_editable('<?php echo $inlineEdit_url; ?>', { } );
100
                        jQuery('#field_name_<?php echo $f_id; ?>').wpsg_editable('<?php echo $inlineEdit_url; ?>', { } );
94
                        
101
                        
95
                        jQuery('#field_typ_<?php echo $f_id; ?>').wpsg_editable('<?php echo $inlineEdit_url; ?>', { 
102
                        jQuery('#field_typ_<?php echo $f_id; ?>').wpsg_editable('<?php echo $inlineEdit_url; ?>', { 
96
                            'type': 'multiarray',
103
                            'type': 'multiarray',
97
                            'data': '<?php echo addslashes(json_encode($this->view['fields'], JSON_UNESCAPED_SLASHES)); ?>'                            
104
                            'data': '<?php echo addslashes(json_encode($this->view['fields'], JSON_UNESCAPED_SLASHES)); ?>',
-
 
105
                            'callback': function(response, newValue) {
-
 
106
								
-
 
107
								if (newValue === 'general_static') jQuery('#staticformat_<?php echo $f_id; ?>').show();
-
 
108
								else jQuery('#staticformat_<?php echo $f_id; ?>').hide();
-
 
109
								
-
 
110
                            }
98
                        } );
111
                        } );
99
                        
112
                        
100
                        jQuery('#field_format_<?php echo $f_id; ?>').wpsg_editable('<?php echo $inlineEdit_url; ?>', {
113
                        jQuery('#field_format_<?php echo $f_id; ?>').wpsg_editable('<?php echo $inlineEdit_url; ?>', {
101
                            'type': 'select',
114
                            'type': 'select',
102
                            'data': <?php echo wpsg_prepare_for_inlineEdit($this->view['arFieldFormats']); ?>,
115
                            'data': <?php echo wpsg_prepare_for_inlineEdit($this->view['arFieldFormats']); ?>,
Line 108... Line 121...
108
                            }
121
                            }
109
                        } );
122
                        } );
110
                        
123
                        
111
                        jQuery('#field_userformat_<?php echo $f_id; ?>').wpsg_editable('<?php echo $inlineEdit_url; ?>', { } );
124
                        jQuery('#field_userformat_<?php echo $f_id; ?>').wpsg_editable('<?php echo $inlineEdit_url; ?>', { } );
112
                        
125
                        
-
 
126
						jQuery('#field_static_<?php echo $f_id; ?>').wpsg_editable('<?php echo $inlineEdit_url; ?>', { } );
-
 
127
						
113
                    } );
128
                    } );
114
                
129
                
115
                /* ]]> */</script>
130
                /* ]]> */</script>
116
                
131
                
117
            </td>
132
            </td>
Line 147... Line 162...
147
            
162
            
148
        }} 
163
        }} 
149
    ).disableSelection();
164
    ).disableSelection();
150
    
165
    
151
/* ]]> */</script>
166
/* ]]> */</script>
-
 
167
 
-
 
168
<style>
-
 
169
 
-
 
170
    .wpsg_mod_export_col_format { min-width:100px; }
-
 
171
    
-
 
172
</style>
152
173