Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
1379 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Einstellungen des PDFDownload Moduls
5
	 */
6
 
7
?>
3342 daniel 8
<div class="wpsg_admin_box wpsg_mod_downloadplus" id="wpsg_tab">
1379 daniel 9
	<div class="head">
10
		<div class="title">
11
			<div class="tab" id="tab1"><?php echo __('Einstellungen', 'wpsg'); ?></div>
12
			<div class="tab" id="tab2"><?php echo __('Textfelder', 'wpsg'); ?></div>
3258 daniel 13
			<div class="tab" id="tab3"><?php echo __('Erweitert', 'wpsg'); ?></div>
14
			<div class="tab tabright tabright-last" id="tab4"><?php echo __('Info / Hilfe', 'wpsg'); ?></div>
1379 daniel 15
			<div class="wpsg_clear"></div>
16
		</div>
17
	</div>
18
	<div class="content">
19
 
20
		<div id="tabcontent1" class="tabcontent">
21
 
1528 daniel 22
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_filename', __('Personalisierter Dateiname', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_filename'), array('help' => 'mod_pdfdownload_einstellungen_filename')); ?>
1598 daniel 23
			<?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_indiv_mode', __('Individualisierung planen', 'wpsg'), array(0 => __('Manuell', 'wpsg'), 1 => __('Nach Zahlung', 'wpsg'), 2 => __('Nach Bestellung', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_indiv_mode'), array('help' => 'mod_pdfdownload_einstellungen_individualisierungsmodus')); ?>
1528 daniel 24
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_autosend', __('PDFs nach Individualisierung sofort senden', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_autosend'), array('help' => 'mod_pdfdownload_einstellungen_autosend')); ?>
4929 thomas 25
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_shipping', __('Versandart "Versand per Mail" aktiv', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_shipping'), array('help' => 'wpsg_mod_downloadplus_shipping')); ?>
26
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_einsplusx', __(' Mehr als ein Produkt im Warenkorb zulassen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_einsplusx'), array('help' => 'wpsg_mod_downloadplus_einsplusx')); ?>
1528 daniel 27
			<?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_accepted', __('Gültigkeit von Links', 'wpsg'), array(0 => __('Unbegrenzt', 'wpsg'), 1 => __('Nach Downloads', 'wpsg'), 2 => __('Nach Tagen', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_accepted'), array('help' => 'mod_pdfdownload_einstellungen_accepted')); ?>
4929 thomas 28
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_days', __('Gültigkeit in Tagen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_days'), array('help' => 'wpsg_mod_downloadplus_days')); ?>
29
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_downloads', __('Anzahl an möglichen Downloads', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_downloads'), array('help' => 'wpsg_mod_downloadplus_downloads')); ?>
30
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_cleanraiddownloads', __('Abgelaufene Downloads bereinigen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_cleanraiddownloads'), array('help' => 'wpsg_mod_downloadplus_cleanraiddownloads')); ?>
31
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_cleanolddownloads', __('Downloads nach X Tagen löschen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_cleanolddownloads'), array('help' => 'wpsg_mod_downloadplus_cleanolddownloads')); ?>
5255 thomas 32
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_pdfpath', __('Pfad für die PDFs der Produkte', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_pdfpath'), array('hint' => __('Standard: uploads/wpsg_pdfprodukte/', 'wpsg'), 'help' => 'wpsg_mod_downloadplus_pdfpath')); ?>
33
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_pdfindivpath', __('Pfad für die Individualisierten PDFs', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_pdfindivpath'), array('hint' => __('Standard: uploads/wpsg_pdfprodukte_order/', 'wpsg'), 'help' => 'wpsg_mod_downloadplus_pdfindivpath')); ?>
4929 thomas 34
			<?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_format', __('Auslieferungsformat', 'wpsg'), array(0 => __('Direkt', 'wpsg'), 1 => __('Gezippt (intern)', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_format'), array('help' => 'wpsg_mod_downloadplus_format')); ?>
5255 thomas 35
			<?php echo wpsg_drawForm_Select('wpsg_mod_downloadplus_range', __('Anpassung', 'wpsg'), array(0 => __('Gesamtes Dokument', 'wpsg'), 1 => __('Bereich', 'wpsg')), $this->get_option('wpsg_mod_downloadplus_range'), array ('help' => 'wpsg_mod_downloadplus_range')); ?>
1528 daniel 36
			<div class="wpsg_form_field" style="display:none;" id="wpsg_mod_downloadplus_rangefield">
1379 daniel 37
				<div class="wpsg_form_left">
38
					<label><?php echo __('Seitenbereich (Von/Bis)', 'wpsg'); ?>:</label>
39
				</div>
40
				<div class="wpsg_form_right">
1528 daniel 41
					<input type="text" style="width:100px;" size="5" name="wpsg_mod_downloadplus_range_von" value="<?php echo $this->get_option('wpsg_mod_downloadplus_range_von'); ?>" />&nbsp;-&nbsp;
42
					<input type="text" style="width:100px;" size="5" name="wpsg_mod_downloadplus_range_bis" value="<?php echo $this->get_option('wpsg_mod_downloadplus_range_bis'); ?>" />
1379 daniel 43
				</div>
44
				<div class="wpsg_clear"></div>
45
			</div>
4934 thomas 46
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_masterpass', __('Passwort (Um Schutz aufzuheben)', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_masterpass'), array('help' => 'wpsg_mod_downloadplus_masterpass')); ?>
47
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_openpass', __('Passwort (Um Dokument öffnen zu können)', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_openpass'), array('help' => 'wpsg_mod_downloadplus_openpass')); ?>
1379 daniel 48
			<div class="wpsg_form_field">
49
				<div class="wpsg_form_left">
2677 daniel 50
					<label><?php echo __('Dokumentenberechtigungen', 'wpsg'); ?>:</label>
1379 daniel 51
				</div>
1528 daniel 52
				<div class="wpsg_form_right wpsg_mod_downloadplus_security">
1381 daniel 53
					<p>
1528 daniel 54
						<input type="hidden" value="0" name="wpsg_mod_downloadplus_securitysave" />
2677 daniel 55
						<label><input type="checkbox" value="1" name="wpsg_mod_downloadplus_securitysave" <?php echo (($this->get_option('wpsg_mod_downloadplus_securitysave') == '1')?'checked="checked"':''); ?> />&nbsp;<?php echo __('Speichern erlauben', 'wpsg'); ?></label><br />
1381 daniel 56
 
1528 daniel 57
						<input type="hidden" value="0" name="wpsg_mod_downloadplus_securityprint" />
2677 daniel 58
						<label><input type="checkbox" value="1" name="wpsg_mod_downloadplus_securityprint" <?php echo (($this->get_option('wpsg_mod_downloadplus_securityprint') == '1')?'checked="checked"':''); ?> />&nbsp;<?php echo __('Drucken erlauben', 'wpsg'); ?></label><br />
1381 daniel 59
 
1528 daniel 60
						<input type="hidden" value="0" name="wpsg_mod_downloadplus_securitymod" />
2677 daniel 61
						<label><input type="checkbox" value="1" name="wpsg_mod_downloadplus_securitymod" <?php echo (($this->get_option('wpsg_mod_downloadplus_securitymod') == '1')?'checked="checked"':''); ?> />&nbsp;<?php echo __('Modifizieren erlauben', 'wpsg'); ?></label><br />
1381 daniel 62
 
1528 daniel 63
						<input type="hidden" value="0" name="wpsg_mod_downloadplus_securitynote" />
2677 daniel 64
						<label><input type="checkbox" value="1" name="wpsg_mod_downloadplus_securitynote" <?php echo (($this->get_option('wpsg_mod_downloadplus_securitynote') == '1')?'checked="checked"':''); ?> />&nbsp;<?php echo __('Bemerkungen erlauben', 'wpsg'); ?></label><br />
1381 daniel 65
					</p>
1379 daniel 66
				</div>
67
				<div class="wpsg_clear"></div>
68
			</div>
69
			<div class="wpsg_form_field">
70
				<div class="wpsg_form_left">
71
					<label><?php echo __('Mail für Individualisierungsbericht', 'wpsg'); ?>:</label>
72
				</div>
73
				<div class="wpsg_form_right">
74
					<p><?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#pdfdownloadcronmail'); ?></p>
5255 thomas 75
					<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_individualisierungsbericht" class="wpsg_form_help" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_individualisierungsbericht"></a>
1379 daniel 76
				</div>
77
				<div class="wpsg_clear"></div>
78
			</div>
79
			<div class="wpsg_form_field">
80
				<div class="wpsg_form_left">
81
					<label><?php echo __('Mail für Downloads an Kunden', 'wpsg'); ?>:</label>
82
				</div>
83
				<div class="wpsg_form_right">
84
					<p><?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#pdfdownloadfiles'); ?></p>
5255 thomas 85
					<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_kundenmail" class="wpsg_form_help" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_kundenmail"></a>
1379 daniel 86
				</div>
87
				<div class="wpsg_clear"></div>
88
			</div>
89
			<div class="wpsg_form_field">
90
				<div class="wpsg_form_left">
91
					<label><?php echo __('Letzte Ausführung des Crons', 'wpsg'); ?>:</label>
92
				</div>
93
				<div class="wpsg_form_right">
94
					<p><?php echo (($this->get_option('wpsg_lastCron') > 0)?wpsg_formatTimestamp($this->get_option('wpsg_lastCron')):__('Noch nicht ausgeführt', 'wpsg')); ?></p>
2763 daniel 95
					<a rel="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_einstellungen_cron" class="wpsg_form_help" href="?page=wpsg-Admin&subaction=loadHelp&noheader=1&field=mod_pdfdownload_einstellungen_cron"></a>
1379 daniel 96
				</div>
97
				<div class="wpsg_clear"></div>
98
			</div>
99
 
100
		</div>
101
 
102
		<div id="tabcontent2" class="tabcontent">
1528 daniel 103
			<table class="wpsg_mod_downloadplus_fieldtable">
1379 daniel 104
				<tr>
105
					<th class="col_bezeichnung"></th>
106
					<th class="col_x"><?php echo __('X', 'wpsg'); ?></th>
107
					<th class="col_y"><?php echo __('Y', 'wpsg'); ?></th>
108
					<th class="col_align"><?php echo __('Zentriert', 'wpsg'); ?></th>
109
					<th class="col_bg"><?php echo __('Hintergrund', 'wpsg'); ?></th>
110
					<th class="col_color"><?php echo __('Farbe', 'wpsg'); ?></th>
111
					<th class="col_alpha"><?php echo __('Opaque', 'wpsg'); ?></th>
112
					<th class="col_angle"><?php echo __('Winkel', 'wpsg'); ?></th>
113
					<th class="col_groesse"><?php echo __('Größe', 'wpsg'); ?></th>
114
					<th class="col_action"></th>
115
				</tr>
3262 daniel 116
				<?php for ($i = 0; $i < 10; $i ++) { ?>
1379 daniel 117
				<tr>
118
					<td><?php echo '#'.($i + 1); ?></td>
119
					<td>
120
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][x]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['x']); ?>" />
121
					</td>
122
					<td>
123
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][y]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['y']); ?>" />
124
					</td>
125
					<td class="col_align">
126
						<input type="hidden" name="text[<?php echo $i; ?>][align]" value="0" />
3349 daniel 127
						<input class="wpsg_hideBarcode" type="checkbox" name="text[<?php echo $i; ?>][align]" value="1" <?php echo (($this->view['arTexte'][$i]['align'] == '1')?'checked="checked"':''); ?> />
1379 daniel 128
					</td>
129
					<td class="col_bg">
130
						<input type="hidden" name="text[<?php echo $i; ?>][bg]" value="0" />
3349 daniel 131
						<input class="wpsg_hideBarcode" type="checkbox" name="text[<?php echo $i; ?>][bg]" value="1" <?php echo (($this->view['arTexte'][$i]['bg'] == '1')?'checked="checked"':''); ?> />
1379 daniel 132
					</td>
133
					<td>
3349 daniel 134
						<input class="wpsg_hideBarcode" type="text" style="width:100%;" name="text[<?php echo $i; ?>][color]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['color']); ?>" />
1379 daniel 135
					</td>
136
					<td>
3349 daniel 137
						<input class="wpsg_hideBarcode" type="text" style="width:100%;" name="text[<?php echo $i; ?>][alpha]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['alpha']); ?>" />
1379 daniel 138
					</td>
139
					<td>
3349 daniel 140
						<input class="wpsg_hideBarcode" type="text" style="width:100%;" name="text[<?php echo $i; ?>][angle]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['angle']); ?>" />
1379 daniel 141
					</td>
142
					<td>
143
						<select name="text[<?php echo $i; ?>][fontsize]" style="width:100%;">
1502 daniel 144
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "4")?'selected="selected"':''); ?> value="4">4</option>
145
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "5")?'selected="selected"':''); ?> value="5">5</option>
146
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "6")?'selected="selected"':''); ?> value="6">6</option>
147
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "7")?'selected="selected"':''); ?> value="7">7</option>
1379 daniel 148
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "8")?'selected="selected"':''); ?> value="8">8</option>
149
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "9")?'selected="selected"':''); ?> value="9">9</option>
150
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "10")?'selected="selected"':''); ?> value="10">10</option>
151
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "11")?'selected="selected"':''); ?> value="11">11</option>
152
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "12")?'selected="selected"':''); ?> value="12">12</option>
153
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "13")?'selected="selected"':''); ?> value="13">13</option>
154
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "14")?'selected="selected"':''); ?> value="14">14</option>
1382 daniel 155
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "16")?'selected="selected"':''); ?> value="16">16</option>
156
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "18")?'selected="selected"':''); ?> value="18">18</option>
157
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "20")?'selected="selected"':''); ?> value="20">20</option>
158
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "22")?'selected="selected"':''); ?> value="22">22</option>
159
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "24")?'selected="selected"':''); ?> value="24">24</option>
3343 daniel 160
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "26")?'selected="selected"':''); ?> value="26">26</option>
161
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "28")?'selected="selected"':''); ?> value="28">28</option>
162
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "30")?'selected="selected"':''); ?> value="30">30</option>
163
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "32")?'selected="selected"':''); ?> value="32">32</option>
164
							<option <?php echo (($this->view['arTexte'][$i]['fontsize'] == "34")?'selected="selected"':''); ?> value="34">34</option>
1379 daniel 165
						</select>
166
					</td>
167
					<td>
168
						<label><input type="checkbox" value="1" name="text[<?php echo $i; ?>][aktiv]" <?php echo (($this->view['arTexte'][$i]['aktiv'] == 1)?'checked="checked"':''); ?> />&nbsp;<?php echo __("Aktiv", "wpsg"); ?></label>
2763 daniel 169
						<a style="float:right; position:relative;" class="wpsg_form_help" 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>
1379 daniel 170
					</td>
171
				</tr>
172
				<tr>
173
					<td></td>
174
					<td class="col_freitext_label"><?php echo __('Freitext', 'wpsg'); ?>:</td>
3342 daniel 175
					<td colspan="7" class="col_freitext">
1379 daniel 176
						<input type="text" style="width:100%;" name="text[<?php echo $i; ?>][text]" value="<?php echo wpsg_hspc($this->view['arTexte'][$i]['text']); ?>" />
177
					</td>
3342 daniel 178
					<td>
3349 daniel 179
						<select class="fontselect" name="text[<?php echo $i; ?>][font]" style="width:100%;">
3342 daniel 180
							<?php foreach ($this->view['wpsg_mod_downloadplus']['arFonts'] as $k => $v) { ?>
181
							<option value="<?php echo wpsg_hspc($k); ?>" <?php echo (($k == $this->view['arTexte'][$i]['font'])?'selected="selected"':''); ?>><?php echo wpsg_hspc($v); ?></option>
182
							<?php } ?>
183
						</select>
184
					</td>
1379 daniel 185
				</tr>
3342 daniel 186
				<?php if ($i < 9) { ?>
187
				<tr class="wpsg_border_bottom"><td colspan="10"></td></tr>
1379 daniel 188
				<?php } ?>
3342 daniel 189
				<?php } ?>
1379 daniel 190
			</table>
191
		</div>
192
 
193
		<div id="tabcontent3" class="tabcontent">
194
 
3258 daniel 195
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_memorylimit', __('Versuche Speicherlimit hochzusetzen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_memorylimit'), array('help' => 'wpsg_mod_downloadplus_memorylimit')); ?>
196
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_timelimit', __('Versuche die Ausführungszeit hochzusetzen', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_timelimit'), array('help' => 'wpsg_mod_downloadplus_timelimit')); ?>
3261 daniel 197
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_numberformat', __('Format der Downloadnummer', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_numberformat'), array('help' => 'wpsg_mod_downloadplus_numberformat')); ?>
198
			<?php echo wpsg_drawForm_Input('wpsg_mod_downloadplus_startnumber', __('Downloadnummer Startnummer', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_startnumber'), array('help' => 'wpsg_mod_downloadplus_startnumber')); ?>
3268 daniel 199
			<?php echo wpsg_drawForm_Checkbox('wpsg_mod_downloadplus_attachement', __('Angepasste Dokumente als Anhang versenden', 'wpsg'), $this->get_option('wpsg_mod_downloadplus_attachement'), array('help' => 'wpsg_mod_downloadplus_attachement')); ?>
3261 daniel 200
 
3258 daniel 201
		</div>
202
 
203
		<div id="tabcontent4" class="tabcontent">
204
 
1528 daniel 205
			<p>
1537 daniel 206
				<?php echo __('Das Downloadplus Modul ist eine erweiterung des Downloadprodukt Moduls und ermöglicht das Individualisieren von PDF Dokumenten.', 'wpsg'); ?>
1528 daniel 207
			</p>
1537 daniel 208
			<p>
209
				<?php echo __('Weitere Informationen erhalten Sie auf der <a href="http://wpshopgermany.de/?p=1426">Hilfe Seite</a> oder in unserem <a href="http://forum.maennchen1.de">Support Forum</a>.', 'wpsg'); ?>
210
			</p>
211
 
212
			<p>
213
				<?php echo __('Eintrag in der Crontab:', 'wpsg'); ?>:<br /><br />
214
				<span style="font-weight:bold; font-family:monospace;">
215
					*/5   *   *   *  *    /usr/bin/php <?php echo WPSG_PATH.DIRECTORY_SEPARATOR; ?>cron.php
216
				</span>
217
			</p>
218
			<p>
219
				<?php echo __('HTTP Aufruf des Cron Scriptes:', 'wpsg'); ?><br /><br />
220
				<a href="<?php echo WPSG_PLUGIN_URL; ?>/wpshopgermany/cron.php" target="_blank"><?php echo WPSG_PLUGIN_URL; ?>/wpshopgermany/cron.php</a>
221
			</p>
222
 
1379 daniel 223
		</div>
224
 
225
	</div>
226
</div>
227
 
3349 daniel 228
<script type="text/javascript">/* <![CDATA[ */
229
 
1528 daniel 230
	function wpsg_mod_downloadplus_switchAccepted()
1379 daniel 231
	{
232
 
1528 daniel 233
		if (jQuery('#wpsg_mod_downloadplus_accepted').val() == '1')
234
			jQuery('#wpsg_mod_downloadplus_downloads').parent().parent().show();
1379 daniel 235
		else
1528 daniel 236
			jQuery('#wpsg_mod_downloadplus_downloads').parent().parent().hide();
1379 daniel 237
 
1528 daniel 238
		if (jQuery('#wpsg_mod_downloadplus_accepted').val() == '2')
239
			jQuery('#wpsg_mod_downloadplus_days').parent().parent().show();
1379 daniel 240
		else
1528 daniel 241
			jQuery('#wpsg_mod_downloadplus_days').parent().parent().hide();
1379 daniel 242
 
1528 daniel 243
	} // function wpsg_mod_downloadplus_switchAccepted()
1379 daniel 244
 
1528 daniel 245
	function wpsg_mod_downloadplus_switchRange()
1379 daniel 246
	{
247
 
1528 daniel 248
		if (jQuery('#wpsg_mod_downloadplus_range').val() == '1')
249
			jQuery('#wpsg_mod_downloadplus_rangefield').show();
1379 daniel 250
		else
1528 daniel 251
			jQuery('#wpsg_mod_downloadplus_rangefield').hide();
1379 daniel 252
 
1528 daniel 253
	} // function wpsg_mod_downloadplus_switchRange()
1379 daniel 254
 
255
	jQuery(document).ready(function() {
3349 daniel 256
 
257
		jQuery('.wpsg_mod_downloadplus_fieldtable select.fontselect').bind('change', function() {
258
 
259
			if (jQuery(this).val() == 'EAN13' || jQuery(this).val() == 'Code128' || jQuery(this).val() == 'UPC_A')
260
			{
1862 daniel 261
 
3349 daniel 262
				jQuery(this).parents('tr').prev().find('input.wpsg_hideBarcode').hide();
263
 
264
			}
265
			else
266
			{
267
 
268
				jQuery(this).parents('tr').prev().find('input.wpsg_hideBarcode').show();
269
 
270
			}
271
 
272
		} ).change();
273
 
1528 daniel 274
		jQuery('#wpsg_mod_downloadplus_range').bind('change', function() { wpsg_mod_downloadplus_switchRange(); } );
275
		jQuery('#wpsg_mod_downloadplus_accepted').bind('change', function() { wpsg_mod_downloadplus_switchAccepted(); } );
1379 daniel 276
 
1528 daniel 277
		wpsg_mod_downloadplus_switchAccepted();
278
		wpsg_mod_downloadplus_switchRange();
1379 daniel 279
 
280
		jQuery('#wpsg_tab').wpsg_tab( {
281
			'cookiename': 'wpsg_pdfdownload_tab',
282
			'tab2': function() {
283
				jQuery('.tablink').show();
284
			}
285
		} );
286
	} );
287
 
3349 daniel 288
	/* ]]> */</script>
1379 daniel 289