Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
1230 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Einstellungen der Produktvariablen
5
	 */
6
 
7
?>
8
<script type="text/javascript">
9
 
10
	function wpsg_addPV()
11
	{
12
 
13
		jQuery('#wpsg_pv_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
14
 
15
		jQuery.ajax( {
16
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvars&noheader=1&do=add',
17
			success: function(data) {
18
				jQuery('#wpsg_pv_list').html(data);
19
			}
20
		} );
21
 
22
		return false;
23
 
24
	} // function wpsg_addPV()
25
 
26
	function wpsg_removePV(pv_id)
27
	{
28
 
29
		jQuery('#wpsg_pv_list').html('<img src="<?php echo WPSG_URL; ?>views/gfx/ajax-loader.gif" alt="<?php echo __('Bitte warten ...', 'wpsg'); ?>" />');
30
 
31
		jQuery.ajax( {
32
			url: '<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvars&noheader=1&do=del',
33
			data: {
34
				pv_id: pv_id
35
			},
36
			success: function(data) {
37
				jQuery('#wpsg_pv_list').html(data);
38
			}
39
		} );
40
 
41
		return false;
42
 
43
	}
44
 
45
</script>
46
 
5382 daniel 47
<br />
48
 
7120 thomas 49
<div>
50
	<ul class="nav nav-tabs">
7709 daniel 51
  		<li role="presentation" class="active"><a href="#tab1" role="tab" data-toggle="tab"><?php echo __('Produktvariablen', 'wpsg'); ?></a></li>
7120 thomas 52
  		<li role="presentation"><a href="#tab2" role="tab" data-toggle="tab"><?php echo __('Einstellungen', 'wpsg'); ?></a></li>
53
	</ul>
54
	<div class="tab-content">
55
		<div id="tab1" role="tabpanel" class="tab-pane active">
56
			<div class="content" id="wpsg_pv_list">
57
				<?php echo $this->mod->pv_list(); ?>
58
			</div>
5382 daniel 59
 
7120 thomas 60
			<br />
61
 
62
			<a title="<?php echo __('Neue Produktvariable anlegen', 'wpsg'); ?>" href="" class="" onclick="return wpsg_addPV();"><span class="glyphicon wpsg-glyphicon glyphicon-plus"></span><?php echo __('Neue Produktvariable anlegen.', 'wpsg'); ?></a>
63
 
64
		</div>
65
		<div id="tab2" role="tabpanel" class="tab-pane">
66
 
67
			<div class="wpsg_productvars_form">
68
				<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productvars_showProduct', __('Produktvariable(n) im Produkttemplate abfragen', 'wpsg'), $this->get_option('wpsg_mod_productvars_showProduct'), array('help' => 'wpsg_mod_productvars_showProduct')); ?>
69
				<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productvars_showBasket', __('Produktvariable(n) im Warenkorbtemplate darstellen', 'wpsg'), $this->get_option('wpsg_mod_productvars_showBasket'), array('help' => 'wpsg_mod_productvars_showBasket')); ?>
70
				<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productvars_showOverview', __('Produktvariable(n) im Bestellübersichtstemplate darstellen', 'wpsg'), $this->get_option('wpsg_mod_productvars_showOverview'), array('help' => 'wpsg_mod_productvars_showOverview')); ?>
7436 thomas 71
				<?php echo wpsg_drawForm_Checkbox('wpsg_mod_productvars_showMail', __('Produktvariable(n) im Mailtemplate nicht darstellen', 'wpsg'), $this->get_option('wpsg_mod_productvars_showMail'), array('help' => 'wpsg_mod_productvars_showMail')); ?>
1230 daniel 72
			</div>
73
		</div>
74
</div>