summaryrefslogtreecommitdiff
path: root/views/mods/mod_rechnungen/order_view.phtml
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-10-02 14:17:18 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-10-02 14:17:18 +0000
commit9d978334c15a2a18a67c0749892a56a4b411beb5 (patch)
treec5b2a0c315611ca4e5d36eb43f54b808f83a19d1 /views/mods/mod_rechnungen/order_view.phtml
parentd94de97f1deed3609d5ceee26f0be10372e78f3f (diff)
- Nounce im Bereich Rechnungsdownload / schreiben überprüft
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7580 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods/mod_rechnungen/order_view.phtml')
-rw-r--r--views/mods/mod_rechnungen/order_view.phtml14
1 files changed, 11 insertions, 3 deletions
diff --git a/views/mods/mod_rechnungen/order_view.phtml b/views/mods/mod_rechnungen/order_view.phtml
index 810152e..e7c4b7d 100644
--- a/views/mods/mod_rechnungen/order_view.phtml
+++ b/views/mods/mod_rechnungen/order_view.phtml
@@ -117,7 +117,7 @@
?>"><?php echo ' &nbsp;'.__("Kopie senden", "wpsg"); ?></a>&nbsp;
<a target="_blank" href="<?php
- echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_rechnungen&do=getRechnung&edit_id='.$this->view['data']['id'].'&r_id='.$r['id'], 'wpsg-mod_invoice-order_ajax-getRechnung-'.$this->view['data']['id']);
+ echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_rechnungen&do=getRechnung&edit_id='.$this->view['data']['id'].'&r_id='.$r['id'], 'wpsg-mod_invoice-order_ajax-getRechnung-'.$r['id']);
?>"><?php echo __("Ansehen", "wpsg"); ?></a>
@@ -166,7 +166,11 @@
jQuery("#storno_form").attr("target", "_blank");
window.setTimeout(function() {
- location.href = "<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo $this->view['data']['id']; ?>";
+ location.href = "<?php
+
+ echo wpsg_admin_url('Order', 'view', ['edit_id' => $this->view['data']['id']]);
+
+ ?>";
}, 1500);
}
@@ -274,7 +278,11 @@
</script>
- <input class="button" style="float:right;" onclick="window.setTimeout(function() { location.href = '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo $this->view['data']['id']; ?>'; }, 1000);" name="wpsg_rechnungen_write" type="submit" value="<?php echo __("Rechnung schreiben", "wpsg"); ?>" />
+ <input class="button" style="float:right;" onclick="window.setTimeout(function() { location.href = '<?php
+
+ echo wpsg_admin_url('Order', 'view', ['edit_id' => $this->view['data']['id']]);
+
+ ?>'; }, 1000);" name="wpsg_rechnungen_write" type="submit" value="<?php echo __("Rechnung schreiben", "wpsg"); ?>" />
<input class="button" style="float:right; margin-right:10px;" name="wpsg_rechnungen_preview" type="submit" value="<?php echo __("Vorschau", "wpsg"); ?>" />
<div style="clear:both; width:100%; height:5px;"></div>