Line 16... |
Line 16... |
16 |
<?php foreach ($this->view['wpsg_mod_deliverynote']['arDeliverynotes'] as $k => $v) { ?>
|
16 |
<?php foreach ($this->view['wpsg_mod_deliverynote']['arDeliverynotes'] as $k => $v) { ?>
|
17 |
<?php echo wpsg_translate(__('##1# Lieferschein geschrieben am #2# (Lieferdatum: #3#)', 'wpsg'),
|
17 |
<?php echo wpsg_translate(__('##1# Lieferschein geschrieben am #2# (Lieferdatum: #3#)', 'wpsg'),
|
18 |
$v->lnr,
|
18 |
$v->lnr,
|
19 |
wpsg_formatTimestamp(strtotime($v->cdate), true),
|
19 |
wpsg_formatTimestamp(strtotime($v->cdate), true),
|
20 |
wpsg_formatTimestamp($v->getDeliveryTimestamp(), true)
|
20 |
wpsg_formatTimestamp($v->getDeliveryTimestamp(), true)
|
21 |
); ?> <a target="_blank" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_deliverynote&do=get&edit_id=<?php echo $this->view['data']['id']; ?>&dn_id=<?php echo $v->id; ?>"><?php echo __('Ansehen', 'wpsg'); ?></a><br />
|
21 |
); ?> <a target="_blank" href="<?php
|
- |
|
22 |
|
- |
|
23 |
/* echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_deliverynote&do=get&edit_id=<?php echo $this->view['data']['id']; ?>&dn_id=<?php echo $v->id; */
|
- |
|
24 |
echo wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=ajax&noheader=1&mod=wpsg_mod_deliverynote&do=get&edit_id='.$this->view['data']['id'].'&dn_id='.$v->id, 'wpsg-deliverynote-order_ajax-deliverynote-'.$this->view['data']['id']);
|
- |
|
25 |
|
- |
|
26 |
?>"><?php echo __('Ansehen', 'wpsg'); ?></a><br />
|
22 |
<?php } ?><br />
|
27 |
<?php } ?><br />
|
23 |
|
28 |
|
24 |
<?php } ?>
|
29 |
<?php } ?>
|
25 |
|
30 |
|
26 |
<?php if (wpsg_isSizedArray($this->view['wpsg_mod_deliverynote']['arNoDeliveredProducts'])) { ?>
|
31 |
<?php if (wpsg_isSizedArray($this->view['wpsg_mod_deliverynote']['arNoDeliveredProducts'])) { ?>
|
Line 98... |
Line 103... |
98 |
|
103 |
|
99 |
/* ]]> */</script>
|
104 |
/* ]]> */</script>
|
100 |
|
105 |
|
101 |
<input type="hidden" id="wpsg_mod_deliverynote_productindexes" name="wpsg_mod_deliverynote_productindexes" />
|
106 |
<input type="hidden" id="wpsg_mod_deliverynote_productindexes" name="wpsg_mod_deliverynote_productindexes" />
|
102 |
|
107 |
|
103 |
<input class="button" style="float:right;" onclick="if (!wpsg_mod_deliverynote_checkProducts()) return false; 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_mod_deliverynote_write" type="submit" value="<?php echo __("Lieferschein erstellen", "wpsg"); ?>" />
|
108 |
<input class="button" style="float:right;" onclick="if (!wpsg_mod_deliverynote_checkProducts()) return false; window.setTimeout(function() { location.href = '<?php
|
- |
|
109 |
|
- |
|
110 |
/*echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo $this->view['data']['id'];*/
|
- |
|
111 |
echo wpsg_admin_url('Order', 'view', ['edit_id' => $this->view['data']['id']]);
|
- |
|
112 |
|
- |
|
113 |
?>'; }, 1000);" name="wpsg_mod_deliverynote_write" type="submit" value="<?php echo __("Lieferschein erstellen", "wpsg"); ?>" />
|
104 |
<input class="button" style="float:right; margin-right:10px;" onclick="if (!wpsg_mod_deliverynote_checkProducts()) return false;" name="wpsg_mod_deliverynote_preview" type="submit" value="<?php echo __("Vorschau", "wpsg"); ?>" />
|
114 |
<input class="button" style="float:right; margin-right:10px;" onclick="if (!wpsg_mod_deliverynote_checkProducts()) return false;" name="wpsg_mod_deliverynote_preview" type="submit" value="<?php echo __("Vorschau", "wpsg"); ?>" />
|
105 |
|
115 |
|
106 |
<div style="clear:both; width:100%; height:5px;"></div>
|
116 |
<div style="clear:both; width:100%; height:5px;"></div>
|
107 |
|
117 |
|
108 |
</div>
|
118 |
</div>
|