Subversion Repositories wpShopGermany4

Rev

Rev 4943 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

<?php 

        /**
         * Zeigt die Abfrage nach der EU - Leistungsortregel an
         */

?> 
<form method="post" action="<?php echo $this->getURL(wpsg_ShopController::URL_BASKET); ?>">

        <input type="hidden" name="wpsg[action]" value="customeranswer" />
        <input type="hidden" name="wpsg[redirect]" value="<?php echo wpsg_hspc($this->view['url']); ?>" />

        <h2><?php echo __('Für eine korrekte Preisberechnung benötigen wir folgende Informationen von Ihnen.', 'wpsg'); ?></h2>
        
        <div class="customertype">
                
                <h2><?php echo __('Sie sind:', 'wpsg'); ?></h2>
                
                <div id="customerquestion_fk">
                        <label >
                                <input id="customerquestion_fk_button" type="radio" value="0" <?php echo ((!isset($_SESSION['wpsg']['checkout']['customertype']) || $_SESSION['wpsg']['checkout']['customertype'] === '0')?'checked="checked"':''); ?> name="wpsg[customertype]">&nbsp;<?php echo __('Firmenkunde', 'wpsg'); ?>
                        </label>
                </div>
                <div id="customerquestion_ek">
                        <label >
                                <input id="customerquestion_ek_button" type="radio" value="1" <?php echo ((isset($_SESSION['wpsg']['checkout']['customertype']) && $_SESSION['wpsg']['checkout']['customertype'] === '1')?'checked="checked"':''); ?> name="wpsg[customertype]">&nbsp;<?php echo __('Endkunde', 'wpsg'); ?>
                        </label>
                </div>

        </div>

        <div class="country">
                <h2><?php echo __('aus:', 'wpsg'); ?></h2>
                <select class="wpsg_land" name="wpsg[customerCountry]">
                        <?php foreach ($this->view['arCountry'] as $country) { ?>
                        <option value="<?php echo wpsg_hspc($country->id); ?>" <?php echo (($country->id == $this->view['defaultCountry_id'])?'selected="selected"':''); ?>><?php echo wpsg_hspc($country->name); ?></option>
                        <?php } ?>
                </select>
        </div>
        
        <div class="button_wrap">
                <input id="customerquestion_ok_button" type="submit"  name="wpsg_submit" class="wpsg_button" value="<?php echo __('OK', 'wpsg'); ?>" /> 
        </div>

</form>

<div class="wpsg_clear"></div> 

<script type="text/javascript">/* <![CDATA[ */

        jQuery(window).resize(function() {

                // Hintergrund vom Body übernehmen
                jQuery('#wpsg_calc_layer .content').css( { 'background-color': jQuery('body').css('background-color') } );
                 
                if (jQuery(window).width() < 600)
                {

                        var layer_width = jQuery(window).width() - 50;
                                                                        
                        jQuery('#wpsg_calc_layer .content').css( {
                                'width': layer_width + 'px',
                                'margin-left': (-1 * (layer_width / 2)) + 'px'
                        } );

                }

                var layer_height = jQuery('#wpsg_calc_layer .content').height();
                
                if (jQuery(window).height() < layer_height)
                {

                        jQuery('#wpsg_calc_layer .content').css( {
                                'margin-top': '25px;',
                                'top': '0px'                            
                        } );
                        
                }
                else
                {

                        jQuery('#wpsg_calc_layer .content').css( {
                                'margin-top': (-1 * (layer_height / 2)) + 'px',
                                'top': '50%'
                        } );

                }
                
        } ).resize();

/* ]]> */</script>