<?php
defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); 
/**
* @version $Id: account.shipping.php,v 1.4 2005/01/27 19:34:00 soeren_nb Exp $
* @package mambo-phpShop
* @subpackage HTML
* Contains code from PHPShop(tm):
* 	@copyright (C) 2000 - 2004 Edikon Corporation (www.edikon.com)
*	Community: www.phpshop.org, forums.phpshop.org
* Conversion to Mambo and the rest:
* 	@copyright (C) 2004-2005 Soeren Eberhardt
*
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* mambo-phpShop is Free Software.
* mambo-phpShop comes with absolute no warranty.
*
* www.mambo-phpshop.net
*/
mm_showMyFileName( __FILE__ );

$page_name = "Account Maintenance";

$q  = "SELECT * FROM #__pshop_user_info WHERE ";
$q .= "address_type='ST' ";
$q .= "AND user_id='" . $auth["user_id"] . "'";
$db->query($q);
?>
<table border="0" cellspacing="0" cellpadding="10" width="100%" align="center">
<tr>
   <td>
   <strong><? echo $PHPSHOP_LANG->_PHPSHOP_USER_FORM_SHIPTO_LBL ?></strong>
   <br>
<?php
echo $PHPSHOP_LANG->_PHPSHOP_ACC_BILL_DEF;

  while ($db->next_record()) {
?>
   <br>
   -<a href="<?php $sess->purl(SECUREURL . "index.php?next_page=account.shipping&page=account.shipto&user_info_id=" . $db->f("user_info_id")); ?>">
   <?php $db->p("address_type_name"); ?></A>
<?php
  }
?>
   </td>
</tr>
<tr><td><a href="<?php $sess->purl(SECUREURL . "index.php?page=account.shipto&next_page=account.shipping"); ?>"><? echo $PHPSHOP_LANG->_PHPSHOP_USER_FORM_ADD_SHIPTO_LBL ?></a></td></tr>
</table>
<!-- Body ends here -->
