Subversion Repositories wpShopGermany4

Rev

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