Subversion Repositories wpShopGermany4

Rev

Rev 6005 | Rev 6007 | 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(); ?>
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>
55
					<th class="col_bezeichnung"></th>
56
					<th class="col_x"><?php echo __('X', 'wpsg'); ?></th>
57
					<th class="col_y"><?php echo __('Y', 'wpsg'); ?></th>
58
					<th class="col_align"><?php echo __('Zentriert', 'wpsg'); ?></th>
59
					<th class="col_bg"><?php echo __('Hintergrund', 'wpsg'); ?></th>
60
					<th class="col_color"><?php echo __('Farbe', 'wpsg'); ?></th>
61
					<th class="col_alpha"><?php echo __('Opaque', 'wpsg'); ?></th>
62
					<th class="col_angle"><?php echo __('Winkel', 'wpsg'); ?></th>
63
					<th class="col_groesse"><?php echo __('Größe', 'wpsg'); ?></th>
64
					<th class="col_action"></th>
65
				</tr>
6005 hartmut 66
				</thead>
67
				<tbody>
1727 daniel 68
				<?php for ($i = 0; $i < 10; $i ++) { ?>
1647 daniel 69
				<tr>
70
					<td><?php echo '#'.($i + 1); ?></td>
71
					<td>
4313 daniel 72
						<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 73
					</td>
74
					<td>
4313 daniel 75
						<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 76
					</td>
77
					<td class="col_align">
78
						<input type="hidden" name="text[<?php echo $i; ?>][align]" value="0" />
4182 daniel 79
						<input type="checkbox" name="text[<?php echo $i; ?>][align]" value="1" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['align']))?'checked="checked"':''); ?> />
1647 daniel 80
					</td>
81
					<td class="col_bg">
82
						<input type="hidden" name="text[<?php echo $i; ?>][bg]" value="0" />
4182 daniel 83
						<input type="checkbox" name="text[<?php echo $i; ?>][bg]" value="1" <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['bg']))?'checked="checked"':''); ?> />
1647 daniel 84
					</td>
85
					<td>
4313 daniel 86
						<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 87
					</td>
88
					<td>
4313 daniel 89
						<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 90
					</td>
91
					<td>
4313 daniel 92
						<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 93
					</td>
94
					<td>
95
						<select name="text[<?php echo $i; ?>][fontsize]" style="width:100%;">
4182 daniel 96
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 4))?'selected="selected"':''); ?> value="4">4</option>
97
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 5))?'selected="selected"':''); ?> value="5">5</option>
98
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 6))?'selected="selected"':''); ?> value="6">6</option>
99
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 7))?'selected="selected"':''); ?> value="7">7</option>
100
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 8))?'selected="selected"':''); ?> value="8">8</option>
101
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 9))?'selected="selected"':''); ?> value="9">9</option>
102
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 10))?'selected="selected"':''); ?> value="10">10</option>
103
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 11))?'selected="selected"':''); ?> value="11">11</option>
104
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 12))?'selected="selected"':''); ?> value="12">12</option>
105
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 13))?'selected="selected"':''); ?> value="13">13</option>
106
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 14))?'selected="selected"':''); ?> value="14">14</option>
107
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 16))?'selected="selected"':''); ?> value="16">16</option>
108
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 18))?'selected="selected"':''); ?> value="18">18</option>
109
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 20))?'selected="selected"':''); ?> value="20">20</option>
110
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 22))?'selected="selected"':''); ?> value="22">22</option>
111
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 24))?'selected="selected"':''); ?> value="24">24</option>
112
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 26))?'selected="selected"':''); ?> value="26">26</option>
113
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 28))?'selected="selected"':''); ?> value="28">28</option>
114
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 30))?'selected="selected"':''); ?> value="30">30</option>
115
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 32))?'selected="selected"':''); ?> value="32">32</option>
116
							<option <?php echo ((wpsg_isSizedInt($this->view['arTexte'][$i]['fontsize'], 34))?'selected="selected"':''); ?> value="34">34</option>
1647 daniel 117
						</select>
118
					</td>
119
					<td>
4182 daniel 120
						<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>
6006 hartmut 121
						<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 122
					</td>
123
				</tr>
124
				<tr>
125
					<td></td>
126
					<td class="col_freitext_label"><?php echo __('Freitext', 'wpsg'); ?>:</td>
127
					<td colspan="8" class="col_freitext">
4313 daniel 128
						<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 129
					</td>
130
				</tr>
131
				<?php } ?>
6005 hartmut 132
				</tbody>
1647 daniel 133
			</table>
1727 daniel 134
 
135
			<input type="hidden" name="" id="wpsg-PreviewSubmit" />
136
 
137
			<br />
3028 daniel 138
			<input type="submit" name="submit" onclick="wpsg_showPreview(); return false;" class="button" value="<?php echo __('Speichern und Vorschau anzeigen', 'wpsg'); ?>" />
1727 daniel 139
			<br /><br />
140
 
1647 daniel 141
		</div>
142
	</div>
143
</div>
144
 
145
<script type="text/javascript">
146
 
1727 daniel 147
	function wpsg_showPreview()
148
	{
149
 
1728 daniel 150
		jQuery('form[name="form1"]').attr('target', 'voucherprview');
1727 daniel 151
		jQuery('#wpsg-PreviewSubmit').attr('name', 'submit-preview');
152
 
3030 daniel 153
		jQuery('input[name="submit"]:last').click();
1727 daniel 154
 
155
		jQuery('#wpsg-PreviewSubmit').attr('name', '');
156
		jQuery('form[name="form1"]').attr('target', '');
157
 
158
	} // function wpsg_showPreview()
159
 
1647 daniel 160
	jQuery(document).ready(function() {
161
 
162
		jQuery('#wpsg_tab').wpsg_tab( {
163
			'cookiename': 'wpsg_pdfdownload_tab',
164
			'tab2': function() {
165
				jQuery('.tablink').show();
166
			}
167
		} );
168
 
169
	} );
170
 
171
</script>