Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
5439 daniel 1
<div class="form-group form-group-sm <?php echo ((wpsg_isSizedString($this->view['field_config']['help']))?'has-feedback':''); ?>">
5264 daniel 2
 
3
	<label class="col-sm-6 control-label" for="<?php echo $this->view['field_id']; ?>"><?php echo $this->view['field_label']; ?></label>
4
 
5
	<div class="col-sm-6">
5436 daniel 6
 
7
		<div class="wpsg_field_wrap">
5450 daniel 8
			<input
5752 daniel 9
				type="<?php echo wpsg_getStr($this->view['field_config']['type'], 'text'); ?>"
5450 daniel 10
				class="form-control input-sm"
7529 daniel 11
				<?php if (($this->view['field_config']['autocomplete']??true) === false) { ?> autocomplete="off" <?php } ?>
7486 daniel 12
				name="<?php echo $this->view['field_name']; ?>"
5748 daniel 13
				tabindex="<?php
14
 
15
					if (!isset($GLOBALS['wpsg']['tabindex']))
16
					{
17
 
18
						$GLOBALS['wpsg']['tabindex'] = 10;
19
 
20
					}
21
					else
22
					{
23
 
24
						$GLOBALS['wpsg']['tabindex'] += 10;
25
 
26
					}
27
 
28
					echo $GLOBALS['wpsg']['tabindex'];
29
 
30
				?>"
31
				value="<?php echo wpsg_hspc($this->view['field_value']); ?>"
5450 daniel 32
				id="<?php echo $this->view['field_id']; ?>"
33
				placeholder="<?php echo wpsg_getStr($this->view['field_config']['placeholder']); ?>"
34
				<?php if (wpsg_isTrue($this->view['field_config']['readonly'])) { ?>
35
				readonly="readonly"
36
				<?php } ?>
6948 thomas 37
				<?php if (wpsg_isSizedInt($this->view['field_config']['maxlength'])) { ?>
38
				maxlength="<?php echo $this->view['field_config']['maxlength']; ?>"
39
				<?php } ?>
5450 daniel 40
				/>
5436 daniel 41
			<?php if (wpsg_isSizedString($this->view['field_config']['help'])) { ?>
5997 hartmut 42
				<?php if (wpsg_isTrue($this->view['field_config']['rAlign'])) { ?>
6004 daniel 43
					<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']; ?>"
6005 hartmut 44
					class="glyphicon glyphicon glyphicon-question-sign form-control-feedback" aria-hidden="true" style="float:right;"></a>
5997 hartmut 45
				<?php } else { ?>
6004 daniel 46
					<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']; ?>"
6005 hartmut 47
					class="glyphicon glyphicon glyphicon-question-sign form-control-feedback" aria-hidden="true"></a>
5997 hartmut 48
				<?php } ?>
5436 daniel 49
			<?php } ?>
50
		</div>
51
 
5264 daniel 52
	</div>
5753 daniel 53
 
54
    <?php if (wpsg_isTrue($this->view['field_config']['datepicker'])) { ?>
7486 daniel 55
    <script>
5753 daniel 56
 
57
        jQuery(document).ready(function() {
58
 
5792 daniel 59
            jQuery('#<?php echo $this->view['field_id']; ?>').datepicker( { dateFormat: 'dd.mm.yy' } );
5753 daniel 60
 
61
        } );
62
 
7486 daniel 63
    </script>
5753 daniel 64
    <?php } ?>
65
 
5391 daniel 66
	<div class="clearfix wpsg_clear"></div>
67
 
5264 daniel 68
</div>