PK

ADDRLIN : /home/questend/public_html/domains/rwa40.com/admin/member/
FLL :
Current File : /home/questend/public_html/domains/rwa40.com/admin/member/index.php

<?php
   ob_start();
   error_reporting(E_ALL ^ E_NOTICE);
   @session_start();
   ini_set('allow_url_include',1);    
   date_default_timezone_set("Asia/Kolkata");
   set_time_limit(600);
   ini_set('max_execution_time',600);
   include '../includes/settings/constant.php';
   //include '../includes/settings/db.php';
   require_once '../includes/settings/PDODB.php';
   include '../includes/modules/functions.php';
   
   $function = new FUNCTIONS();

   if (!empty($_SESSION['adminId']) && !empty($_SESSION['admin_role_id'])) {
     if($_SESSION['admin_role_id']==1){
      //header("Location: index.php");
    }elseif($_SESSION['admin_role_id']==2){
      header("Location: ../dashboard/index.php");
    }
   }else{
    header("Location: ../index.php");
    exit();
   }
 
   $pdodb = PDODB::getInstance();
   $sql = "SELECT e.house_no, e.occupation_self, u.owner_name, u.mobile,u.tel_no,u.id FROM `user_details` AS e INNER JOIN `users` AS u ON e.id = u.id WHERE u.isactive=1 AND e.isactive=1";
   $result = $pdodb->query($sql);
   //print_r($result); exit;

    if(!empty($_GET['id']) && ($_GET['action']=='Del')) {
      //print_r($_GET['action']); exit;
      $id=$_GET['id'];
   
      $sql = "UPDATE users SET isactive=0 WHERE id = '".$id."'";        
      $result = $pdodb->query($sql);

      $sql2 = "UPDATE user_details SET isactive=0 WHERE id = '".$id."'";        
      $result2 = $pdodb->query($sql2);
      PDODB::closeInstance();
      if(!empty($result) && !empty($result2)){
        echo '<script type="text/javascript">location.replace("index.php");</script>';
      }
    }
   //print_r($user);
   ?>
<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>INSPINIA | Basic Form</title>
      <?php include_once '../layout/style.php'; ?>
      <style type="text/css">
          button, input, select, textarea {width: 100px;}
      </style>
   </head>
   <body>
      <div id="wrapper">
         <?php $currentPage = 'member-index'; include_once '../layout/side-bar.php'; ?>
         <div id="page-wrapper" class="gray-bg">
            <?php include_once '../layout/header.php'; ?>
            <div class="row wrapper border-bottom white-bg page-heading">
               <div class="col-lg-10">
                  <h2>Member list</h2>                  
               </div>
               <div class="col-lg-2">
               </div>
            </div>            
           <div class="row">
              <div class="col-lg-12" style="padding: 0px;">
                 <div class="ibox float-e-margins">
                    <div class="ibox-title">                  
                    </div>
                    <div class="ibox-content">
                       <div class="table-responsive">
                          <table class="table table-striped table-bordered table-hover dataTables-example" id="editable">
                             <thead>
                                <tr>
                                   <th>S.No</th>
                                   <th>Owner Name</th>
                                   <th>House No</th>
                                   <th>Balance</th>                                       
                                   <th>Mobile</th>                                       
                                   <th>Action</th>
                                </tr>
                             </thead>
                             <tbody>
                                <?php
                                    $sno=0;
                                    $account = $function->getAccountDetails($uid=NULL,$orderid=NULL,$isactive=1);
                                    foreach($result as $value) {
                                        $bal = 0;
                                        for($i=0;$i<count($account);$i++){
                                          if ($value['id']==$account[$i]['uid']) {
                                             $bal += (int)$account[$i]['debit']-(int)$account[$i]['credit'];
                                          }           
                                        }
                                        $sno++;
                                ?>
                                <tr style="<?php if($bal>1){ echo "background-color: #ed5565; color: #fff;"; } ?>">
                                  <td><?=$sno;?></td>
                                  <td class="center"><?=$value['owner_name'];?></td>
                                  <td class="center"><?=$value['house_no'];?></td>
                                  <td class="center"><?=$bal;?></td>
                                  <td class="center"><?=$value['mobile'];?></td>                                      
                                  <td class="center">
                                    <a class="btn btn-primary btn-xs" href="member-details.php?id=<?=$value['id'];?>"><i class="fa fa-eye"></i> Full Details</a>
                                    <a class="btn btn-info btn-xs" href="account-details.php?id=<?=$value['id'];?>"><i class="fa fa-eye"></i> A/c Details</a>
                                    <a class="btn btn-success btn-xs" href="edit-member-details.php?id=<?=$value['id'];?>"><i class="fa fa-pencil"></i> Edit</a>
                                    <a class="btn btn-warning btn-xs" href="index.php?id=<?=$value['id'];?>&action=Del" onclick=" return confirm('Do you really want to delete!')"><i class="fa fa-trash"></i> Delete</a>
                                  </td>
                                </tr>
                                <?php } ?>
                             </tbody>
                          </table>
                       </div>
                    </div>
                 </div>
              </div>
           </div>            
         </div>
      </div>
      <?php include_once '../layout/script.php'; ?>
      <script>
         $(document).ready(function () {
             $('.i-checks').iCheck({
                 checkboxClass: 'icheckbox_square-green',
                 radioClass: 'iradio_square-green',
             });
         });
      </script>
      <script>
         function tossterMsgAlert(msg='Welcome',title='') {
             toastr.options = {
                 closeButton: true,
                 //debug: false,
                 newestOnTop: false,
                 //progressBar: false,
                 positionClass: 'toast-top-center',
                 preventDuplicates: true,
                 //onclick: null,
                 //showDuration: 300,
                 //hideDuration: 1000,
                 timeOut: 2000,
                 //extendedTimeOut: 1000,
                 //showEasing: 'swing',
                 //hideEasing: 'linear',
                 //showMethod: 'fadeIn',
                 hideMethod: 'fadeOut'
             };
             toastr.warning(title,msg);
         }
      </script>
      <script>
        $(document).ready(function(){
            $('.dataTables-example').DataTable({
                dom: '<"html5buttons"B>lTfgitp',
                pageLength: 25,
                columnDefs: [
                    { type: "num-fmt", symbols:"R$" , targets: 4 }
                ],
                buttons: [
                    /*{extend: 'copy'},
                    {extend: 'csv'},  */                  
                ]    
            });
        });       
      </script>
      
      <script type="text/javascript">
        $(document).ready(function() {
          $('#editable thead th').each(function() {
            var title = $(this).text();
            if(title == 'Owner Name'){
              $(this).append('<br /><input type="text" placeholder=" ' + title + '" />');
            }
            if(title == 'House No'){
              $(this).append('<br /><input type="text" placeholder=" ' + title + '" />');
            }            
            if(title == 'Mobile'){
              $(this).append('<br /><input type="text" placeholder=" ' + title + '" />');
            }
          });
          
          // DataTable
          var table = $('#editable').DataTable();

          table.columns().every( function () {
            var that = this;  
            var searchTextBox = $('input', this.header() );         
              searchTextBox.on( 'keyup change', function () {
                if ( that.search() !== this.value ) {
                    that
                    .search( this.value )
                    .draw();
                  }
              });
            searchTextBox.on('click', function (e){
              e.stopPropagation();
            })
          });
          $(".dataTables_filter").hide();
        } );      
      </script>
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

It looks like you found a glitch in the matrix...

← Back to Home