Subversion Repositories wpShopGermany4

Rev

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

Rev 5720 Rev 5748
Line 23... Line 23...
23
            <td><span id="wpsg_ov_name_<?php echo $ov['id']; ?>"><?php echo wpsg_hspc(__($ov['name'], 'wpsg')); ?></span></td>
23
            <td><span id="wpsg_ov_name_<?php echo $ov['id']; ?>"><?php echo wpsg_hspc(__($ov['name'], 'wpsg')); ?></span></td>
24
            <td><span id="wpsg_ov_typ_<?php echo $ov['id']; ?>"><?php echo $this->mod->arTypen[$ov['typ']]; ?></span></td>
24
            <td><span id="wpsg_ov_typ_<?php echo $ov['id']; ?>"><?php echo $this->mod->arTypen[$ov['typ']]; ?></span></td>
25
            <td class="wpsg_pflicht"><input type="checkbox" <?php echo (($ov['pflicht'] == '1')?'checked="checked"':''); ?> id="wpsg_ov_pflicht_<?php echo $ov['id']; ?>" /></td>
25
            <td class="wpsg_pflicht"><input type="checkbox" <?php echo (($ov['pflicht'] == '1')?'checked="checked"':''); ?> id="wpsg_ov_pflicht_<?php echo $ov['id']; ?>" /></td>
26
            <td class="wpsg_delcol">
26
            <td class="wpsg_delcol">
27
 
27
 
28
                <a class="wpsg_icon wpsg_icon_remove" href="#" title="<?php echo __('Bestellvariable löschen', 'wpsg'); ?>" onclick="return wpsg_removeOV(<?php echo $ov['id']; ?>);"></a>
28
                <a class="" href="#" title="<?php echo __('Bestellvariable löschen', 'wpsg'); ?>" onclick="return wpsg_removeOV(<?php echo $ov['id']; ?>);">
-
 
29
                    <span class="glyphicon glyphicon-trash"></span>
-
 
30
                </a>
29
 
31
 
30
                <script type="text/javascript">
32
                <script type="text/javascript">
31
 
33
 
32
                    jQuery('#wpsg_ov_name_<?php echo $ov['id']; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordervars&do=inlinedit&noheader=1', {
34
                    jQuery('#wpsg_ov_name_<?php echo $ov['id']; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordervars&do=inlinedit&noheader=1', {
33
                        submitdata: {
35
                        submitdata: {
Line 76... Line 78...
76
                        }
78
                        }
77
                    });
79
                    });
78
 
80
 
79
                    function wpsg_removeOV(id)
81
                    function wpsg_removeOV(id)
80
                    {
82
                    {
-
 
83
 
-
 
84
                        if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false;
-
 
85
 
-
 
86
                        jQuery('#wpsg_ov_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
-
 
87
 
81
                        jQuery.ajax({
88
                        jQuery.ajax( {
82
                            url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordervars&noheader=1&do=del',
89
                            url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_ordervars&noheader=1&do=del',
83
                            data: {
90
                            data: {
84
                                ov_id: id
91
                                ov_id: id
85
                            },
92
                            },
86
                            success: function(data){
93
                            success: function(data) {
87
                                if (data == 1)
-
 
88
                                {
-
 
-
 
94
 
89
                                    location.reload();
95
                                jQuery('#wpsg_ov_list').html(data);
90
                                }
-
 
-
 
96
 
91
                            }
97
                            }
92
                        });
98
                        } );
-
 
99
 
-
 
100
                        return false;
-
 
101
 
93
                    }
102
                    }
94
 
103
 
95
                </script>
104
                </script>
96
 
105
 
97
            </td>
106
            </td>