Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
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
 
1428 daniel 11
		<?php foreach ($this->view['wpsg_mod_ordervars']['data'] as $ov_id => $ov) { ?>
4643 daniel 12
 
13
			<?php echo wpsg_drawForm_Input('wpsg_ordervar_'.$ov_id, $this->callMod('wpsg_mod_ordervars', 'getNameById', array($ov['id'])), $this->callMod('wpsg_mod_ordervars', 'getValueByIdAndOrder', array($ov_id, $_REQUEST['edit_id'])), array('text' => true, 'class_text' => 'wpsg_editable')); ?>
14
 
15
			<script type="text/javascript">/* <![CDATA[ */
16
 
17
				<?php if ($ov['typ'] == '1') { /* Auswahl */ ?>
5934 hartmut 18
				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 19
					submitdata: {
20
						order_id: <?php echo $_REQUEST['edit_id']; ?>,
21
						ov_id: '<?php echo $ov['id']; ?>'
22
					},
23
					submit  : '<?php echo __('Speichern', 'wpsg'); ?>',
5945 hartmut 24
					data   : <?php echo wpsg_prepare_for_inlineEdit(wpsg_array_merge((array)$ov['auswahl'], array('not_set' => __('Keine Angabe', 'wpsg')))); ?>,
4643 daniel 25
					type   : 'select',
26
					placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
27
					indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
28
			    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
29
				});
30
				<?php } else if ($ov['typ'] == '2') { /* Text */ ?>
5934 hartmut 31
				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 32
					submitdata: {
33
						order_id: <?php echo $_REQUEST['edit_id']; ?>,
34
						ov_id: '<?php echo $ov['id']; ?>'
35
					},
36
					submit: '<?php echo __('Speichern', 'wpsg'); ?>',
37
					placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
38
					indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
39
			    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
40
				});
41
				<?php } else if ($ov['typ'] == '3') { /* Checkbox */ ?>
5934 hartmut 42
				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 43
					submitdata: {
44
						order_id: <?php echo $_REQUEST['edit_id']; ?>,
45
								ov_id: '<?php echo $ov['id']; ?>'
46
					},
47
					submit  : '<?php echo __('Speichern', 'wpsg'); ?>',
5945 hartmut 48
					data   : <?php echo wpsg_prepare_for_inlineEdit(array('1' => __('Ja', 'wpsg'), '0' => __('Nein', 'wpsg'))); ?>,
4643 daniel 49
					type   : 'select',
50
					placeholder: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>',
51
					indicator: '<?php echo __('Speicher ...', 'wpsg'); ?>',
52
			    	tooltip: '<?php echo __('Zum Bearbeiten anklicken ...', 'wpsg'); ?>'
53
				});
54
				<?php } ?>
55
 
56
			/* ]]> */</script>
57
 
1428 daniel 58
		<?php } ?>
6232 hartmut 59
 
60
	<?php echo wpsg_drawForm_AdminboxEnd(); ?>