PK

ADDRLIN : /home/questend/public_html/domains/rwa40.com/admin/vehicle/
FLL :
Current File : /home/questend/public_html/domains/rwa40.com/admin/vehicle/vehicle-list.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();
   }
   
   $vehicles = $function->getVehicleDetails(NULL,1);
   //print_r($_POST);
   if(isset($_POST['usersearch']) && !empty($_POST)){
        //print_r($_POST); exit;
        $condition = "";
        $owner_name = !empty($_POST['owner_name'])?trim($_POST['owner_name']):"";

        if(!empty($username)){            
          $condition.=empty($condition)?" owner_name LIKE '$username%' ":" AND owner_name LIKE '%$owner_name%' ";
        }

        $condition = trim(str_replace(' ', ' ', $condition));

        $ipaddress = $function->getRealIpAddr();
        $error_msg = "";

        $pdodb = PDODB::getInstance();
        $sql = "INSERT INTO users  SET owner_name='".$owner_name."',owner_age='".$owner_age."',mobile='".$mobile."',email='".$email."',ipaddress='".$ipaddress."'";
        //print_r($sql); exit;
        //echo "mdscmsdmc"; exit;
        $result = $pdodb->query($sql);
        //echo $result; exit;
        if(!empty($result)){
         //echo $result; exit;
        $sql2 = "INSERT INTO user_details SET house_no='".$house_no."',represent_name='".$represent_name."',represent_relation='".$represent_relation."',represent_age='".$represent_age."',represent_mobile='".$represent_mobile."',represent_email='".$represent_email."',started_construction='".$started_construction."',date_completion_certificate='".$date_completion_certificate."',purchased_on='".$purchased_on."',date_deed_registation='".$date_deed_registation."',qualification_self='".$qualification_self."',occupation_self='".$occupation_self."',name_organisation='".$name_organisation."',add_organisation='".$add_organisation."',designation_self='".$designation_self."',qualification_spouse='".$qualification_spouse."',occupation_spouse='".$occupation_spouse."',name_organisation_spouse='".$name_organisation_spouse."',add_organisation_spouse='".$add_organisation_spouse."',designation_spouse='".$designation_spouse."',amount='".$amount."'";
        //echo $sql2; exit;
        $result2 = $pdodb->query($sql2);
        //echo $result2; exit;
        $insert_id = $pdodb->lastInsertId();
        PDODB::closeInstance();
        }

        //print_r($insert_id); exit;
        if (!empty($result) && !empty($result2)) {
          echo "<script>alert('Member added successfully. Click OK to Add your Family Member Now.');</script>";
          echo "<script>window.location.href='../familymember/create-family.php?id=$insert_id';</script>";
        }
    }
    //start Delete Family-member
     if(!empty($_GET['id']) && ($_GET['action']=='Del')) {
        //print_r($_GET); exit;
        //$fmid=$_GET['fmid'];
        $id=$_GET['id']; 
        //print_r($id); exit;      
        $pdodb = PDODB::getInstance();
        $sql = "UPDATE vehicles SET isactive=0 WHERE vehicle_id = '".$id."'";        
        $result = $pdodb->query($sql);
        
        PDODB::closeInstance();
        if(!empty($result)){
           header("Location: vehicle-list.php");
           //echo '<script type="text/javascript">location.href("member-details.php?id=$id");</script>';
        }
     }
     //End Delete Family-member
?>
<!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'; ?>
   </head>
   <body>
      <div id="wrapper">
         <?php $currentPage = 'vehicle-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-8">
                  <h2>All Vehicles list</h2>                  
               </div>
            </div>           
            <div class="row">
               <div class="col-lg-12">
                  <div class="ibox float-e-margins">
                    <div class="ibox-content">
                        <div class="table-responsive">
                            <table class="table table-striped table-bordered table-hover dataTables-example" id="myTable">
                              <thead>
                                <tr>
                                   <th>S.No</th>
                                   <th>Owner Name</th>
                                   <th>House No</th>
                                   <th>Vehicle Type</th>
                                   <th>Vehicle Number</th>
                                   <th>Vehicle Model Name</th>
                                   <th>Action</th>
                                </tr>
                              </thead>
                              <tbody>
                                <?php for($i=0;$i<count($vehicles);$i++){ ?>
                                <tr>
                                   <td><?=$i+1;?></td>
                                   <td class="center"><?=$vehicles[$i]['plot_owner_name'];?></td>
                                   <td class="center"><?=$vehicles[$i]['house_no'];?></td>
                                   <td class="center"><?=$vehicles[$i]['vehicle_type'];?></td>
                                   <td class="center"><?=$vehicles[$i]['vehicle_no'];?></td>
                                   <td class="center"><?=$vehicles[$i]['vehicle_modelname'];?></td>
                                   <td class="center"><a class="btn btn-primary btn-xs" href="vehicle-details.php?id=<?=$vehicles[$i]['vehicle_id'];?>"><i class="fa fa-eye"></i> View </a> <a class="btn btn-danger btn-xs" href="vehicle-list.php?id=<?=$vehicles[$i]['vehicle_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>
         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>
      <!-- Page-Level Scripts -->
      <script>
        $(document).ready(function(){
            $('.dataTables-example').DataTable({
                dom: '<"html5buttons"B>lTfgitp',
                columnDefs: [
                    { type: "num-fmt", symbols:"R$" , targets: 4 }
                ],
                buttons: [
                    { extend: 'copy'},
                    {extend: 'csv'},
                    /*{extend: 'excel', title: 'ExampleFile'},
                    {extend: 'pdf', title: 'ExampleFile'},*/
                    /*{extend: 'print',
                     customize: function (win){
                        $(win.document.body).addClass('white-bg');
                        $(win.document.body).css('font-size', '10px');
                        $(win.document.body).find('table')
                            .addClass('compact')
                            .css('font-size', 'inherit');
                        }
                    }*/
                ]    
            });
        });
      </script>
      <script type="text/javascript">
        $(document).ready(function() {
          $('#myTable thead th').each(function() {
            var title = $(this).text();
            if(title == 'Owner Name'){
                $(this).append('<br /><input type="text" placeholder="Search ' + '" />');
            }
            if(title == 'House No'){
                $(this).append('<br /><input type="text" placeholder="Search ' + '" />');
            }            
          });
          
          // DataTable
          var table = $('#myTable').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