<?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 class="page-head button-level">
    <h3><?php echo $this->__('Change Billing Address') ?></h3>    
</div>
<div class="in-page">
    <div class="a-center button-space">
        <button type="button" class="form-button" onclick="setLocation('<?php echo $this->getAddNewUrl() ?>')"><span><?php echo $this->__('Add New Address') ?></span></button>
    </div>
    <?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
    <?php foreach ($this->getAddressCollection() as $_address): ?>
    <div class="multishipping-container">
        <div class="top-header">
            <a href="<?php echo $this->getEditAddressUrl($_address) ?>"><?php echo $this->__('Edit Address') ?></a><span class="separator"> | </span>
            <a href="<?php echo $this->getSetAddressUrl($_address) ?>"><strong><?php echo $this->__('Select Address') ?></strong></a>
        </div>
        <address>
            <?php echo $_address->format('html') ?>
            <?php if($this->isAddressDefaultBilling($_address)): ?>
            <br/><strong><?php echo $this->__('Default Billing') ?></strong>
            <?php endif; ?>
            <?php if($this->isAddressDefaultShipping($_address)): ?>
            <br/><strong><?php echo $this->__('Default Shipping') ?></strong>
            <?php endif; ?>
        </address>
    </div>
    <?php endforeach; ?>
</div>
