Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
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').')';
16
 
17
	}
18
 
1197 daniel 19
?>
5683 daniel 20
 
1197 daniel 21
<?php if (sizeof($this->view['arProfile']) > 0) { ?>
5683 daniel 22
<?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();')); ?>
23
<div id="profil_content" style="padding:15px 0px 15px 0px;"></div>
1197 daniel 24
<?php } else { ?>
25
<p><?php echo __('Bisher noch keine Profile angelegt.', 'wpsg'); ?></p>
26
<?php } ?>
27
 
28
<script type="text/javascript">
29
 
30
	jQuery(document).ready(function() {
31
		wpsg_mod_export_profilSwitch();
32
	} );
33
 
34
</script>