PK

ADDRLIN : /home/questend/public_html/domains/deepanshiarora.com/da-admin/blog/
FLL :
Current File : /home/questend/public_html/domains/deepanshiarora.com/da-admin/blog/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['plusPackageAdminId'])){
    header("Location: ../index.php");
    exit();
   }
  
   $blogdata = $function->getBlog($id=NULL,$isactive=1,$orderBy='DESC');
   //print_r($news); exit;
   //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_blog 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>';
      }
    }
    //end delete latest news
?>
<!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>Deepanshi Arora Admin | Dashboard</title>
      <?php include_once '../layout/style.php'; ?>
      <link href="../css/plugins/datapicker/datepicker3.css" rel="stylesheet">
   </head>
   <body>
      <div id="wrapper">
         <nav class="navbar-default navbar-static-side" role="navigation">
          <div class="sidebar-collapse">
              <ul class="nav metismenu" id="side-menu">
                  <li class="nav-header">
                      <div class="dropdown profile-element"> <span>
                          <img alt="image" class="img-circle" src="../img/profile_small.jpg" />
                           </span>
                          <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                          <span class="clear"> <span class="block m-t-xs"> <strong class="font-bold">Vinay</strong>
                           </span> <span class="text-muted text-xs block">Art Director <b class="caret"></b></span> </span> </a>
                          <ul class="dropdown-menu animated fadeInRight m-t-xs">
                              <li><a href="#">Profile</a></li>
                              <li class="divider"></li>
                              <li><a href="#">Logout</a></li>
                          </ul>
                      </div>
                      <div class="logo-element">Vinay</div>
                  </li>
                  <li>
                      <a href="#"><i class="fa fa-th-large"></i> <span class="nav-label">Dashboards</span> <span class="fa arrow"></span></a>
                      <ul class="nav nav-second-level">
                          <li><a href="../dashboard/index.php">Dashboard</a></li>
                      </ul>
                  </li>
                  <li class="active">
                      <a href="#"><i class="fa fa-pencil"></i> <span class="nav-label">Blog</span><span class="fa arrow"></span></a>
                      <ul class="nav nav-second-level collapse">
                          <li class="active"><a href="../blog/index.php">Blog List</a></li>
                          <li><a href="../blog/inactive.php">Off Blog List</a></li>
                          <li><a href="../blog/create.php">Add Blog</a></li>
                      </ul>
                  </li>
              </ul>
          </div>
         </nav>
         <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>Blogs List</h2>
                  <ol class="breadcrumb">
                     <li>
                        <a href="#">Home</a>
                     </li>
                     <li>
                        <a>Forms</a>
                     </li>
                     <li class="active">
                        <strong>Blogs</strong>
                     </li>
                  </ol>
               </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>Title</th>                                   
                                   <th>Image</th>
                                   <th>Action</th>
                                </tr>
                              </thead>
                              <tbody>
                                <?php for($i=0;$i<count($blogdata);$i++){ ?>
                                <tr>
                                   <td><?=$i+1;?></td>
                                   <td><?=$blogdata[$i]['title'];?></td>                                  
                                   <td class="center"><img class="img-responsive" width="300" src="../uploads/blog/<?=$blogdata[$i]['file'];?>"></td>
                                   <td class="center"><a class="btn btn-primary btn-xs" href="edit.php?id=<?=$blogdata[$i]['id'];?>"><i class="fa fa-pencil"></i> Edit</a> <a class="btn btn-danger btn-xs" href="index.php?id=<?=$blogdata[$i]['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(){
            $('.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