36,7 → 36,13 |
|
<?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?> |
<?php echo wpsg_drawForm_Input('filter[k_id]', __('Kunde (ID)', 'wpsg'), wpsg_getStr($this->view['arFilter']['k_id'])); ?> |
<?php echo wpsg_drawForm_Select('filter[status]', __('Abostatus', 'wpsg'), wpsg_array_merge(array('-1' => __('Alle', 'wpsg')), $this->arStatus), @$this->view['arFilter']['status']); ?> |
|
<?php |
|
$arStateSelect = []; |
foreach ($this->view['arState'] as $state_key => $state_data) $arStateSelect[$state_key] = $state_data['label']; |
|
echo wpsg_drawForm_Select('filter[status]', __('Abostatus', 'wpsg'), wpsg_array_merge(array('-1' => __('Alle', 'wpsg')), $arStateSelect), @$this->view['arFilter']['state']); ?> |
|
<?php echo wpsg_drawForm_TextStart(); ?> |
<div class="row"> |
96,8 → 102,8 |
<div class="pagination_wrap wpsg_status_link_wrap"> |
|
<ul class="pagination"> |
<?php foreach ($this->view['arStatus'] as $status_key => $status_info) { ?> |
<li class="<?php echo ((wpsg_getStr($this->view['arFilter']['status']) == $status_key)?'active':''); ?>"><a href="#" onclick="return wpsg_setFilterStatus('<?php echo $status_key; ?>');"><?php echo wpsg_translate(__('#1# <span>(#2#)<span>', 'wpsg'), $status_info['label'], $status_info['count']); ?></a></li> |
<?php foreach ($this->view['arState'] as $status_key => $status_info) { ?> |
<li class="<?php echo ((wpsg_getStr($this->view['arFilter']['state']) == $status_key)?'active':''); ?>"><a href="#" onclick="return wpsg_setFilterStatus('<?php echo $status_key; ?>');"><?php echo wpsg_translate(__('#1# <span>(#2#)<span>', 'wpsg'), $status_info['label'], $status_info['count']); ?></a></li> |
<?php } ?> |
</ul> |
|
122,22 → 128,24 |
<th class="col_shipping wpsg_order" data-order="shipping"><?php echo __('Versandart', 'wpsg'); ?></th> |
<th class="col_products wpsg_order" data-order="products"><?php echo __('Abonnement', 'wpsg'); ?></th> |
<th class="col_sum wpsg_order" data-order="amount"><?php echo __('Bestellwert', 'wpsg'); ?></th> |
<th class="col_state wpsg_order" data-order="time"><?php echo __('Laufzeit', 'wpsg'); ?></th> |
<th class="col_time wpsg_order" data-order="time"><?php echo __('Laufzeit', 'wpsg'); ?></th> |
<th class="col_state wpsg_order" data-order="time"><?php echo __('Status', 'wpsg'); ?></th> |
</tr> |
</thead> |
<tbody> |
<?php foreach ($this->view['arData'] as $oOrder) { ?> |
<?php foreach ($this->view['arData'] as $oAbo) { $oOrder = $oAbo->getOrder(); ?> |
<tr> |
<td class="col_checkbox"> |
|
<input class="col_set_checkbox" name="wpsg_multido[<?php echo $oOrder->id; ?>]" type="checkbox" /> |
<input class="col_set_checkbox" name="wpsg_multido[<?php echo $oAbo->id; ?>]" type="checkbox" /> |
|
</td> |
<td class="col_nr"> |
|
<?php echo $oOrder->getNr(); ?> <span class="wpsg_grey"><?php echo wpsg_formatTimestamp(strtotime($oOrder->cdate), false); ?></span><br /> |
<?php echo $oAbo->getNr(); ?> <span class="wpsg_grey"><?php echo wpsg_formatTimestamp(strtotime($oAbo->__get('cdate')), false); ?></span><br /> |
|
<div class="actions"> |
|
<span class="view"><a title="<?php echo __("Dieses Abonnement ansehen", "wpsg"); ?>" href="<?php |
|
echo wpsg_admin_url('Order', 'view', ['edit_id' => $oOrder->id]); |
144,42 → 152,31 |
|
?>"><?php echo __("Ansehen", "wpsg"); ?></a></span> |
| |
<?php if ($this->view['arFilter']['status'] != wpsg_ShopController::STATUS_GEKUENDIGTEABOS) { ?> |
<?php /*<span class="storno"><a onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie dieses Abonnement kündigen möchten?', 'wpsg'); ?>');" title="<?php echo __("Dieses Abonnement kündigen", "wpsg"); ?>" href="<?php |
|
echo wpsg_admin_url('Order', 'resign', ['edit_id' => $oOrder->id], ['noheader' => '1']); |
|
?>"><?php echo __("Kündigen", "wpsg"); ?></a></span> |
| */ ?> |
<?php } ?> |
<span class="delete"><a onclick="return confirm('<?php echo __('Sind Sie sich sicher, dass Sie dieses Abonnement löschen möchten?', 'wpsg'); ?>');" title="<?php echo __('Dieses Abonnement löschen', 'wpsg'); ?>" href="<?php |
|
echo wpsg_admin_url('Order', 'delete', ['edit_id' => $oOrder->id], ['abo' => '1', 'noheader' => '1']); |
|
?>"><?php echo __('Löschen', 'wpsg'); ?></a></span> |
|
</div> |
|
<?php if (trim($oOrder->admincomment) != "") { ?> |
<a title="<?php echo __("Kommentar (Admin): ", "wpsg").htmlspecialchars($oOrder->admincomment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign admincomment" href="#"></a> |
<?php if (trim($oAbo->getOrder()->admincomment) != "") { ?> |
<a title="<?php echo __("Kommentar (Admin): ", "wpsg").htmlspecialchars($oAbo->getOrder()->admincomment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign admincomment" href="#"></a> |
<?php } ?> |
|
<?php if (trim($oOrder->comment) != "") { ?> |
<a title="<?php echo __("Kommentar (Kunde): ", "wpsg").htmlspecialchars($oOrder->comment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign customercomment" href="#"></a> |
<?php } ?> |
|
<?php if ($oOrder->hasShippingAdress()) { ?> |
<a title="<?php echo __("Lieferadresse beachten", "wpsg"); ?>" onclick="return false;" class="glyphicon glyphicon-map-marker shippingadress" href="#"></a> |
<?php } ?> |
<?php if (trim($oAbo->getOrder()->comment) != "") { ?> |
<a title="<?php echo __("Kommentar (Kunde): ", "wpsg").htmlspecialchars($oAbo->getOrder()->comment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign customercomment" href="#"></a> |
<?php } ?> |
|
</td> |
<td class="col_customer"> |
<?php $firma = $oOrder->getInvoiceCompany(); if (wpsg_isSizedString($firma)) { ?> |
<?php $firma = $oAbo->getOrder()->getInvoiceCompany(); if (wpsg_isSizedString($firma)) { ?> |
<?php echo $firma; ?><br /> |
<?php } ?> |
<?php echo $oOrder->getInvoiceTitle(); ?> <?php echo $oOrder->getInvoiceFirstname(); ?> <?php echo $oOrder->getInvoiceName(); ?> |
<?php echo $oAbo->getOrder()->getInvoiceTitle(); ?> <?php echo $oOrder->getInvoiceFirstname(); ?> <?php echo $oAbo->getOrder()->getInvoiceName(); ?> |
<br /> |
<span class="wpsg_grey"><?php echo $oOrder->getInvoiceStreet(); ?><br /> |
<?php echo ltrim($oOrder->getInvoiceZip().' '.$oOrder->getInvoiceCity()); ?> <?php echo $oOrder->getInvoiceCountryKuerzel(); ?> |
<span class="wpsg_grey"><?php echo $oAbo->getOrder()->getInvoiceStreet(); ?><br /> |
<?php echo ltrim($oAbo->getOrder()->getInvoiceZip().' '.$oAbo->getOrder()->getInvoiceCity()); ?> <?php echo $oAbo->getOrder()->getInvoiceCountryKuerzel(); ?> |
</span> |
</td> |
<td class="col_payment"> |
255,6 → 252,16 |
<?php } ?> |
|
</td> |
|
<td class="col_state"> |
|
<?php $state = $oAbo->getState(); ?> |
|
<?php if ($state === wpsg_abo::STATE_INEXTENSION) { ?><span style="color:orange;"><?php echo $oAbo->getStateLabel(); ?></span> |
<?php } else if ($state === wpsg_abo::STATE_RUNNING) { ?><span style="color:green;"><?php echo $oAbo->getStateLabel(); ?></span> |
<?php } else if ($state === wpsg_abo::STATE_EXTEND) { ?><span style="color:red;"><?php echo $oAbo->getStateLabel(); ?></span><?php } ?> |
|
</td> |
|
</tr> |
|