Subversion Repositories wpShopGermany4

Rev

Rev 6723 | Rev 7576 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
6723 daniel 1
<?php
2
 
3
    /*
4
     * Template für die Auswahl der Kunden für die Kundenzusammenfassung
5
     */
6
 
7
?>
8
 
9
<div class="wpsg_customer" id="wpsg-bs">
10
    <div class="content">
11
 
12
        <form method="POST">
13
 
14
            <input type="hidden" name="wpsg_do" value="setAccount" />
15
 
16
            <div class="wpsg_customer" id="wpsg-bs">
17
 
18
                <nav class="navbar navbar-default">
19
 
20
                    <div class="container-fluid">
21
                        <div class="navbar-header">
22
                            <a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
23
                        </div>
24
                        <div class="collapse navbar-collapse" id="bs-customer-navbar-collapse-1">
25
                            <ul class="nav navbar-nav">
26
                                <li role="presentation" class=""><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer"><?php echo __("Kundenverwaltung (Übersicht)", "wpsg"); ?></a></li>
27
                            </ul>
28
                        </div>
29
                    </div>
30
 
31
                    <div class="wpsg-filter wpsg-customer-tab wpsg-customer-tab-0 container-fluid form-horizontal">
32
                        <div class="row">
33
                            <div class="col-lg-4">
34
 
35
                                <?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld (Zielkunde)', 'wpsg'), wpsg_getStr($_REQUEST['filter']['s'])); ?>
36
                                <?php echo wpsg_drawForm_SubmitButton(__('Kunden suchen')); ?><br />
37
 
38
                            </div>
39
                        </div>
40
                    </div>
41
 
42
                </nav>
43
 
44
                <div class="wpsg_msg_wrap"><hr class="wp-header-end wpsg-wp-header-end"></div>
45
 
46
            </div>
47
 
48
            <div class="content">
49
                <div class="row">
50
 
51
                    <div class="col-lg-6">
52
 
53
                        <fieldset>
54
 
55
                            <legend><?php echo __('Kundenkonto, in das die Kunden überführt werden sollen:', 'wpsg'); ?></legend>
56
 
57
                            <?php if (!wpsg_isSizedArray($this->view['targetCustomer'])) { ?>
58
 
59
                                <p>
60
                                    <?php echo __('Es konnte kein passender Kunde gefunden werden.', 'wpsg'); ?>
61
                                </p>
62
 
63
                            <?php } else { ?>
64
 
65
                                <table class="table wpsg-table-order table-bordered table-hover table-striped wpsg-table-customer">
66
                                    <thead>
67
                                    <tr>
68
                                        <th class="manage-column column-title wpsg_pic_col"></th>
69
                                        <th class="wpsg_order col_name" data-order="nr"><?php echo __("Nr/Name", 'wpsg'); ?></th>
70
                                        <th class="wpsg_order col_adress" data-order="adress"><?php echo __("Anschrift", 'wpsg'); ?></th>
71
                                        <th class="wpsg_order col_status" data-order="status"><?php echo __("Status", 'wpsg'); ?></th>
72
                                    </tr>
73
                                    </thead>
74
                                    <tbody>
75
                                    <?php foreach ($this->view['targetCustomer'] as $c) { ?>
76
                                        <tr>
77
                                            <td class="wpsg_pic_col">
78
 
79
                                                <img src="https://www.gravatar.com/avatar/<?php echo md5(strtolower(trim($c->getEMail()))); ?>?s=40&d=mm" alt=""" />
80
                                                <input type="radio" name="set_target" value="<?php echo $c->id; ?>" />
81
 
82
                                            </td>
83
                                            <td class="col_name column-title">
84
                                                <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 $c->id; ?>" class="row-title"><?php echo trim($c->GetNr().' '.$c->getLabel()); ?></a></strong>
85
                                                <?php if (strlen($c->getEMail()) > 0) { ?>
86
                                                    <a style="margin-bottom:3px; display:block;" href="mailto:<?php echo $c->getEMail(); ?>" title="<?php echo __('Dem Kunden eine E-Mail schreiben.', 'wpsg'); ?>"><?php echo $c->getEMail();  ?></a>
87
                                                <?php } ?>
88
 
89
                                                <?php $passwort_saltmd5 = $c->passwort_saltmd5; if (!wpsg_isSizedString($passwort_saltmd5)) { ?>
90
                                                <strong class="wpsg_error"><?php echo __('Gastzugang', 'wpsg'); ?></strong>
91
                                                <?php } ?>
92
 
93
                                            </td>
94
                                            <td class="col_adress">
95
                                                <?php echo ((strlen($c->getCompany()) > 0)?$c->getCompany().'<br />':''); ?>
96
                                                <?php echo $c->getStreet(); ?><br />
97
                                                <?php echo trim($c->getZip().' '.$c->getCity()); ?><br />
98
                                            </td>
99
                                            <td class="col_status">
100
                                                <?php echo wpsg_translate(__('#1# Bestellungen', 'wpsg'), $c->getOrderCount()); ?><br />
101
                                                <?php echo wpsg_translate(__('Umsatz: #1#', 'wpsg'), wpsg_ff($c->getOrderAmount(), $this->get_option('wpsg_currency'))); ?>
102
                                                <?php if ($c->getOrderCount() > 0) { ?>
103
                                                    <br />
104
                                                    <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&filter[k_id]=<?php echo $c->id; ?>"><?php echo __('Bestellungen einsehen', 'wpsg'); ?></a>
105
                                                <?php } ?>
106
                                            </td>
107
                                        </tr>
108
                                    <?php } ?>
109
                                    </tbody>
110
                                </table>
111
 
112
                                <br />
113
 
114
                                <input type="submit" name="submit_do" class="button" value="<?php echo __('Kundenkonten zusammenfügen', 'wpsg'); ?>" />
115
 
116
                            <?php } ?>
117
 
118
                        </fieldset>
119
 
120
                    </div>
121
                    <div class="col-lg-6">
122
 
123
                        <fieldset>
124
 
125
                            <legend><?php echo __('Gewählte Kunden (Diese werden gelöscht)', 'wpsg'); ?></legend>
126
 
127
                            <table class="table wpsg-table-order table-bordered table-hover table-striped wpsg-table-customer">
128
                                <thead>
129
                                <tr>
130
                                    <th class="manage-column column-title wpsg_pic_col"></th>
131
                                    <th class="wpsg_order col_name" data-order="nr"><?php echo __("Nr/Name", 'wpsg'); ?></th>
132
                                    <th class="wpsg_order col_adress" data-order="adress"><?php echo __("Anschrift", 'wpsg'); ?></th>
133
                                    <th class="wpsg_order col_status" data-order="status"><?php echo __("Status", 'wpsg'); ?></th>
134
                                </tr>
135
                                </thead>
136
                                <tbody>
137
                                <?php foreach (@$_REQUEST['customer'] as $customer_id) { $c = wpsg_customer::getInstance($customer_id); ?>
138
                                    <tr>
139
                                        <td class="wpsg_pic_col">
140
                                            <img src="https://www.gravatar.com/avatar/<?php echo md5(strtolower(trim($c->getEMail()))); ?>?s=40&d=mm" alt=""" />
141
                                            <input type="hidden" value="<?php echo $c->id; ?>" name="customer[]" />
142
                                        </td>
143
                                        <td class="col_name column-title">
144
                                            <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 $c->id; ?>" class="row-title"><?php echo trim($c->GetNr().' '.$c->getLabel()); ?></a></strong>
145
                                            <?php if (strlen($c->getEMail()) > 0) { ?>
146
                                                <a href="mailto:<?php echo $c->getEMail(); ?>" title="<?php echo __('Dem Kunden eine E-Mail schreiben.', 'wpsg'); ?>"><?php echo $c->getEMail();  ?></a>
147
                                            <?php } ?>
148
                                        </td>
149
                                        <td class="col_adress">
150
                                            <?php echo ((strlen($c->getCompany()) > 0)?$c->getCompany().'<br />':''); ?>
151
                                            <?php echo $c->getStreet(); ?><br />
152
                                            <?php echo trim($c->getZip().' '.$c->getCity()); ?><br />
153
                                        </td>
154
                                        <td class="col_status">
155
                                            <?php echo wpsg_translate(__('#1# Bestellungen', 'wpsg'), $c->getOrderCount()); ?><br />
156
                                            <?php echo wpsg_translate(__('Umsatz: #1#', 'wpsg'), wpsg_ff($c->getOrderAmount(), $this->get_option('wpsg_currency'))); ?>
157
                                            <?php if ($c->getOrderCount() > 0) { ?>
158
                                                <br />
159
                                                <a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&filter[k_id]=<?php echo $c->id; ?>"><?php echo __('Bestellungen einsehen', 'wpsg'); ?></a>
160
                                            <?php } ?>
161
                                        </td>
162
                                    </tr>
163
                                <?php } ?>
164
                                </tbody>
165
                            </table>
166
 
167
                        </fieldset>
168
 
169
                    </div>
170
 
171
                </div>
172
            </div>
173
 
174
        </form>
175
 
176
        <?php // wpsg_debug($_REQUEST); ?>
177
 
178
    </div>
179
 
180
</div>
181