Line 3... |
Line 3... |
3 |
/**
|
3 |
/**
|
4 |
* Template für die Kundengruppenübersicht im Backend
|
4 |
* Template für die Kundengruppenübersicht im Backend
|
5 |
*/
|
5 |
*/
|
6 |
|
6 |
|
7 |
?>
|
7 |
?>
|
8 |
<div class="wrap wpsg_mod_kundenverwaltung_customergroup_index">
|
- |
|
9 |
|
- |
|
10 |
<div class="icon32 icon32-posts-post" id="icon-edit"><br /></div>
|
- |
|
11 |
|
- |
|
12 |
<h2>
|
- |
|
13 |
<?php echo __('Kundengruppenverwaltung', 'wpsg'); ?>
|
- |
|
14 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&action=add" class="add-new-h2"><?php echo __("Hinzufügen", "wpsg"); ?></a>
|
- |
|
15 |
</h2>
|
- |
|
16 |
|
- |
|
17 |
<?php echo $this->writeBackendMessage(); ?>
|
- |
|
18 |
|
- |
|
19 |
<form method="POST" id="filter_form">
|
- |
|
20 |
|
- |
|
21 |
<?php if (sizeof($this->view['data']) > 0) { ?>
|
- |
|
22 |
<p class="search-box">
|
- |
|
23 |
<label for="post-search-input" class="screen-reader-text"><?php echo __('Kundengruppen suchen', 'wpsg'); ?>:</label>
|
- |
|
24 |
<input type="text" value="<?php echo wpsg_hspc($_REQUEST['s']); ?>" name="filter[s]" id="post-search-input">
|
- |
|
25 |
<input type="submit" value="<?php echo __('Kundengruppen suchen', 'wpsg'); ?>" class="button" id="search-submit" name="">
|
- |
|
26 |
</p>
|
- |
|
27 |
<?php } ?>
|
- |
|
28 |
|
- |
|
29 |
<div class="tablenav top">
|
- |
|
30 |
|
- |
|
31 |
<?php if (sizeof($this->view['data']) > 0) { ?>
|
- |
|
32 |
<div class="tablenav-pages"><span class="displaying-num"><?php echo wpsg_translate(__('#1# Elemente', 'wpsg'), $this->view['count']); ?></span>
|
- |
|
33 |
<div class="tablenav-pages">
|
- |
|
34 |
<span class="pagination-links">
|
- |
|
35 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&seite=1&s=<?php echo $_REQUEST['s'].'&'.http_build_query((array)$_REQUEST['filter']); ?>" title="<?php echo __('Zur ersten Seite gehen', 'wpsg'); ?>" class="first-page <?php echo (($this->view['seite'] == '1')?'disabled':''); ?>">«</a>
|
- |
|
36 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&seite=<?php echo ($this->view['seite'] - 1).'&'.http_build_query((array)$_REQUEST['filter']); ?>" title="<?php echo __('Zur vorherigen Seite gehen', 'wpsg'); ?>" class="prev-page <?php echo (($this->view['seite'] <= 1)?'disabled':''); ?>">‹</a>
|
- |
|
37 |
<span class="paging-input"><input type="text" size="1" value="<?php echo $this->view['seite']; ?>" id="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>
|
- |
|
38 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&seite=<?php echo ($this->view['seite'] + 1).'&'.http_build_query((array)$_REQUEST['filter']); ?>" title="<?php echo __('Zur nächsten Seite gehen', 'wpsg'); ?>" class="next-page <?php echo (($this->view['seite'] >= $this->view['pages'])?'disabled':''); ?>">›</a>
|
- |
|
39 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&seite=<?php echo $this->view['pages'].'&'.http_build_query((array)$_REQUEST['filter']); ?>" title="<?php echo __('Zur letzten Seite gehen', 'wpsg'); ?>" class="last-page <?php echo (($this->view['seite'] == $this->view['pages'])?'disabled':''); ?>">»</a>
|
- |
|
40 |
</span>
|
- |
|
41 |
</div>
|
- |
|
42 |
|
- |
|
43 |
<script type="text/javascript">
|
- |
|
44 |
|
8 |
|
- |
|
9 |
<div class="wpsg_customergroup" id="wpsg-bs">
|
- |
|
10 |
|
- |
|
11 |
<nav class="navbar navbar-default">
|
- |
|
12 |
|
- |
|
13 |
<div class="container-fluid">
|
- |
|
14 |
<div class="navbar-header">
|
- |
|
15 |
<a class="navbar-brand" href="#"><?php echo __('wpShopGermany', 'wpsg'); ?></a>
|
- |
|
16 |
</div>
|
- |
|
17 |
<div class="collapse navbar-collapse" id="bs-customergroup-navbar-collapse-1">
|
- |
|
18 |
<ul class="nav navbar-nav">
|
- |
|
19 |
<li role="presentation" class="wpsg-customergroup-tab-a active"><a href="#" onclick="return false;"><?php echo __("Kundengruppenverwaltung", "wpsg"); ?></a></li>
|
45 |
jQuery('.tablenav-pages .disabled').bind('click', function() { return false; } );
|
20 |
<li role="presentation" class="wpsg-customergroup-tab-a wpsg_showhide_filter <?php echo (($this->view['hasFilter'] === true)?'active':''); ?>" id="wpsg-customergroup-tab-0"><a href="#" onclick="return false;"><span class="glyphicon glyphicon-search"></span><?php echo __("Suche", "wpsg"); ?></a></li>
|
46 |
|
21 |
<li role="presentation" class="<?php echo ((wpsg_isSizedString($_REQUEST['action'], 'add'))?'active':''); ?>"><a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&action=add"><span class="glyphicon glyphicon-plus"></span><?php echo __("Hinzufügen", "wpsg"); ?></a></li>
|
47 |
</script>
|
22 |
</ul>
|
- |
|
23 |
<ul class="nav navbar-nav navbar-right">
|
48 |
|
24 |
|
49 |
<br class="clear" />
|
25 |
</ul>
|
50 |
</div>
|
26 |
</div>
|
51 |
<?php } ?>
|
- |
|
52 |
|
- |
|
53 |
</div>
|
27 |
</div>
|
54 |
|
28 |
|
55 |
<input id="wpsg_order" type="hidden" name="filter[order]" value="<?php echo $this->view['filter']['order']; ?>" />
|
- |
|
56 |
<input id="wpsg_ascdesc" type="hidden" name="filter[ascdesc]" value="<?php echo $this->view['filter']['ascdesc']; ?>" />
|
- |
|
57 |
|
- |
|
58 |
<input style="display:none;" type="submit" name="suchen" value="" />
|
- |
|
59 |
|
- |
|
60 |
</form>
|
- |
|
61 |
|
- |
|
62 |
<?php if (is_array($this->view['data']) && sizeof($this->view['data']) > 0) { ?>
|
- |
|
63 |
<table class="widefat post fixed">
|
- |
|
64 |
<thead>
|
- |
|
65 |
<tr>
|
- |
|
66 |
<th class="manage-column col-id <?php echo ((wpsg_isSizedString($this->view['filter']['order'], 'id'))?'sorted':'sortable'); ?> <?php echo ((wpsg_isSizedString($this->view['filter']['ascdesc'], 'asc'))?'asc':'desc'); ?>">
|
- |
|
67 |
<a href="#" onclick="return wpsg_setOrder('id');">
|
- |
|
68 |
<span><?php echo __("Id", 'wpsg'); ?></span>
|
- |
|
69 |
<span class="sorting-indicator"></span>
|
- |
|
70 |
</a>
|
- |
|
71 |
</th>
|
- |
|
72 |
<th class="manage-column col-name <?php echo ((wpsg_isSizedString($this->view['filter']['order'], 'name'))?'sorted':'sortable'); ?> <?php echo ((wpsg_isSizedString($this->view['filter']['ascdesc'], 'asc'))?'asc':'desc'); ?>">
|
- |
|
73 |
<a href="#" onclick="return wpsg_setOrder('name');">
|
- |
|
74 |
<span><?php echo __("Name", 'wpsg'); ?></span>
|
- |
|
75 |
<span class="sorting-indicator"></span>
|
- |
|
76 |
</a>
|
- |
|
77 |
</th>
|
- |
|
78 |
<th class="manage-column col-calculation <?php echo ((wpsg_isSizedString($this->view['filter']['order'], 'calculation'))?'sorted':'sortable'); ?> <?php echo ((wpsg_isSizedString($this->view['filter']['ascdesc'], 'asc'))?'asc':'desc'); ?>">
|
- |
|
79 |
<a href="#" onclick="return wpsg_setOrder('name');">
|
- |
|
80 |
<span><?php echo __("Preisanzeige", 'wpsg'); ?></span>
|
- |
|
81 |
<span class="sorting-indicator"></span>
|
- |
|
82 |
</a>
|
- |
|
83 |
</th>
|
- |
|
84 |
<th class="manage-column col-customercount <?php echo ((wpsg_isSizedString($this->view['filter']['order'], 'customercount'))?'sorted':'sortable'); ?> <?php echo ((wpsg_isSizedString($this->view['filter']['ascdesc'], 'asc'))?'asc':'desc'); ?>">
|
29 |
<div class="wpsg-filter wpsg-customer-tab wpsg-customer-tab-0 container-fluid form-horizontal" style="display:<?php echo (($this->view['hasFilter'] === true)?'block':'none'); ?>;">
|
85 |
<a href="#" onclick="return wpsg_setOrder('customercount');">
|
- |
|
86 |
<span><?php echo __("Kunden", 'wpsg'); ?></span>
|
- |
|
87 |
<span class="sorting-indicator"></span>
|
- |
|
88 |
</a>
|
- |
|
89 |
</th>
|
- |
|
90 |
</tr>
|
- |
|
91 |
</thead>
|
- |
|
92 |
<tbody>
|
- |
|
93 |
<?php $i = 0; foreach ($this->view['data'] as $oCustomerGroup) { ?>
|
- |
|
94 |
<tr class="<?php echo (($i % 2 == 0)?'odd':'even'); ?>">
|
- |
|
95 |
<td class="col-id">
|
30 |
<div class="row">
|
96 |
<?php echo wpsg_hspc($oCustomerGroup->id); ?>
|
- |
|
97 |
</td>
|
- |
|
98 |
<td class="col-name">
|
31 |
<div class="col-lg-4">
|
99 |
<?php echo wpsg_hspc($oCustomerGroup->name); ?>
|
- |
|
100 |
<div class="row-actions">
|
- |
|
101 |
<span class="edit"><a title="<?php echo __("Diesen Kunden bearbeiten", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&action=edit&edit_id=<?php echo $oCustomerGroup->id; ?>"><?php echo __("Bearbeiten", "wpsg"); ?></a></span>
|
32 |
<form method="post" id="filter_form">
|
102 |
|
|
- |
|
103 |
<span class="edit"><a title="<?php echo __("Kunden dieser Kundengruppe anzeigen", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&customergroup=<?php echo $oCustomerGroup->id; ?>"><?php echo __("Kunden anzeigen", "wpsg"); ?></a></span>
|
33 |
|
104 |
|
|
- |
|
105 |
<span class="del"><a onclick="if (!confirm('<?php echo __("Sind Sie sicher, dass Sie diese Kundengruppe 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-Customergroup&action=del&edit_id=<?php echo $oCustomerGroup->id; ?>&noheader=1"><?php echo __("Löschen", "wpsg"); ?></a></span>
|
34 |
<input id="wpsg_seite" type="hidden" name="filter[page]" value="<?php echo @$this->view['page']; ?>" class="current-page" />
|
106 |
</div>
|
- |
|
107 |
</td>
|
- |
|
108 |
<td class="col-calculation">
|
- |
|
109 |
<?php if ($oCustomerGroup->calculation == WPSG_BRUTTO) { ?>
|
- |
|
110 |
<?php echo __('Brutto Preise', 'wpsg'); ?>
|
- |
|
111 |
<?php } else if ($oCustomerGroup->calculation == WPSG_NETTO) { ?>
|
- |
|
112 |
<?php echo __('Netto Preise', 'wpsg'); ?>
|
- |
|
113 |
<?php } else { ?>
|
- |
|
114 |
<?php echo __('Standard', 'wpsg'); ?>
|
- |
|
115 |
<?php } ?>
|
- |
|
116 |
</td>
|
- |
|
117 |
<td class="col-customercount">
|
- |
|
118 |
<?php echo wpsg_hspc($oCustomerGroup->customercount); ?>
|
- |
|
119 |
</td>
|
- |
|
120 |
</tr>
|
- |
|
121 |
<?php $i ++; } ?>
|
- |
|
122 |
</tbody>
|
- |
|
123 |
<tfoot>
|
- |
|
124 |
<tr>
|
- |
|
125 |
<th class="manage-column col-id <?php echo ((wpsg_isSizedString($this->view['filter']['order'], 'id'))?'sorted':'sortable'); ?> <?php echo ((wpsg_isSizedString($this->view['filter']['ascdesc'], 'asc'))?'asc':'desc'); ?>">
|
- |
|
126 |
<a href="#" onclick="return wpsg_setOrder('id');">
|
- |
|
127 |
<span><?php echo __("Id", 'wpsg'); ?></span>
|
- |
|
128 |
<span class="sorting-indicator"></span>
|
- |
|
129 |
</a>
|
- |
|
130 |
</th>
|
- |
|
131 |
<th class="manage-column col-name <?php echo ((wpsg_isSizedString($this->view['filter']['order'], 'name'))?'sorted':'sortable'); ?> <?php echo ((wpsg_isSizedString($this->view['filter']['ascdesc'], 'asc'))?'asc':'desc'); ?>">
|
- |
|
132 |
<a href="#" onclick="return wpsg_setOrder('name');">
|
- |
|
133 |
<span><?php echo __("Name", 'wpsg'); ?></span>
|
- |
|
134 |
<span class="sorting-indicator"></span>
|
- |
|
135 |
</a>
|
- |
|
136 |
</th>
|
- |
|
137 |
<th class="manage-column col-calculation <?php echo ((wpsg_isSizedString($this->view['filter']['order'], 'calculation'))?'sorted':'sortable'); ?> <?php echo ((wpsg_isSizedString($this->view['filter']['ascdesc'], 'asc'))?'asc':'desc'); ?>">
|
- |
|
138 |
<a href="#" onclick="return wpsg_setOrder('name');">
|
- |
|
139 |
<span><?php echo __("Preisanzeige", 'wpsg'); ?></span>
|
- |
|
140 |
<span class="sorting-indicator"></span>
|
- |
|
141 |
</a>
|
- |
|
142 |
</th>
|
- |
|
143 |
<th class="manage-column col-customercount <?php echo ((wpsg_isSizedString($this->view['filter']['order'], 'customercount'))?'sorted':'sortable'); ?> <?php echo ((wpsg_isSizedString($this->view['filter']['ascdesc'], 'asc'))?'asc':'desc'); ?>">
|
- |
|
144 |
<a href="#" onclick="return wpsg_setOrder('customercount');">
|
- |
|
145 |
<span><?php echo __("Kunden", 'wpsg'); ?></span>
|
- |
|
146 |
<span class="sorting-indicator"></span>
|
- |
|
147 |
</a>
|
- |
|
148 |
</th>
|
- |
|
149 |
</tr>
|
- |
|
150 |
</tfoot>
|
- |
|
151 |
</table>
|
- |
|
152 |
<?php } ?>
|
- |
|
153 |
|
- |
|
154 |
<div class="tablenav">
|
- |
|
155 |
|
35 |
|
156 |
<?php if (is_array($this->view['data']) && sizeof($this->view['data']) > 0) { ?>
|
36 |
<input id="wpsg_order" type="hidden" name="filter[order]" value="<?php echo @$this->view['arFilter']['order']; ?>" />
|
157 |
|
- |
|
158 |
<div class="tablenav-pages"><span class="displaying-num"><?php echo wpsg_translate(__('#1# Elemente', 'wpsg'), $this->view['count']); ?></span>
|
37 |
<input id="wpsg_ascdesc" type="hidden" name="filter[ascdesc]" value="<?php echo @$this->view['arFilter']['ascdesc']; ?>" />
|
159 |
<div class="tablenav-pages">
|
- |
|
160 |
<span class="pagination-links">
|
- |
|
161 |
<form method="POST">
|
- |
|
162 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&seite=1&s=<?php echo $_REQUEST['s'].'&'.http_build_query((array)$_REQUEST['filter']); ?>" title="<?php echo __('Zur ersten Seite gehen', 'wpsg'); ?>" class="first-page <?php echo (($this->view['seite'] == '1')?'disabled':''); ?>">«</a>
|
38 |
|
163 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&seite=<?php echo ($this->view['seite'] - 1).'&'.http_build_query((array)$_REQUEST['filter']); ?>" title="<?php echo __('Zur vorherigen Seite gehen', 'wpsg'); ?>" class="prev-page <?php echo (($this->view['seite'] <= 1)?'disabled':''); ?>">‹</a>
|
39 |
<?php echo wpsg_drawForm_Input('filter[s]', __('Suchfeld', 'wpsg'), wpsg_getStr($this->view['arFilter']['s'])); ?>
|
164 |
<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>
|
40 |
|
165 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&seite=<?php echo ($this->view['seite'] + 1).'&'.http_build_query((array)$_REQUEST['filter']); ?>" title="<?php echo __('Zur nächsten Seite gehen', 'wpsg'); ?>" class="next-page <?php echo (($this->view['seite'] >= $this->view['pages'])?'disabled':''); ?>">›</a>
|
41 |
<?php echo wpsg_drawForm_SubmitButton(__('Kundengruppen suchen')); ?><br />
|
166 |
<a href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&seite=<?php echo $this->view['pages'].'&'.http_build_query((array)$_REQUEST['filter']); ?>" title="<?php echo __('Zur letzten Seite gehen', 'wpsg'); ?>" class="last-page <?php echo (($this->view['seite'] == $this->view['pages'])?'disabled':''); ?>">»</a>
|
42 |
|
167 |
</form>
|
43 |
</form>
|
168 |
</span>
|
44 |
</div>
|
169 |
</div>
|
45 |
</div>
|
170 |
|
- |
|
171 |
<script type="text/javascript">
|
- |
|
172 |
|
- |
|
173 |
jQuery('.tablenav-pages .disabled').bind('click', function() { return false; } );
|
- |
|
174 |
|
- |
|
175 |
</script>
|
- |
|
176 |
|
- |
|
177 |
<br class="clear">
|
- |
|
178 |
</div>
|
- |
|
179 |
|
- |
|
180 |
<?php } ?>
|
- |
|
181 |
|
- |
|
182 |
</div>
|
- |
|
183 |
|
- |
|
184 |
<script type="text/javascript">/* <![CDATA[ */
|
- |
|
185 |
|
- |
|
186 |
var wpsg_order = '<?php echo $this->view['filter']['order']; ?>';
|
- |
|
187 |
var wpsg_ascdesc = '<?php echo $this->view['filter']['ascdesc']; ?>';
|
- |
|
188 |
|
- |
|
189 |
function wpsg_setOrder(order)
|
- |
|
190 |
{
|
- |
|
191 |
|
- |
|
192 |
if (order == wpsg_order)
|
- |
|
193 |
{
|
- |
|
194 |
|
- |
|
195 |
// Nur Richtung ändern
|
- |
|
196 |
if (wpsg_ascdesc == 'asc') jQuery('#wpsg_ascdesc').val('desc');
|
- |
|
197 |
else jQuery('#wpsg_ascdesc').val('asc');
|
- |
|
198 |
|
- |
|
199 |
}
|
- |
|
200 |
else
|
- |
|
201 |
{
|
- |
|
202 |
|
- |
|
203 |
jQuery('#wpsg_order').val(order);
|
- |
|
204 |
jQuery('#wpsg_ascdesc').val('asc');
|
- |
|
205 |
|
- |
|
206 |
}
|
- |
|
207 |
|
- |
|
208 |
jQuery('#seite').val(1);
|
- |
|
209 |
jQuery('#filter_form').submit();
|
- |
|
210 |
|
- |
|
211 |
return false;
|
- |
|
212 |
|
- |
|
213 |
} // function wpsg_setOrder(order)
|
- |
|
214 |
|
- |
|
215 |
/* ]]> */</script>
|
- |
|
216 |
|
- |
|
217 |
</div>
|
- |
|
218 |
|
46 |
</div>
|
- |
|
47 |
|
- |
|
48 |
</nav>
|
- |
|
49 |
|
- |
|
50 |
<?php if ($this->view['pages'] > 1) { ?>
|
- |
|
51 |
<nav class="pagination_wrap">
|
- |
|
52 |
<ul class="pagination">
|
- |
|
53 |
<?php if ($this->view['arFilter']['page'] > 1) { ?>
|
- |
|
54 |
<li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true">«</span></a></li>
|
- |
|
55 |
<?php } ?>
|
- |
|
56 |
<?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
|
- |
|
57 |
<li class="<?php echo (($i == $this->view['arFilter']['page'])?'active':''); ?>"><a onclick="return goPage(<?php echo $i; ?>);" href="#"><?php echo $i; ?></a></li>
|
- |
|
58 |
<?php } ?>
|
- |
|
59 |
<?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
|
- |
|
60 |
<li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true">»</span></a></li>
|
- |
|
61 |
<?php } ?>
|
- |
|
62 |
</ul>
|
- |
|
63 |
</nav>
|
- |
|
64 |
<?php } ?>
|
- |
|
65 |
|
- |
|
66 |
<div class="wpsg_clear"></div>
|
- |
|
67 |
|
- |
|
68 |
<?php echo $this->writeBackendMessage(); ?>
|
- |
|
69 |
|
- |
|
70 |
<div class="content">
|
- |
|
71 |
|
- |
|
72 |
<?php if (is_array($this->view['arData']) && sizeof($this->view['arData']) > 0) { ?>
|
- |
|
73 |
|
- |
|
74 |
<table class="table wpsg-table-order table-bordered table-hover table-striped wpsg-table-customer">
|
- |
|
75 |
<thead>
|
- |
|
76 |
<tr>
|
- |
|
77 |
<th class="wpsg_order manage-column col-name" data-order="name"><?php echo __('Name', 'wpsg'); ?></th>
|
- |
|
78 |
<th class="wpsg_order col-price" data-order="customercount"><?php echo __("Preisanzeige", 'wpsg'); ?></th>
|
- |
|
79 |
<th class="wpsg_order col_customer" data-order="calculation"><?php echo __("Kunden", 'wpsg'); ?></th>
|
- |
|
80 |
</tr>
|
- |
|
81 |
</thead>
|
- |
|
82 |
<tbody>
|
- |
|
83 |
<?php foreach ($this->view['arData'] as $oCustomerGroup) { ?>
|
- |
|
84 |
<tr>
|
- |
|
85 |
<td class="col-name">
|
- |
|
86 |
<?php echo wpsg_hspc($oCustomerGroup->name); ?>
|
- |
|
87 |
<div class="row-actions">
|
- |
|
88 |
<span class="edit"><a title="<?php echo __("Diesen Kunden bearbeiten", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customergroup&action=edit&edit_id=<?php echo $oCustomerGroup->id; ?>"><?php echo __("Bearbeiten", "wpsg"); ?></a></span>
|
- |
|
89 |
|
|
- |
|
90 |
<span class="edit"><a title="<?php echo __("Kunden dieser Kundengruppe anzeigen", "wpsg"); ?>" href="<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Customer&customergroup=<?php echo $oCustomerGroup->id; ?>"><?php echo __("Kunden anzeigen", "wpsg"); ?></a></span>
|
- |
|
91 |
|
|
- |
|
92 |
<span class="del"><a onclick="if (!confirm('<?php echo __("Sind Sie sicher, dass Sie diese Kundengruppe 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-Customergroup&action=del&edit_id=<?php echo $oCustomerGroup->id; ?>&noheader=1"><?php echo __("Löschen", "wpsg"); ?></a></span>
|
- |
|
93 |
</div>
|
- |
|
94 |
</td>
|
- |
|
95 |
<td class="col-price">
|
- |
|
96 |
<?php if ($oCustomerGroup->calculation == WPSG_BRUTTO) { ?>
|
- |
|
97 |
<?php echo __('Brutto Preise', 'wpsg'); ?>
|
- |
|
98 |
<?php } else if ($oCustomerGroup->calculation == WPSG_NETTO) { ?>
|
- |
|
99 |
<?php echo __('Netto Preise', 'wpsg'); ?>
|
- |
|
100 |
<?php } else { ?>
|
- |
|
101 |
<?php echo __('Standard', 'wpsg'); ?>
|
- |
|
102 |
<?php } ?>
|
- |
|
103 |
</td>
|
- |
|
104 |
<td class="col-customer">
|
- |
|
105 |
<?php echo wpsg_hspc($oCustomerGroup->customercount); ?>
|
- |
|
106 |
</td>
|
- |
|
107 |
</tr>
|
- |
|
108 |
<?php } ?>
|
- |
|
109 |
</tbody>
|
- |
|
110 |
</table>
|
- |
|
111 |
|
- |
|
112 |
<?php if ($this->view['pages'] > 1) { ?>
|
- |
|
113 |
<nav class="pagination_wrap pagination_wrap_bottom">
|
- |
|
114 |
<ul class="pagination">
|
- |
|
115 |
<?php if ($this->view['arFilter']['page'] > 1) { ?>
|
- |
|
116 |
<li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] - 1; ?>);" href="#" aria-label="<?php echo __('Vorherige Seite'); ?>"><span aria-hidden="true">«</span></a></li>
|
- |
|
117 |
<?php } ?>
|
- |
|
118 |
<?php for ($i = 1; $i <= $this->view['pages']; $i ++) { ?>
|
- |
|
119 |
<li class="<?php echo (($i == $this->view['arFilter']['page'])?'active':''); ?>"><a onclick="return goPage(<?php echo $i; ?>);" href="#"><?php echo $i; ?></a></li>
|
- |
|
120 |
<?php } ?>
|
- |
|
121 |
<?php if ($this->view['arFilter']['page'] + 1 <= $this->view['pages']) { ?>
|
- |
|
122 |
<li><a onclick="return goPage(<?php echo $this->view['arFilter']['page'] + 1; ?>);" href="#" aria-label="<?php echo __('Nächste Seite'); ?>"><span aria-hidden="true">»</span></a></li>
|
- |
|
123 |
<?php } ?>
|
- |
|
124 |
</ul>
|
- |
|
125 |
</nav>
|
- |
|
126 |
<?php } ?>
|
- |
|
127 |
|
- |
|
128 |
<?php } else { ?>
|
- |
|
129 |
<p><?php echo __('Bisher wurden noch keine Kundengruppen angelegt.', 'wpsg'); ?></p>
|
- |
|
130 |
<?php } ?>
|
- |
|
131 |
|
- |
|
132 |
</div>
|
- |
|
133 |
|
- |
|
134 |
</div>
|
- |
|
135 |
|
- |
|
136 |
<script type="text/javascript">/* <![CDATA[ */
|
- |
|
137 |
|
- |
|
138 |
<?php if (wpsg_isSizedString($this->view['arFilter']['order']) && wpsg_isSizedString($this->view['arFilter']['ascdesc'])) { ?>
|
- |
|
139 |
jQuery('th[data-order="<?php echo $this->view['arFilter']['order']; ?>"]').addClass('wpsg_order_<?php echo strtolower($this->view['arFilter']['ascdesc']); ?>');
|
- |
|
140 |
<?php } ?>
|
- |
|
141 |
|
- |
|
142 |
function goPage(page)
|
- |
|
143 |
{
|
- |
|
144 |
|
- |
|
145 |
if (page <= 0 || page == <?php echo $this->view['arFilter']['page']; ?> || page > <?php echo $this->view['pages']; ?>) return;
|
- |
|
146 |
|
- |
|
147 |
jQuery('#wpsg_seite').val(page);
|
- |
|
148 |
jQuery('#filter_form').submit();
|
- |
|
149 |
|
- |
|
150 |
return false;
|
- |
|
151 |
|
- |
|
152 |
} // function goPage(page)
|
- |
|
153 |
|
- |
|
154 |
/* ]]> */</script>
|
- |
|
155 |
|
219 |
|
156 |
|