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')); ?>
|
5462 |
thomas |
28 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_allow', __('Bestellungen bei negativen 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 |
|
5824 |
thomas |
35 |
<br />
|
4910 |
thomas |
36 |
|
5824 |
thomas |
37 |
<?php echo wpsg_drawForm_Checkbox('wpsg_mod_stock_minstockproduct', __('Minimalbestand im Produkt hinterlegen', 'wpsg'), $this->get_option('wpsg_mod_stock_minstockproduct'), array('help' => 'wpsg_mod_stock_minstockproduct')); ?>
|
|
|
38 |
|
2904 |
daniel |
39 |
<script type="text/javascript">/* <![CDATA[ */
|
|
|
40 |
|
|
|
41 |
jQuery(document).ready(function() {
|
|
|
42 |
|
|
|
43 |
jQuery('#wpsg_mod_stock_notemplateswitch').bind('change', function() {
|
|
|
44 |
|
|
|
45 |
if (jQuery(this).attr("checked"))
|
|
|
46 |
{
|
|
|
47 |
|
|
|
48 |
jQuery('#wpsg_mod_stock_template').attr('disabled', true);
|
|
|
49 |
|
|
|
50 |
}
|
|
|
51 |
else
|
|
|
52 |
{
|
|
|
53 |
|
|
|
54 |
jQuery('#wpsg_mod_stock_template').attr('disabled', false);
|
|
|
55 |
|
|
|
56 |
}
|
|
|
57 |
|
|
|
58 |
} ).change();
|
|
|
59 |
|
|
|
60 |
} );
|
|
|
61 |
|
|
|
62 |
/* ]]> */</script>
|