Subversion Repositories wpShopGermany4

Rev

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