<?php
/**
 * aheadWorks Co.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://ecommerce.aheadworks.com/LICENSE-M1.txt
 *
 * @category   AW
 * @package    AW_Mobile
 * @copyright  Copyright (c) 2010-2011 aheadWorks Co. (http://www.aheadworks.com)
 * @license    http://ecommerce.aheadworks.com/LICENSE-M1.txt
 */
?>

<div>
    <label for="<?php echo $this->getFieldId('gender')?>"><?php echo $this->__('Gender') ?> <?php if ($this->isRequired()) echo '<span class="required">*</em>' ?></label>
</div>
<div>
<select id="<?php echo $this->getFieldId('gender')?>" name="<?php echo $this->getFieldName('gender')?>" class="<?php if ($this->isRequired()):?> validate-select<?php endif; ?>" <?php echo $this->getFieldParams() ?>">
<?php $options = Mage::getResourceSingleton('customer/customer')->getAttribute('gender')->getSource()->getAllOptions();?>
<?php $value = $this->getGender();?>
<?php foreach ($options as $option):?>
    <option value="<?php echo $option['value'] ?>" <?php if ($option['value'] == $value) echo 'selected="selected"' ?>><?php echo $option['label'] ?></option>
<?php endforeach;?>
</select>
</div>
