<?php
if(!defined('InEmpireCMS'))
{
	exit();
}
?>
<?php
$public_diyr['pagetitle']='消费记录';
$url="<a href=../../../>首页</a>&nbsp;>&nbsp;<a href=../cp/>会员中心</a>&nbsp;>&nbsp;消费记录";
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 class="select"><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><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:-331px 0;"></span>财务</div>
                <div class="Bborder"></div> 	
            <table width="100%" border="0" align="center" cellpadding="3" cellspacing="1" class="tableborder">
          <tr class="header"> 
            <td width="55%" height="25"><div align="center">标题</div></td>
            <td width="16%" height="25"><div align="center">扣除点数</div></td>
            <td width="29%" height="25"><div align="center">时间</div></td>
          </tr>
	<?php
	while($r=$empire->fetch($sql))
	{
		if(empty($class_r[$r[classid]][tbname]))
		{continue;}
		$nr=$empire->fetch1("select title,isurl,titleurl,classid from {$dbtbpre}ecms_".$class_r[$r[classid]][tbname]." where id='$r[id]' limit 1");
		//标题链接
		$titlelink=sys_ReturnBqTitleLink($nr);
		if(!$nr['classid'])
		{
			$nr['title']="此信息已删除";
			$titlelink="#EmpireCMS";
		}
		if($r['online']==0)
		{
			$type='下载';
		}
		elseif($r['online']==1)
		{
			$type='观看';
		}
		elseif($r['online']==2)
		{
			$type='查看';
		}
		elseif($r['online']==3)
		{
			$type='发布';
		}
	?>
          <tr bgcolor="#FFFFFF"> 
            <td height="25">[
              <?=$type?>
              ] &nbsp;<a href='<?=$titlelink?>' target='_blank'> 
              <?=$r[title]?>
              </a> </td>
            <td height="25"><div align="center"> 
                <?=$r[cardfen]?>
              </div></td>
            <td height="25"><div align="center"> 
                <?=date("Y-m-d H:i:s",$r[truetime])?>
              </div></td>
          </tr>
          <?
	}
	?>
          <tr bgcolor="#FFFFFF"> 
            <td height="25" colspan="3"> 
              <?=$returnpage?>            </td>
          </tr>
        </table>
        </div> 	
        <div class="clear"></div>   
        </div>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>