Subversion Repositories wpShopGermany4

Rev

Rev 5997 | Rev 6006 | Go to most recent revision | 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(); ?>
23
                <?php if ($this->view['bp'] === false) { ?>
24
                <p><?php echo __('Es wurde bisher kein Briefpapier hochgeladen', 'wpsg'); ?></p>
25
                <?php } else { ?>
26
                <a href="<?php echo $this->view['bp']; ?>" target="_blank"><?php echo __('Derzeitiges Briefpapier', 'wpsg'); ?></a>
27
                <?php } ?>
28
                <a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" 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>
29
                <input type="file" name="wpsg_mod_voucherproduct_bp">
30
                <?php $strSuffix = ''; if ($this->view['bp'] !== false) { $strSuffix = '
31
                    <label>
32
						<input type="checkbox" name="wpsg_mod_voucherproduct_bp_del" value="1" />&nbsp;'.__('Löschen', 'wpsg').'
33
					</label>';
34
					echo __($strSuffix);
35
                } ?>
36
            <?php echo wpsg_drawForm_TextEnd(__('Briefpapier (PDF/JPG)', 'wpsg'), array('noP' => true, 'helps' => 'wpsg_mod_voucherproduct_bp')); ?>
37
 
38
			<?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')); ?>
39
			<?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')); ?>
40
 
41
            <?php echo wpsg_drawForm_TextStart(); ?>
42
				<?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'); ?>
43
				<a class="wpsg_glyphicon_right glyphicon glyphicon-question-sign" style="float:right;" 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>
44
 
45
	        <?php echo wpsg_drawForm_TextEnd(__('Gutscheinmail an Kunden', 'wpsg'), array('noP' => true, 'helps' => 'wpsg_mod_voucherproduct_bp')); ?>
46
 
1647 daniel 47
		</div>
48
 
5877 hartmut 49
		<div role="tabpanel" class="tab-pane" id="tab2" >
6005 hartmut 50
			<table class="table table-body-striped wpsg_mod_voucher_fieldtable">
51
				<thead>
1647 daniel 52
				<tr>
53
					<th class="col_bezeichnung"></th>
54
					<th class="col_x"><?php echo __('X', 'wpsg'); ?></th>
55
					<th class="col_y"><?php echo __('Y', 'wpsg'); ?></th>
56
					<th class="col_align"><?php echo __('Zentriert', 'wpsg'); ?></th>
57
					<th class="col_bg"><?php echo __('Hintergrund', 'wpsg'); ?></th>
58
					<th class="col_color"><?php echo __('Farbe', 'wpsg'); ?></th>
59
					<th class="col_alpha"><?php echo __('Opaque', 'wpsg'); ?></th>
60
					<th class="col_angle"><?php echo __('Winkel', 'wpsg'); ?></th>
61
					<th class="col_groesse"><?php echo __('Größe', 'wpsg'); ?></th>
62
					<th class="col_action"></th>
63
				</tr>
6005 hartmut 64
				</thead>
65
				<tbody>
1727 daniel 66
				<?php for ($i = 0; $i < 10; $i ++) { ?>
1647 daniel 67
				<tr>
68
					<td><?php echo '#'.($i + 1); ?></td>
69
					<td>
4313 daniel 70
						<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 71
					</td>
72
					<td>
4313 daniel 73
						<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 74
					</td>
75
					<td class="col_align">
76
						<input type="hidden" name="text[<?php echo $i; ?>][align]" value="0" />
4182 daniel 77
						<input type="checkbox" name="text[<?php echo $i; ?>][align]" value="1" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['align']))?'checked="checked"':''); ?> />
1647 daniel 78
					</td>
79
					<td class="col_bg">
80
						<input type="hidden" name="text[<?php echo $i; ?>][bg]" value="0" />
4182 daniel 81
						<input type="checkbox" name="text[<?php echo $i; ?>][bg]" value="1" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['bg']))?'checked="checked"':''); ?> />
1647 daniel 82
					</td>
83
					<td>
4313 daniel 84
						<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 85
					</td>
86
					<td>
4313 daniel 87
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][alpha]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['alpha'])); ?>" />
1647 daniel 88
					</td>
89
					<td>
4313 daniel 90
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][angle]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['angle'])); ?>" />
1647 daniel 91
					</td>
92
					<td>
93
						<select name="text[<?php echo $i; ?>][fontsize]" style="width:100%;">
4182 daniel 94
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 4))?'selected="selected"':''); ?> value="4">4</option>
95
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 5))?'selected="selected"':''); ?> value="5">5</option>
96
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 6))?'selected="selected"':''); ?> value="6">6</option>
97
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 7))?'selected="selected"':''); ?> value="7">7</option>
98
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 8))?'selected="selected"':''); ?> value="8">8</option>
99
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 9))?'selected="selected"':''); ?> value="9">9</option>
100
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 10))?'selected="selected"':''); ?> value="10">10</option>
101
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 11))?'selected="selected"':''); ?> value="11">11</option>
102
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 12))?'selected="selected"':''); ?> value="12">12</option>
103
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 13))?'selected="selected"':''); ?> value="13">13</option>
104
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 14))?'selected="selected"':''); ?> value="14">14</option>
105
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 16))?'selected="selected"':''); ?> value="16">16</option>
106
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 18))?'selected="selected"':''); ?> value="18">18</option>
107
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 20))?'selected="selected"':''); ?> value="20">20</option>
108
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 22))?'selected="selected"':''); ?> value="22">22</option>
109
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 24))?'selected="selected"':''); ?> value="24">24</option>
110
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 26))?'selected="selected"':''); ?> value="26">26</option>
111
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 28))?'selected="selected"':''); ?> value="28">28</option>
112
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 30))?'selected="selected"':''); ?> value="30">30</option>
113
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 32))?'selected="selected"':''); ?> value="32">32</option>
114
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 34))?'selected="selected"':''); ?> value="34">34</option>
1647 daniel 115
						</select>
116
					</td>
117
					<td>
4182 daniel 118
						<label><input type="checkbox" value="1" name="text[<?php echo $i; ?>][aktiv]" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['aktiv']))?'checked="checked"':''); ?> />&nbsp;<?php echo __("Aktiv", "wpsg"); ?></label>
5945 hartmut 119
						<a style="float:right; position:relative;" class="glyphicon glyphicon-question-sign" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_fieldconfig" rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_fieldconfig"></a>
1647 daniel 120
					</td>
121
				</tr>
122
				<tr>
123
					<td></td>
124
					<td class="col_freitext_label"><?php echo __('Freitext', 'wpsg'); ?>:</td>
125
					<td colspan="8" class="col_freitext">
4313 daniel 126
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][text]" value="<?php echo wpsg_hspc(wpsg_getStr($this->view['arTexte'][$i]['text'])); ?>" />
1647 daniel 127
					</td>
128
				</tr>
129
				<?php } ?>
6005 hartmut 130
				</tbody>
1647 daniel 131
			</table>
1727 daniel 132
 
133
			<input type="hidden" name="" id="wpsg-PreviewSubmit" />
134
 
135
			<br />
3028 daniel 136
			<input type="submit" name="submit" onclick="wpsg_showPreview(); return false;" class="button" value="<?php echo __('Speichern und Vorschau anzeigen', 'wpsg'); ?>" />
1727 daniel 137
			<br /><br />
138
 
1647 daniel 139
		</div>
140
	</div>
141
</div>
142
 
143
<script type="text/javascript">
144
 
1727 daniel 145
	function wpsg_showPreview()
146
	{
147
 
1728 daniel 148
		jQuery('form[name="form1"]').attr('target', 'voucherprview');
1727 daniel 149
		jQuery('#wpsg-PreviewSubmit').attr('name', 'submit-preview');
150
 
3030 daniel 151
		jQuery('input[name="submit"]:last').click();
1727 daniel 152
 
153
		jQuery('#wpsg-PreviewSubmit').attr('name', '');
154
		jQuery('form[name="form1"]').attr('target', '');
155
 
156
	} // function wpsg_showPreview()
157
 
1647 daniel 158
	jQuery(document).ready(function() {
159
 
160
		jQuery('#wpsg_tab').wpsg_tab( {
161
			'cookiename': 'wpsg_pdfdownload_tab',
162
			'tab2': function() {
163
				jQuery('.tablink').show();
164
			}
165
		} );
166
 
167
	} );
168
 
169
</script>