downbak.php
1.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<?php
if(!defined('InEmpireCMS'))
{
exit();
}
?>
<?php
$public_diyr['pagetitle']='消費記錄';
$url="<a href=../../../>首頁</a> > <a href=../cp/>會員中心</a> > 消費記錄";
require(ECMS_PATH.'e/template/incfile/header.php');
?>
<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'])
{
$r['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?>
] <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>
<?php
require(ECMS_PATH.'e/template/incfile/footer.php');
?>