1067 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Kundenübersichtsseite im Backend
|
|
|
5 |
* Sollte normalerweise nicht angepasst werden
|
|
|
6 |
*/
|
|
|
7 |
|
|
|
8 |
?>
|
|
|
9 |
<div class="wrap">
|
|
|
10 |
<div class="icon32 icon32-posts-post" id="icon-edit"><br></div>
|
|
|
11 |
<h2>
|
|
|
12 |
<?php echo __('Kundenverwaltung', 'wpsg'); ?>
|
|
|
13 |
</h2>
|
|
|
14 |
|
|
|
15 |
<?php echo $this->writeBackendMessage(); ?>
|
|
|
16 |
|
|
|
17 |
<form method="POST">
|
|
|
18 |
<p class="search-box">
|
|
|
19 |
<label for="post-search-input" class="screen-reader-text"><?php echo __('Kunden suchen', 'wpsg'); ?>:</label>
|
|
|
20 |
<input type="text" value="<?php echo wpsg_hspc($_REQUEST['s']); ?>" name="s" id="post-search-input">
|
|
|
21 |
<input type="submit" value="<?php echo __('Kunden suchen', 'wpsg'); ?>" class="button" id="search-submit" name="">
|
|
|
22 |
</p>
|
|
|
23 |
|
|
|
24 |
<div class="tablenav top">
|
|
|
25 |
|
|
|
26 |
<?php if (sizeof($this->view['data'] > 0)) { ?>
|
|
|
27 |
<div class="tablenav-pages"><span class="displaying-num"><?php echo wpsg_translate(__('#1# Elemente', 'wpsg'), $this->view['count']); ?></span>
|
|
|
28 |
<div class="tablenav-pages">
|
|
|
29 |
<span class="pagination-links">
|
|
|
30 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&seite=1&s=<?php echo $_REQUEST['s']; ?>" title="<?php echo __('Zur ersten Seite gehen', 'wpsg'); ?>" class="first-page <?php echo (($this->view['seite'] == '1')?'disabled':''); ?>">«</a>
|
|
|
31 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&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>
|
|
|
32 |
<span class="paging-input"><input type="text" size="1" value="<?php echo $this->view['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>
|
|
|
33 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&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>
|
|
|
34 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&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>
|
|
|
35 |
</span>
|
|
|
36 |
</div>
|
|
|
37 |
|
|
|
38 |
<script type="text/javascript">
|
|
|
39 |
|
|
|
40 |
jQuery('.tablenav-pages .disabled').bind('click', function() { return false; } );
|
|
|
41 |
|
|
|
42 |
</script>
|
|
|
43 |
|
|
|
44 |
<br class="clear">
|
|
|
45 |
</div>
|
|
|
46 |
<?php } ?>
|
|
|
47 |
|
|
|
48 |
</div>
|
|
|
49 |
|
|
|
50 |
<input style="display:none;" type="submit" name="suchen" value="" />
|
|
|
51 |
|
|
|
52 |
</form>
|
|
|
53 |
|
|
|
54 |
<?php if (is_array($this->view['data']) && sizeof($this->view['data']) > 0) { ?>
|
|
|
55 |
<table class="widefat post fixed">
|
|
|
56 |
<thead>
|
|
|
57 |
<tr>
|
|
|
58 |
<th class="manage-column column-title"><?php echo __("Nr.", 'wpsg'); ?></th>
|
|
|
59 |
<th class="manage-column column-adress"><?php echo __("Anschrift", 'wpsg'); ?></th>
|
|
|
60 |
<th class="manage-column column-status"><?php echo __("Status", 'wpsg'); ?></th>
|
|
|
61 |
</tr>
|
|
|
62 |
</thead>
|
|
|
63 |
<tbody>
|
|
|
64 |
<?php foreach ($this->view['data'] as $k) { ?>
|
|
|
65 |
<tr>
|
|
|
66 |
<td class="manage-column column-title">
|
|
|
67 |
<strong><a title="<?php echo __("Diesen Kunden bearbeiten", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&action=edit&edit_id=<?php echo $k['id']; ?>" class="row-title"><?php echo wpsg_hspc((trim($k['vname'].' '.$k['name']) == "")?__("---- ", "wpsg"):$k['vname'].' '.$k['name']); ?></a> <a href="mailto:<?php echo wpsg_hspc($k['email']); ?>" style="font-weight:normal;">(<?php echo wpsg_hspc($k['email']); ?>)</a></strong>
|
|
|
68 |
<div class="row-actions">
|
|
|
69 |
<span class="edit"><a title="<?php echo __("Diesen Kunden bearbeiten", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&action=edit&edit_id=<?php echo $k['id']; ?>"><?php echo __("Bearbeiten", "wpsg"); ?></a></span>
|
|
|
70 |
|
|
|
|
71 |
<span class="del"><a onclick="if (!confirm('<?php echo __("Sind Sie sicher, dass Sie diesen Kunden löschen wollen?", "wpsg"); ?>')) return false;" title="<?php echo __("Diesen Kunden löschen", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&action=del&edit_id=<?php echo $k['id']; ?>&noheader=1"><?php echo __("Löschen", "wpsg"); ?></a></span>
|
|
|
72 |
</div>
|
|
|
73 |
</td>
|
|
|
74 |
<td class="manage-column column-adress">
|
|
|
75 |
<?php echo (($k['firma'] != '')?$k['firma']:'').'<br />'; ?>
|
|
|
76 |
<?php echo $k['strasse'].' '.$k['hausnr']; ?><br />
|
|
|
77 |
<?php echo $k['plz'].' '.$k['ort'].' '.$k['land_kuerzel']; ?><br />
|
|
|
78 |
</td>
|
|
|
79 |
<td class="manage-column column-status">
|
|
|
80 |
<?php echo wpsg_translate(__('#1# Bestellungen', 'wpsg'), $k['order_count']); ?><br />
|
|
|
81 |
<?php echo wpsg_translate(__('Umsatz: #1#', 'wpsg'), wpsg_ff($k['order_umsatz'], $this->get_option('wpsg_currency'))); ?>
|
|
|
82 |
</td>
|
|
|
83 |
</tr>
|
|
|
84 |
<?php } ?>
|
|
|
85 |
</tbody>
|
|
|
86 |
<tfoot>
|
|
|
87 |
<tr>
|
|
|
88 |
<th class="manage-column column-title"><?php echo __("Nr.", 'wpsg'); ?></th>
|
|
|
89 |
<th class="manage-column column-adress"><?php echo __("Anschrift", 'wpsg'); ?></th>
|
|
|
90 |
<th class="manage-column column-status"><?php echo __("Status", 'wpsg'); ?></th>
|
|
|
91 |
</tr>
|
|
|
92 |
</tfoot>
|
|
|
93 |
</table>
|
|
|
94 |
<?php } else { ?>
|
|
|
95 |
<p><?php echo __('Keine Kunden in der Datenbank.', 'wpsg'); ?></p>
|
|
|
96 |
<?php } ?>
|
|
|
97 |
|
|
|
98 |
</div>
|