Subversion Repositories wpShopGermany4

Rev

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

Rev 7842 Rev 7849
Line 248... Line 248...
248
 
248
 
249
                        </div>
249
                        </div>
250
                        <?php } ?>
250
                        <?php } ?>
251
 
251
 
252
                    </div>
252
                    </div>
-
 
253
 
-
 
254
                    <?php if ($this->hasMod('wpsg_mod_downloadplus')) { ?>
-
 
255
                    <div>
-
 
256
 
-
 
257
                        <?php
-
 
258
 
-
 
259
                            $arTemplates = $this->callMod('wpsg_mod_downloadplus', 'getTemplate', []);
-
 
260
                            $arTemplatesLabel = [
-
 
261
                                0 => __('Unverändert', 'wpsg')
-
 
262
                            ];
-
 
263
 
-
 
264
                            foreach ($arTemplates as $t) $arTemplatesLabel[intval($t['id'])] = $t['name'];
-
 
265
 
-
 
266
                        ?>
-
 
267
 
-
 
268
                        <span title="<?php echo __('Templatevorgabe für PDF Anpassungen mit DownloadPlus', 'wpsg'); ?>" class="wpsg_editable" id="productvariation_template_<?php echo $vari['id']; ?>"><?php
-
 
269
 
-
 
270
                            $template_id = intval($vari['template_id']);
-
 
271
 
-
 
272
                            if ($template_id > 0 && isset($arTemplatesLabel[$template_id])) echo $arTemplatesLabel[$template_id];
-
 
273
                            else __('Unverändert', 'wpsg');
-
 
274
 
-
 
275
                        ?></span>
-
 
276
 
-
 
277
                        <script>
-
 
278
 
-
 
279
                            jQuery('#productvariation_template_<?php echo $vari['id']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', {
-
 
280
                                submitdata: {
-
 
281
                                    field: 'template_id',
-
 
282
                                    field_id: '<?php echo $vari['id']; ?>'
-
 
283
                                },
-
 
284
                                data: <?php echo wpsg_prepare_for_inlineEdit($arTemplatesLabel); ?>,
-
 
285
                                type: 'select'
-
 
286
                            });
-
 
287
 
-
 
288
                        </script>
-
 
289
 
-
 
290
                    </div>
-
 
291
                    <?php } ?>
253
					
292
					
254
					<script>
293
					<script>
255
 
294
 
256
						jQuery(document).ready(function() {   
295
						jQuery(document).ready(function() {   
257
 
296
 
Line 462... Line 501...
462
            });
501
            });
463
 
502
 
464
        });
503
        });
465
 
504
 
466
	</script>
505
	</script>
467
    
506
 
468
    <?php if (!wpsg_isSizedInt($this->view['product_id'])) { ?>
507
    <?php if (!wpsg_isSizedInt($this->view['product_id'])) { ?>
469
    <p class="wpsg_hinweis"><?php echo __('Reihenfolge kann mittels Drag&Drop verändert werden.', 'wpsg'); ?></p>
508
    <p class="wpsg_hinweis"><?php echo __('Reihenfolge kann mittels Drag&Drop verändert werden.', 'wpsg'); ?></p>
470
    <?php } ?>
509
    <?php } ?>
471
 
510
 
472
<?php } else { ?>
511
<?php } else { ?>