Rev 4418 | Rev 5261 | Go to most recent revision | 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 type="text/javascript">
/* <![CDATA[ */
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="postbox" id="wpsg_pdfdownload">
<h3 class="wpsg_handlediv">
<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
<span><?php echo __('Downloadplus', 'wpsg'); ?></span>
</h3>
<div class="inside" id="wpsg_mod_downloadplus_target">
<?php echo $this->callMod('wpsg_mod_downloadplus', 'order_view_sidebar_renderList', array($this->view['order_id'])); ?>
</div>
</div>