<?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>)";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<div id="currentPage" pagevalue="4"></div>
<div class="bgBox">
   		<div class="zhLeft">
        	<h3 class="leftTitle cw">财务</h3>
            <ul>
            	<li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/payapi/"><span style="background-position:-24px 0;" class="scIco"></span>在线支付</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/buygroup/"><span style="background-position:-96px 0;" class="scIco"></span>在线充值</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/card/"><span style="background-position:0 0;" class="scIco"></span>点卡充值</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/buybak/"><span style="background-position:-168px 0;" class="scIco"></span>点卡充值记录</a></li>
                <li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/member/downbak/"><span style="background-position:-144px 0;" class="scIco"></span>下载消费记录</a></li> 
            </ul>
            <h3 class="leftTitle sc">商城</h3>
             <ul>
            	<li><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/ShopSys/ListDd/"><span style="background-position:-72px 0;" class="scIco"></span>我的订单</a></li>
                <li><a onfocus="this.blur();" href="#ecms" onClick="window.open('<?=$public_r['newsurl']?>e/ShopSys/buycar/','','width=680,height=500,scrollbars=yes,resizable=yes');"><span style="background-position:-120px 0;" class="scIco"></span>我的购物车</a></li>
                <li class="select"><a onfocus="this.blur();"  href="<?=$public_r['newsurl']?>e/ShopSys/address/ListAddress.php"><span style="background-position:-48px 0;" class="scIco"></span>管理配送地址</a></li>
            </ul>
        </div>	
        <div class="zhRight">
       		<div class="bigTitle"><span style=" background-position:-712px 0;"></span>商城</div>
                <div class="Bborder"></div>		 	
            <table width="600" border="0" style="border:#d1d1d1 solid 1px;" align="center" cellpadding="3" cellspacing="1" class="tableborder">
  <tr>
    <td width="50%" height="25" bgcolor="#f2f2f2">&nbsp;</td>
    <td width="50%" bgcolor="#f2f2f2"><div align="right">[<a href="AddAddress.php?enews=AddAddress">增加配送地址</a>]&nbsp;&nbsp;</div></td>
  </tr>
</table>
<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"><?=$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>
        </div> 	
        <div class="clear"></div>   
        </div>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>