Subversion Repositories wpShopGermany4

Rev

Rev 5488 | Rev 5934 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5488 Rev 5489
Line 13... Line 13...
13
	<table class="table table-striped wpsg_mod_productvariants_table_variants">
13
	<table class="table table-striped wpsg_mod_productvariants_table_variants">
14
    	<thead>
14
    	<thead>
15
      		<tr>
15
      		<tr>
16
      			<th class="col_id"><?php echo __('Id', 'wpsg'); ?></th>
16
      			<th class="col_id"><?php echo __('Id', 'wpsg'); ?></th>
17
        		<th class="col1"><?php echo __('Name', 'wpsg'); ?></th>
17
        		<th class="col1"><?php echo __('Name', 'wpsg'); ?></th>
-
 
18
        		<th class="col_type"><?php echo __('Typ', 'wpsg'); ?></th>
18
        		<th class="col_vari"><?php echo __('Variationen', 'wpsg'); ?></th>
19
        		<th class="col_vari"><?php echo __('Variationen', 'wpsg'); ?></th>
19
        		
20
        		
20
        		<?php if (!wpsg_isSizedInt($this->view['product_id'])) { ?>
21
        		<?php if (!wpsg_isSizedInt($this->view['product_id'])) { ?>
21
        		<th class="col_products"><?php echo __('Produkte', 'wpsg'); ?></th>
22
        		<th class="col_products"><?php echo __('Produkte', 'wpsg'); ?></th>
22
        		<?php } ?>
23
        		<?php } ?>
Line 32... Line 33...
32
    				<span class="wpsg_editable" id="productvariants_name_<?php echo $var['id']; ?>"><?php echo wpsg_hspc($var['name']); ?></span>
33
    				<span class="wpsg_editable" id="productvariants_name_<?php echo $var['id']; ?>"><?php echo wpsg_hspc($var['name']); ?></span>
33
    				<?php if (wpsg_isSizedInt($var['product_id'])) { ?>
34
    				<?php if (wpsg_isSizedInt($var['product_id'])) { ?>
34
    				&nbsp;<span class="wpsg_mod_productvariants_info"><?php echo __('(Produktbezogen)', 'wpsg'); ?></span>
35
    				&nbsp;<span class="wpsg_mod_productvariants_info"><?php echo __('(Produktbezogen)', 'wpsg'); ?></span>
35
    				<?php } ?>
36
    				<?php } ?>
36
    			</td>
37
    			</td>
-
 
38
    			<td class="col_type"><span class="wpsg_editable" id="productvariants_type_<?php echo $var['id']; ?>"><?php echo $var['type_label']; ?></span></td>
37
    			<td class="col_vari"><?php 
39
    			<td class="col_vari"><?php 
38
    			
40
    			
39
    				if (wpsg_isSizedInt($this->view['product_id'])) echo $var['count_active'].'/'.$var['count_variation'];
41
    				if (wpsg_isSizedInt($this->view['product_id'])) echo $var['count_active'].'/'.$var['count_variation'];
40
    				else echo $var['count_variation']; 
42
    				else echo $var['count_variation']; 
41
    			
43
    			
Line 46... Line 48...
46
    			<td class="col_action">
48
    			<td class="col_action">
47
    			
49
    			
48
    				<script type="text/javascript">/* <![CDATA[ */
50
    				<script type="text/javascript">/* <![CDATA[ */
49
 
51
 
50
    					<?php if ((wpsg_isSizedInt($this->view['product_id']) && $this->view['product_id'] == $var['product_id']) || (!wpsg_isSizedInt($var['product_id']) && !wpsg_isSizedInt($this->view['product_id']))) { ?>
52
    					<?php if ((wpsg_isSizedInt($this->view['product_id']) && $this->view['product_id'] == $var['product_id']) || (!wpsg_isSizedInt($var['product_id']) && !wpsg_isSizedInt($this->view['product_id']))) { ?>
-
 
53
 
51
						jQuery('#productvariants_name_<?php echo $var['id']; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', {
54
						jQuery('#productvariants_name_<?php echo $var['id']; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', {
52
							submitdata: { 
55
							submitdata: { 
53
					    		field: 'name',
56
					    		field: 'name',
54
					    		field_id: '<?php echo $var['id']; ?>'
57
					    		field_id: '<?php echo $var['id']; ?>'
55
							}
58
							}
56
						});
59
						});
-
 
60
 
-
 
61
						jQuery('#productvariants_type_<?php echo $var['id']; ?>').wspg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', { 
-
 
62
							submitdata: {
-
 
63
								field: 'type',
-
 
64
								field_id: '<?php echo $var['id']; ?>'
-
 
65
							},
-
 
66
							data: '<?php echo json_encode(wpsg_mod_productvariants::$arTypeLabel); ?>',
-
 
67
							type: 'select'							
-
 
68
						});	
-
 
69
						
57
						<?php } ?>		
70
						<?php } ?>		
58
		
71
		
59
					/* ]]> */</script>
72
					/* ]]> */</script>
60
    			
73
    			
61
    				<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Variante bearbeiten', 'wpsg'); ?>" onclick="return wpsg_mod_productvariants_edit(<?php echo $var['id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>
74
    				<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Variante bearbeiten', 'wpsg'); ?>" onclick="return wpsg_mod_productvariants_edit(<?php echo $var['id']; ?>);"><span class="glyphicon glyphicon-pencil"></span></a>