-
Notifications
You must be signed in to change notification settings - Fork 0
/
subscription-list.php
162 lines (154 loc) · 5.75 KB
/
subscription-list.php
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
<?
require_once('config/config.php');
validation_check($_SESSION['user_id'], 'login.php');
if($_REQUEST['mode']=='del')
{
Delete_Qry(USERNEWSLETTER,"WHERE id='".$_REQUEST['id']."'"); /// delete msg
}
/// $record=Select_Qry("*",ADVERTISE,"add_id='".$_REQUEST['add_id']."'","","","","");
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title><?=TITLE?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="keywords" content="<?=META_KEYWORDS?>"/>
<meta name="description" content="<?=META_CONTENT?>"/>
<link href="css/fresh-auction.css" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function jsHitListAction(p1)
{
document.frm.action = "<?=$_SERVER['PHP_SELF']?>?PageNo="+eval(p1) ;
document.frm.submit()
}
</script></head>
<body>
<? include_once("toppage1.php");?>
<div id="container" >
<? include_once("left-menu.php");?>
<div id="content" >
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/lbd_24.jpg" width="742" height="10" /></td>
</tr>
<tr>
<td>
<div class="header_top">
<? include_once("cart-info.php");?>
</div>
<div class="clear"></div>
<!--div class="menu_top">
<? include_once("top-menu.php")?>
</div-->
<p style="height:42px;"> </p>
<div style="vertical-align:top;">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td colspan="3" align="left" width="100%" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="4" class="border">
<tr>
<td width="45%" valign="top"><a href="index.php">Fresh Auction</a> >> Subscriptionlist for <?=USERNAME($_SESSION['user_id'])?></td>
<td align="left" valign="top" style="border-left:1px solid #EBEBEB;">
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td width="13%" align="left" valign="top"><img src="avatar/<?=AVATAR($_SESSION['user_id'])!=""?'thumb_'.AVATAR($_SESSION['user_id']):"noimage.jpeg"?>" border="0" align="absmiddle" class="img_border"></td>
<td width="87%" align="left" valign="middle"><?=USERNAME($_SESSION['user_id'])?>(<a href="my-message.php?mode=inbox" class="user_menu">Private Messages</a>)<br />
You have <?=CREDIT($_SESSION['user_id'])?> auction credits. <a href="buycredit.php" class="green">Buy more credits</a></td>
</tr>
</table>
</td>
</tr>
</table>
</td></tr>
<tr><td colspan="3" align="right" width="100%" valign="top" style="height:5px;"></td></tr>
<tr><td colspan="3" align="right" width="100%" valign="top">
<table width="60%" border="0" cellspacing="0" cellpadding="4" class="border">
<tr>
<td style="border-right:1px solid #EBEBEB;"><a href="short-list.php" class="user_menu">My Shortlist</a></td>
<td style="border-right:1px solid #EBEBEB;"><a href="subscription-list.php" class="user_menu">My Subscriptions</a></td>
<td style="border-right:1px solid #EBEBEB;"><a href="mylistings.php" class="user_menu">My Activity</a></td>
<td style="border-right:1px solid #EBEBEB;"><a href="my-account.php" class="user_menu">My Account</a></td>
<td style="border-right:1px solid #EBEBEB;"><a href="my-message.php?mode=inbox" class="user_menu">My Messages</a></td>
<td><a href="logout.php" class="user_menu">Logout</a></td>
</tr>
</table>
</td></tr>
</table>
</div>
<p align="center">
<form name="frm" method="post" action="">
<table width="100%" border="0" cellspacing="3" cellpadding="4" align="center" class="border">
<tr>
<td align="left" colspan="2" valign="top" class="header_text_h">Subscription list</td>
</tr>
<tr>
<td align="left" colspan="2" valign="top"> </td>
</tr>
<tr>
<td align="left" colspan="2" valign="top">
<table width="100%" border="0" cellspacing="0" cellpadding="5" class="border">
<tr>
<td width="46%" align="left" valign="top" class="rowhead">Title</td>
<td width="16%" align="center" valign="top" class="rowhead">Status</td>
<td width="13%" align="center" valign="top" class="rowhead">Ends</td>
<td width="10%" align="center" valign="top" class="rowhead">Remove</td>
</tr>
<?
$sql="SELECT * FROM ".USERNEWSLETTER." WHERE email='".$_SESSION['email']."' AND add_id<>0 ORDER BY id DESC";
$PageSize =30;
$StartRow =0;
include_once('paging-top.php');
if(mysql_num_rows($rs)>0)
{
$bgColor = "#ffffff";
for($i=0;$i<mysql_num_rows($rs);$i++)
{
$arrurpro=mysql_fetch_array($rs);
$advarr=Select_Qry("*",ADVERTISE,"add_id='".$arrurpro['add_id']."'","","","","");
?>
<tr>
<td align="left" valign="top"><a href="./<?=remspace($arrurpro['add_id'])?>"><?=ADDTITLE($arrurpro['add_id'])?></a></td>
<td align="center" valign="top">
<? if($advarr['status']==1){
echo "Open";
}
elseif($advarr['status']==0)
{
echo "Relist";
}
else
{
echo "Closed";
}
?></td>
<td align="center" valign="top"><?=$advarr['status']==2?'Ended':enddate($advarr['valid_till'])?></td>
<td align="center" valign="top"><a href="<?=$_SERVER['PHP_SELF']?>?<?=$_SERVER['QUERY_STRING']?>&mode=del&id=<?=$Ques['id']?>" onClick="return confirm('Are you sure want to remove this shortlist?')">Remove</a></td>
</tr>
<?
}
?>
<tr><td colspan="4" align="right" valign="top"><? include_once('pageno.php');?></td></tr>
<?
}else
{
?>
<tr><td colspan="4" align="center" valign="top"><?=errormessage("No Subscription Listed!")?></td></tr>
<?
}
?>
</table></td>
</tr>
</table>
</form>
</p>
<div class="sidebar_sep"></div>
</td>
</tr>
<tr>
<td><img src="images/lbd_24a.jpg" width="742" height="10" /></td>
</tr>
</table>
</div></div></div>
<? require_once("upper-footer.php"); ?>
<? require_once("footer.php");?>
</body>
</html>