1197 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Liste der Profile
|
|
|
5 |
*/
|
|
|
6 |
|
5683 |
daniel |
7 |
$arProfilSelect = array();
|
|
|
8 |
|
6425 |
daniel |
9 |
foreach ($this->view['arProfile'] as $p)
|
|
|
10 |
{
|
|
|
11 |
|
|
|
12 |
$arProfilSelect[$p['id']] = $p['name'];
|
|
|
13 |
|
|
|
14 |
if ($p['export_type'] === wpsg_mod_export::TYPE_ORDER) $arProfilSelect[$p['id']] .= ' ('.__('Bestellexport', 'wpsg').')';
|
|
|
15 |
else if ($p['export_type'] === wpsg_mod_export::TYPE_PRODUCT) $arProfilSelect[$p['id']] .= ' ('.__('Produktexport', 'wpsg').')';
|
6447 |
daniel |
16 |
else if ($p['export_type'] === wpsg_mod_export::TYPE_CUSTOMER) $arProfilSelect[$p['id']] .= ' ('.__('Kundenexport', 'wpsg').')';
|
6425 |
daniel |
17 |
|
|
|
18 |
}
|
|
|
19 |
|
1197 |
daniel |
20 |
?>
|
5683 |
daniel |
21 |
|
1197 |
daniel |
22 |
<?php if (sizeof($this->view['arProfile']) > 0) { ?>
|
5683 |
daniel |
23 |
<?php echo wpsg_drawForm_Select('wpsg_mod_export[profil]', __('Exportprofile', 'wpsg'), $arProfilSelect, @$this->view['profil_id'], array('id' => 'wpsg_mod_export_profil', 'onchange' => 'wpsg_mod_export_profilSwitch();')); ?>
|
|
|
24 |
<div id="profil_content" style="padding:15px 0px 15px 0px;"></div>
|
1197 |
daniel |
25 |
<?php } else { ?>
|
|
|
26 |
<p><?php echo __('Bisher noch keine Profile angelegt.', 'wpsg'); ?></p>
|
|
|
27 |
<?php } ?>
|
|
|
28 |
|
|
|
29 |
<script type="text/javascript">
|
|
|
30 |
|
|
|
31 |
jQuery(document).ready(function() {
|
|
|
32 |
wpsg_mod_export_profilSwitch();
|
|
|
33 |
} );
|
|
|
34 |
|
|
|
35 |
</script>
|