1379 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Integration des PDFDownload Moduls in die Bestellverwaltung
|
4003 |
thomas |
5 |
* sollte nicht verändert werden
|
1379 |
daniel |
6 |
*/
|
|
|
7 |
|
|
|
8 |
?>
|
|
|
9 |
<script type="text/javascript">
|
|
|
10 |
/* <![CDATA[ */
|
|
|
11 |
|
4418 |
daniel |
12 |
function wpsg_mod_downloadplus_schedule(product_key, file, product_index)
|
1379 |
daniel |
13 |
{
|
|
|
14 |
|
1528 |
daniel |
15 |
jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
1379 |
daniel |
16 |
|
|
|
17 |
jQuery.ajax( {
|
4418 |
daniel |
18 |
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,
|
1379 |
daniel |
19 |
success: function(data) {
|
1528 |
daniel |
20 |
jQuery('#wpsg_mod_downloadplus_target').html(data);
|
1379 |
daniel |
21 |
}
|
|
|
22 |
} );
|
|
|
23 |
|
|
|
24 |
return false;
|
|
|
25 |
|
1528 |
daniel |
26 |
} // function wpsg_mod_downloadplus_schedule(file)
|
1379 |
daniel |
27 |
|
1528 |
daniel |
28 |
function wpsg_mod_downloadplus_reindiv()
|
1379 |
daniel |
29 |
{
|
|
|
30 |
|
1528 |
daniel |
31 |
jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
1379 |
daniel |
32 |
|
|
|
33 |
jQuery.ajax( {
|
1528 |
daniel |
34 |
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',
|
1379 |
daniel |
35 |
success: function(data) {
|
|
|
36 |
|
1528 |
daniel |
37 |
jQuery('#wpsg_mod_downloadplus_target').html(data);
|
1379 |
daniel |
38 |
|
|
|
39 |
}
|
|
|
40 |
} );
|
|
|
41 |
|
|
|
42 |
return false;
|
|
|
43 |
|
1528 |
daniel |
44 |
} // function wpsg_mod_downloadplus_reindiv()
|
1379 |
daniel |
45 |
|
1528 |
daniel |
46 |
function wpsg_mod_downloadplus_reset()
|
1379 |
daniel |
47 |
{
|
|
|
48 |
|
1528 |
daniel |
49 |
jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
1379 |
daniel |
50 |
|
|
|
51 |
jQuery.ajax( {
|
1528 |
daniel |
52 |
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',
|
1379 |
daniel |
53 |
success: function(data) {
|
|
|
54 |
|
1528 |
daniel |
55 |
jQuery('#wpsg_mod_downloadplus_target').html(data);
|
1379 |
daniel |
56 |
|
|
|
57 |
}
|
|
|
58 |
} );
|
|
|
59 |
|
|
|
60 |
return false;
|
|
|
61 |
|
1528 |
daniel |
62 |
} // function wpsg_mod_downloadplus_reset()
|
1379 |
daniel |
63 |
|
1528 |
daniel |
64 |
function wpsg_mod_downloadplus_send()
|
1379 |
daniel |
65 |
{
|
|
|
66 |
|
1528 |
daniel |
67 |
jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
1379 |
daniel |
68 |
|
|
|
69 |
jQuery.ajax( {
|
1528 |
daniel |
70 |
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',
|
1379 |
daniel |
71 |
success: function(data) {
|
|
|
72 |
|
1528 |
daniel |
73 |
jQuery('#wpsg_mod_downloadplus_target').html(data);
|
1379 |
daniel |
74 |
wpsg_reloadOrderLog();
|
|
|
75 |
|
|
|
76 |
}
|
|
|
77 |
} );
|
|
|
78 |
|
|
|
79 |
return false;
|
|
|
80 |
|
1528 |
daniel |
81 |
} // function wpsg_mod_downloadplus_send()
|
1379 |
daniel |
82 |
|
2632 |
david |
83 |
function wpsg_mod_downloadplus_cangelschedule(product_key, file)
|
1379 |
daniel |
84 |
{
|
|
|
85 |
|
1528 |
daniel |
86 |
jQuery('#wpsg_mod_downloadplus_target').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
|
1379 |
daniel |
87 |
|
|
|
88 |
jQuery.ajax( {
|
2632 |
david |
89 |
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,
|
1379 |
daniel |
90 |
success: function(data) {
|
1528 |
daniel |
91 |
jQuery('#wpsg_mod_downloadplus_target').html(data);
|
1379 |
daniel |
92 |
}
|
|
|
93 |
} );
|
|
|
94 |
|
|
|
95 |
return false;
|
|
|
96 |
|
1528 |
daniel |
97 |
} // function wpsg_mod_downloadplus_cangelschedule(file)
|
1379 |
daniel |
98 |
|
|
|
99 |
/* ]]> */
|
|
|
100 |
</script>
|
|
|
101 |
|
1405 |
daniel |
102 |
<div class="postbox" id="wpsg_pdfdownload">
|
|
|
103 |
<h3 class="wpsg_handlediv">
|
1414 |
daniel |
104 |
<span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
|
1528 |
daniel |
105 |
<span><?php echo __('Downloadplus', 'wpsg'); ?></span>
|
1379 |
daniel |
106 |
</h3>
|
1528 |
daniel |
107 |
<div class="inside" id="wpsg_mod_downloadplus_target">
|
|
|
108 |
<?php echo $this->callMod('wpsg_mod_downloadplus', 'order_view_sidebar_renderList', array($this->view['order_id'])); ?>
|
1379 |
daniel |
109 |
</div>
|
|
|
110 |
</div>
|