Subversion Repositories wpShopGermany4

Rev

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

Rev 5997 Rev 6244
Line 97... Line 97...
97
        <?php echo wpsg_drawForm_TextStart(); ?>
97
        <?php echo wpsg_drawForm_TextStart(); ?>
98
        <span id="oc_typ_<?php echo $oc['id']; ?>"><?php
98
        <span id="oc_typ_<?php echo $oc['id']; ?>"><?php
99
 
99
 
100
            if ($oc['typ'] == '1') echo __('Jede Bestellung', 'wpsg');
100
            if ($oc['typ'] == '1') echo __('Jede Bestellung', 'wpsg');
101
            else if ($oc['typ'] == '2') echo __('Bestimmte Produkte', 'wpsg');
101
            else if ($oc['typ'] == '2') echo __('Bestimmte Produkte', 'wpsg');
-
 
102
            else if ($oc['typ'] == '3') echo __('Bestimmte Versandarten', 'wpsg');
102
            else echo __('Inaktiv', 'wpsg');
103
            else echo __('Inaktiv', 'wpsg');
103
 
104
 
104
        ?></span>
105
        ?></span>
105
        <?php echo wpsg_drawForm_TextEnd(__('Wirkungsbereich', 'wpsg')); ?>
106
        <?php echo wpsg_drawForm_TextEnd(__('Wirkungsbereich', 'wpsg')); ?>
106
        <script type="text/javascript">/* <![CDATA[ */
107
        <script type="text/javascript">/* <![CDATA[ */
107
 
108
 
108
            jQuery('#oc_typ_<?php echo $oc['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
109
            jQuery('#oc_typ_<?php echo $oc['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
109
                type: 'select',
110
                type: 'select',
110
                data: <?php echo wpsg_prepare_for_inlineEdit(array('0' => __('Inaktiv', 'wpsg'), '1' => __('Jede Bestellung', 'wpsg'), '2' => __('Bestimmte Produkte', 'wpsg'))); ?>,
111
                data: <?php echo wpsg_prepare_for_inlineEdit(array('0' => __('Inaktiv', 'wpsg'), '1' => __('Jede Bestellung', 'wpsg'), '2' => __('Bestimmte Produkte', 'wpsg'), '3' => __('Bestimmte Versandarten'))); ?>,
111
                submitdata: {
112
                submitdata: {
112
                    field: 'typ',
113
                    field: 'typ',
113
                    oc_id: '<?php echo $oc['id']; ?>'
114
                    oc_id: '<?php echo $oc['id']; ?>'
-
 
115
                },
-
 
116
                callback: function(e, params) {
-
 
117
                    
-
 
118
                    if (params == 3) jQuery('.wpsg_mod_ordercondition_shipping_<?php echo $oc['id']; ?>').show();
-
 
119
                    else jQuery('.wpsg_mod_ordercondition_shipping_<?php echo $oc['id']; ?>').hide();
-
 
120
                    
114
                }
121
                }
115
            });
122
            });
116
 
123
 
117
        /* ]]> */</script>
124
        /* ]]> */</script>
118
    
125
    
Line 143... Line 150...
143
                },
150
                },
144
                type: 'textarea'
151
                type: 'textarea'
145
            });
152
            });
146
 
153
 
147
        /* ]]> */</script>
154
        /* ]]> */</script>
148
 
155
        
-
 
156
        <div class="wpsg_mod_ordercondition_shipping_<?php echo $oc['id']; ?>" style="display:<?php echo (($oc['type'] === '3')?'block':'none'); ?>;">
-
 
157
            <?php echo wpsg_drawForm_TextStart(); ?>
-
 
158
            <span class="wpsg_editable" id="oc_shipping_<?php echo $oc['id']; ?>"><?php 
-
 
159
            
-
 
160
                foreach (wpsg_trim(explode(',', $oc['shipping'])) as $shipping_id) 
-
 
161
                {  
-
 
162
                    
-
 
163
                    if (array_key_exists($shipping_id, $this->view['arShipping'])) echo $this->view['arShipping'][$shipping_id].'<br />';
-
 
164
                    
-
 
165
                } 
-
 
166
                
-
 
167
            ?></span>
-
 
168
            <?php echo wpsg_drawForm_TextEnd(__('Versandartenauswahl', 'wpsg')); ?>
-
 
169
            <script type="text/javascript">/* <![CDATA[ */
-
 
170
    
-
 
171
                jQuery('#oc_shipping_<?php echo $oc['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordercondition&do=inlinedit&noheader=1', {
-
 
172
                    submitdata: {
-
 
173
                        field: 'shipping',
-
 
174
                        oc_id: '<?php echo $oc['id']; ?>'
-
 
175
                    },
-
 
176
                    data: <?php echo json_encode($this->view['arShipping']); ?>,
-
 
177
                    value: <?php echo json_encode(wpsg_trim(explode(',', $oc['shipping']))); ?>,
-
 
178
                    type: 'checklist'
-
 
179
                });
-
 
180
    
-
 
181
            /* ]]> */</script>
-
 
182
        </div>
-
 
183
            
149
		<?php if ($i == sizeof($this->view['wpsg_mod_ordercondition']['data'])) { ?><hr /><?php } ?>
184
		<?php if ($i == sizeof($this->view['wpsg_mod_ordercondition']['data'])) { ?><hr /><?php } ?>
150
	
185
	
151
	</div>
186
	</div>
152
 
187
 
153
<?php } ?>
188
<?php } ?>