H69UNtblNBNpha2dtB1Odn8qYp1Qk5NK2gi7yfceofo9N
/
home
/
ymswebso
/
public_html
/
postads
/
control
/
Nama File / Folder
Size
Action
Wp
--
NONE
css
--
NONE
ddlevelsfiles
--
NONE
editor
--
NONE
images
--
NONE
includes
--
NONE
js
--
NONE
Thumbs.db
5.5KB
Hapus
Edit
Rename
ad_business_listing_search.php
19.885KB
Hapus
Edit
Rename
as-edit-main-image.php
1.42KB
Hapus
Edit
Rename
edit-ad_listing.php
24.004KB
Hapus
Edit
Rename
edit-city-process.php
1.946KB
Hapus
Edit
Rename
edit-city.php
5.485KB
Hapus
Edit
Rename
edit-featured_listing.php
22.988KB
Hapus
Edit
Rename
edit-list-silver-process.php
5.944KB
Hapus
Edit
Rename
edit-main-image.php
1.417KB
Hapus
Edit
Rename
edit-states-process.php
1.985KB
Hapus
Edit
Rename
edit-sub-category.php
6.637KB
Hapus
Edit
Rename
fckeditor_php4.php
6.037KB
Hapus
Edit
Rename
feature_ad_edit-process.php
4.382KB
Hapus
Edit
Rename
free_business_images.php
6.543KB
Hapus
Edit
Rename
gold_deal_update_process.php
2.608KB
Hapus
Edit
Rename
gold_sub_image_edit.php
1.733KB
Hapus
Edit
Rename
header.php
7.578KB
Hapus
Edit
Rename
index.php
4.549KB
Hapus
Edit
Rename
main-business-list.php
14.005KB
Hapus
Edit
Rename
main-delite_listing.php
0.502KB
Hapus
Edit
Rename
manage-city.php
5.684KB
Hapus
Edit
Rename
manage-expired-featured.php
18.887KB
Hapus
Edit
Rename
manage-users.php
14.106KB
Hapus
Edit
Rename
new_business-process.php
4.474KB
Hapus
Edit
Rename
news-letter-mail.php
2.75KB
Hapus
Edit
Rename
notfound.php
1.504KB
Hapus
Edit
Rename
send-customer-email-process.php
0.662KB
Hapus
Edit
Rename
send-customer-email.php
2.841KB
Hapus
Edit
Rename
set-expiry-admin.php
3.732KB
Hapus
Edit
Rename
showmaincategories-for-newgame.php
0.897KB
Hapus
Edit
Rename
showmaincategories.php
0.455KB
Hapus
Edit
Rename
silver_deal_process.php
1.005KB
Hapus
Edit
Rename
silver_deal_update_process.php
2.641KB
Hapus
Edit
Rename
silver_images_process.php
1.061KB
Hapus
Edit
Rename
video-upload-process.php
0.9KB
Hapus
Edit
Rename
<?php include("includes/session.php"); ?> <?php include("checkextension.php"); ?> <?php include("includes/login-verify.php"); ?> <?php include("includes/connection.php"); ?> <?php include("fckeditor.php"); ?> <?php if($_GET['mod']=='delete') { //writing query to insert data in database. $query ="delete from `members_info` WHERE `members_info`.`id` =".$_GET['product_id']; $result=mysql_query($query) or die("DB error"); ?> <script type="text/javascript"> alert("user has been deleted successfully."); location.href="manage-users.php"; </script> <?php } if($_GET['mode']=='updatestatus') { $query ="update members_info set status = '".$_GET['status']."' where id = '".$_GET['user_id']."'"; $result=mysql_query($query); $query ="update business_ads set status = '".$_GET['status']."' where member_id = '".$_GET['user_id']."'"; $result=mysql_query($query); $_SESSION['msg'] = "<div class='message'> updated successfully.</div>"; } ?> <!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> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Administration - PostAds.com.au</title> <link rel="stylesheet" href="css/stylesheet.css" type="text/css" /> <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-base.css" /> <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-topbar.css" /> <link rel="stylesheet" type="text/css" href="ddlevelsfiles/ddlevelsmenu-sidebar.css" /> <script type="text/javascript" src="ddlevelsfiles/ddlevelsmenu.js"></script> <script language="javascript" src="switchmenu.js" type="text/javascript"></script> <script language="javascript" src="jscripts/tiny_mce/tiny_mce.js" type="text/javascript"></script> <?php $tbl_name="members_info"; //your table name // How many adjacent pages should be shown on each side? $adjacents = 3; /* First get total number of rows in data table. If you have a WHERE clause in your query, make sure you mirror it here. */ $query = "SELECT COUNT(*) as num FROM $tbl_name"; $total_pages = mysql_fetch_array(mysql_query($query)); $total_pages = $total_pages[num]; /* Setup vars for query. */ $targetpage = "manage-users.php?"; //your file name (the name of this file) $limit = 18; //how many items to show per page $page = $_GET['page']; if($page) $start = ($page - 1) * $limit; //first item to display on this page else $start = 0; //if no page var is given, set start to 0 if ($_REQUEST['customerid']!="") $result = mysql_query("SELECT * FROM $tbl_name where id = '".$_REQUEST['customerid']."' order by id desc LIMIT $start, $limit"); else $result = mysql_query("SELECT * FROM $tbl_name order by id desc LIMIT $start, $limit"); $num=mysql_num_rows($result); /* Setup page vars for display. */ if ($page == 0) $page = 1; //if no page var is given, default to 1. $prev = $page - 1; //previous page is page - 1 $next = $page + 1; //next page is page + 1 $lastpage = ceil($total_pages/$limit); //lastpage is = total pages / items per page, rounded up. $lpm1 = $lastpage - 1; //last page minus 1 /* Now we apply our rules and draw the pagination object. We're actually saving the code to a variable in case we want to draw it more than once. */ $pagination = ""; if($lastpage > 1) { $pagination .= "<div class=\"pagination\">"; //previous button if ($page > 1) $pagination.= "<a href=\"$targetpage&page=$prev\">« previous</a>"; else $pagination.= "<span class=\"disabled\">« previous</span>"; //pages if ($lastpage < 7 + ($adjacents * 2)) //not enough pages to bother breaking it up { for ($counter = 1; $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"$targetpage&page=$counter\">$counter</a>"; } } elseif($lastpage > 5 + ($adjacents * 2)) //enough pages to hide some { //close to beginning; only hide later pages if($page < 1 + ($adjacents * 2)) { for ($counter = 1; $counter < 4 + ($adjacents * 2); $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"$targetpage&page=$counter\">$counter</a>"; } $pagination.= "..."; $pagination.= "<a href=\"$targetpage&page=$lpm1\">$lpm1</a>"; $pagination.= "<a href=\"$targetpage&page=$lastpage\">$lastpage</a>"; } //in middle; hide some front and some back elseif($lastpage - ($adjacents * 2) > $page && $page > ($adjacents * 2)) { $pagination.= "<a href=\"$targetpage&page=1\">1</a>"; $pagination.= "<a href=\"$targetpage&page=2\">2</a>"; $pagination.= "..."; for ($counter = $page - $adjacents; $counter <= $page + $adjacents; $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"$targetpage&page=$counter\">$counter</a>"; } $pagination.= "..."; $pagination.= "<a href=\"$targetpage&page=$lpm1\">$lpm1</a>"; $pagination.= "<a href=\"$targetpage&page=$lastpage\">$lastpage</a>"; } //close to end; only hide early pages else { $pagination.= "<a href=\"$targetpage&page=1\">1</a>"; $pagination.= "<a href=\"$targetpage&page=2\">2</a>"; $pagination.= "..."; for ($counter = $lastpage - (2 + ($adjacents * 2)); $counter <= $lastpage; $counter++) { if ($counter == $page) $pagination.= "<span class=\"current\">$counter</span>"; else $pagination.= "<a href=\"$targetpage&page=$counter\">$counter</a>"; } } } //next button if ($page < $counter - 1) $pagination.= "<a href=\"$targetpage&page=$next\">next »</a>"; else $pagination.= "<span class=\"disabled\">next »</span>"; $pagination.= "</div>\n"; } ?> <?php include("menu-files.php"); ?> </head> <body> <?php include("header.php"); ?> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="355" valign="top"> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> </td> </tr> <tr> <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="49%" height="30"><h1><img src="images/customer-icon.png" width="16" height="16" /> Manage Users <span class="mainText">(<img src="images/exportexcel.gif" alt="" width="16" height="16" align="absmiddle" /> <a href="#" onClick=window.open("export-intoexcell.php?table=members_info","exportexcell","width=550,height=170,left=400,top=250,toolbar=0,status=0,resizable=no,");>Export into CSV Excel</a>)</span></h1></td> <td width="51%" align="right" class="mainText"><table border="0" cellspacing="0" cellpadding="0"> <form name="srch" id="srch" method="get" action="manage-users.php?page=members_info"> <tr> <td align="right" class="mainText" style="padding-right:12px;">Search User by ID#</td> <td align="center" style="padding-right:12px;"><input type="hidden" name="item" value="id" /><input type="text" size="20" name="customerid" /></td> <td style="padding-right:12px;"><input type="submit" class="button" value="Search" /></td> <td align="right" class="mainText">Total Users: <strong><?php echo $num;?></strong></td> <td align="right"> <input type="button" class="button" value="Send News Letter" onclick="javascript:window.open('news-letter-mail.php?id=<?php echo $cid; ?>&redirect_page=manage-users.php','sendnesletter','width=850,height=560,left=260,top=100,toolbar=0,status=0,resizable=yes,scrollbars=yes')" /> </td> </tr> </form> </table></td> </tr> </table></td> </tr> <tr> <td bgcolor="#DFDFDF" height="4"></td> </tr> <tr> <td height="12" align="center" class="message"> </td> </tr> </table> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="48%" align="left" class="mainText"><strong><?php echo "Showing Page ".$page." of ".$lastpage.", Total User: ".$total_pages; ?></strong></td> <td width="52%" align="right"><?php echo $pagination; ?> </td> </tr> <tr> <td> </td> <td> </td> </tr> </table> <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><table width="100%" border="0" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC"> <tr> <td width="6%" align="center" nowrap="nowrap" class="mainText" style="background-image:url(images/tdbg.gif); background-repeat:repeat-x;"><strong> ID</strong></td> <td width="11%" height="21" align="left" class="mainText" style="background-image:url(images/tdbg.gif); background-repeat:repeat-x; padding-left:12px;"><strong>Name</strong></td> <td width="21%" height="21" align="left" class="mainText" style="background-image:url(images/tdbg.gif); background-repeat:repeat-x; padding-left:12px;"><strong>Email</strong></td> <td width="10%" align="center" nowrap="nowrap" class="mainText" style="background-image:url(images/tdbg.gif); background-repeat:repeat-x;"><strong>User Name</strong></td> <td width="6%" align="center" class="mainText" style="background-image:url(images/tdbg.gif); background-repeat:repeat-x;"><strong>Contact No.</strong></td> <td width="18%" align="center" class="mainText" style="background-image:url(images/tdbg.gif); background-repeat:repeat-x;"><strong>No. of posted listings </strong></td> <td width="17%" align="center" class="mainText" style="background-image:url(images/tdbg.gif); background-repeat:repeat-x;"><strong>Action</strong></td> </tr> <?php if($num >0) { while($row=mysql_fetch_array($result)) { $cid=$row[id]; if($row[name]=='') { $name=$row[profile_name]; }else{ $name=$row[name]; } if($row[username]=='') { $user_name=$row[name]; }else{ $user_name=$row[username]; } $email_id=$row[email_id]; $mobile_phone=$row[mobile]; $status=$row[status]; $created=$row[created]; $result_ads = mysql_query("select * from business_ads where member_id = '$cid' and listing_type = 'ad'"); { $num_ad_listing=mysql_num_rows($result_ads); } $result_business = mysql_query("select * from business_ads where member_id = '$cid' and listing_type = 'business'"); { $num_business_listing=mysql_num_rows($result_business); } ?> <tr> <td height="25" align="center" bgcolor="#FFFFFF" class="mainText"><?php echo $cid; ?></td> <td align="left" bgcolor="#FFFFFF" class="mainText" style="padding-left:12px;"><?php echo $name; ?></td> <td align="left" bgcolor="#FFFFFF" class="mainText" style="padding-left:12px;"> <?php echo $email_id; ?> </td> <td align="center" bgcolor="#FFFFFF" class="mainText" style="padding-left:12px;"><?php echo $user_name; ?></td> <td align="center" bgcolor="#FFFFFF" class="mainText" style="padding-right:12px;"><?php echo $mobile_phone; ?></td> <td align="center" bgcolor="#FFFFFF" class="mainText" style="padding-right:12px;"> Business Listings: <a href="total_listing_user?id=<?php echo $cid; ?>"><?php echo $num_business_listing; ?></a><br /> Ads Listings: <a href="total_listing_ad_user?id=<?php echo $cid; ?>"><?php echo $num_ad_listing; ?></a></td> <td align="center" valign="top" bgcolor="#FFFFFF" class="smallText"><img src="images/edit-icon-hide.gif" width="10" height="10" /> <a href="#" onClick="javascript:window.open('user_edit.php?id=<?php echo $cid; ?>&redirect_page=manage-users.php','editmaincategory','width=850,height=500,left=260,top=100,toolbar=0,status=0,resizable=yes,scrollbars=yes')">Edit</a> | <img src="images/delete-icon-hide.gif" width="10" height="10" /> <a href="manage-users.php?product_id=<?php echo $cid;?>&mod=delete" onClick="javascript:return confirm('Are you sure you want to delete this customer.');">Delete</a> | <?php if($status=="0") { ?> <a href="manage-users.php?user_id=<?php echo $cid; ?>&mode=updatestatus&status=1">Unsuspend</a> | <b>Suspend</b> <?php } else { ?> <b>Unsuspend</b> | <a href="manage-users.php?user_id=<?php echo $cid; ?>&mode=updatestatus&status=0">Suspend</a> <?php } ?> <input type="button" class="button" value="Write A Message" onclick=window.open("send-customer-email?email=<?php echo $email_id; ?>","Ratting","width=675,height=400,left=400,top=250,toolbar=0,status=0,resizable=no,"); /> </tr> <?php }}else {?> <tr> <td height="25" align="center" bgcolor="#FFFFFF" class="mainText" colspan="8">No record found.</td> </tr> <?php } ?> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td> </td> <td> </td> </tr> <tr> <td width="48%" align="left" class="mainText"><strong><?php echo "Showing Page ".$page." of ".$lastpage.", Total Users: ".$total_pages; ?></strong></td> <td width="52%" align="right"><?php echo $pagination; ?> </td> </tr> </table> </td> </tr> </table> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td class="footer-strip"></td> </tr> <tr> <td height="1"></td> </tr> <tr> <td align="center" valign="top" class="footer"><span class="maintext"><br /> Copyright © 2012 PostAds.com.au Australia. All rights reserved.<br /> Reproduction in whole or in part in any form or medium without express written permission is prohibited.</span></td> </tr> </table></body> </html>