summaryrefslogtreecommitdiff
path: root/views/order
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2016-01-14 14:55:36 +0000
commitad405c7045c6e242080ec9d3ce4c9e586b517c4f (patch)
treeb41905f4d27f3eaaabd5bad3a39f8d3873540b46 /views/order
- Testweise 4
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@5261 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/order')
-rw-r--r--views/order/index.phtml564
-rw-r--r--views/order/orderlog.phtml32
-rw-r--r--views/order/view.phtml581
3 files changed, 1177 insertions, 0 deletions
diff --git a/views/order/index.phtml b/views/order/index.phtml
new file mode 100644
index 0000000..b617090
--- /dev/null
+++ b/views/order/index.phtml
@@ -0,0 +1,564 @@
+<?php
+
+ /**
+ * Template für die Übersicht der Bestellungen
+ */
+ //wpsg_debug($this->view);
+?>
+<div class="wrap wpsg_order_index">
+ <div class="icon32 icon32-posts-post" id="icon-edit"><br></div>
+ <h2>
+ <?php echo __('Bestellverwaltung', 'wpsg'); ?>
+ </h2>
+
+ <script type="text/javascript">/* <![CDATA[ */
+
+ var wpsg_order = '<?php echo $this->view['filter']['order']; ?>';
+ var wpsg_ascdesc = '<?php echo $this->view['filter']['ascdesc']; ?>';
+
+ function goPage(page)
+ {
+
+ if (page <= 0 || page == <?php echo $this->view['seite']; ?> || page > <?php echo $this->view['pages']; ?>) return;
+
+ jQuery('#seite').val(page);
+ jQuery('#filter_form').submit();
+
+ return false;
+
+ } // function goPage(page)
+
+ function wpsg_setOrder(order)
+ {
+
+ if (order == wpsg_order)
+ {
+
+ // Nur Richtung ändern
+ if (wpsg_ascdesc == 'asc') jQuery('#wpsg_ascdesc').val('desc');
+ else jQuery('#wpsg_ascdesc').val('asc');
+
+ }
+ else
+ {
+
+ jQuery('#wpsg_order').val(order);
+ jQuery('#wpsg_ascdesc').val('asc');
+
+ }
+
+ jQuery('#seite').val(1);
+ jQuery('#filter_form').submit();
+
+ return false;
+
+ } // function wpsg_setOrder(order)
+
+ function goStatus(status_id)
+ {
+
+ jQuery.cookie("wpsg_order_status", status_id);
+
+ jQuery('#filter_status option').attr("selected", false);
+ jQuery('#filter_status option[value="' + status_id + '"]').attr("selected", true);
+ jQuery('#seite').val(1);
+
+ jQuery('#filter_form').submit();
+
+ return false;
+
+ } // function goStatus(status_id)
+
+ /**
+ * Markiert/Demarkiert alle Rechnungen
+ */
+ function wpsg_checkOrderCol(oElement)
+ {
+
+ if (jQuery(oElement).attr("checked") == "checked")
+ {
+
+ jQuery('#wpsg_order_index_submit input').attr("checked", true);
+
+ }
+ else
+ {
+
+ jQuery('#wpsg_order_index_submit input').attr("checked", false);
+
+ }
+
+ } // function wpsg_checkOrderCol()
+
+ jQuery(document).ready(function() {
+
+ jQuery('.wpsg_handlediv').bind('click', function() {
+ jQuery(this).next().toggle();
+
+ var arClose = new Array();
+ jQuery('.wpsg_order_index .postbox .inside:hidden').each(function() {
+ arClose.push(jQuery(this).parent().attr("id"));
+ } );
+
+ jQuery.cookie('wpsg_order_index_closed', arClose.join(','));
+
+ } );
+
+ if (jQuery.cookie('wpsg_order_index_closed') != null)
+ {
+
+ var arClose = jQuery.cookie('wpsg_order_index_closed').split(',');
+
+ for (index in arClose)
+ {
+
+ if (arClose[index] != '') jQuery('#' + arClose[index] + ' .inside').hide();
+
+ }
+
+ }
+
+ } );
+
+ /* ]]> */</script>
+
+ <?php echo $this->writeBackendMessage(); ?>
+
+ <form method="get" id="filter_form">
+
+ <input type="hidden" name="" id="wpsg_order_index_noheader_filter" value="1" />
+ <input type="hidden" name="page" value="wpsg-Order" />
+
+ <?php if (isset($this->view['filter']['k_id']) && $this->view['filter']['k_id'] > 0) { ?>
+ <input type="hidden" name="filter[k_id]" id="filter_k_id" value="<?php echo $this->view['filter']['k_id']; ?>" />
+ <?php } ?>
+
+ <?php if (isset($this->view['filter']['k_id']) && $this->view['filter']['k_id'] > 0) { ?>
+ <ul class="subsubsub wpsg_order_index_status">
+ <li><span class="text"><?php echo wpsg_translate(__('Bestellungen von Kunden #1#', 'wpsg'), $this->view['kunde']['vname'].' '.$this->view['kunde']['name']); ?></span></li>
+ <li><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order"><?php echo __('Alle anzeigen', 'wpsg'); ?></a></li>
+ </ul>
+ <div class="wpsg_clear"></div>
+ <?php } ?>
+ <ul class="subsubsub wpsg_order_index_status">
+ <?php $i = 0; foreach ($this->view['arStatus'] as $status_id => $count) { ?>
+ <?php if ($count > 0) { ?>
+ <li>
+ <?php if (in_array($status_id, explode(',', $this->view['filter']['status']))) { ?>
+ <span class="akt"><?php echo $this->arStatus[$status_id]; ?></span> <span class="count">(<?php echo $count; ?>) | </span>
+ <?php } else { ?>
+ <a onclick="jQuery('#wpsg_mod_export_noheader').attr('name', ''); return goStatus(<?php echo $status_id; ?>);" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order"><?php echo $this->arStatus[$status_id]; ?> <span class="count">(<?php echo $count; ?>)</span></a> |
+ <?php } ?>
+ </li>
+ <?php $i ++; } ?>
+ <?php } ?>
+ <li>
+ <?php if ($this->view['filter']['status'] == -1) { ?>
+ <span class="akt"><?php echo __('Alle', 'wpsg'); ?></span> <span class="count">(<?php echo $this->view['count']; ?>)</span>
+ <?php } else { ?>
+ <a onclick="jQuery('#wpsg_mod_export_noheader').attr('name', ''); return goStatus(-1);" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order"><?php echo __('Alle', 'wpsg'); ?> <span class="count">(<?php echo $this->view['countAll']; ?>)</span></a>
+ <?php } ?>
+ </li>
+ </ul>
+
+ <p class="search-box wpsg-search-box">
+ <label for="post-search-input" class="screen-reader-text"><?php echo __('Bestellungen suchen', 'wpsg'); ?>:</label>
+ <input type="text" onchange="jQuery('#filtersearch').val(jQuery(this).val());" value="<?php echo wpsg_hspc($this->view['filter']['search']); ?>" name="filter[search]" id="post-search-input" />
+ <input type="submit" onclick="jQuery('#wpsg_mod_export_noheader').attr('name', '');" value="<?php echo __('Bestellung suchen', 'wpsg'); ?>" class="button" id="search-submit" name="search-submit" />
+ </p>
+
+ <br class="clear" />
+
+ <div class="tablenav top">
+
+ <div class="alignleft actions">
+
+ <label>
+ <input type="checkbox" <?php echo (($_COOKIE['wpsg_order_index_filter'] == '1')?'checked="checked"':''); ?> name="wpsg_order_index_filter" id="wpsg_order_index_filter" />&nbsp;<?php echo __('Filter', 'wpsg'); ?>
+ </label>
+
+ <?php $this->callMods('produkt_index_head'); ?>
+
+ </div>
+ <?php //wpsg_debug($this->view) ?>
+ <div class="tablenav-pages tablenav-pages-wrap"><span class="displaying-num"><?php echo wpsg_translate(__('#1# Elemente', 'wpsg'), $this->view['count']); ?></span>
+ <div class="tablenav-pages">
+ <span class="pagination-links">
+ <a onclick="jQuery('#wpsg_mod_export_noheader').attr('name', ''); return goPage(1);" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;seite=1&amp;s=<?php echo $_REQUEST['s']; ?>" title="<?php echo __('Zur ersten Seite gehen', 'wpsg'); ?>" class="first-page <?php echo (($this->view['seite'] == '1')?'disabled':''); ?>">«</a>
+ <a onclick="jQuery('#wpsg_mod_export_noheader').attr('name', ''); return goPage(<?php echo $this->view['seite'] - 1; ?>);" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;seite=<?php echo $this->view['seite'] - 1; ?>" title="<?php echo __('Zur vorherigen Seite gehen', 'wpsg'); ?>" class="prev-page <?php echo (($this->view['seite'] <= 1)?'disabled':''); ?>">‹</a>
+ <span class="paging-input"><input onfocus="jQuery('#wpsg_mod_export_noheader').attr('name', '');" type="text" size="1" value="<?php echo $this->view['seite']; ?>" id="seite" name="seite" title="<?php echo __('Aktuelle Seite', 'wpsg'); ?>" class="current-page"> <?php echo __('von', 'wpsg'); ?> <span class="total-pages"><?php echo $this->view['pages']; ?></span></span>
+ <a onclick="jQuery('#wpsg_mod_export_noheader').attr('name', ''); return goPage(<?php echo $this->view['seite'] + 1; ?>);" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;seite=<?php echo $this->view['seite'] + 1; ?>" title="<?php echo __('Zur nächsten Seite gehen', 'wpsg'); ?>" class="next-page <?php echo (($this->view['seite'] >= $this->view['pages'])?'disabled':''); ?>">›</a>
+ <a onclick="jQuery('#wpsg_mod_export_noheader').attr('name', ''); return goPage(<?php echo $this->view['pages']; ?>);" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;seite=<?php echo $this->view['pages']; ?>" title="<?php echo __('Zur letzten Seite gehen', 'wpsg'); ?>" class="last-page <?php echo (($this->view['seite'] == $this->view['pages'])?'disabled':''); ?>">»</a>
+ </span>
+ </div>
+
+ <script type="text/javascript">
+
+ jQuery('.tablenav-pages .disabled').bind('click', function() { return false; } );
+
+ </script>
+
+ </div>
+
+ </div>
+
+ <div class="metabox-holder" id="wpsg_order_index_filter_layer" style="<?php echo (($_COOKIE['wpsg_order_index_filter'] == '1')?'display:block;':'display:none;'); ?>">
+ <div id="wpsg_orderindexfilter" class="postbox">
+ <h3 class="wpsg_handlediv">
+ <span class="handlediv" title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>"><br></span>
+ <span><?php echo __('Bestellfilter', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside">
+
+ <?php
+
+ // Array der Zustände aufbereiten
+ $arStatus = array('-1' => __('Alle', 'wpsg'));
+ foreach ($this->view['arStatus'] as $status_id => $v) { $arStatus[$status_id] = $this->arStatus[$status_id]; }
+
+ ?>
+
+ <?php echo wpsg_drawForm_Input('filter[search]', __('Suchtext', 'wpsg'), $this->view['filter']['search']); ?>
+ <?php echo wpsg_drawForm_Select('filter[status]', __('Status', 'wpsg'), $arStatus, $this->view['filter']['status'], array('id' => 'filter_status')); ?>
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <label for=""><?php echo __('Bestelldatum (Monat/Jahr)', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <select name="filter[month_von]" id="month_von" style="float:left; width:45%; margin-right:5%;">
+ <option value="-1"><?php echo __("Alle", "wpsg"); ?></option>
+ <?php for ($i = 1; $i <= 12; $i ++) { ?>
+ <option <?php echo (($this->view['filter']['month_von'] == $i)?'selected="selected"':''); ?> value="<?php echo str_pad($i, 2, '0', STR_PAD_LEFT); ?>"><?php echo utf8_encode(strftime("%B", mktime(0, 0, 0, $i, 1, 2000))); ?></option>
+ <?php } ?>
+ </select>
+ <select name="filter[year_von]" id="year_von" style="float:left; width:45%;">
+ <option value="-1"><?php echo __("Alle", "wpsg"); ?></option>
+ <?php foreach ($this->view['years'] as $y) { ?>
+ <option <?php echo (($this->view['filter']['year_von'] == $y)?'selected="selected"':''); ?> value="<?php echo $y; ?>"><?php echo $y; ?></option>
+ <?php } ?>
+ </select>
+ </div>
+ <div class="wpsg_clear"></div>
+ </div>
+ <?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <label for=""><?php echo __('Rechnungsdatum (Monat/Jahr)', 'wpsg'); ?>:</label>
+ </div>
+ <div class="wpsg_form_right">
+ <select name="filter[invoice_month_von]" id="invoice_month_von" style="float:left; width:45%; margin-right:5%;">
+ <option value="-1"><?php echo __("Alle", "wpsg"); ?></option>
+ <?php for ($i = 1; $i <= 12; $i ++) { ?>
+ <option <?php echo (($this->view['filter']['invoice_month_von'] == $i)?'selected="selected"':''); ?> value="<?php echo str_pad($i, 2, '0', STR_PAD_LEFT); ?>"><?php echo strftime("%B", mktime(0, 0, 0, $i, 1, 2000)); ?></option>
+ <?php } ?>
+ </select>
+ <select name="filter[invoice_year_von]" id="invoice_year_von" style="float:left; width:45%;">
+ <option value="-1"><?php echo __("Alle", "wpsg"); ?></option>
+ <?php foreach ($this->view['invoice_years'] as $y) { ?>
+ <option <?php echo (($this->view['filter']['invoice_year_von'] == $y)?'selected="selected"':''); ?> value="<?php echo $y; ?>"><?php echo $y; ?></option>
+ <?php } ?>
+ </select>
+ </div>
+ </div>
+ <?php } ?>
+
+ <div class="clear"></div>
+
+ <br />
+ <input onclick="jQuery('#wpsg_mod_export_noheader').attr('name', '');" class="button" name="search-submit" type="submit" value="<?php echo __("Auswahl einschränken", "wpsg"); ?>" />
+
+ </div>
+ </div>
+ </div>
+
+ <script type="text/javascript">/* <![CDATA[ */
+
+ jQuery(document).ready(function() {
+
+ jQuery('#wpsg_order_index_filter').bind('change', function() {
+
+ if (jQuery(this).attr("checked"))
+ {
+
+ jQuery('#wpsg_order_index_filter_layer').show();
+ jQuery.cookie('wpsg_order_index_filter', '1');
+
+ }
+ else
+ {
+
+ jQuery('#wpsg_order_index_filter_layer').hide();
+ jQuery.cookie('wpsg_order_index_filter', '0');
+
+ }
+
+ } );
+
+ } );
+
+ /* ]]> */</script>
+
+ <input id="wpsg_order" type="hidden" name="filter[order]" value="<?php echo $this->view['filter']['order']; ?>" />
+ <input id="wpsg_ascdesc" type="hidden" name="filter[ascdesc]" value="<?php echo $this->view['filter']['ascdesc']; ?>" />
+
+ <input style="display:none;" type="submit" name="suchen" value="" />
+
+ </form>
+
+ <?php $this->callMods('produkt_index_aftersearch'); ?>
+
+ <?php if (is_array($this->view['data']) && sizeof($this->view['data']) > 0) { ?>
+ <form method="get" id="wpsg_order_index_submit">
+
+ <input type="hidden" name="" id="wpsg_order_index_noheader" value="1" />
+ <input type="hidden" name="page" value="wpsg-Order" />
+
+ <table class="widefat post fixed">
+ <thead>
+ <tr>
+ <th class="manage-column column-cb check-column" scope="col"><input type="checkbox" value="1" id="wpsg_check_all_order" onclick="wpsg_checkOrderCol(this);" name="" /></th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'nr')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('nr');">
+ <span><?php echo __("Nr.", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'customer')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('customer');">
+ <span><?php echo __("Kunde", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'payment')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('payment');">
+ <span><?php echo __("Bezahlmethode", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'shipping')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('shipping');">
+ <span><?php echo __("Versandart", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'produkte')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('produkte');">
+ <span><?php echo __("Produkte", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'amount')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('amount');">
+ <span><?php echo __("Bestellwert", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <?php if ($this->hasMod('wpsg_mod_abo')) { ?>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'abo')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('abo');">
+ <span><?php echo __("Abo Ende", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <?php } ?>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'status')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('status');">
+ <span><?php echo __("Status", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ </tr>
+ </thead>
+ <tbody>
+ <?php $i = 1; foreach ($this->view['data'] as $o) { ?>
+ <tr>
+ <td class="">
+ <input type="checkbox" value="1" name="wpsg_multido[<?php echo $o['id']; ?>]" />
+ </td>
+ <td class="post-title column-title">
+ <?php if (wpsg_isSizedString($o['language']) && $o['language'] != $this->getCurrentLanguage()) { $arLang = $this->getStoreLanguages(); $lang = $arLang[$o['language']]; ?>
+ <img src="<?php echo $this->getFlagURL().$lang['flag']; ?>" alt="<?php echo wpsg_translate(__('Bestellung wurde in der Sprache #1# durchgeführt.', 'wpsg'), $lang['name']); ?>" title="<?php echo wpsg_translate(__('Bestellung wurde in der Sprache #1# durchgeführt.', 'wpsg'), $lang['name']); ?>" />
+ <?php } ?>
+ <?php echo (($o['onr'] == "")?$o['id']:$o['onr']); ?> <span class="wpsg_order_datum"><?php echo wpsg_hspc(date('d.m.Y H:i:s', strtotime($o['cdate']))); ?></span><br />
+ <?php if (trim($o['order_comment']) != '') { ?>
+ <a title="<?php echo wpsg_translate(__('Kommentar (Kunde): #1#', 'wpsg'), wpsg_hspc($o['order_comment'])); ?>" onclick="return false" href="">
+ <img alt="" src="<?php echo WPSG_URL_CONTENT; ?>plugins/wpshopgermany/views/gfx/comment.png" />
+ </a>
+ <?php } ?>
+ <?php if (trim($o['admincomment']) != "") { ?>
+ <a title="<?php echo __("Kommentar (Admin): ", "wpsg").htmlspecialchars($o['admincomment']); ?>" onclick="return false;" href="">
+ <img alt="" src="<?php echo WPSG_URL_CONTENT; ?>plugins/wpshopgermany/views/gfx/comment_admin.png" />
+ </a>
+ <?php } ?>
+ <div class="row-actions">
+ <span class="view"><a title="<?php echo __("Diese Bestellung ansehen", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;action=view&amp;edit_id=<?php echo $o['id']; ?>"><?php echo __("Ansehen", "wpsg"); ?></a></span>
+ |
+ <span class="storno"><a onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie diese Bestellung stornieren möchten?', 'wpsg'); ?>');" title="<?php echo __("Diese Bestellung stornieren", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;action=storno&amp;noheader=1&amp;edit_id=<?php echo $o['id']; ?>"><?php echo __("Stornieren", "wpsg"); ?></a></span>
+ |
+ <span class="delete"><a onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie diese Bestellung löschen möchten?', 'wpsg'); ?>');" title="<?php echo __('Diese Bestellung löschen', 'wpsg'); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;action=delete&amp;noheader=1&amp;edit_id=<?php echo $o['id']; ?>"><?php echo __('Löschen', 'wpsg'); ?></a></span>
+ </div>
+ </td>
+ <td>
+ <?php if (trim($o['firma']) != '') { ?>
+ <?php echo wpsg_hspc($o['firma']); ?><br />
+ <?php } ?>
+ <?php echo ((trim($o['title']) != '' && $o['title'] != '-1')?$o['title'].' ':'').wpsg_hspc($o['vname'].' '.$o['name']); ?><br />
+ <span class="wpsg_order_adress">
+ <?php echo wpsg_hspc($o['strasse']); ?><br />
+ <?php echo wpsg_hspc($o['plz'].' '.$o['ort'].' '.$o['land_krzl']); ?>
+ </span>
+ </td>
+ <td>
+
+ <?php /* Bei Crefopay wird die Darstellung der Zahlungsart über das Modul geregelt */ ?>
+ <?php if ($o['type_payment'] == 4000 && $this->hasMod('wpsg_mod_crefopay')) { ?>
+ <?php echo wpsg_hspc($this->callMod('wpsg_mod_crefopay', 'getOrderPaymentName', array($o['id']))); ?>
+ <?php } else { ?>
+ <?php echo wpsg_hspc(__($this->arPayment[$o['type_payment']]['name']), 'wpsg'); ?>
+ <?php } ?>
+
+ <?php if ($o['basket']['sum']['preis_payment'] > 0) { ?>
+ <br /><?php echo wpsg_ff($o['basket']['sum']['preis_payment'], $this->get_option('wpsg_currency')); ?>
+ <?php } ?>
+ </td>
+ <td>
+ <?php echo wpsg_hspc($o['oOrder']->getShippingTypName()); ?>
+ <?php if ($o['basket']['sum']['preis_shipping'] > 0) { ?>
+ <br /><?php echo wpsg_ff($o['basket']['sum']['preis_shipping'], $this->get_option('wpsg_currency')); ?>
+ <?php } ?>
+ </td>
+ <td>
+ <?php foreach ((array)$o['basket']['produkte'] as $p) { ?>
+ <?php echo wpsg_translate(__('#1# x <a href="#2#">#3#</a> für je #4#', 'wpsg'), $p['menge'], WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$this->getProduktID($p['id']), $p['name'], wpsg_ff($p['preis'], $this->get_option('wpsg_currency'))); ?><br />
+ <?php } ?>
+ </td>
+ <td>
+ <?php echo wpsg_ff($o['basket']['sum']['preis_gesamt'], $this->get_option('wpsg_currency')); ?>
+ </td>
+ <?php if ($this->hasMod('wpsg_mod_abo')) { ?>
+ <td>
+ <?php if ($this->callMod('wpsg_mod_abo', 'isAboOrder', array($o['id'])) === 1) { ?>
+ <?php echo $this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($o['id'])) ?>
+ <?php } else if ($this->callMod('wpsg_mod_abo', 'isAboOrder', array($o['id'])) === 2) { ?>
+ <?php
+
+ $origin_order_id = $this->callMod('wpsg_mod_abo', 'getOriginOrder', array($o['id']));
+ $origin_order_data = $this->cache->loadOrder($origin_order_id);
+
+ ?>
+ <?php echo $this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array(
+ $origin_order_data['id']
+ )) ?><br />
+ <?php echo wpsg_translate(__('Verlängerung zu Bestellung <a href="#1#">#2#</a>', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Order&action=view&edit_id='.$origin_order_id, $origin_order_data['onr']); ?>
+ <?php } ?>
+ </td>
+ <?php } ?>
+ <td>
+ <?php echo wpsg_hspc($this->arStatus[$o['status']]); ?>
+ </td>
+ </tr>
+ <?php $i++; } ?>
+ </tbody>
+ <tfoot>
+ <tr>
+ <th class="manage-column column-cb check-column" scope="col"><input type="checkbox" value="1" id="wpsg_check_all_order_2" onclick="wpsg_checkOrderCol(this);" name="" /></th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'nr')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('nr');">
+ <span><?php echo __("Nr.", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'customer')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('customer');">
+ <span><?php echo __("Kunde", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'payment')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('payment');">
+ <span><?php echo __("Bezahlmethode", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'shipping')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('shipping');">
+ <span><?php echo __("Versandart", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'produkte')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('produkte');">
+ <span><?php echo __("Produkte", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'amount')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('amount');">
+ <span><?php echo __("Bestellwert", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <?php if ($this->hasMod('wpsg_mod_abo')) { ?>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'abo')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('abo');">
+ <span><?php echo __("Abo Ende", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ <?php } ?>
+ <th class="manage-column column-title <?php echo (($this->view['filter']['order'] == 'status')?'sorted':'sortable'); ?> <?php echo (($this->view['filter']['ascdesc'] == 'asc')?'asc':'desc'); ?>" scope="col">
+ <a href="#" onclick="return wpsg_setOrder('status');">
+ <span><?php echo __("Status", 'wpsg'); ?></span>
+ <span class="sorting-indicator"></span>
+ </a>
+ </th>
+ </tr>
+ </tfoot>
+ </table>
+
+ <div class="tablenav bottom">
+ <div class="alignleft actions">
+ <select name="wpsg_action" id="wpsg_action">
+ <option value="-1"><?php echo __('Aktion wählen', 'wpsg'); ?></option>
+ <?php foreach ($this->arStatus as $k => $status) { ?>
+ <option value="<?php echo $k; ?>"><?php echo wpsg_translate(__('Status auf "#1#" setzen.', 'wpsg'), $status); ?></option>
+ <?php } ?>
+ <option value="multiDelete"><?php echo __('Bestellungen löschen', 'wpsg'); ?></option>
+ <?php if ($this->hasMod('wpsg_mod_rechnungen')) { ?>
+ <option value="writeRechnung"><?php echo __('Rechnung schreiben', 'wpsg'); ?></option>
+ <option value="showRechnung"><?php echo __('Rechnung ansehen', 'wpsg'); ?></option>
+ <?php } ?>
+ </select>
+ <input onclick="if (jQuery('#wpsg_action').val() == 'multiDelete') { if (!confirm('<?php echo __('Sind Sie sich sicher?', 'wpsg'); ?>')) return false; } jQuery('#wpsg_order_index_noheader').attr('name', 'noheader');" type="submit" value="<?php echo __('Ausführen', 'wpsg'); ?>" class="button-secondary action" id="doaction" name="wpsg_order_doaction" />
+ </div>
+
+ <div class="tablenav-pages"><span class="displaying-num"><?php echo wpsg_translate(__('#1# Elemente', 'wpsg'), $this->view['count']); ?></span>
+ <div class="tablenav-pages">
+ <span class="pagination-links">
+ <a onclick="jQuery('#wpsg_mod_export_noheader').attr('name', ''); return goPage(1);" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;seite=1&amp;s=<?php echo $_REQUEST['s']; ?>" title="<?php echo __('Zur ersten Seite gehen', 'wpsg'); ?>" class="first-page <?php echo (($this->view['seite'] == '1')?'disabled':''); ?>">«</a>
+ <a onclick="jQuery('#wpsg_mod_export_noheader').attr('name', ''); return goPage(<?php echo $this->view['seite'] - 1; ?>);" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;seite=<?php echo $this->view['seite'] - 1; ?>" title="<?php echo __('Zur vorherigen Seite gehen', 'wpsg'); ?>" class="prev-page <?php echo (($this->view['seite'] <= 1)?'disabled':''); ?>">‹</a>
+ <span class="paging-input"><input onfocus="jQuery('#wpsg_mod_export_noheader').attr('name', '');" type="text" size="1" value="<?php echo $this->view['seite']; ?>" id="seite" name="seite" title="<?php echo __('Aktuelle Seite', 'wpsg'); ?>" class="current-page"> <?php echo __('von', 'wpsg'); ?> <span class="total-pages"><?php echo $this->view['pages']; ?></span></span>
+ <a onclick="jQuery('#wpsg_mod_export_noheader').attr('name', ''); return goPage(<?php echo $this->view['seite'] + 1; ?>);" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;seite=<?php echo $this->view['seite'] + 1; ?>" title="<?php echo __('Zur nächsten Seite gehen', 'wpsg'); ?>" class="next-page <?php echo (($this->view['seite'] >= $this->view['pages'])?'disabled':''); ?>">›</a>
+ <a onclick="jQuery('#wpsg_mod_export_noheader').attr('name', ''); return goPage(<?php echo $this->view['pages']; ?>);" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;seite=<?php echo $this->view['pages']; ?>" title="<?php echo __('Zur letzten Seite gehen', 'wpsg'); ?>" class="last-page <?php echo (($this->view['seite'] == $this->view['pages'])?'disabled':''); ?>">»</a>
+ </span>
+ </div>
+
+ <script type="text/javascript">
+
+ jQuery('.tablenav-pages .disabled').bind('click', function() { return false; } );
+
+ </script>
+
+ <br class="clear">
+ </div>
+ </div>
+
+ <?php $this->callMod('wpsg_mod_export', 'produkt_index_foot'); ?>
+
+ </form>
+ <?php } else { ?>
+ <br /><br />
+ <p><?php echo __('Keine Bestellungen in der Datenbank.', 'wpsg'); ?></p>
+ <?php } ?>
+
+</div> \ No newline at end of file
diff --git a/views/order/orderlog.phtml b/views/order/orderlog.phtml
new file mode 100644
index 0000000..df51721
--- /dev/null
+++ b/views/order/orderlog.phtml
@@ -0,0 +1,32 @@
+<?php
+
+ /**
+ * Template für das Bestell Log
+ */
+
+?>
+<?php if (is_array($this->view['log']) && sizeof($this->view['log']) > 0) { ?>
+<table class="wpsg_orderlog">
+ <tr>
+ <th class="col_date"><?php echo __('Datum', 'wpsg'); ?></th>
+ <th class="col_title"><?php echo __('Titel', 'wpsg'); ?></th>
+ <th class="col_aktion"></th>
+ </tr>
+ <?php foreach ($this->view['log'] as $l) { ?>
+ <tr>
+ <td class="col_date"><?php echo date('d.m.Y H:i:s', strtotime($l['cdate'])); ?></td>
+ <td class="col_title"><?php echo $l['title']; ?></td>
+ <td class="col_aktion">
+ <a href="#" onclick="jQuery('#wpsg_mailtext_<?php echo $l['id']; ?>').toggle(); return false"><?php echo __('Anzeigen/Verbergen', 'wpsg'); ?></a>
+ </td>
+ </tr>
+ <tr id="wpsg_mailtext_<?php echo $l['id']; ?>" style="display:none;">
+ <td colspan="3" class="col_mailtext">
+ <textarea readonly="readonly"><?php echo wpsg_xss($l['mailtext']); ?></textarea>
+ </td>
+ </tr>
+ <?php } ?>
+</table>
+<?php } else { ?>
+<?php echo __('Noch keine Einträge', 'wpsg'); ?>
+<?php } ?> \ No newline at end of file
diff --git a/views/order/view.phtml b/views/order/view.phtml
new file mode 100644
index 0000000..062c5c8
--- /dev/null
+++ b/views/order/view.phtml
@@ -0,0 +1,581 @@
+<?php
+
+ /**
+ * Template für die Ansicht einer Bestellung im Backend
+ */
+
+?>
+<script type="text/javascript">/* <![CDATA[ */
+
+ function wpsg_editInvoiceAdress()
+ {
+
+ jQuery('#wpsg_InvoiceDialog').dialog( {
+ 'dialogClass': 'wp-dialog',
+ 'modal': true,
+ 'width': 600,
+ 'title': '<?php echo __('Anschrift ändern (Kundendaten)', 'wpsg'); ?>',
+ 'autoOpen': true,
+ 'closeOnEscape': true,
+ 'buttons': {
+ "<?php echo __('Speichern', 'wpsg'); ?>": function() {
+
+ jQuery('#wpsg_backend_loading').show();
+ jQuery(this).dialog('close');
+
+ jQuery.ajax( {
+ url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&wpsg_action=saveInvoiceAdress&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1',
+ data: {
+ form_data: jQuery('#wpsg_InvoiceDialog input, #wpsg_InvoiceDialog select').serialize()
+ },
+ success: function(data) {
+
+ location.href = location.href;
+
+ }
+ } );
+
+ }
+ }
+ } );
+
+ return false;
+
+ }
+
+ function wpsg_reloadOrderLog()
+ {
+
+ jQuery('#wpsg_orderlog_content').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-Order&action=ajax&wpsg_action=orderLog&edit_id=<?php echo $this->view['data']['id']; ?>&noheader=1',
+ success: function(data) {
+ jQuery('#wpsg_orderlog_content').html(data);
+ }
+ } );
+
+ return false;
+
+ } // function wpsg_reloadOrderLog()
+
+ jQuery(document).ready(function() {
+
+ jQuery('body').append('<div id="wpsg_backend_loading" style="display:none;"><div class="wpsg_inner"><?php echo __('Bestellung wird aktualisiert.', 'wpsg'); ?><br /><br /><img src="<?php echo $this->getRessourceURL('gfx/ajax-loader.gif'); ?>" alt="" /></div></div>');
+
+ jQuery("#normal-sortables, #side-sortables").sortable({
+ connectWith: ".meta-box-sortables",
+ placeholder: 'wpsg_placeholder',
+ dropOnEmpty: true,
+ cursor: 'move',
+ grid: [50, 20],
+ items: ".postbox",
+ handle: '.wpsg_handlediv',
+ forceHelperSize: true,
+ forcePlaceholderSize: true,
+ opacity: 0.8,
+ stop: function(e,ui) {
+
+ var ser = jQuery("#normal-sortables").sortable("serialize");
+ ser = ser.replace(/\&wpsg\[\]\=/g, ',').replace(/wpsg\[\]\=/g, '');
+
+ jQuery.cookie('wpsg_order_view_normal', ser);
+
+ var ser = jQuery("#side-sortables").sortable("serialize");
+ ser = ser.replace(/\&wpsg\[\]\=/g, ',').replace(/wpsg\[\]\=/g, '');
+
+ jQuery.cookie('wpsg_order_view_side', ser);
+
+ },
+ receive: function(e, ui) {
+ }
+ });
+
+ if (jQuery.cookie('wpsg_order_view_normal') != null)
+ {
+
+ var divs = jQuery.cookie('wpsg_order_view_normal').split(',').reverse();
+
+ for (index in divs)
+ {
+
+ jQuery('#normal-sortables').prepend(jQuery('#wpsg_' + divs[index]));
+
+ }
+
+ }
+
+ if (jQuery.cookie('wpsg_order_view_side') != null)
+ {
+
+ var divs = jQuery.cookie('wpsg_order_view_side').split(',').reverse();
+
+ for (index in divs)
+ {
+
+ jQuery('#side-sortables').prepend(jQuery('#wpsg_' + divs[index]));
+
+ }
+
+ }
+
+ jQuery('.wpsg_handlediv').bind('click', function() {
+ jQuery(this).next().toggle();
+
+ var arClose = new Array();
+ jQuery('.wpsg_order_view .postbox .inside:hidden').each(function() {
+ arClose.push(jQuery(this).parent().attr("id"));
+ } );
+
+ jQuery.cookie('wpsg_order_closed', arClose.join(','));
+
+ } );
+
+ if (jQuery.cookie('wpsg_order_closed') != null)
+ {
+
+ var arClose = jQuery.cookie('wpsg_order_closed').split(',');
+
+ for (index in arClose)
+ {
+
+ if (arClose[index].length > 0) jQuery('#' + arClose[index] + ' .inside').hide();
+
+ }
+
+ }
+
+ jQuery('.wpsg_form_help').tipTip();
+
+ } );
+
+/* ]]> */</script>
+
+<div class="wrap columns-2 wpsg_order_view">
+ <div class="icon32 icon32-posts-post" id="icon-edit"><br /></div>
+ <h2>
+ <?php echo wpsg_translate(__('Bestellung #1#', 'wpsg'), $this->view['data']['onr']); ?>
+ </h2>
+ <br />
+ <?php echo $this->writeBackendMessage(); ?>
+
+ <div id="postbox" class="metabox-holder has-right-sidebar">
+
+ <div id="side-info-column" class="inner-sidebar" style="width:386px;">
+ <div id="side-sortables" class="meta-box-sortables meta-box-sortables ui-sortable" style="width:380px;">
+
+ <div id="wpsg_ranschrift" class="postbox">
+ <h3 class="wpsg_handlediv">
+ <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+ <span><?php echo __('Kundendaten', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside">
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <?php echo __('Kundennummer', 'wpsg'); ?>:
+ </div>
+ <div class="wpsg_form_right">
+ <p>
+ <?php echo wpsg_hspc($this->view['data']['knr']); ?>
+ <?php if ($this->hasMod('wpsg_mod_kundenverwaltung')) { ?>
+ [&nbsp;<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&action=edit&edit_id=<?php echo $this->view['data']['k_id']; ?>"><?php echo __('Zum Kunden', 'wpsg'); ?></a>&nbsp;]</a>
+ <?php } ?>
+ </p>
+ </div>
+ </div>
+ <div class="wpsg_clear"></div>
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <?php echo __('Anschrift', 'wpsg'); ?>:
+ <a style="float:none; display:inline-block;" onclick="return wpsg_editInvoiceAdress();" class="wpsg_icon wpsg_icon_edit" href="#" title="<?php echo __('Rechnungsanschrift ändern', 'wpsg'); ?>"></a>
+ </div>
+ <div class="wpsg_form_right">
+ <p>
+ <?php if (trim($this->view['data']['firma']) != '') { ?>
+ <?php echo wpsg_hspc($this->view['data']['firma']); ?><br />
+ <?php } ?>
+ <?php echo (($this->view['data']['title'] != '' && $this->view['data']['title'] != '-1')?wpsg_hspc($this->view['data']['title']).' ':''); ?><?php echo wpsg_hspc($this->view['data']['vname']); ?> <?php echo wpsg_hspc($this->view['data']['name']); ?><br />
+ <?php echo wpsg_hspc($this->view['data']['strasse']); ?><br />
+ <?php echo wpsg_hspc($this->view['data']['plz']); ?> <?php echo wpsg_hspc($this->view['data']['ort']); ?> <?php echo wpsg_hspc($this->view['country']['kuerzel']); ?><br />
+ </p>
+ </div>
+ </div>
+ <div class="wpsg_clear"></div>
+
+ <div id="wpsg_InvoiceDialog" class="wpsg_dialog" style="display:none;">
+ <?php echo wpsg_drawForm_Input('dialog_firma', __('Firma', 'wpsg'), $this->view['data']['firma']); ?>
+ <?php echo wpsg_drawForm_Select('dialog_title', __('Anschrift', 'wpsg'), $this->view['arTitles'], $this->view['data']['title'], array('noIndex' => true)); ?>
+ <?php echo wpsg_drawForm_Input('dialog_vname', __('Vorname', 'wpsg'), $this->view['data']['vname']); ?>
+ <?php echo wpsg_drawForm_Input('dialog_name', __('Name', 'wpsg'), $this->view['data']['name']); ?>
+ <?php echo wpsg_drawForm_Input('dialog_strasse', __('Straße', 'wpsg'), $this->view['data']['strasse']); ?>
+ <?php echo wpsg_drawForm_Input('dialog_plz', __('Postleitzahl', 'wpsg'), $this->view['data']['plz']); ?>
+ <?php echo wpsg_drawForm_Input('dialog_ort', __('Ort', 'wpsg'), $this->view['data']['ort']); ?>
+ <?php echo wpsg_drawForm_Select('dialog_land', __('Land', 'wpsg'), $this->view['arCountry'], $this->view['data']['land']); ?>
+ <br />
+ <?php echo wpsg_drawForm_Checkbox('dialog_shipping', __('Auch Lieferanschrift anpassen', 'wpsg'), false); ?>
+ </div>
+
+ <?php if (strtotime($this->view['data']['geb']) > 0) { ?>
+ <?php echo wpsg_drawForm_Input('', __('Geburtsdatum', 'wpsg'), wpsg_fromDate($this->view['data']['geb']), array('text' => true)); ?>
+ <?php } ?>
+
+ <?php if (strlen($this->view['data']['fax']) > 0) { ?>
+ <?php echo wpsg_drawForm_Input('', __('Fax', 'wpsg'), $this->view['data']['fax'], array('text' => true)); ?>
+ <?php } ?>
+
+ <?php if (strlen($this->view['data']['tel']) > 0) { ?>
+ <?php echo wpsg_drawForm_Input('', __('Telefon', 'wpsg'), $this->view['data']['tel'], array('text' => true)); ?>
+ <?php } ?>
+
+ <?php if (strlen($this->view['data']['ustidnr']) > 0) { ?>
+ <?php echo wpsg_drawForm_Input('', __('UStIdNr.', 'wpsg'), $this->view['data']['ustidnr'], array('text' => true)); ?>
+ <?php } ?>
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <?php echo __('E-Mail', 'wpsg'); ?>:
+ </div>
+ <div class="wpsg_form_right">
+ <p>
+ <a href="mailto:<?php echo $this->view['data']['email']; ?>"><?php echo $this->view['data']['email']; ?></a>
+ </p>
+ </div>
+ </div>
+ <div class="wpsg_clear"></div>
+
+ <?php $this->callMods('wpsg_order_view_customerdata', array(&$this->view['data']['id'])); ?>
+
+ </div>
+ </div>
+
+ <div id="wpsg_shippayment" class="postbox">
+ <h3 class="wpsg_handlediv">
+ <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+ <span><?php echo __('Versand- und Zahlungsart', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside">
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <?php echo __('Versandart', 'wpsg'); ?>:
+ </div>
+ <div class="wpsg_form_right">
+ <p>
+ <?php echo wpsg_hspc($this->view['oOrder']->getShippingTypName()); ?>
+ <?php if (isset($this->view['basket']['sum']['preis_shipping']) && $this->view['basket']['sum']['preis_shipping'] > 0) { ?>
+ (<?php echo wpsg_ff($this->view['basket']['sum']['preis_shipping'], $this->get_option('wpsg_currency')); ?>)
+ <?php } ?>
+ </p>
+ </div>
+ </div>
+ <div class="wpsg_clear"></div>
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <?php echo __('Zahlungsart', 'wpsg'); ?>:
+ </div>
+ <div class="wpsg_form_right">
+ <p>
+
+ <?php echo __($this->view['arPayment'][$this->view['data']['type_payment']]['name'], 'wpsg'); ?>
+ <?php if (isset($this->view['basket']['sum']['preis_payment']) && $this->view['basket']['sum']['preis_payment'] > 0) { ?>
+ (<?php echo wpsg_ff($this->view['basket']['sum']['preis_payment'], $this->get_option('wpsg_currency')); ?>)
+ <?php } ?>
+
+ </p>
+ </div>
+ </div>
+ <div class="wpsg_clear"></div>
+ <?php $this->callMods('order_view_afterpayment', array(&$this->view['data']['id'])); ?>
+
+ </div>
+ </div>
+
+ <?php if (trim($this->view['data']['order_comment']) != '') { ?>
+ <div id="wpsg_comment" class="postbox">
+ <h3 class="wpsg_handlediv">
+ <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+ <span><?php echo __('Bestellkommentar (Kunde)', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside">
+ <?php echo wpsg_hspc($this->view['data']['order_comment']); ?>
+ </div>
+ </div>
+ <?php } ?>
+
+ <div id="wpsg_admincomment" class="postbox">
+ <h3 class="wpsg_handlediv">
+ <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+ <span><?php echo __('Bestellkommentar (Admin)', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside">
+ <form action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&noheader=1&action=setAdminComment&edit_id=<?php echo $this->view['data']['id']; ?>" method="post">
+ <textarea class="wpsg_order_admincomment" name="wpsg_order_admincomment"><?php echo wpsg_hspc($this->view['data']['admincomment']); ?></textarea>
+ <input class="button wpsg_order_admincomment_submit" type="submit" value="<?php echo __('Senden', 'wpsg'); ?>" name="admincomment_submit" />
+ </form>
+ </div>
+ </div>
+
+ <?php $this->callMods('order_view_sidebar', array(&$this->view['data']['id'])); ?>
+
+ </div>
+ </div>
+
+ <div id="post-body">
+ <div id="normal-sortables" class="meta-box-sortables" style="margin-right:400px;">
+ <div class="postbox" id="wpsg_generally">
+ <h3 class="wpsg_handlediv">
+ <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+ <span><?php echo __('Allgemein', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside wpsg_order_top">
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <?php echo __('Bestellnummer', 'wpsg'); ?>:
+ </div>
+ <div class="wpsg_form_right">
+ <p>
+ <?php echo wpsg_hspc($this->view['data']['onr']); ?> [<?php echo wpsg_hspc($this->arStatus[$this->view['data']['status']]); ?>]
+ </p>
+ </div>
+ </div>
+ <div class="wpsg_clear"></div>
+
+ <?php if (wpsg_isSizedString($this->view['data']['language']) && $this->view['data']['language'] != $this->getCurrentLanguage()) { $arLang = $this->getStoreLanguages(); $lang = $arLang[$this->view['data']['language']]; ?>
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <?php echo __('Sprache', 'wpsg'); ?>:
+ </div>
+ <div class="wpsg_form_right">
+ <p>
+ <img src="<?php echo $this->getFlagURL().$lang['flag']; ?>" alt="<?php echo wpsg_translate(__('Produkt für Sprache #1# bearbeiten.', 'wpsg'), $lang['name']); ?>" />
+ <?php echo $lang['name']; ?>
+ </p>
+ </div>
+ </div>
+ <div class="wpsg_clear"></div>
+ <?php } ?>
+
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <?php echo __('Bestelleingang', 'wpsg'); ?>:
+ </div>
+ <div class="wpsg_form_right">
+ <p>
+ <?php echo date('d.m.Y H:i:s', strtotime($this->view['data']['cdate'])); ?>
+ </p>
+ </div>
+ </div>
+ <div class="wpsg_clear"></div>
+
+ <form method="POST" action="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&amp;action=switchStatus&amp;edit_id=<?php echo $this->view['data']['id']; ?>&amp;noheader=1" enctype="multipart/form-data">
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <?php echo __('Statusänderung', 'wpsg'); ?>:
+ </div>
+ <div class="wpsg_form_right">
+ <select id="wpsg_order_view_status" name="status" style="float:left;">
+ <?php foreach ($this->arStatus as $k => $v) { ?>
+ <option value="<?php echo wpsg_hspc($k); ?>" <?php echo (($k == $this->view['data']['status'])?'selected="selected"':''); ?>><?php echo wpsg_hspc($v); ?></option>
+ <?php } ?>
+ </select>
+ &nbsp;<input style="width:auto;" type="submit" class="button wpsg_button" id="wpsg_order_view_status_submit" name="wpsg_statusaenderung" value="<?php echo __('Status ändern', 'wpsg'); ?>" />
+ <div class="wpsg_clear"></div>
+ <label style="line-height:250%;">
+ <input style="width:auto;" type="checkbox" value="1" name="sendMail" /> <?php echo __('Kunde informieren', 'wpsg'); ?>
+ </label>
+ </div>
+ </div>
+ <div class="wpsg_clear"></div>
+ <?php $this->callMods('order_view_switchStatus', array(&$this->view['data']['id'])); ?>
+ </form>
+
+ <?php if (wpsg_isSizedInt($this->get_option('wpsg_debugModus'))) { ?>
+ <div class="wpsg_form_field">
+ <div class="wpsg_form_left">
+ <span class="wpsg_developer"><?php echo __('Entwickler Optionen', 'wpsg'); ?>:</span>
+ </div>
+ <div class="wpsg_form_right">
+ <span class="wpsg_developer">
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&wpsg_action=debug_customermail&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Kundenmail simulieren (An Shop Betreiber)', 'wpsg'); ?></a><br />
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&wpsg_action=debug_adminmail&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('Adminmail simulieren', 'wpsg'); ?></a><br />
+ <a href="<?php echo $this->getDoneURL($this->view['data']['id']); ?>"><?php echo __('Bestellabschlußseite', 'wpsg'); ?></a><br />
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&wpsg_action=debug_urlbuy&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('URL Benachrichtigung (Kauf) auslösen', 'wpsg'); ?></a><br />
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&wpsg_action=debug_urlpay&noheader=1&edit_id=<?php echo $this->view['data']['id']; ?>"><?php echo __('URL Benachrichtigung (Bezahlung) auslösen', 'wpsg'); ?></a><br />
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=view&edit_id=<?php echo $this->view['data']['id']; ?>&debugBasket=1"><?php echo __('Warenkorbdaten anzeigen', 'wpsg'); ?></a><br />
+ <?php if (wpsg_isSizedInt($_REQUEST['debugBasket'])) { ?>
+ <?php wpsg_debug($this->view['basket']); ?>
+ <?php } ?>
+ </span>
+ </div>
+ </div>
+ <div class="wpsg_clear"></div>
+ <?php } ?>
+
+ </div>
+ </div>
+
+ <div class="postbox" id="wpsg_orderdata">
+ <h3 class="wpsg_handlediv">
+ <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+ <span><?php echo __('Bestelldaten', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside">
+ <table class="wpsg_produkte">
+ <tr class="wpsg_kopf">
+ <th class="wpsg_cell_name"><?php echo __('Produktname', 'wpsg'); ?></th>
+ <th class="wpsg_cell_preis"><?php echo __('Einzelpreis', 'wpsg'); ?></th>
+ <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
+ <th class="wpsg_cell_mwst"><?php echo __("MwSt.", "wpsg"); ?></th>
+ <?php } ?>
+ <th class="wpsg_cell_menge"><?php echo __("Anzahl", "wpsg"); ?></th>
+ <th class="wpsg_cell_gesamtpreis"><?php echo __("Gesamtpreis", "wpsg"); ?></th>
+ </tr>
+ <?php $i = 0; foreach ($this->view['basket']['produkte'] as $produkt_key => $p) { $i ++; ?>
+ <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
+ <td class="wpsg_cell_name">
+ <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id=<?php echo $this->getProduktID($p['id']); ?>" title="<?php echo __('Zum Produkt', 'wpsg'); ?>">
+ <?php echo wpsg_hspc($this->getProductName($this->getProduktID($p['id']))); ?>
+ </a>
+ </td>
+ <td class="wpsg_cell_preis"><?php echo wpsg_ff($p['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
+ <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
+ <td class="wpsg_cell_mwst"><?php echo wpsg_ff($p['mwst_value']); ?> %</td>
+ <?php } ?>
+ <td class="wpsg_cell_menge"><?php echo wpsg_hspc($p['menge']); ?></td>
+ <td class="wpsg_cell_gesamtpreis"><?php echo wpsg_ff($p['menge'] * $p['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?></td>
+ </tr>
+ <?php if (wpsg_isSizedArray($p['order_allowedshipping'])) { ?>
+ <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
+ <td class="wpsg_cell_name">
+ <?php echo __('Mögliche Versandarten', 'wpsg'); ?>:
+ </td>
+ <td class="wpsg_cell_gesamtpreis" colspan="<?php echo ((sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1')?4:3); ?>">
+ <?php $j = 0; foreach ($p['order_allowedshipping'] as $shipping) { $j ++; ?>
+ <?php echo $this->getShippingName($shipping); ?><?php if ($j < sizeof($p['order_allowedshipping'])) { ?>, <?php } ?>
+ <?php } ?>
+ </td>
+ </tr>
+ <?php } ?>
+ <?php $this->callMods('order_view_row', array(&$p, $i)); ?>
+ <?php } ?>
+ <?php if (isset($this->view['basket']['gs'])) { ?>
+ <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_gutschein">
+ <td class="wpsg_cell_name"><?php echo __('Gutschein', 'wpsg'); ?> <?php echo ($this->view['basket']['gs']['code'] != '')? '('.$this->view['basket']['gs']['code'].')':'' ?></td>
+ <td class="wpsg_cell_preis"><?php echo '-'.wpsg_ff($this->view['basket']['sum']['gs'], $this->get_option('wpsg_currency')); ?></td>
+ <?php if (sizeof($this->view['basket']['mwst']) > 1 || $this->get_option('wpsg_showMwstAlways') == '1') { ?>
+ <td class="wpsg_cell_mwst"><?php echo __('anteilig', 'wpsg'); ?></td>
+ <?php } ?>
+ <td class="wpsg_cell_menge">1</td>
+ <td class="wpsg_cell_gesamtpreis"><?php echo '-'.wpsg_ff($this->view['basket']['sum']['gs'], $this->get_option('wpsg_currency')); ?></td>
+ </tr>
+ <?php } ?>
+ <?php if (isset($this->view['basket']['sum']['preis_rabatt']) && $this->view['basket']['sum']['preis_rabatt'] > 0) { ?>
+ <tr class="wpsg_<?php echo (($i % 2 == 0)?'odd':'even'); ?> wpsg_row_rabatt">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_rabatt_label">
+ <?php echo __('Abzüglich Rabatt', 'wpsg'); ?>
+ </td>
+ <td class="wpsg_cell_rabatt_value">
+ <?php echo '-'.wpsg_ff($this->view['basket']['sum']['preis_rabatt'], $this->get_option('wpsg_currency')); ?>
+ </td>
+ </tr>
+ <?php } ?>
+ <tr class="wpsg_row_summe">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_summe_label">
+ <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
+ <?php echo wpsg_translate(__('Summe (zzgl. #1#)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+ <?php } else { ?>
+ <?php if ($this->getFrontendTaxview() == WPSG_NETTO) { ?>
+ <?php echo wpsg_translate(__('Summe (zzgl. #1#, zzgl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+ <?php } else { ?>
+ <?php echo wpsg_translate(__('Summe (zzgl. #1#, inkl. MwSt.)', 'wpsg'), '<a href="'.$this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN).'" target="_blank">'.__('Versandkosten', 'wpsg').'</a>'); ?>
+ <?php } ?>
+ <?php } ?>
+ </td>
+ <td class="wpsg_cell_summe_value">
+ <?php echo wpsg_ff($this->view['basket']['sum']['preis']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php if ($this->view['basket']['sum']['preis_shipping'] != 0 || $this->get_option('wpsg_hideemptyshipping') != '1') { ?>
+ <tr class="wpsg_row_shipping">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_shipping_label">
+ <a href="<?php echo $this->getURL(wpsg_ShopController::URL_VERSANDKOSTEN); ?>" target="_blank"><?php echo __('Versandkosten', 'wpsg'); ?></a>
+ </td>
+ <td class="wpsg_cell_shipping_value">
+ <?php echo wpsg_ff($this->view['basket']['sum']['preis_shipping']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php } ?>
+ <?php if ($this->view['basket']['sum']['preis_payment'] != 0 || $this->get_option('wpsg_hideemptypayment') != '1') { ?>
+ <tr class="wpsg_row_payment">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_payment_label">
+ <?php echo __('Zahlungsart', 'wpsg'); ?>
+ </td>
+ <td class="wpsg_cell_payment_value">
+ <?php echo wpsg_ff($this->view['basket']['sum']['preis_payment']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php } ?>
+ <?php if ($this->get_option('wpsg_preisangaben') == '1' && $this->get_option('wpsg_kleinunternehmer') != '1') { ?>
+ <?php foreach ($this->view['basket']['mwst'] as $mwst_id => $mwst) { ?>
+ <tr class="wpsg_row_mwst">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
+ <?php echo wpsg_translate(__('zuzüglich MwSt. (#1#)', 'wpsg'), $mwst['name']); ?>
+ </td>
+ <td class="wpsg_cell_mwst_value">
+ <?php echo wpsg_ff($mwst['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php } ?>
+ <?php } ?>
+ <tr class="wpsg_row_gesamt">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_gesamt_label">
+ <?php echo __('Gesamtpreis', 'wpsg'); ?>
+ </td>
+ <td class="wpsg_cell_gesamt_value">
+ <?php echo wpsg_ff($this->view['basket']['sum']['preis_gesamt_brutto']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php if ($this->get_option('wpsg_kleinunternehmer') == '1' || $this->get_option('wpsg_preisangaben') != '1') { ?>
+ <?php foreach ($this->view['basket']['mwst'] as $mwst_id => $mwst) { ?>
+ <tr class="wpsg_row_mwst">
+ <td colspan="<?php echo $this->view['colspan']; ?>" class="wpsg_cell_mwst_label">
+ <?php if ($this->get_option('wpsg_kleinunternehmer') == '1') { ?>
+ <?php echo $this->get_option('wpsg_kleinunternehmer_text'); ?>
+ <?php } else { ?>
+ <?php echo wpsg_translate(__('darin enthaltene MwSt. (#1#)', 'wpsg'), $mwst['name']); ?>
+ <?php } ?>
+ </td>
+ <td class="wpsg_cell_mwst_value">
+ <?php echo wpsg_ff($mwst['sum']); ?> <?php echo $this->get_option('wpsg_currency'); ?>
+ </td>
+ </tr>
+ <?php } ?>
+ <?php } ?>
+ </table>
+
+ </div>
+ </div>
+
+ <?php $this->callMods('order_view_content', array($this->view['data']['id'])); ?>
+
+ <div class="postbox" id="wpsg_orderlog">
+ <h3 class="wpsg_handlediv">
+ <span title="<?php echo __('Zum Ein/Ausklappen hier klicken', 'wpsg'); ?>" class="handlediv"><br /></span>
+ <span><?php echo __('Bestellprotokoll', 'wpsg'); ?></span>
+ </h3>
+ <div class="inside" id="wpsg_orderlog_content">
+ <?php echo $this->view['orderLog']; ?>
+ </div>
+ </div>
+
+ </div>
+
+ </div>
+
+ </div>
+
+</div> \ No newline at end of file