Subversion Repositories wpShopGermany4

Rev

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

Rev 5439 Rev 5450
Line 5... Line 5...
5
	<div class="col-sm-6">
5
	<div class="col-sm-6">
6
		
6
		
7
		<div class="wpsg_field_wrap">
7
		<div class="wpsg_field_wrap">
8
		
8
		
9
			<select id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>" class="form-control input-sm" <?php echo $this->view['atts_select']; ?>>
9
			<select id="<?php echo $this->view['field_id']; ?>" name="<?php echo $this->view['field_name']; ?>" class="form-control input-sm" <?php echo $this->view['atts_select']; ?>>
-
 
10
				
-
 
11
				<?php 
-
 
12
				
-
 
13
					if (wpsg_isTrue($this->view['field_config']['optgroup'])) 
-
 
14
					{ 
-
 
15
				
-
 
16
						$arGroup = array();
-
 
17
						
10
				<?php foreach ($this->view['field_values'] as $k => $v) { ?>
18
						foreach ($this->view['field_values'] as $k_group => $v_group)
-
 
19
						{
-
 
20
							
-
 
21
							$arGroup[$k_group] = $v_group[0];
-
 
22
							$arValues[$k_group] = $v_group[1];
-
 
23
							
-
 
24
						}
-
 
25
				
-
 
26
					}
-
 
27
					else
-
 
28
					{
-
 
29
						
-
 
30
						$arValues = array($this->view['field_values']);
-
 
31
						$arGroup = null;
-
 
32
						
-
 
33
					}
-
 
34
				
-
 
35
				?>
-
 
36
				
-
 
37
				<?php foreach ($arValues as $k_group => $v_group) { ?>
-
 
38
				
-
 
39
					<?php if (!is_null($arGroup)) { ?><optgroup label="<?php echo $arGroup[$k_group]; ?>"><?php } ?>
-
 
40
				
-
 
41
					<?php foreach ($v_group as $k => $v) { ?>
-
 
42
					<option <?php 
-
 
43
					
-
 
44
						if (wpsg_isTrue($this->view['field_config']['noKeys']) && wpsg_isSizedString($v, $this->view['field_value'])) echo ' selected="selected" ';
11
				<option <?php echo (($k == $this->view['field_value'])?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($k); ?>"><?php echo wpsg_hspc($v); ?></option>
45
						else echo (($k == $this->view['field_value'])?'selected="selected"':''); 
-
 
46
						
-
 
47
					?> value="<?php 
-
 
48
					
-
 
49
						if (wpsg_isTrue($this->view['field_config']['noKeys'])) echo wpsg_hspc($v);
-
 
50
						else echo wpsg_hspc($k); 
-
 
51
						
-
 
52
					?>"><?php echo wpsg_hspc($v); ?></option>
-
 
53
					<?php } ?>
-
 
54
					
-
 
55
					<?php if (!is_null($arGroup)) { ?></optgroup><?php } ?>
-
 
56
					
12
				<?php } ?>
57
				<?php } ?>
-
 
58
				
13
			</select>
59
			</select>
14
			
60
			
15
			<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
61
			<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
16
				<a href="#" data-wpsg-tip="<?php echo $this->view['field_config']['help']; ?>" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=<?php echo $this->view['field_config']['help']; ?>" class="glyphicon glyphicon glyphicon-info-sign form-control-feedback" aria-hidden="true"></a>
62
				<a href="#" data-wpsg-tip="<?php echo $this->view['field_config']['help']; ?>" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=<?php echo $this->view['field_config']['help']; ?>" class="glyphicon glyphicon glyphicon-info-sign form-control-feedback" aria-hidden="true"></a>
17
			<?php } ?>
63
			<?php } ?>