PK

ADDRLIN : /home/questend/public_html/domains/rwa40.com/admin/help-support/
FLL :
Current File : /home/questend/public_html/domains/rwa40.com/admin/help-support/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';
   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();
   }
   
    $user = $function->getUsers(NULL,NULL,NULL,1);
    $user_details = $function->getUserDetails(NULL,1);
    
    $ticketdata = $function->getTickets($id=NULL,$uid=NULL,$status=NULL,$orderBy='DESC');
    //print_r($ticketdata[0]['created']); exit;
    

    $curYear = date('Y');
     $start_date = "2021-06-22 01:01:01";
     //$start_date = $discountperiod[0]['date_to'];
     $current_date = date("Y-m-d H:i:s");
     //$current_date = "2020-06-25 01:01:01";
     $diff = abs(strtotime($current_date) - strtotime($start_date));
     $years = 0;
     $months = 0;
     //$years = floor($diff / (365*60*60*24));
     //$months = floor(($diff - $years * 365*60*60*24) / (30*60*60*24));
     $days = floor(($diff - $years * 365*60*60*24 - $months*30*60*60*24)/ (60*60*24));
     //print_r($days); exit;

    $date1 = $ticketdata[0]['created'];
    $date2 = date("Y-m-d H:i:s");
    $timestamp1 = strtotime($date1);
    $timestamp2 = strtotime($date2);
    $hour = abs($timestamp2 - $timestamp1)/(60*60);
    //echo "Difference between two dates is " . $hour = abs($timestamp2 - $timestamp1)/(60*60) . " hour(s)";
   
   //print_r($hour);
   
?>
<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <title>RWA | Sector 40</title>
      <?php include_once '../layout/style.php'; ?>
      <style type="text/css">
        .open{
          background-color: #1c84c6;
          color: #FFFFFF;
        }
        .resolved{
          background-color: #1ab394;
          color: #FFFFFF;
        }
        .closed{
          background-color: #ed5565;
          color: #FFFFFF;
        }
      </style>
   </head>
   <body>
      <div id="wrapper">
        <?php $currentPage = 'help-support'; 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-sm-6">
                  <h2>Help Support</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="editable">
                                <thead>
                                    <tr>
                                        <th>S.No</th>
                                        <th>Title</th>
                                        <th>Name</th>
                                        <th>House no</th>
                                        <th>Ticket ID</th>
                                        <th>Status.</th>       
                                        <th>Action</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <?php
                                    $i = 0;                                  
                                    foreach ($ticketdata as $key => $value) {
                                        // Initialize variables
                                        $name = '';
                                        $house_no = '';
                                        $user_id = $value['uid'];
                                        
                                        // Find matching user
                                        foreach ($user as $isKey => $isValue) {
                                            if($user_id == $isValue['id']) {
                                                $name = $isValue['owner_name'];
                                                break; // Exit loop once found
                                            }
                                        }
                                        
                                        // Find matching user details
                                        foreach ($user_details as $uKey => $uValue) {
                                            if($user_id == $uValue['id']) {
                                                $house_no = $uValue['house_no'];
                                                break; // Exit loop once found
                                            }
                                        }
                                        
                                        $i++;
                                    ?>
                                    <tr>
                                        <td><?=$i;?></td>
                                        <td class="center"><?=htmlspecialchars($value['title']);?></td>
                                        <td class="center"><?=htmlspecialchars($name);?></td>
                                        <td class="center"><?=htmlspecialchars($house_no);?></td>
                                        <td class="center"><?=$value['id'];?></td>
                                        <td class="center"><span class="label <?=htmlspecialchars($value['status']);?>"><?=htmlspecialchars($value['status']);?></span></td>
                                        <td>
                                            <a class="btn btn-info btn-xs" href="view.php?id=<?=$value['id'];?>&uid=<?=$user_id;?>">
                                                <i class="fa fa-eye"></i> View
                                            </a>
                                        </td>
                                    </tr>
                                    <?php } ?>                                
                                </tbody>
                            </table>                          
                        </div>
                    </div>
                </div>
               </div>
            </div>
         </div>         
      </div>
      <?php include_once '../layout/script.php'; ?>
      <script type="text/javascript">
        $('#data_5 .input-daterange').datepicker({
            keyboardNavigation: false,
            forceParse: false,
            autoclose: true
        });
      </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>
      <!-- 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>
   </body>
</html>


PK 99
E-SHOP || DASHBOARD
404

Page Not Found

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

← Back to Home