summaryrefslogtreecommitdiff
path: root/views/order
diff options
context:
space:
mode:
Diffstat (limited to 'views/order')
-rw-r--r--views/order/view.phtml21
1 files changed, 21 insertions, 0 deletions
diff --git a/views/order/view.phtml b/views/order/view.phtml
index 55e8386..5ae9a2e 100644
--- a/views/order/view.phtml
+++ b/views/order/view.phtml
@@ -58,6 +58,9 @@
<?php //} ?>
<?php } ?>
+ <a href="" id="LinkSendMail" onclick="return wpsg_sendMail(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-envelope"></span>&nbsp;
+ <?php echo __("Mail an Kunde", "wpsg"); ?>
+ </a><br />
<div id='wpsg_kv_list'>
</div>
@@ -83,6 +86,24 @@
/**
* Fügt einen neuen Rabatt hinzu (nur wenn keiner da ist)
*/
+ function wpsg_sendMail(oid)
+ {
+ jQuery('#wpsg_produkte_table').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-Admin&subaction=sendMail&do=send&edit_id=' + oid + '&noheader=1',
+ success: function(data) {
+ jQuery('#wpsg_produkte_table').replaceWith(data);
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_sendMail()
+
+ /**
+ * Fügt einen neuen Rabatt hinzu (nur wenn keiner da ist)
+ */
function wpsg_addDiscount(oid)
{
jQuery('#wpsg_produkte_table').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');