Subversion Repositories wpShopGermany4

Rev

Rev 5261 | Rev 7065 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5261 Rev 6351
Line 1... Line 1...
1
<?php
1
<?php 
2
 
-
 
3
	/**
2
/**
4
	 * Integration in das Formular für die Statusänderung einer Bestellung
3
 * Integration in das Formular für die Statusänderung einer Bestellung
5
	 */
4
 */
6
 
-
 
7
?>
5
?>
-
 
6
 
8
<div class="wpsg_form_field wpsg_mod_packagetracking">
7
<div class="wpsg_form_field wpsg_mod_packagetracking">
9
	<div class="wpsg_form_left">
-
 
10
		<?php echo __('Paketverfolgung', 'wpsg'); ?>:
-
 
11
	</div>
8
 
12
	<div class="wpsg_form_right">
-
 
13
		<input placeholder="<?php echo __('Tracking ID', 'wpsg'); ?>" type="text" id="wpsg_mod_packagetracking_code" value="<?php echo wpsg_hspc($this->view['wpsg_mod_packagetracking']['oOrder']->wpsg_mod_packagetracking_code); ?>" name="wpsg_mod_packagetracking_code" />
9
	<?php 
14
		<select name="wpsg_mod_packagetracking_provider" id="wpsg_mod_packagetracking_provider">
10
	$tcode = $this->view['wpsg_mod_packagetracking']['oOrder']->wpsg_mod_packagetracking_code;
15
			<option value="0"><?php echo __('Keine Paketverfolgung', 'wpsg'); ?></option>
11
	$prov = array();
16
			<?php if (wpsg_isSizedArray($this->view['wpsg_mod_packagetracking']['provider'])) { ?>
12
	foreach ($this->view['wpsg_mod_packagetracking']['provider'] as $p) $prov[] = $p['name'];
-
 
13
 
17
			<?php foreach ($this->view['wpsg_mod_packagetracking']['provider'] as $p) { ?>
14
	echo wpsg_drawForm_Input('wpsg_mod_packagetracking_code', __('Tracking-ID', 'wpsg'), $tcode);
18
			<option value="<?php echo wpsg_hspc($p['id']); ?>" <?php echo (($this->view['wpsg_mod_packagetracking']['preset'] == $p['id'])?'selected="selected"':''); ?>><?php echo wpsg_hspc($p['name']); ?></option>
15
	echo wpsg_drawForm_Select('wpsg_mod_packagetracking_provider', __('Provider', 'wpsg'), $prov, $this->view['wpsg_mod_packagetracking']['preset'], array());
19
			<?php } ?>
16
	?>
-
 
17
 
20
			<?php } ?>
18
	<?php 
21
		</select>
19
 
22
		<div class="wpsg_clear"></div>
-
 
23
		<?php if (wpsg_isSizedString($this->view['wpsg_mod_packagetracking']['oOrder']->wpsg_mod_packagetracking_code)) { ?>
20
        $temp = $this->view['wpsg_mod_packagetracking']['oOrder']->wpsg_mod_packagetracking_code;
-
 
21
		if (wpsg_isSizedString($temp)) {
-
 
22
			
-
 
23
			$link =	'<a href="';
24
		<a href="<?php echo $this->callMod('wpsg_mod_packagetracking', 'getTrackingURL', array(&$_REQUEST['edit_id'])); ?>"><?php echo __('Paketverfolgung', 'wpsg'); ?></a>
24
			$link .= $this->callMod('wpsg_mod_packagetracking', 'getTrackingURL', array(&$_REQUEST['edit_id']));
25
		<?php } ?>
25
			$link .= '">';
-
 
26
			$link .= __('Paketverfolgung', 'wpsg');
26
	</div>
27
			$link .= '</a>';
-
 
28
		
27
	<div class="wpsg_clear"></div> 
29
            echo wpsg_drawForm_Text('', $link, 'wpsg_trackingurl', array());
-
 
30
		}
-
 
31
	?>
28
</div>		
32
</div>		
29
 
33
 
30
<script type="text/javascript">/* <![CDATA[ */
34
<script type="text/javascript">/* <![CDATA[ */
31
 
35
 
32
	jQuery('#wpsg_order_view_status_submit').bind('click', function() {
36
	jQuery('#wpsg_order_view_status_submit').bind('click', function() {
33
 
37
 
34
		if (new Number(jQuery('#wpsg_order_view_status').val()) == 250)
38
		if (new Number(jQuery('#wpsg_order_view_status').val()) == 250)
35
		{
39
		{
36
 
40
 
Line 45... Line 49...
45
 
49
 
46
			}
50
			}
47
			
51
			
48
		}
52
		}
49
		
53
		
50
	} );
54
	} );
51
 
55
 
52
/* ]]> */</script>
56
/* ]]> */</script>
53
							
-
 
54
57