Subversion Repositories wpShopGermany4

Rev

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

Rev Author Line No. Line
1067 daniel 1
<?php
2
 
3
	/**
4
	 * Template für die Einstellungen des Lagerbestandsmoduls
5
	 */
6
 
7
?>
8
<div class="wpsg_form_field">
9
	<div class="wpsg_form_left">
10
		<label for="wpsg_mod_stock_template"><?php echo __('Template für ausverkaufte Produkte', 'wpsg'); ?>:</label>
11
	</div>
12
	<div class="wpsg_form_right">
13
		<?php if (!is_array($this->view['arTemplates']) || sizeof($this->view['arTemplates']) <= 0) { ?>
14
		<p class="wpsg_error"><?php echo __('Keine Templatedatein gefunden!', 'wpsg'); ?></p>
15
		<?php } else { ?>
2904 daniel 16
		<input type="hidden" name="wpsg_mod_stock_template" value="<?php echo $this->get_option('wpsg_mod_stock_template'); ?>" />
1067 daniel 17
		<select name="wpsg_mod_stock_template" id="wpsg_mod_stock_template">
18
			<option value="-1"><?php echo __('Wie Produkttemplate', 'wpsg'); ?></option>
19
			<?php foreach ($this->view['arTemplates'] as $t) { ?>
20
			<option <?php echo (($t == $this->get_option('wpsg_mod_stock_template'))?'selected="selected"':''); ?> value="<?php echo wpsg_hspc($t); ?>"><?php echo wpsg_hspc($t); ?></option>
21
			<?php } ?>
22
		</select>
23
		<?php } ?>
24
	</div>
25
	<div class="wpsg_clear"></div>
26
</div>
2904 daniel 27
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_notemplateswitch', __('Template nicht wechseln', 'wpsg'), $this->get_option('wpsg_mod_stock_notemplateswitch'), array('help' => 'wpsg_mod_stock_notemplateswitch')); ?>
5255 thomas 28
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_allow', __('Bestellungen bei negtiven Bestand verhindern', 'wpsg'), $this->get_option('wpsg_mod_stock_allow'), array('help' => 'wpsg_mod_stock_allow')); ?>
4917 thomas 29
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showBackendStock', __('Bestand in Produktübersicht (Backend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showBackendStock'), array('help' => 'wpsg_mod_stock_showBackendStock')); ?>
4910 thomas 30
<?php if ($this->hasMod('wpsg_mod_productindex')) { ?>
4917 thomas 31
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showProductindex', __('Bestand in Produktübersicht (Frontend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showProductindex'), array('help' => 'wpsg_mod_stock_showProductindex')); ?>
4910 thomas 32
<?php } ?>
4917 thomas 33
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_showProduct', __('Bestand in Produkt (Frontend) anzeigen', 'wpsg'), $this->get_option('wpsg_mod_stock_showProduct'), array('help' => 'wpsg_mod_stock_showProduct')); ?>
2904 daniel 34
 
4910 thomas 35
 
2904 daniel 36
<script type="text/javascript">/* <![CDATA[ */
37
 
38
	jQuery(document).ready(function() {
39
 
40
		jQuery('#wpsg_mod_stock_notemplateswitch').bind('change', function() {
41
 
42
			if (jQuery(this).attr("checked"))
43
			{
44
 
45
				jQuery('#wpsg_mod_stock_template').attr('disabled', true);
46
 
47
			}
48
			else
49
			{
50
 
51
				jQuery('#wpsg_mod_stock_template').attr('disabled', false);
52
 
53
			}
54
 
55
		} ).change();
56
 
57
	} );
58
 
59
/* ]]> */</script>