Subversion Repositories wpShopGermany4

Rev

Rev 6007 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1647 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Einstellungen des Gutscheinprodukt Moduls
5
	 */
6
 
7
?>
8
<?php if (!$this->hasMod('wpsg_mod_gutschein')) { ?>
9
<p class="wpsg_error"><?php echo __('Bitte aktivieren Sie das Gutscheinmodul, damit dieses Modul korrekt funktioniert!', 'wpsg'); ?></p>
10
<?php } ?>
5877 hartmut 11
 
12
<div class="wpsg_admin_box" id="wpsg_tab">
13
    <ul class="nav nav-tabs" role="tablist">
14
        <li role="presentation" class="active"><a href="#tab1" aria-controls="home" role="tab" data-toggle="tab"><?php echo __('Einstellungen', 'wpsg'); ?></a></li>
15
        <li role="presentation"><a href="#tab2" aria-controls="profile" role="tab" data-toggle="tab"><?php echo __('Textfelder', 'wpsg'); ?></a></li>
16
    </ul>
17
 
18
	<div class="tab-content">
1647 daniel 19
 
5877 hartmut 20
		<div role="tabpanel" class="tab-pane active" id="tab1" >
5997 hartmut 21
 
22
            <?php echo wpsg_drawForm_TextStart(); ?>
6006 hartmut 23
            	<div style="position:relative;">
5997 hartmut 24
                <?php if ($this->view['bp'] === false) { ?>
25
                <p><?php echo __('Es wurde bisher kein Briefpapier hochgeladen', 'wpsg'); ?></p>
26
                <?php } else { ?>
27
                <a href="<?php echo $this->view['bp']; ?>" target="_blank"><?php echo __('Derzeitiges Briefpapier', 'wpsg'); ?></a>
28
                <?php } ?>
6006 hartmut 29
                <a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" data-wpsg-tip="mod_voucherproduct_paper" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_voucherproduct_paper" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_voucherproduct_paper"></a>
5997 hartmut 30
                <input type="file" name="wpsg_mod_voucherproduct_bp">
31
                <?php $strSuffix = ''; if ($this->view['bp'] !== false) { $strSuffix = '
32
                    <label>
33
						<input type="checkbox" name="wpsg_mod_voucherproduct_bp_del" value="1" />&nbsp;'.__('Löschen', 'wpsg').'
34
					</label>';
35
					echo __($strSuffix);
36
                } ?>
6006 hartmut 37
                </div>
5997 hartmut 38
            <?php echo wpsg_drawForm_TextEnd(__('Briefpapier (PDF/JPG)', 'wpsg'), array('noP' => true, 'helps' => 'wpsg_mod_voucherproduct_bp')); ?>
39
 
40
			<?php echo wpsg_drawForm_Input('wpsg_voucherproduct_width', __('Breite des PDFs in mm', 'wpsg'), $this->get_option('wpsg_voucherproduct_width'), array ('rAlign' => true, 'help' => 'wpsg_voucherproduct_width')); ?>
41
			<?php echo wpsg_drawForm_Input('wpsg_voucherproduct_height', __('Höhe des PDFs in mm', 'wpsg'), $this->get_option('wpsg_voucherproduct_height'), array ('rAlign' => true, 'help' => 'wpsg_voucherproduct_height')); ?>
42
 
43
            <?php echo wpsg_drawForm_TextStart(); ?>
44
				<?php echo wpsg_translate(__('Kann <a href="#1#">hier</a> konfiguriert werden.', 'wpsg'), WPSG_URL_WP.'wp-admin/admin.php?page=wpsg-Admin&subaction=emailconf#gutscheinproductmail'); ?>
6006 hartmut 45
				<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" data-wpsg-tip="mod_voucherproduct_mail" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_voucherproduct_mail" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_voucherproduct_mail"></a>
5997 hartmut 46
 
47
	        <?php echo wpsg_drawForm_TextEnd(__('Gutscheinmail an Kunden', 'wpsg'), array('noP' => true, 'helps' => 'wpsg_mod_voucherproduct_bp')); ?>
48
 
1647 daniel 49
		</div>
50
 
5877 hartmut 51
		<div role="tabpanel" class="tab-pane" id="tab2" >
6005 hartmut 52
			<table class="table table-body-striped wpsg_mod_voucher_fieldtable">
53
				<thead>
1647 daniel 54
				<tr>
6499 thomas 55
					<th class="col_bezeichnung"></th>
56
					<th class="col_freitext_label"><?php echo __('Freitext', 'wpsg'); ?></th>
1647 daniel 57
					<th class="col_x"><?php echo __('X', 'wpsg'); ?></th>
58
					<th class="col_y"><?php echo __('Y', 'wpsg'); ?></th>
6499 thomas 59
					<th class="col_color"><?php echo __('Farbe', 'wpsg'); ?></th>
60
					<th class="col_groesse"><?php echo __('Größe', 'wpsg'); ?></th>
1647 daniel 61
					<th class="col_align"><?php echo __('Zentriert', 'wpsg'); ?></th>
6499 thomas 62
					<th class="col_bg"><?php echo __('Hintergrund', 'wpsg'); ?></th>
6007 thomas 63
					<th class="col_alpha"><?php echo __('Deckkraft', 'wpsg'); ?></th>
1647 daniel 64
					<th class="col_angle"><?php echo __('Winkel', 'wpsg'); ?></th>
6499 thomas 65
					<th class="col_action"><?php echo __('Aktiv', 'wpsg'); ?></th>
1647 daniel 66
				</tr>
6005 hartmut 67
				</thead>
68
				<tbody>
1727 daniel 69
				<?php for ($i = 0; $i < 10; $i ++) { ?>
1647 daniel 70
				<tr>
6499 thomas 71
					<td><?php echo '#'.($i + 1); ?></td>
1647 daniel 72
					<td>
6499 thomas 73
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][text]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['text'])); ?>" />
74
					</td>
75
					<td>
4313 daniel 76
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][x]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['x'])); ?>" />
1647 daniel 77
					</td>
78
					<td>
4313 daniel 79
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][y]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['y'])); ?>" />
1647 daniel 80
					</td>
81
					<td>
4313 daniel 82
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][color]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['color'])); ?>" />
1647 daniel 83
					</td>
84
					<td>
85
						<select name="text[<?php echo $i; ?>][fontsize]" style="width:100%;">
4182 daniel 86
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 4))?'selected="selected"':''); ?> value="4">4</option>
87
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 5))?'selected="selected"':''); ?> value="5">5</option>
88
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 6))?'selected="selected"':''); ?> value="6">6</option>
89
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 7))?'selected="selected"':''); ?> value="7">7</option>
90
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 8))?'selected="selected"':''); ?> value="8">8</option>
91
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 9))?'selected="selected"':''); ?> value="9">9</option>
92
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 10))?'selected="selected"':''); ?> value="10">10</option>
93
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 11))?'selected="selected"':''); ?> value="11">11</option>
94
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 12))?'selected="selected"':''); ?> value="12">12</option>
95
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 13))?'selected="selected"':''); ?> value="13">13</option>
96
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 14))?'selected="selected"':''); ?> value="14">14</option>
97
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 16))?'selected="selected"':''); ?> value="16">16</option>
98
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 18))?'selected="selected"':''); ?> value="18">18</option>
99
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 20))?'selected="selected"':''); ?> value="20">20</option>
100
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 22))?'selected="selected"':''); ?> value="22">22</option>
101
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 24))?'selected="selected"':''); ?> value="24">24</option>
102
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 26))?'selected="selected"':''); ?> value="26">26</option>
103
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 28))?'selected="selected"':''); ?> value="28">28</option>
104
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 30))?'selected="selected"':''); ?> value="30">30</option>
105
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 32))?'selected="selected"':''); ?> value="32">32</option>
106
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 34))?'selected="selected"':''); ?> value="34">34</option>
1647 daniel 107
						</select>
108
					</td>
6499 thomas 109
					<td class="col_align">
110
						<input type="hidden" name="text[<?php echo $i; ?>][align]" value="0" />
111
						<input type="checkbox" name="text[<?php echo $i; ?>][align]" value="1" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['align']))?'checked="checked"':''); ?> />
112
					</td>
113
					<td class="col_bg">
114
						<input type="hidden" name="text[<?php echo $i; ?>][bg]" value="0" />
115
						<input type="checkbox" name="text[<?php echo $i; ?>][bg]" value="1" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['bg']))?'checked="checked"':''); ?> />
116
					</td>
117
 
118
					<td>
119
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][alpha]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['alpha'])); ?>" />
120
					</td>
121
					<td>
122
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][angle]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['angle'])); ?>" />
123
					</td>
124
 
1647 daniel 125
					<td>
6499 thomas 126
						<input type="checkbox" value="1" name="text[<?php echo $i; ?>][aktiv]" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['aktiv']))?'checked="checked"':''); ?> />
6006 hartmut 127
						<a style="float:right; position:relative;" class="glyphicon glyphicon-question-sign" data-wpsg-tip="mod_voucherproduct_fieldconfig" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_voucherproduct_fieldconfig" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_voucherproduct_fieldconfig"></a>
1647 daniel 128
					</td>
129
				</tr>
130
				<?php } ?>
6005 hartmut 131
				</tbody>
1647 daniel 132
			</table>
1727 daniel 133
 
134
			<input type="hidden" name="" id="wpsg-PreviewSubmit" />
135
 
136
			<br />
3028 daniel 137
			<input type="submit" name="submit" onclick="wpsg_showPreview(); return false;" class="button" value="<?php echo __('Speichern und Vorschau anzeigen', 'wpsg'); ?>" />
1727 daniel 138
			<br /><br />
139
 
1647 daniel 140
		</div>
141
	</div>
142
</div>
143
 
144
<script type="text/javascript">
145
 
1727 daniel 146
	function wpsg_showPreview()
147
	{
148
 
1728 daniel 149
		jQuery('form[name="form1"]').attr('target', 'voucherprview');
1727 daniel 150
		jQuery('#wpsg-PreviewSubmit').attr('name', 'submit-preview');
151
 
3030 daniel 152
		jQuery('input[name="submit"]:last').click();
1727 daniel 153
 
154
		jQuery('#wpsg-PreviewSubmit').attr('name', '');
155
		jQuery('form[name="form1"]').attr('target', '');
156
 
157
	} // function wpsg_showPreview()
158
 
1647 daniel 159
	jQuery(document).ready(function() {
160
 
161
		jQuery('#wpsg_tab').wpsg_tab( {
162
			'cookiename': 'wpsg_pdfdownload_tab',
163
			'tab2': function() {
164
				jQuery('.tablink').show();
165
			}
166
		} );
167
 
168
	} );
169
 
170
</script>