Subversion Repositories wpShopGermany4

Rev

Rev 7627 | Rev 7809 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7627 Rev 7807
Line 34... Line 34...
34
						<input id="wpsg_order" type="hidden" name="filter[order]" value="<?php echo @$this->view['arFilter']['order']; ?>" />
34
						<input id="wpsg_order" type="hidden" name="filter[order]" value="<?php echo @$this->view['arFilter']['order']; ?>" />
35
						<input id="wpsg_ascdesc" type="hidden" name="filter[ascdesc]" value="<?php echo @$this->view['arFilter']['ascdesc']; ?>" />
35
						<input id="wpsg_ascdesc" type="hidden" name="filter[ascdesc]" value="<?php echo @$this->view['arFilter']['ascdesc']; ?>" />
36
 
36
 
37
						<?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?>
37
						<?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?>
38
                        <?php echo wpsg_drawForm_Input('filter[k_id]', __('Kunde (ID)', 'wpsg'), wpsg_getStr($this->view['arFilter']['k_id'])); ?>
38
                        <?php echo wpsg_drawForm_Input('filter[k_id]', __('Kunde (ID)', 'wpsg'), wpsg_getStr($this->view['arFilter']['k_id'])); ?>
-
 
39
						
-
 
40
						<?php
-
 
41
							
-
 
42
							$arStateSelect = [];
-
 
43
							foreach ($this->view['arState'] as $state_key => $state_data) $arStateSelect[$state_key] = $state_data['label'];
-
 
44
							
39
						<?php echo wpsg_drawForm_Select('filter[status]', __('Abostatus', 'wpsg'), wpsg_array_merge(array('-1' => __('Alle', 'wpsg')), $this->arStatus), @$this->view['arFilter']['status']); ?>
45
							echo wpsg_drawForm_Select('filter[status]', __('Abostatus', 'wpsg'), wpsg_array_merge(array('-1' => __('Alle', 'wpsg')), $arStateSelect), @$this->view['arFilter']['state']); ?>
40
 
46
 
41
                        <?php echo wpsg_drawForm_TextStart(); ?>
47
                        <?php echo wpsg_drawForm_TextStart(); ?>
42
                        <div class="row">
48
                        <div class="row">
43
                            <div class="col-lg-6">
49
                            <div class="col-lg-6">
44
                                <select name="filter[cdate_m]" class="form-control input-sm">
50
                                <select name="filter[cdate_m]" class="form-control input-sm">
Line 94... Line 100...
94
    <div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
100
    <div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"/></div>
95
 
101
 
96
	<div class="pagination_wrap wpsg_status_link_wrap">
102
	<div class="pagination_wrap wpsg_status_link_wrap">
97
 
103
 
98
		<ul class="pagination">
104
		<ul class="pagination">
99
			<?php foreach ($this->view['arStatus'] as $status_key => $status_info) { ?>
105
			<?php foreach ($this->view['arState'] as $status_key => $status_info) { ?>
100
			<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>
106
			<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>
101
			<?php } ?>
107
			<?php } ?>
102
		</ul>
108
		</ul>
103
 
109
 
104
	</div>
110
	</div>
105
 
111
 
Line 120... Line 126...
120
                        <th class="col_customer wpsg_order" data-order="customer"><?php echo __('Kunde', 'wpsg'); ?></th>
126
                        <th class="col_customer wpsg_order" data-order="customer"><?php echo __('Kunde', 'wpsg'); ?></th>
121
                        <th class="col_payment wpsg_order" data-order="payment"><?php echo __('Bezahlmethode', 'wpsg'); ?></th>
127
                        <th class="col_payment wpsg_order" data-order="payment"><?php echo __('Bezahlmethode', 'wpsg'); ?></th>
122
                        <th class="col_shipping wpsg_order" data-order="shipping"><?php echo __('Versandart', 'wpsg'); ?></th>
128
                        <th class="col_shipping wpsg_order" data-order="shipping"><?php echo __('Versandart', 'wpsg'); ?></th>
123
                        <th class="col_products wpsg_order" data-order="products"><?php echo __('Abonnement', 'wpsg'); ?></th>                       
129
                        <th class="col_products wpsg_order" data-order="products"><?php echo __('Abonnement', 'wpsg'); ?></th>                       
124
                        <th class="col_sum wpsg_order" data-order="amount"><?php echo __('Bestellwert', 'wpsg'); ?></th>
130
                        <th class="col_sum wpsg_order" data-order="amount"><?php echo __('Bestellwert', 'wpsg'); ?></th>
125
                        <th class="col_state wpsg_order" data-order="time"><?php echo __('Laufzeit', 'wpsg'); ?></th>
131
                        <th class="col_time wpsg_order" data-order="time"><?php echo __('Laufzeit', 'wpsg'); ?></th>
-
 
132
						<th class="col_state wpsg_order" data-order="time"><?php echo __('Status', 'wpsg'); ?></th>
126
                    </tr>
133
                    </tr>
127
                </thead>
134
                </thead>
128
                <tbody>
135
                <tbody>
129
                    <?php foreach ($this->view['arData'] as $oOrder) { ?>
136
                    <?php foreach ($this->view['arData'] as $oAbo) { $oOrder = $oAbo->getOrder(); ?>
130
                    <tr>
137
                    <tr>
131
                        <td class="col_checkbox">
138
                        <td class="col_checkbox">
132
 
139
 
133
                            <input class="col_set_checkbox" name="wpsg_multido[<?php echo $oOrder->id; ?>]" type="checkbox" />
140
                            <input class="col_set_checkbox" name="wpsg_multido[<?php echo $oAbo->id; ?>]" type="checkbox" />
134
 
141
 
135
                        </td>
142
                        </td>
136
                        <td class="col_nr">
143
                        <td class="col_nr">
137
 
144
 
138
                            <?php echo $oOrder->getNr(); ?> <span class="wpsg_grey"><?php echo wpsg_formatTimestamp(strtotime($oOrder->cdate), false); ?></span><br />
145
                            <?php echo $oAbo->getNr(); ?> <span class="wpsg_grey"><?php echo wpsg_formatTimestamp(strtotime($oAbo->__get('cdate')), false); ?></span><br />
139
 
146
 
140
                            <div class="actions">
147
                            <div class="actions">
-
 
148
								
141
                                <span class="view"><a title="<?php echo __("Dieses Abonnement ansehen", "wpsg"); ?>" href="<?php 
149
                                <span class="view"><a title="<?php echo __("Dieses Abonnement ansehen", "wpsg"); ?>" href="<?php 
142
									
150
									
143
									echo wpsg_admin_url('Order', 'view', ['edit_id' => $oOrder->id]);
151
									echo wpsg_admin_url('Order', 'view', ['edit_id' => $oOrder->id]);
144
									
152
									
145
								?>"><?php echo __("Ansehen", "wpsg"); ?></a></span>
153
								?>"><?php echo __("Ansehen", "wpsg"); ?></a></span>
146
                                |
154
                                |
147
                                <?php if ($this->view['arFilter']['status'] != wpsg_ShopController::STATUS_GEKUENDIGTEABOS) { ?>
-
 
148
                                <?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 
-
 
149
										
-
 
150
									echo wpsg_admin_url('Order', 'resign', ['edit_id' => $oOrder->id], ['noheader' => '1']);
-
 
151
										
-
 
152
								?>"><?php echo __("Kündigen", "wpsg"); ?></a></span> 
-
 
153
                                | */ ?>
-
 
154
                                <?php } ?>
-
 
155
                                <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 
155
                                <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 
156
									
156
									
157
									echo wpsg_admin_url('Order', 'delete', ['edit_id' => $oOrder->id], ['abo' => '1', 'noheader' => '1']);	
157
									echo wpsg_admin_url('Order', 'delete', ['edit_id' => $oOrder->id], ['abo' => '1', 'noheader' => '1']);	
158
																			
158
																			
159
								?>"><?php echo __('Löschen', 'wpsg'); ?></a></span>
159
								?>"><?php echo __('Löschen', 'wpsg'); ?></a></span>
-
 
160
							
160
                            </div>
161
                            </div>
161
							
162
							
162
                            <?php if (trim($oOrder->admincomment) != "") { ?>
163
                            <?php if (trim($oAbo->getOrder()->admincomment) != "") { ?>
163
                            <a title="<?php echo __("Kommentar (Admin): ", "wpsg").htmlspecialchars($oOrder->admincomment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign admincomment" href="#"></a>
164
                            <a title="<?php echo __("Kommentar (Admin): ", "wpsg").htmlspecialchars($oAbo->getOrder()->admincomment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign admincomment" href="#"></a>
164
                            <?php } ?>
165
                            <?php } ?>
165
 
166
 
166
                            <?php if (trim($oOrder->comment) != "") { ?>
167
                            <?php if (trim($oAbo->getOrder()->comment) != "") { ?>
167
                            <a title="<?php echo __("Kommentar (Kunde): ", "wpsg").htmlspecialchars($oOrder->comment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign customercomment" href="#"></a>
168
                            <a title="<?php echo __("Kommentar (Kunde): ", "wpsg").htmlspecialchars($oAbo->getOrder()->comment); ?>" onclick="return false;" class="glyphicon glyphicon-question-sign customercomment" href="#"></a>
168
                            <?php } ?>
-
 
169
														
-
 
170
                            <?php if ($oOrder->hasShippingAdress()) { ?>
-
 
171
                            <a title="<?php echo __("Lieferadresse beachten", "wpsg"); ?>" onclick="return false;" class="glyphicon glyphicon-map-marker shippingadress" href="#"></a>
-
 
172
                            <?php } ?>
169
                            <?php } ?> 
173
 
170
 
174
                        </td>
171
                        </td>
175
                        <td class="col_customer">
172
                        <td class="col_customer">
176
                            <?php $firma = $oOrder->getInvoiceCompany(); if (wpsg_isSizedString($firma)) { ?>
173
                            <?php $firma = $oAbo->getOrder()->getInvoiceCompany(); if (wpsg_isSizedString($firma)) { ?>
177
                            <?php echo $firma; ?><br />
174
                            <?php echo $firma; ?><br />
178
                            <?php } ?>
175
                            <?php } ?>
179
                            <?php echo $oOrder->getInvoiceTitle(); ?> <?php echo $oOrder->getInvoiceFirstname(); ?> <?php echo $oOrder->getInvoiceName(); ?>
176
                            <?php echo $oAbo->getOrder()->getInvoiceTitle(); ?> <?php echo $oOrder->getInvoiceFirstname(); ?> <?php echo $oAbo->getOrder()->getInvoiceName(); ?>
180
                            <br />
177
                            <br />
181
                            <span class="wpsg_grey"><?php echo $oOrder->getInvoiceStreet(); ?><br />
178
                            <span class="wpsg_grey"><?php echo $oAbo->getOrder()->getInvoiceStreet(); ?><br />
182
                            <?php echo ltrim($oOrder->getInvoiceZip().' '.$oOrder->getInvoiceCity()); ?> <?php echo $oOrder->getInvoiceCountryKuerzel(); ?>
179
                            <?php echo ltrim($oAbo->getOrder()->getInvoiceZip().' '.$oAbo->getOrder()->getInvoiceCity()); ?> <?php echo $oAbo->getOrder()->getInvoiceCountryKuerzel(); ?>
183
                            </span>
180
                            </span>
184
                        </td>
181
                        </td>
185
                        <td class="col_payment">
182
                        <td class="col_payment">
186
 
183
 
187
                            <?php /* Bei Crefopay wird die Darstellung der Zahlungsart über das Modul geregelt */ ?>
184
                            <?php /* Bei Crefopay wird die Darstellung der Zahlungsart über das Modul geregelt */ ?>
Line 253... Line 250...
253
                              <br />
250
                              <br />
254
                                        
251
                                        
255
                            <?php } ?>
252
                            <?php } ?>
256
                            
253
                            
257
                       </td>
254
                       </td>
-
 
255
						
-
 
256
						<td class="col_state">
-
 
257
							
-
 
258
							<?php $state = $oAbo->getState(); ?>
-
 
259
							
-
 
260
							<?php if ($state === wpsg_abo::STATE_INEXTENSION) { ?><span style="color:orange;"><?php echo $oAbo->getStateLabel(); ?></span> 
-
 
261
							<?php } else if ($state === wpsg_abo::STATE_RUNNING) { ?><span style="color:green;"><?php echo $oAbo->getStateLabel(); ?></span>
-
 
262
							<?php } else if ($state === wpsg_abo::STATE_EXTEND) { ?><span style="color:red;"><?php echo $oAbo->getStateLabel(); ?></span><?php } ?>
-
 
263
															
-
 
264
						</td>
258
                       
265
                       
259
                    </tr>
266
                    </tr>
260
                    
267
                    
261
                    <?php } ?>
268
                    <?php } ?>
262
                    
269