Line 45... |
Line 45... |
45 |
<?php if (!wpsg_isSizedInt($this->view['product_id'])) { ?>
|
45 |
<?php if (!wpsg_isSizedInt($this->view['product_id'])) { ?>
|
46 |
<td class="col_products"><?php echo wpsg_hspc($var['count_produkte']); ?></td>
|
46 |
<td class="col_products"><?php echo wpsg_hspc($var['count_produkte']); ?></td>
|
47 |
<?php } ?>
|
47 |
<?php } ?>
|
48 |
<td class="col_action">
|
48 |
<td class="col_action">
|
49 |
|
49 |
|
50 |
<script type="text/javascript">/* <![CDATA[ */
|
50 |
<script>
|
51 |
|
51 |
|
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']))) { ?>
|
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 |
|
53 |
|
54 |
jQuery('#productvariants_name_<?php echo $var['id']; ?>').wpsg_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']; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Admin&action=module&modul=wpsg_mod_productvariants&subaction=admin_inlineEdit&noheader=1', {
|
55 |
submitdata: {
|
55 |
submitdata: {
|
Line 67... |
Line 67... |
67 |
type: 'select'
|
67 |
type: 'select'
|
68 |
});
|
68 |
});
|
69 |
|
69 |
|
70 |
<?php } ?>
|
70 |
<?php } ?>
|
71 |
|
71 |
|
72 |
/* ]]> */</script>
|
72 |
</script>
|
73 |
|
73 |
|
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>
|
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>
|
75 |
|
75 |
|
76 |
<?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']))) { ?>
|
76 |
<?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']))) { ?>
|
77 |
<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Variante löschen', 'wpsg'); ?>" onclick="return wpsg_mod_productvariants_del(<?php echo $var['id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
|
77 |
<a href="#" class="wpsg-glyphlink-td" title="<?php echo __('Variante löschen', 'wpsg'); ?>" onclick="return wpsg_mod_productvariants_del(<?php echo $var['id']; ?>);"><span class="glyphicon glyphicon-trash"></span></a>
|
Line 83... |
Line 83... |
83 |
</tbody>
|
83 |
</tbody>
|
84 |
</table>
|
84 |
</table>
|
85 |
|
85 |
|
86 |
<p class="wpsg_hinweis"><?php echo __('Reihenfolge kann mittels Drag&Drop verändert werden.', 'wpsg'); ?></p>
|
86 |
<p class="wpsg_hinweis"><?php echo __('Reihenfolge kann mittels Drag&Drop verändert werden.', 'wpsg'); ?></p>
|
87 |
|
87 |
|
88 |
<script>/* <![CDATA[ */
|
88 |
<script>
|
89 |
|
89 |
|
90 |
jQuery('.wpsg_mod_productvariants_table_variants tbody').sortable( {
|
90 |
jQuery('.wpsg_mod_productvariants_table_variants tbody').sortable( {
|
91 |
items: 'tr',
|
91 |
items: 'tr',
|
92 |
helper: wpsg_Tablefix,
|
92 |
helper: wpsg_Tablefix,
|
93 |
update: function(event, ui) {
|
93 |
update: function(event, ui) {
|
Line 106... |
Line 106... |
106 |
} );
|
106 |
} );
|
107 |
|
107 |
|
108 |
}
|
108 |
}
|
109 |
} );
|
109 |
} );
|
110 |
|
110 |
|
111 |
/* ]]> */</script>
|
111 |
</script>
|
112 |
|
112 |
|
113 |
<?php } else { ?>
|
113 |
<?php } else { ?>
|
114 |
<?php echo __('Bisher keine Produktvarianten angelegt.', 'wpsg'); ?>
|
114 |
<?php echo __('Bisher keine Produktvarianten angelegt.', 'wpsg'); ?>
|
115 |
<?php } ?>
|
115 |
<?php } ?>
|
116 |
|
116 |
|