PK

ADDRLIN : /home/questend/public_html/subdomain/techcon.jiffyfilms.com/admin/poll/
FLL :
Current File : /home/questend/public_html/subdomain/techcon.jiffyfilms.com/admin/poll/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);
   require_once '../includes/settings/PDODB.php';
   include '../includes/modules/functions.php';
   
   $function = new FUNCTIONS();

   if(empty($_SESSION['adminId'])){
    header("Location: ../index.php");
    exit();
   }

   $pollQuestionlist = $function->getPollQuestion($id=NULL,$isActive=NULL);
   
   //print_r($_POST);
   //delete latest news
   if(!empty($_GET['id']) && ($_GET['action']=='Del')) {
      //print_r($_GET['id']); exit;
      $id=$_GET['id'];
      $pdodb = PDODB::getInstance();
      $sql = "UPDATE `tb_pollquestion` SET isActive=0 WHERE id = '".$id."'";
      //print_r($sql); exit;        
      $result = $pdodb->query($sql);
      PDODB::closeInstance();
      if(!empty($result)){
        echo '<script type="text/javascript">location.replace("index.php");</script>';
      }
    }
    
    if(!empty($_GET['id']) && ($_GET['action']=='Act')) {
      //print_r($_GET['id']); exit;
      $id=$_GET['id'];
      $pdodb = PDODB::getInstance();

      $sql2 = "UPDATE `tb_pollquestion` SET isActive=0";           
      $result2 = $pdodb->query($sql2);

      $sql = "UPDATE `tb_pollquestion` SET isActive=1 WHERE id = '".$id."'";
      //print_r($sql); exit;        
      $result = $pdodb->query($sql);
      PDODB::closeInstance();
      if(!empty($result)){
        echo '<script type="text/javascript">location.replace("index.php");</script>';
      }
    }
?>
<!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 = 'poll-list'; 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>Poll and Voting Question 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">
                              <thead>
                                <tr>
                                   <th>S.No</th>
                                   <th>Question</th>                                   
                                   <th>Date</th>
                                   <th>Action</th>
                                </tr>
                              </thead>
                              <tbody>
                                <?php
                                   for($i=0;$i<count($pollQuestionlist);$i++){
                                   ?>
                                <tr>
                                   <td><?=$i+1;?></td>
                                   <td class="center"><?=$pollQuestionlist[$i]['title'];?></td>
                                   
                                   <td class="center"><?=$pollQuestionlist[$i]['isDated'];?></td>
                                   <?php if ($pollQuestionlist[$i]['isActive']==1) { ?>
                                   <td class="center">                                    
                                    <a class="btn btn-primary btn-sm" href="index.php?id=<?=$pollQuestionlist[$i]['id'];?>&action=Del" onclick=" return confirm('Do you really want to Inactive!')"><i class="fa fa-toggle-off"></i> </a>
                                    <a target="_blank" class="btn btn-primary btn-xs" href="view.php?id=<?=$pollQuestionlist[$i]['id'];?>"><i class="fa fa-eye"></i> View Details</a>
                                   </td>
                                   <?php } else { ?>
                                    <td class="center">
                                       <a class="btn btn-danger btn-sm" href="index.php?id=<?=$pollQuestionlist[$i]['id'];?>&action=Act" onclick=" return confirm('Do you really want to Active!')"><i class="fa fa-toggle-off"></i> </a>

                                       <a target="_blank" class="btn btn-primary btn-xs" href="view.php?id=<?=$pollQuestionlist[$i]['id'];?>"><i class="fa fa-eye"></i> View Details</a>
                                       
                                     </td>
                                   <?php } ?>
                                </tr>
                                <?php } ?>
                             </tbody>
                            </table>
                        </div>
                    </div>
                </div>
               </div>
            </div>
         </div>         
      </div>
      <?php include_once '../layout/script.php'; ?>
      
      <!-- Page-Level Scripts -->
      <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