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 |
?>
|
7824 |
daniel |
9 |
<script>
|
1379 |
daniel |
10 |
|
4418 |
daniel |
11 |
function wpsg_mod_downloadplus_schedule(product_key, file, product_index)
|
1379 |
daniel |
12 |
{
|
|
|
13 |
|
1528 |
daniel |
14 |
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 |
15 |
|
|
|
16 |
jQuery.ajax( {
|
4418 |
daniel |
17 |
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 |
18 |
success: function(data) {
|
1528 |
daniel |
19 |
jQuery('#wpsg_mod_downloadplus_target').html(data);
|
1379 |
daniel |
20 |
}
|
|
|
21 |
} );
|
|
|
22 |
|
|
|
23 |
return false;
|
|
|
24 |
|
1528 |
daniel |
25 |
} // function wpsg_mod_downloadplus_schedule(file)
|
1379 |
daniel |
26 |
|
7824 |
daniel |
27 |
function wpsg_mod_downloadplus_reindiv() {
|
1379 |
daniel |
28 |
|
1528 |
daniel |
29 |
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 |
30 |
|
|
|
31 |
jQuery.ajax( {
|
1528 |
daniel |
32 |
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 |
33 |
success: function(data) {
|
|
|
34 |
|
1528 |
daniel |
35 |
jQuery('#wpsg_mod_downloadplus_target').html(data);
|
1379 |
daniel |
36 |
|
|
|
37 |
}
|
|
|
38 |
} );
|
|
|
39 |
|
|
|
40 |
return false;
|
|
|
41 |
|
1528 |
daniel |
42 |
} // function wpsg_mod_downloadplus_reindiv()
|
1379 |
daniel |
43 |
|
1528 |
daniel |
44 |
function wpsg_mod_downloadplus_reset()
|
1379 |
daniel |
45 |
{
|
|
|
46 |
|
1528 |
daniel |
47 |
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 |
48 |
|
|
|
49 |
jQuery.ajax( {
|
1528 |
daniel |
50 |
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 |
51 |
success: function(data) {
|
|
|
52 |
|
1528 |
daniel |
53 |
jQuery('#wpsg_mod_downloadplus_target').html(data);
|
1379 |
daniel |
54 |
|
|
|
55 |
}
|
|
|
56 |
} );
|
|
|
57 |
|
|
|
58 |
return false;
|
|
|
59 |
|
1528 |
daniel |
60 |
} // function wpsg_mod_downloadplus_reset()
|
1379 |
daniel |
61 |
|
7824 |
daniel |
62 |
function wpsg_mod_downloadplus_send() {
|
1379 |
daniel |
63 |
|
1528 |
daniel |
64 |
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 |
65 |
|
|
|
66 |
jQuery.ajax( {
|
1528 |
daniel |
67 |
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 |
68 |
success: function(data) {
|
|
|
69 |
|
1528 |
daniel |
70 |
jQuery('#wpsg_mod_downloadplus_target').html(data);
|
1379 |
daniel |
71 |
wpsg_reloadOrderLog();
|
|
|
72 |
|
|
|
73 |
}
|
|
|
74 |
} );
|
|
|
75 |
|
|
|
76 |
return false;
|
|
|
77 |
|
1528 |
daniel |
78 |
} // function wpsg_mod_downloadplus_send()
|
1379 |
daniel |
79 |
|
2632 |
david |
80 |
function wpsg_mod_downloadplus_cangelschedule(product_key, file)
|
1379 |
daniel |
81 |
{
|
|
|
82 |
|
1528 |
daniel |
83 |
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 |
84 |
|
|
|
85 |
jQuery.ajax( {
|
2632 |
david |
86 |
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 |
87 |
success: function(data) {
|
1528 |
daniel |
88 |
jQuery('#wpsg_mod_downloadplus_target').html(data);
|
1379 |
daniel |
89 |
}
|
|
|
90 |
} );
|
|
|
91 |
|
|
|
92 |
return false;
|
|
|
93 |
|
1528 |
daniel |
94 |
} // function wpsg_mod_downloadplus_cangelschedule(file)
|
7824 |
daniel |
95 |
|
1379 |
daniel |
96 |
</script>
|
|
|
97 |
|
7824 |
daniel |
98 |
<div class="panel panel-default" id="wpsg_pdfdownload">
|
|
|
99 |
<div class="panel-heading clearfix">
|
|
|
100 |
<h3 class="panel-title">
|
|
|
101 |
<?php echo __('Downloadplus', 'wpsg'); ?>
|
|
|
102 |
</h3>
|
1379 |
daniel |
103 |
</div>
|
7824 |
daniel |
104 |
<div class="panel-body">
|
|
|
105 |
|
|
|
106 |
<div id="wpsg_mod_downloadplus_target">
|
|
|
107 |
<?php echo $this->callMod('wpsg_mod_downloadplus', 'order_view_sidebar_renderList', array($this->view['order_id'])); ?>
|
|
|
108 |
</div>
|
|
|
109 |
|
|
|
110 |
<br /><br />
|
|
|
111 |
|
|
|
112 |
<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>
|
|
|
113 |
|
|
|
114 |
</div>
|
|
|
115 |
</div>
|