Subversion Repositories wpShopGermany4

Rev

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

Rev 7807 Rev 7809
Line 1... Line 1...
1
<?php
1
<?php
2
 
2
 
3
/**
3
	/**
4
 * Template für die Übersicht der Abonnements
4
	 * Template für die Übersicht der Abonnements
5
*/
5
	*/
-
 
6
	
6
?>
7
?>
7
 
8
 
8
<div class="wpsg_order" id="wpsg-bs">
9
<div class="wpsg_order" id="wpsg-bs">
9
 
10
 
10
	<nav class="navbar navbar-default">
11
	<nav class="navbar navbar-default">
Line 131... Line 132...
131
                        <th class="col_time wpsg_order" data-order="time"><?php echo __('Laufzeit', 'wpsg'); ?></th>
132
                        <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>
133
						<th class="col_state wpsg_order" data-order="time"><?php echo __('Status', 'wpsg'); ?></th>
133
                    </tr>
134
                    </tr>
134
                </thead>
135
                </thead>
135
                <tbody>
136
                <tbody>
136
                    <?php foreach ($this->view['arData'] as $oAbo) { $oOrder = $oAbo->getOrder(); ?>
137
                    <?php foreach ($this->view['arData'] as $oAbo) { 
-
 
138
                    	
-
 
139
                    	$oOrder = $oAbo->getOrder(); 
-
 
140
                    	$oOrderProduct = $oAbo->getOrderProduct();	
-
 
141
                    	
-
 
142
					?>
137
                    <tr>
143
                    <tr>
138
                        <td class="col_checkbox">
144
                        <td class="col_checkbox">
139
 
145
 
140
                            <input class="col_set_checkbox" name="wpsg_multido[<?php echo $oAbo->id; ?>]" type="checkbox" />
146
                            <input class="col_set_checkbox" name="wpsg_multido[<?php echo $oAbo->id; ?>]" type="checkbox" />
141
 
147
 
Line 152... Line 158...
152
									
158
									
153
								?>"><?php echo __("Ansehen", "wpsg"); ?></a></span>
159
								?>"><?php echo __("Ansehen", "wpsg"); ?></a></span>
154
                                |
160
                                |
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 
161
                                <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
									
162
									
157
									echo wpsg_admin_url('Order', 'delete', ['edit_id' => $oOrder->id], ['abo' => '1', 'noheader' => '1']);	
163
									echo wpsg_admin_url('Abo', 'delete', ['abo_id' => $oAbo->id], ['noheader' => '1']);	
158
																			
164
																			
159
								?>"><?php echo __('Löschen', 'wpsg'); ?></a></span>
165
								?>"><?php echo __('Löschen', 'wpsg'); ?></a></span>
160
							
166
							
161
                            </div>
167
                            </div>
162
							
168
							
Line 211... Line 217...
211
                            <?php } ?>
217
                            <?php } ?>
212
 
218
 
213
                        </td>
219
                        </td>
214
                        <td class="col_products">
220
                        <td class="col_products">
215
 
221
 
216
                            <?php $oOrderProducts = $oOrder->getOrderProducts(); ?>
222
							<?php if ($oOrderProduct === false) { ?>
217
                            
223
 
218
                            <?php foreach ($oOrderProducts as $oOrderProduct) { ?>
224
                                <?php echo __('Produkt nicht gefunden.', 'wpsg'); ?>
-
 
225
								
-
 
226
							<?php } else { ?>
219
                            
227
								
220
                                <?php echo wpsg_translate(__('#1# x <a href="#2#">#3#</a> für je #4#', 'wpsg'),
228
								<?php echo wpsg_translate(__('#1# x <a href="#2#">#3#</a> für je #4#', 'wpsg'),
221
                                    $oOrderProduct->getCount(),
229
									$oOrderProduct->getCount(),
222
									wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(), 'wpsg-product-edit-'.$oOrderProduct->getProductId()),
230
									wp_nonce_url(WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Produkt&action=edit&edit_id='.$oOrderProduct->getProductId(), 'wpsg-product-edit-'.$oOrderProduct->getProductId()),
223
                                    $oOrderProduct->getProductName(),
231
									$oOrderProduct->getProductName(),
224
                                    wpsg_ff($oOrderProduct->getOneAmount(), $this->get_option('wpsg_currency'))
232
									wpsg_ff($oOrderProduct->getOneAmount(), $this->get_option('wpsg_currency'))
-
 
233
								); ?>
-
 
234
							
225
                                ); ?>
235
							<?php } ?>
226
                            
236
                            
227
                            <?php } ?>
-
 
228
 
-
 
229
                        </td>
237
                        </td>
230
                        <td class="col_sum">
238
                        <td class="col_sum">
231
                            <?php echo wpsg_ff($oOrder->getAmount(), $this->get_option('wpsg_currency')); ?>
239
                            <?php echo wpsg_ff($oOrder->getAmount(), $this->get_option('wpsg_currency')); ?>
232
                        </td>
240
                        </td>
233
                        
241
                        
234
                        <?php /* Laufzeitspalte */ ?>
242
                        <?php /* Laufzeitspalte */ ?>
235
                        <td class="col_time">
243
                        <td class="col_time">
236
                            <?php if (in_array(strval($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id))), array(1))) { ?>
-
 
237
 
244
 
238
                            	<?php $abo_expiration = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getProductKey()))); ?>
245
                            <?php if ($oOrderProduct === false) { ?>
239
 
246
 
240
                              <?php if ($abo_expiration > time()) { ?>
247
                                <?php echo __('Produkt nicht gefunden.', 'wpsg'); ?>
241
                              	
248
								
-
 
249
							<?php } else { ?>
-
 
250
							
-
 
251
								<?php if (in_array(strval($this->callMod('wpsg_mod_abo', 'isAboOrder', array($oOrder->id))), array(1))) { ?>
-
 
252
	
-
 
253
									<?php $abo_expiration = strtotime($this->callMod('wpsg_mod_abo', 'getOrderAboExpiration', array($oOrder->id, $oOrderProduct->getProductKey()))); ?>
-
 
254
	
-
 
255
									<?php if ($abo_expiration > time()) { ?>
-
 
256
									
242
                              	<span class="wpsg_mod_abo_future_expire"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
257
										<span class="wpsg_mod_abo_future_expire"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
243
                              
258
								  
244
                              <?php } else { ?>
259
									<?php } else { ?>
245
                              
260
								  
246
                              	<span class="wpsg_mod_abo_expired"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
261
										<span class="wpsg_mod_abo_expired"><?php echo wpsg_formatTimestamp($abo_expiration); ?></span>
247
                                
262
									
248
                              <?php } ?>
263
									<?php } ?>
249
 
264
	
250
                              <br />
265
									<br />
251
                                        
266
											
252
                            <?php } ?>
267
								<?php } ?>
-
 
268
							
-
 
269
							<?php } ?>
253
                            
270
                            
254
                       </td>
271
                       </td>
255
						
272
						
256
						<td class="col_state">
273
						<td class="col_state">
257
							
274