Subversion Repositories wpShopGermany4

Rev

Rev 5261 | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php

        /**
         * Template für die Integration des PDFDownload Moduls in die Bestellverwaltung
         * sollte nicht verändert werden
         */

?>
<script>
 
        function wpsg_mod_downloadplus_schedule(product_key, file, product_index)
        {

                jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
        
                jQuery.ajax( { 
                        url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=schedule_file&product_index=' + product_index + '&product_key='+ product_key + '&file=' + file,
                        success: function(data) {
                                jQuery('#wpsg_mod_downloadplus_target').html(data);
                        }
                } );
                
                return false;
                
        } // function wpsg_mod_downloadplus_schedule(file)

        function wpsg_mod_downloadplus_reindiv() {

                jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
        
                jQuery.ajax( { 
                        url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=reindiv',
                        success: function(data) {

                                jQuery('#wpsg_mod_downloadplus_target').html(data); 
                                
                        }
                } );
                
                return false;
                
        } // function wpsg_mod_downloadplus_reindiv()

        function wpsg_mod_downloadplus_reset()
        {

                jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
        
                jQuery.ajax( { 
                        url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=reset',
                        success: function(data) {

                                jQuery('#wpsg_mod_downloadplus_target').html(data); 
                                
                        }
                } );
                
                return false;
                
        } // function wpsg_mod_downloadplus_reset()
        
        function wpsg_mod_downloadplus_send() {

                jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
        
                jQuery.ajax( { 
                        url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=send_files',
                        success: function(data) {

                                jQuery('#wpsg_mod_downloadplus_target').html(data);
                                wpsg_reloadOrderLog();
                                
                        }
                } );
                
                return false;

        } // function wpsg_mod_downloadplus_send()              
        
        function wpsg_mod_downloadplus_cangelschedule(product_key, file)
        {

                jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
        
                jQuery.ajax( { 
                        url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_downloadplus&edit_id=<?php echo $this->view['order_id']; ?>&noheader=1&cmd=cancelschedule_file&product_key=' + product_key + '&file=' + file,
                        success: function(data) {
                                jQuery('#wpsg_mod_downloadplus_target').html(data);
                        }
                } );
                
                return false;
                
        } // function wpsg_mod_downloadplus_cangelschedule(file)

</script>

<div class="panel panel-default" id="wpsg_pdfdownload">
        <div class="panel-heading clearfix">
                <h3 class="panel-title">
                        <?php echo __('Downloadplus', 'wpsg'); ?>
                </h3>
        </div>
        <div class="panel-body">

        <div id="wpsg_mod_downloadplus_target">
            <?php echo $this->callMod('wpsg_mod_downloadplus', 'order_view_sidebar_renderList', array($this->view['order_id'])); ?>
        </div>

        <br /><br />

                <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_downloadplus"><span class="wpsg-glyphicon glyphicon glyphicon-wrench"></span><?php echo __('Zur Konfiguration des Abo-Moduls', 'wpsg'); ?></a>

    </div>
</div>