0byt3m1n1
Path:
/
data
/
17
/
1
/
18
/
11
/
1670011
/
user
/
1801231
/
htdocs
/
metalsh
/
admin
/
pages
/
[
Home
]
File: subscriber.php
<? if($_GET['action']!='') { $q_update="update `tbl_user` set `status`='".$_GET['action']."' where `order_no`='".$_GET['id']."'"; $r_update=mysql_query($q_update); if($r_update) { ?> <script language="javascript" type="text/javascript"> window.location='index.php?page=subscriber&&status=<?=$_GET['status']?>'; </script> <? } } if($_GET['status']!='') { $status=$_GET['status']; $q_new="select * from `tbl_user` where `status`='".$_GET['status']."' order by `order_no` DESC"; } else { $status="ALL"; $q_new="select * from `tbl_user` order by `order_no` DESC"; } $r_new=mysql_query($q_new); ?> <link href="../css/admin-style.css" rel="stylesheet" type="text/css"> <style type="text/css"> <!-- .style1 { color: #FF0000; font-style: italic; } .style2 { color: #FF0000; font-weight: bold; } .style3 { color: #333300; font-weight: bold; } --> </style> <span class="view-edit-header">List Of <b> <?=strtoupper($status)?> </b>Subscriber</span> <table width="750" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="left" valign="top"><form name="form1" method="post" action=""> <table width="740" border="0" cellspacing="0" cellpadding="2" style="border:1px solid #0099FF;"> <tr> <td width="120" height="30" align="left" valign="middle" class="left-header-text">Name</td> <td width="120" align="left" valign="middle" class="left-header-text">Email</td> <td width="80" align="left" valign="middle" class="left-header-text">Phone</td> <td width="90" align="left" valign="middle" class="left-header-text">Package</td> <td width="115" align="left" valign="middle" class="left-header-text">Int. Date/Time</td> <td width="90" align="left" valign="middle" class="left-header-text">Action</td> <td width="100" align="left" valign="middle" class="left-header-text">Admin Note</td> </tr> <? if(mysql_num_rows($r_new)>0) { while($row_new=mysql_fetch_array($r_new)) { if($row_new['status']=='New') { $status="New"; } ?> <tr> <td align="left" valign="top" class="left-links"><?=$row_new['prefix']?> <?=$row_new['first_name']?> <?=$row_new['last_name']?></td> <td align="left" valign="top" class="left-links"><a href="email.php?id=<?=$row_new['email']?>" class="left-links"><?=$row_new['email']?></a></td> <td align="left" valign="top" class="left-links"><?=$row_new['phone']?></td> <td align="left" valign="top" class="left-links"><?=$row_new['package']?></td> <td align="left" valign="top" class="left-links"><?=$row_new['date']?>/<?=$row_new['hrs']?>:<?=$row_new['min']?></td> <td align="left" valign="top" class="left-links"><a href="index.php?page=view_subscriber&&id=<?=$row_new['order_no']?>&&status=<?=$status?>" class="left-links">View</a><br /> <? if($_GET['status']!="Rejected") { ?> <a href="index.php?page=subscriber&&id=<?=$row_new['order_no']?>&&action=Rejected&&status=<?=$_GET['status']?>" class="left-links style2">Reject</a><br /> <? } else { ?> <a href="index.php?page=subscriber&&id=<?=$row_new['order_no']?>&&action=Viewed&&status=<?=$_GET['status']?>" class="left-links style3">Viewed</a><br /> <? } ?> <a href="index.php?page=subscriber&&id=<?=$row_new['order_no']?>&&action=Interviewed&&status=<?=$_GET['status']?>" class="left-links style3">Interviewed</a><br /> </td> <td align="left" valign="top" class="left-links"><?=$row_new['admin_comment']?></td> </tr> <? } } else { ?> <tr> <td height="25" colspan="7" align="center" valign="middle" class="style1">Nothing To Show</td> </tr> <? } ?> </table> </form> </td> </tr> </table>