PK

ADDRLIN : /home/questend/public_html/domains/rwa40.com/admin/dashboard/
FLL :
Current File : /home/questend/public_html/domains/rwa40.com/admin/dashboard/index_22062021.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();
   }

   $discountperiod = $function->getDiscountPeriod($id=NULL,$date_to=NULL,$date_from=NULL);
   //print_r($discountperiod); exit;

    if(isset($_POST['acsearch'])){
      //print_r($_POST); exit;
      $date_from = !empty($_POST['date_from'])?$_POST['date_from']:"";
      $date_to = !empty($_POST['date_to'])?$_POST['date_to']:"";

      $date_from =date('Y-m-d', strtotime($date_from));
      $date_to =date('Y-m-d', strtotime($date_to));
      $pdodb = PDODB::getInstance();
      $sql = "UPDATE discount_period SET date_from = '".$date_from."', date_to = '".$date_to."'";
      $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">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <title>INSPINIA | Dashboard</title>
      <?php include_once '../layout/style.php'; ?>
   </head>
   <body>
      <div id="wrapper">
         <?php 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 RWA Sector 40</h2>
                  <small>Admin</small>                  
               </div>
            </div>
            <?php if ($_SESSION['admin_role_id']==1) { ?>
            <div class="row">
               <div class="col-lg-12">
                  <div class="ibox float-e-margins">
                    <div class="ibox-content">
                      <form method="POST" action="">
                        <div class="form-group" id="data_5">
                          <label class="font-noraml">Range select</label>
                          <div class="input-daterange input-group" id="datepicker">
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                            <input type="text" class="input-sm form-control" id="date_to" name="date_to" value="<?=date('m/j/Y', strtotime($discountperiod[0]['date_to']));?>"/>
                            <span class="input-group-addon">to</span>
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                            <input type="text" class="input-sm form-control" id="date_from" name="date_from" value="<?=date('m/j/Y', strtotime($discountperiod[0]['date_from']));?>" />
                          </div>
                          <div class="form-group" style="margin-top: 10px;">
                           <button class="btn btn-sm btn-primary" name="acsearch" id="acsearch">Update</button>
                           <a href="" class="btn btn-sm btn-primary">Clear</a>
                          </div>
                        </div>
                      </form>
                    </div>
                </div>
               </div>
            </div>
            <?php } if ($_SESSION['admin_role_id']==2) { ?>
                <div class="row">
                   <div class="col-lg-12">
                      <div class="ibox float-e-margins">
                        <div class="ibox-content">
                            <button id="payButton" class="btn btn-primary dim" type="button"><i class="fa fa-money"></i><span class="nav-label"> Payment </span></button>                  
                            <button id="addmemberButton" class="btn btn-danger  dim" type="button"><i class="fa fa-user-plus"></i><span class="nav-label"> Add New Member</span>
                            </button>                           
                        </div>
                      </div>
                   </div>
                </div>
            <?php } ?>
         </div>         
      </div>
      <?php include_once '../layout/script.php'; ?>
      <script type="text/javascript">
            document.getElementById("payButton").onclick = function () {
                location.href = "../payment/index.php";
            };
            document.getElementById("addmemberButton").onclick = function () {
                location.href = "../newmember/index.php";
            };
      </script>
      <script>
         $(document).ready(function() {
             setTimeout(function() {
                 toastr.options = {
                     closeButton: true,
                     progressBar: true,
                     showMethod: 'slideDown',
                     timeOut: 4000
                 };
                 toastr.success('Welcome to RWA Admin');
         
             }, 1300);
         
             var data1 = [
                 [0,4],[1,8],[2,5],[3,10],[4,4],[5,16],[6,5],[7,11],[8,6],[9,11],[10,30],[11,10],[12,13],[13,4],[14,3],[15,3],[16,6]
             ];
             var data2 = [
                 [0,1],[1,0],[2,2],[3,0],[4,1],[5,3],[6,1],[7,5],[8,2],[9,3],[10,2],[11,1],[12,0],[13,2],[14,8],[15,0],[16,0]
             ];
             $("#flot-dashboard-chart").length && $.plot($("#flot-dashboard-chart"), [
                 data1, data2
             ],
                     {
                         series: {
                             lines: {
                                 show: false,
                                 fill: true
                             },
                             splines: {
                                 show: true,
                                 tension: 0.4,
                                 lineWidth: 1,
                                 fill: 0.4
                             },
                             points: {
                                 radius: 0,
                                 show: true
                             },
                             shadowSize: 2
                         },
                         grid: {
                             hoverable: true,
                             clickable: true,
                             tickColor: "#d5d5d5",
                             borderWidth: 1,
                             color: '#d5d5d5'
                         },
                         colors: ["#1ab394", "#1C84C6"],
                         xaxis:{
                         },
                         yaxis: {
                             ticks: 4
                         },
                         tooltip: false
                     }
             );

             var doughnutData = [
                 {
                     value: 300,
                     color: "#a3e1d4",
                     highlight: "#1ab394",
                     label: "App"
                 },
                 {
                     value: 50,
                     color: "#dedede",
                     highlight: "#1ab394",
                     label: "Software"
                 },
                 {
                     value: 100,
                     color: "#A4CEE8",
                     highlight: "#1ab394",
                     label: "Laptop"
                 }
             ];
         
             var doughnutOptions = {
                 segmentShowStroke: true,
                 segmentStrokeColor: "#fff",
                 segmentStrokeWidth: 2,
                 percentageInnerCutout: 45, // This is 0 for Pie charts
                 animationSteps: 100,
                 animationEasing: "easeOutBounce",
                 animateRotate: true,
                 animateScale: false
             };
         
             var ctx = document.getElementById("doughnutChart").getContext("2d");
             var DoughnutChart = new Chart(ctx).Doughnut(doughnutData, doughnutOptions);
         
             var polarData = [
                 {
                     value: 300,
                     color: "#a3e1d4",
                     highlight: "#1ab394",
                     label: "App"
                 },
                 {
                     value: 140,
                     color: "#dedede",
                     highlight: "#1ab394",
                     label: "Software"
                 },
                 {
                     value: 200,
                     color: "#A4CEE8",
                     highlight: "#1ab394",
                     label: "Laptop"
                 }
             ];
         
             var polarOptions = {
                 scaleShowLabelBackdrop: true,
                 scaleBackdropColor: "rgba(255,255,255,0.75)",
                 scaleBeginAtZero: true,
                 scaleBackdropPaddingY: 1,
                 scaleBackdropPaddingX: 1,
                 scaleShowLine: true,
                 segmentShowStroke: true,
                 segmentStrokeColor: "#fff",
                 segmentStrokeWidth: 2,
                 animationSteps: 100,
                 animationEasing: "easeOutBounce",
                 animateRotate: true,
                 animateScale: false
             };
             var ctx = document.getElementById("polarChart").getContext("2d");
             var Polarchart = new Chart(ctx).PolarArea(polarData, polarOptions);
         
         });
      </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