Server IP : 103.53.40.154 / Your IP : 18.223.237.218 Web Server : Apache System : Linux md-in-35.webhostbox.net 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : ppcad7no ( 715) PHP Version : 8.2.25 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/ppcad7no/abrgarments.com/../uttamnagarproperties.com/uttam-admin/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
<?php require_once("../includes/dbsmain.inc.php"); if(is_post_back()) { $arr_ids = $_REQUEST['arr_ids']; if(is_array($arr_ids)) { $str_ids = implode(',', $arr_ids); if(isset($_REQUEST['Delete']) || isset($_REQUEST['Delete_x']) ) { db_query("delete from tbl_registration where reg_id in ($str_ids)"); } else if(isset($_REQUEST['Activate']) || isset($_REQUEST['Activate_x']) ) { db_query("update tbl_registration set reg_status = 'Active' where reg_id in ($str_ids)"); } else if(isset($_REQUEST['Deactivate']) || isset($_REQUEST['Deactivate_x']) ) { db_query("update tbl_registration set reg_status = 'Inactive' where reg_id in ($str_ids)"); } } header("Location: ".$_SERVER['HTTP_REFERER']); exit; } $start = intval($start); $pagesize = intval($pagesize)==0?$pagesize=DEF_PAGE_SIZE:$pagesize; $order_by == '' ? $order_by = 'reg_add_date' : true; $order_by2 == '' ? $order_by2 = 'desc' : true; if($_REQUEST['status'] ==''){ $sql = "select * from tbl_registration where 1 "; } else{ $sql = "select * from tbl_registration where 1 and reg_status='".$_REQUEST['status']."' "; } $sql = apply_filter($sql, $reg_name, 'like','reg_name'); $sql .= " order by $order_by $order_by2 "; $sql .= " limit $start, $pagesize "; $pager = new midas_pager_sql($sql, $pagesize, $start); if($pager->total_records) { $result = db_query($sql); } ?> <script > function PopupWindowCenter(URL, title,w,h) {var left = (screen.width/2)-(w/2); var top = '20px'; var newWin = window.open (URL, title, 'toolbar=no, location=no,directories=no, status=no, menubar=no, scrollbars=no, resizable=no,copyhistory=no, width='+w+', height='+h+', top='+top+', left='+left); } </script> <link href="styles.css" rel="stylesheet" type="text/css"> <script language="JavaScript" type="text/javascript" src="../includes/general.js"></script> <? include("top.inc.php");?> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="pageHead"><div id="txtPageHead"> Manage Registration </div></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td id="content"><form method="get" name="form2" id="form2" onSubmit="return confirm_submit(this)"> <br /> <table border="0" width="320px" height="85px" align="center" cellpadding="2" cellspacing="0" class="tableSearch"> <tr align="center"> <th colspan="3">Search</th> </tr> <tr> <td class="tdLabel" width="70px"><span style="margin-left:30px;">Title</span></td> <td><input name="reg_name" type="text" value="<?=$reg_name?>" style="width:230px" /></td> </tr> <tr> <td> </td> <td><input name="pagesize" type="hidden" id="pagesize" value="<?=$pagesize?>" /> <input type="image" name="imageField" src="images/buttons/search.gif" /><?php if($_REQUEST['status']!=''){ ?><a href="manage-registration.php" style="margin-left:5px; font-size:13px; font-weight:bold;">Back</a><? } ?></td> </tr> </table> </form> <br /> <? if($pager->total_records==0) {?> <div class="msg">Sorry, no records found.</div> <? } else { ?> <div align="right"> <? $pager->show_displaying()?> </div> <div>Records Per Page: <?=pagesize_dropdown('pagesize', $pagesize);?> <span style="margin-left:20px; font-size:11px; font-weight:bold;">Filter By : <span style="color:#D74600"><a href="manage-registration.php?status=Active">ACTIVE</a> </span>or <span style="color:#D74600"><a href="manage-registration.php?status=Inactive">INACTIVE</a> </span> or <span><a href="manage-registration.php">All</a> </span></span> </div> <form method="post" name="form1" id="form1" onSubmit="confirm_submit(this)"> <table width="100%" border="0" cellpadding="0" cellspacing="1" class="tableList"> <tr> <th width="18%" nowrap="nowrap" style="font-size:12px; padding:9px;">Name <?=sort_arrows('reg_name')?> /Email/Password</th> <!-- <th width="13%" nowrap="nowrap">User Type </th>--> <th width="22%" nowrap="nowrap" style="font-size:12px; padding:9px;">Address </th> <th width="11%" nowrap="nowrap" style="font-size:12px; padding:9px;">City/State/Country </th> <th width="8%" nowrap="nowrap" style="font-size:12px; padding:9px;">Mobile No</th> <th width="6%" nowrap="nowrap" style="font-size:12px; padding:9px;">View</th> <th width="8%" nowrap="nowrap" style="font-size:12px; padding:9px;">User Type</th> <th width="7%" nowrap="nowrap" style="font-size:12px; padding:9px;">Date <?=sort_arrows('reg_add_date')?></th> <th width="6%" nowrap="nowrap" style="font-size:12px; padding:9px;">Status</th> <th width="3%" style="font-size:12px; padding:9px;"><input name="check_all" type="checkbox" id="check_all" value="1" onClick="checkall(this.form)" /></th> </tr> <? while ($line_raw = mysqli_fetch_array($result)) { $line = ms_display_value($line_raw); @extract($line); $css = ($css=='trOdd')?'trEven':'trOdd'; ?> <tr class="<?=$css?>" align="left"> <td style="font-size:12px;"><?=$reg_name?> <br /> <?=$reg_email?> <br /> <?=$reg_pass?> <br /> <p> </p></td> <td align="center" style="font-size:12px;"><?=$reg_address?><br /><?=$reg_zip_code?></td> <td align="center" style="font-size:12px;"><?=$reg_city?> / <?=$reg_state?> / <?=$reg_country?></td> <td align="center" style="font-size:12px;"><?=$reg_mobile_no?></td> <td align="center"> <p><a href="javascript:void(0);" onClick ="PopupWindowCenter('registration_detail.php?user_id=<?=$reg_id?>&user_type=<?=$reg_user_type?>', 'PopupWindowCenter',900,550)"><strong style="font-size:12px;">User Detail</strong></a></p> <p><a href="user-posted-properties.php?userid=<?=$reg_id?>" style="font-size:12px; color:#06C"><strong>Posted<br />Properties</strong></a></p> </td> <td align="center" style="font-size:12px;"><?=$reg_user_type?></td> <td align="center" style="font-size:12px;"><?=$reg_add_date?></td> <td align="center" style="font-size:12px;"><strong> <?=$reg_status?> </strong></td> <td align="center"><input name="arr_ids[]" type="checkbox" id="arr_ids[]" value="<?=$reg_id?>" /></td> </tr> <? } ?> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td align="right" style="padding:2px"><!input type="submit" name="show_in_header" value="Show in Header" class="button"/> <input type="submit" name="Activate" value="Activate" class="button" onClick="return select_chk()" style="font-size:12px; font-weight:bold; height:26px; background-color:#1F3E00; border-radius:4px; cursor:pointer; width:100px;"/> <input type="submit" name="Deactivate" value="Deactivate" class="button" onClick="return select_chk()" style="font-size:12px; font-weight:bold; height:26px; background-color:#FF6F6F; border-radius:4px; cursor:pointer; width:100px;" /> <input type="submit" name="Delete" value="Delete" class="button" onClick="return select_chk()" style="font-size:12px; font-weight:bold; height:26px; background-color:#CA0000; border-radius:4px; cursor:pointer; width:100px;"/> </td> </tr> </table> </form> <? $pager->show_pager();?> <? } ?> </td> </tr> </table> <? include("bottom.inc.php");?> <script language="javascript"> function select_chk(){ var chks = document.getElementsByName('arr_ids[]'); var hasChecked = false; for (var i = 0; i < chks.length; i++){ if (chks[i].checked){ hasChecked = true; break; } } if (hasChecked == false){ alert("Please Select At Least One."); return false; } } </script>