1428 |
daniel |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
/**
|
|
|
4 |
* Template für die Integration der Bestellvariablen in die Bestellverwaltung
|
|
|
5 |
*/
|
|
|
6 |
|
|
|
7 |
?>
|
6232 |
hartmut |
8 |
|
|
|
9 |
<?php echo wpsg_drawForm_AdminboxStart(__('Bestellvariablen', 'wpsg')); ?>
|
|
|
10 |
|
7924 |
daniel |
11 |
<?php foreach ($this->view['wpsg_mod_ordervars']['data'] as $ov_id => $ov) {
|
|
|
12 |
|
|
|
13 |
$value = $this->callMod('wpsg_mod_ordervars', 'getValueByIdAndOrder', array($ov_id, $_REQUEST['edit_id']));
|
|
|
14 |
|
|
|
15 |
if ($ov['typ'] == '1' && $value === 'not_set') $value = __('Keine Angabe', 'wpsg');
|
|
|
16 |
|
|
|
17 |
?>
|
|
|
18 |
|
7446 |
daniel |
19 |
<?php echo wpsg_drawForm_Text(
|
|
|
20 |
$this->callMod('wpsg_mod_ordervars', 'getNameById', array($ov['id'])),
|
7924 |
daniel |
21 |
$value,
|
7446 |
daniel |
22 |
'wpsg_ordervar_'.$ov_id
|
|
|
23 |
); ?>
|
|
|
24 |
|
4643 |
daniel |
25 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
26 |
|
|
|
27 |
<?php if ($ov['typ'] == '1') { /* Auswahl */ ?>
|
5934 |
hartmut |
28 |
jQuery('#wpsg_ordervar_<?php echo $ov_id; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_ordervars&do=inlinedit&noheader=1', {
|
4643 |
daniel |
29 |
submitdata: {
|
|
|
30 |
order_id: <?php echo $_REQUEST['edit_id']; ?>,
|
|
|
31 |
ov_id: '<?php echo $ov['id']; ?>'
|
|
|
32 |
},
|
|
|
33 |
submit : '<?php echo __('Speichern', 'wpsg'); ?>',
|
5945 |
hartmut |
34 |
data : <?php echo wpsg_prepare_for_inlineEdit(wpsg_array_merge((array)$ov['auswahl'], array('not_set' => __('Keine Angabe', 'wpsg')))); ?>,
|
4643 |
daniel |
35 |
type : 'select',
|
|
|
36 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
|
|
37 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
|
|
38 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
|
|
39 |
});
|
|
|
40 |
<?php } else if ($ov['typ'] == '2') { /* Text */ ?>
|
5934 |
hartmut |
41 |
jQuery('#wpsg_ordervar_<?php echo $ov_id; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_ordervars&do=inlinedit&noheader=1', {
|
4643 |
daniel |
42 |
submitdata: {
|
|
|
43 |
order_id: <?php echo $_REQUEST['edit_id']; ?>,
|
|
|
44 |
ov_id: '<?php echo $ov['id']; ?>'
|
|
|
45 |
},
|
|
|
46 |
submit: '<?php echo __('Speichern', 'wpsg'); ?>',
|
|
|
47 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
|
|
48 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
|
|
49 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
|
|
50 |
});
|
|
|
51 |
<?php } else if ($ov['typ'] == '3') { /* Checkbox */ ?>
|
5934 |
hartmut |
52 |
jQuery('#wpsg_ordervar_<?php echo $ov_id; ?>').wpsg_editable('<?php echo WPSG_URL_WP; ?>wp-admin/admin.php?page=wpsg-Order&action=ajax&mod=wpsg_mod_ordervars&do=inlinedit&noheader=1', {
|
4643 |
daniel |
53 |
submitdata: {
|
|
|
54 |
order_id: <?php echo $_REQUEST['edit_id']; ?>,
|
|
|
55 |
ov_id: '<?php echo $ov['id']; ?>'
|
|
|
56 |
},
|
|
|
57 |
submit : '<?php echo __('Speichern', 'wpsg'); ?>',
|
5945 |
hartmut |
58 |
data : <?php echo wpsg_prepare_for_inlineEdit(array('1' => __('Ja', 'wpsg'), '0' => __('Nein', 'wpsg'))); ?>,
|
4643 |
daniel |
59 |
type : 'select',
|
|
|
60 |
placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
|
|
|
61 |
indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
|
|
|
62 |
tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
|
|
|
63 |
});
|
|
|
64 |
<?php } ?>
|
|
|
65 |
|
|
|
66 |
/* ]]> */</script>
|
|
|
67 |
|
1428 |
daniel |
68 |
<?php } ?>
|
6232 |
hartmut |
69 |
|
|
|
70 |
<?php echo wpsg_drawForm_AdminboxEnd(); ?>
|