<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<?php
$public_diyr['pagetitle']='配送地址列表';
$url="<a href=../../../>首頁</a>&nbsp;>&nbsp;<a href=../../member/cp/>會員中心</a>&nbsp;>&nbsp;配送地址列表&nbsp;&nbsp;(<a href='AddAddress.php?enews=AddAddress'>增加配送地址</a>)";
include(ECMS_PATH.'e/template/incfile/header.php');
?>
<table width="600" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <tr>
    <td width="50%" height="30" bgcolor="#FFFFFF">&nbsp;</td>
    <td width="50%" bgcolor="#FFFFFF"><div align="right">[<a href="AddAddress.php?enews=AddAddress">增加配送地址</a>]&nbsp;&nbsp;</div></td>
  </tr>
</table>
<br>
<table width="600" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
    <tr class="header">
      <td width="65%" height="23"><div align="center">地址名稱</div></td>
      <td width="10%"><div align="center">默認</div></td>
      <td width="25%"><div align="center">操作</div></td>
    </tr>
    <?php
	while($r=$empire->fetch($sql))
	{
		if($r['isdefault'])
		{
			$isdefault='是';
		}
		else
		{
			$isdefault='--';
		}
	?>
    <tr bgcolor="#FFFFFF">
      <td height="25"><div align="center"><?=stripSlashes($r['addressname'])?></div></td>
      <td><div align="center"><?=$isdefault?></div></td>
      <td><div align="center">[<a href="AddAddress.php?enews=EditAddress&addressid=<?=$r['addressid']?>">修改</a>] [<a href="../doaction.php?enews=DefAddress&addressid=<?=$r['addressid']?>" onclick="return confirm('確認要設為默認?');">默認</a>] [<a href="../doaction.php?enews=DelAddress&addressid=<?=$r['addressid']?>" onclick="return confirm('確認要刪除?');">刪除</a>]</div></td>
    </tr>
    <?php
	}
	?>
</table>
<?php
include(ECMS_PATH.'e/template/incfile/footer.php');
?>