PK

ADDRLIN : /home/questend/public_html/subdomain/coforge.jiffyfilms.com/admin/dashboard/
FLL :
Current File : /home/questend/public_html/subdomain/coforge.jiffyfilms.com/admin/dashboard/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();
   //print_r($_SESSION);
   if(empty($_SESSION['adminId'])){
    header("Location: ../index.php");
    exit();
   }
?>
<!DOCTYPE html>
<html>
   <head>
      <meta charset="utf-8">
      <meta name="viewport" content="width=device-width, initial-scale=1.0">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <title>Coforge Techcon | Dashboard</title>
      <?php include_once '../layout/style.php'; ?>
   </head>
   <body>
      <div id="wrapper">
         <?php $currentPage = 'dashboard'; include_once '../layout/side-bar.php'; ?>
         <div id="page-wrapper" class="gray-bg dashbard-1">
            <?php include_once '../layout/header.php'; ?>
            <div class="row  border-bottom white-bg dashboard-header">
               <div class="col-sm-6">
                  <h2>Welcome Admin Panel</h2>
                  <small>Dashboard</small>                  
               </div>
               <div class="col-lg-6">
                    <?php if ($_SESSION['admin_role_id']==2) {
                        // in every 10 second
                        header("refresh: 50");
                     ?>
                        <button style="float: right; margin-top: 10px;" class="btn btn-info" onclick='window.location.reload(true);'>Page Refresh</button>
                    <?php } ?>
               </div>
            </div>
            <?php if ($_SESSION['admin_role_id']==2) { 
               $pdodb = PDODB::getInstance();
               $sqlask = "SELECT * FROM `tb_askquestion` WHERE `status` = 'Final' AND `isActive` = 1 ORDER BY `tb_askquestion`.`id` DESC";
               $askQuestionlist = $pdodb->query($sqlask);
            ?>
               <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">
                                       <thead>
                                           <tr>                                               
                                               <th>S.No</th>
                                               <th>Question</th>
                                               <th>Name</th>
                                               <th>Email ID</th>
                                               <!-- <th>Status</th> -->
                                               <th>Date</th>
                                              
                                           </tr>
                                       </thead>
                                       <tbody>
                                           <?php
                                               for ($i = 0; $i < count($askQuestionlist); $i++) {
                                                   $uId = $askQuestionlist[$i]['uId'];
                                                   $userData = $function->getUsers($uId, null, null, 1);

                                                   if (!empty($userData) && isset($userData[0])) {
                                                       $username = $userData[0]['username'] ?? '';
                                                       $email = $userData[0]['email'] ?? '';
                                                   } else {
                                                       $username = '';
                                                       $email = '';
                                                   }
                                               ?>
                                               <tr>
                                                   <!-- Add checkbox -->
                                                   <td><?=$i + 1;?></td>
                                                   <td class="center"><?=$askQuestionlist[$i]['question'];?></td>
                                                   <td class="center"><?=$username;?></td>
                                                   <td class="center"><?=$email;?></td>
                                                   <td class="center"><?=$askQuestionlist[$i]['isDated'];?></td>
                                                   
                                               </tr>
                                           <?php } ?>
                                       </tbody>
                                       <thead>
                                           <tr>
                                             
                                             <th>S.No</th>
                                               <th>Question</th>
                                               <th>Name</th>
                                               <th>Email ID</th>
                                               <!-- <th>Status</th> -->
                                               <th>Date</th>
                                           </tr>
                                         </thead>
                                   </table>                                    
                               </div>
                           </div>
                       </div>
                   </div>
               </div>
            <?php } ?>
         </div>         
      </div>
      <?php include_once '../layout/script.php'; ?>
      
      <script>
         $(document).ready(function() {
             setTimeout(function() {
                 toastr.options = {
                     closeButton: true,
                     progressBar: true,
                     showMethod: 'slideDown',
                     timeOut: 4000
                 };
                 toastr.success('Welcome to Admin Panel');
         
             }, 1300);
         });
      </script>
      <script>
        $(document).ready(function(){
            $('.dataTables-example').DataTable({
                dom: '<"html5buttons"B>lTfgitp',                
                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