<?php echo $this->getLayout()->createBlock('core/html_calendar')->setTemplate('page/js/calendar.phtml')->toHtml(); ?>
<ul class="form-list" id="payment_form_<?php echo $this->getMethodCode() ?>" style="display:none">
    <li>
        <?php if ($this->getMethodCode() == 'msp_zinia') { ?>

            <label for="gender" style="width:200px!important;"><?php echo $this->__('Salutation') . ':'; ?></label>
            <input type="radio" name="payment[salutation]" value="Mr"<?php echo ($this->getGender() == 'male') ? 'checked' : ''; ?>>   <?php echo $this->__('Male'); ?>
            <input type="radio" name="payment[salutation]" value="Mrs"<?php echo ($this->getGender() == 'female') ? 'checked' : ''; ?>>  <?php echo $this->__('Female'); ?>
            <input type="radio" name="payment[salutation]" value="Miss"> <?php echo $this->__('Miss'); ?>
            <br/>

            <label for="birthday" style="width:200px!important;"><?php echo $this->__('Birthday'); ?>: </label>
            <input name='payment[birthday]' value="<?php echo $this->getBirthday(); ?>" id="msp_zinia_birthday" placeholder='DD-MM-YYYY' readonly />
            <span id="msp_zinia_birthday_trig">
                <img style="display: inline;" src="<?php echo $this->getJsUrl('calendar/img.gif') ?>" class="v-middle"/>
            </span>
            <br/>
            <label for="phonenumber" style="width:200px!important;"><?php echo $this->__('Phonenumber'); ?>:</label>
            <input name='payment[phonenumber]' value="<?php echo $this->getPhonenumber(); ?>" id="phonenumber"/>

        <?php } ?>
    </li>
</ul>
<script type="text/javascript">
    //<![CDATA[
    jQuery(document).ready(function() {
        Calendar.setup({
            inputField  : 'msp_zinia_birthday',
            ifFormat    : '%d-%m-%Y',
            button      : 'msp_zinia_birthday_trig',
            align       : 'Bl',
            onSelect: function(dateText,selectedDate) {
                jQuery('#msp_zinia_birthday').val(selectedDate);
            }
        });
        jQuery(document).on('click','#msp_zinia_birthday', function() {
            jQuery('#msp_zinia_birthday_trig').trigger('click');
        });
    });
    //]]>
</script>
