diff options
| author | hartmut <noreply@maennchen1.de> | 2017-06-28 11:55:09 +0000 |
|---|---|---|
| committer | hartmut <noreply@maennchen1.de> | 2017-06-28 11:55:09 +0000 |
| commit | 5e02cdcbe3ea8c2b738bf67251a5b9836b73f3cd (patch) | |
| tree | 240cf301feb5e43d3e8368066ac3377930fdb3be /views/order/view.phtml | |
| parent | 0e43ddf8ab0868cc04ecdaddcc93d8f5d6a04a33 (diff) | |
Korrekturen BE Bestellverwaltung
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@6350 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/order/view.phtml')
| -rw-r--r-- | views/order/view.phtml | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/views/order/view.phtml b/views/order/view.phtml index 4f822b8..4ede53a 100644 --- a/views/order/view.phtml +++ b/views/order/view.phtml @@ -22,7 +22,7 @@ </ul>
</div>
</div>
-
+
</nav>
<?php echo $this->writeBackendMessage(); ?>
@@ -37,7 +37,7 @@ <?php } ?>
</div>
- <?php if(false) {?>
+ <?php if(true) {?>
<a href="" id="LinkProduktNeu" onclick="return WPSG_BE_Product.addProduct(<?php echo $_REQUEST['edit_id']; ?>, 0);"><span class="glyphicon glyphicon-plus"></span>
<?php echo __("Neues Produkt", "wpsg"); ?>
</a><br />
@@ -45,11 +45,11 @@ <br />
<?php if ($this->hasMod('wpsg_mod_gutschein')) { ?>
- <?php //if (((array_key_exists('gs', $this->view['basket'])) && ($this->view['basket']['gs']['value'] == 0))) { ?>
+ <?php if (((array_key_exists('gs', $this->view['basket'])) && ($this->view['basket']['gs']['value'] == 0))) { ?>
<a href="" id="LinkGutscheinNeu" onclick="return wpsg_addVoucher(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-plus"></span>
<?php echo __("Neuer Gutschein", "wpsg"); ?>
</a><br />
- <?php //} ?>
+ <?php } ?>
<?php } ?>
<?php if ($this->hasMod('wpsg_mod_discount')) { ?>
@@ -59,11 +59,11 @@ </a><br />
<?php //} ?>
<?php } ?>
-
+
<a href="" id="LinkSendMail" onclick="return wpsg_sendMail(<?php echo $_REQUEST['edit_id']; ?>);"><span class="glyphicon glyphicon-envelope"></span>
<?php echo __("Mail an Kunde", "wpsg"); ?>
</a><br />
-
+
<div id='wpsg_kv_list'>
</div>
</div>
@@ -87,11 +87,11 @@ /**
* Sendet eine eMail
- */
+ */
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) {
@@ -99,18 +99,18 @@ location.href = location.href;
}
} );
-
+
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'); ?>" />');
-
+
jQuery.ajax( {
url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&subaction=discountData&do=add&edit_id=' + oid + '&noheader=1',
success: function(data) {
@@ -118,19 +118,19 @@ jQuery('#LinkRabattNeu').hide();
}
} );
-
+
return false;
-
- } // function wpsg_addRabatt()
+
+ } // function wpsg_addDiscount()
/**
* Fügt einen neuen Gutschein hinzu (nur wenn keiner da ist)
- */
+ */
function wpsg_addVoucher(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=voucherData&do=add&edit_id=' + oid + '&noheader=1',
success: function(data) {
@@ -141,24 +141,24 @@ //jQuery('#wpsg_kv_list').html('');
}
} );
-
+
return false;
} // function wpsg_addVoucher()
-
+
jQuery(document).ready(function() {
wpsg_view_orderdata_hide();
-
+
jQuery('#wpsg_order_view_tabs a.list-group-item').bind('click', function() {
jQuery('#wpsg_order_view_tabs a').removeClass('active');
jQuery('.wpsg_order_view_tab_content').hide();
tab = jQuery(this).attr('wpsg-data-target');
- if (tab == 'orderdata') {
+ if (tab == 'orderdata') {
wpsg_view_orderdata_show();
} else {
wpsg_view_orderdata_hide();
@@ -175,13 +175,13 @@ if (co === undefined) {
jQuery("[wpsg-data-target='general']").trigger("click");
} else {
- jQuery("[wpsg-data-target='" + co + "']").trigger("click");
+ jQuery("[wpsg-data-target='" + co + "']").trigger("click");
}
//jQuery('#wpsg_order_view_tabs a').removeClass('active');
//jQuery('.wpsg_order_view_tab_content').hide();
//jQuery('#tabgeneral').show();
//jQuery("[wpsg-data-target='general']").addClass('active');
-
+
} );
/* ]]> */</script>
|
