ok

Mini Shell

Direktori : /home2/selectio/public_html/vijay-gases/
Upload File :
Current File : /home2/selectio/public_html/vijay-gases/index.php

<?php
include "header.php";
$today_date = date("Y-m-d");
?>
<style>
   .card-counter{
    box-shadow: 2px 2px 10px #DADADA;
    margin: 5px;
    padding: 20px 10px;
    background-color: #fff;
    height: 100px;
    border-radius: 5px;
    transition: .3s linear all;
  }

  .card-counter:hover{
    box-shadow: 4px 4px 20px #DADADA;
    transition: .3s linear all;
  }

  .card-counter.primary{
    background-color: #007bff;
    color: #FFF;
  }

  .card-counter.danger{
    background-color: #ef5350;
    color: #FFF;
  }  

  .card-counter.success{
    background-color: #66bb6a;
    color: #FFF;
  }  

  .card-counter.info{
    background-color: #26c6da;
    color: #FFF;
  }  

  .card-counter i{
    font-size: 5em;
    opacity: 0.2;
  }

  .card-counter .count-numbers{
    position: absolute;
    right: 35px;
    top: 20px;
    font-size: 32px;
    display: block;
  }

  .card-counter .count-name{
    position: absolute;
    right: 35px;
    top: 65px;
    font-style: italic;
    text-transform: capitalize;
    opacity: 0.5;
    display: block;
    font-size: 18px;
  } 
    
</style>
<!-- counter start -->
<?php
// Today Purchase Cylinder
$statement_today_purchase = $pdo->prepare("SELECT * FROM `tbl_purchase` INNER JOIN tbl_purchase_item ON tbl_purchase_item.purchase_id=tbl_purchase.id WHERE purchase_date='$today_date'");
$statement_today_purchase->execute();
$product = $statement_today_purchase->fetchAll(PDO::FETCH_ASSOC);
$totay_purchase_counts = $statement_today_purchase->rowCount();

$statement_today_purchase = $pdo->prepare("SELECT * FROM `tbl_purchase` INNER JOIN tbl_purchase_item ON tbl_purchase_item.purchase_id=tbl_purchase.id WHERE purchase_date='$today_date'");
$statement_today_purchase->execute();
$product = $statement_today_purchase->fetchAll(PDO::FETCH_ASSOC);
$totay_purchase_counts = $statement_today_purchase->rowCount();




// customer
$statement_customer = $pdo->prepare("SELECT * FROM `tbl_customer`where status = 1 and  cust_type=1 ");
$statement_customer->execute();
$customer = $statement_customer->fetchAll(PDO::FETCH_ASSOC);
$totalcustomer = $statement_customer->rowCount();
// product
$statement_product = $pdo->prepare("SELECT * FROM `tbl_product` where status = 1");
$statement_product->execute();
$product = $statement_product->fetchAll(PDO::FETCH_ASSOC);
$totalproduct = $statement_product->rowCount();

// product
$statement_location = $pdo->prepare("SELECT * FROM `tbl_location`where status = 1");
$statement_location->execute();
$location = $statement_location->fetchAll(PDO::FETCH_ASSOC);
$totallocation = $statement_location->rowCount();
// Supplier
$statement_supplier = $pdo->prepare("SELECT * FROM `tbl_customer`where status = 1 and  cust_type=2");
$statement_supplier->execute();
$supplier = $statement_supplier->fetchAll(PDO::FETCH_ASSOC);
$totalsupplier = $statement_supplier->rowCount();

// full
$statement_full = $pdo->prepare("SELECT * FROM `tbl_product` where   product_type =1");
$statement_full->execute();
$full = $statement_full->fetchAll(PDO::FETCH_ASSOC);
$totalfull = $statement_full->rowCount();
// $delivered
$statement_delivered = $pdo->prepare("SELECT * FROM `tbl_product` where   product_type =2");
$statement_delivered->execute();
$delivered = $statement_delivered->fetchAll(PDO::FETCH_ASSOC);
$totaldelivered = $statement_delivered->rowCount();
// $delivered
$statement_empty = $pdo->prepare("SELECT * FROM `tbl_product` where   product_type =3");
$statement_empty->execute();
$empty = $statement_empty->fetchAll(PDO::FETCH_ASSOC);
$totalempty = $statement_empty->rowCount();


?>


<!---->


<div class="content-wrapper" style="background: #b5dcdd;">
    
        <section class="content-header">
            <div class="container">
                
                
                <!---->
                
                
                <div class="container">
    <div class="row">
    <div class="col-md-3">
         <a href="location.php"> 
              <div class="card-counter primary">
                <i class="fa fa-code-fork"></i>
                <span class="count-numbers"><?=$totallocation?></span>
                <span class="count-name">Location</span>
              </div>
          </a>  
    </div>

    <div class="col-md-3">
        <a href="customer.php">
          <div class="card-counter danger">
            <i class="fa fa-ticket"></i>
            <span class="count-numbers"><?=$totalcustomer ?></span>
            <span class="count-name">Customer</span>
          </div>
        </a>
    </div>

    <div class="col-md-3">
        <a href="product.php">
          <div class="card-counter success">
            <i class="fa fa-database"></i>
            <span class="count-numbers"><?=$totalproduct?></span>
            <span class="count-name">Total Purchase</span>
          </div>
         </a>
    </div>

    <div class="col-md-3">
      <div class="card-counter info">
        <i class="fa fa-users"></i>
        <span class="count-numbers"><?=$totalsupplier?></span>
        <span class="count-name">Purchase</span>
      </div>
    </div>
  </div>
</div>
<center> <h3>Cylinder Status</h3> </center>

<div class="row" style="padding: 18px;background-color: goldenrod;border-radius: 15px;box-shadow: 4px 4px 4px 4px;margin-right: 2px;">
                <div class="col-md-3 col-sm-6">
                    <div class="counter">
                        <div class="counter-icon" style="padding:18px;">
                            <i class="fa fa-globe"></i>
                        </div>
                        <div class="counter-content">
                            <h3>Today Purchase</h3>
                           <span class="counter-value"><?=$totay_purchase_counts?></span>
                        </div>
                    </div>
                </div>
                <div class="col-md-3 col-sm-6">
                    <div class="counter blue">
                        <div class="counter-icon" style="padding:18px;">
                            <i class="fa fa-rocket"></i>
                        </div>
                        <div class="counter-content">
                            <h3>Today Sales</h3>
                            <span class="counter-value"><?=$totalfull?></span>
                        </div>
                    </div>
                </div>
                <div class="col-md-3 col-sm-6">
                    <div class="counter red">
                        <div class="counter-icon" style="padding:18px;">
                            <i class="fa fa-briefcase"></i>
                        </div>
                        <div class="counter-content">
                            <h3>Warehouse Stocks</h3>
                            <span class="counter-value"><?=$totaldelivered?></span>
                        </div>
                    </div>
                </div>
                 <div class="col-md-3 col-sm-6">
                    <div class="counter blue">
                        <div class="counter-icon" style="padding:18px;">
                            <i class="fa fa-rocket"></i>
                        </div>
                        <div class="counter-content">
                            <h3>Empty Cylinder</h3>
                            <span class="counter-value"><?=$totalempty?></span>
                        </div>
                    </div>
                </div>
            </div>


       
                
<!-- Datatable Starts Here -->
<!--<div class="container">
<div class="row" style="padding-top: 20px;">
    <div class="col-lg-12" style="background-color: #f9f4f4db;padding: 10px;border-radius: 5px;font-size: 16px;color: #0d7c00;font-weight: 700; box-shadow: 0 1px 1px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.25), inset 0px 0px 0px 1px rgba(255, 255, 255, 0.1);">
        
        <div class="col-md-4 attendance_filter" style="padding-top: 6px;">
            <i class="fa fa-filter"></i> Attendance Filter Management 
        </div>
        <div class="col-md-2" hidden>
            <div class="mb-3">
                <label for="exampleInputEmail1" class="form-label" style="color: brown;font-size: 17px;font-family: 'FontAwesome';">Start Date:</label>
                <input type="date" class="form-control" value="<?=date('Y-m-d')?>" id="start_date" autocomplete="off">
            </div>
        </div>
        <div class="col-md-2" hidden>
            <div class="mb-3">
                <label for="exampleInputPassword1" class="form-label" style="color: brown;font-size: 17px;font-family: 'FontAwesome';">End Date:</label>
                <input type="date" class="form-control" value="<?=date('Y-m-d')?>" id="end_date" autocomplete="off">
            </div>
        </div>
        <div class="col-md-3" hidden>
            <select name="department" class="form-control select2" style="width:100%" id="department">
                <option value="">All Departments</option>
            </select>
        </div>
        <div class="col-md-2" hidden>
            <select name="attendance_type" class="form-control select2" style="width:100%" id="attendance_type">
                    <option value="">All</option>
                    <option value="1">Present</option>
                    <option value="0">Absent</option>
                    <option value="2">Half Day</option>
                    <option value="3">Process Wise</option>
                    <option value="4">Special Present</option>
                    <option value="5">Special Half Day</option>
            </select>
        </div>
        <div class="col-md-3 attendance_filter" style="padding-top: 6px;">
             <span style="float: right;padding-right: 10px;padding-top: 2px;cursor: pointer;"><i class="fa fa-chevron-circle-down" aria-hidden="true"></i></span>
        </div>
    </div>
</div>

<div class="row" style="margin-bottom: 30px;" id="filter_section">
    <div class="col-md-12" style="background-color: #f9f4f4db;padding: 40px 20px 40px 20px;border-radius: 8px;margin-top: 35px;border: 1px ridge #80808040; box-shadow: 0 1px 1px rgba(0,0,0,0.11), 0 2px 2px rgba(0,0,0,0.11), 0 4px 4px rgba(0,0,0,0.11), 0 6px 8px rgba(0,0,0,0.11), 0 8px 16px rgba(0,0,0,0.11);">
        <div class="table-responsive">
                        <table id="StData" class="table table-striped table-bordered table-condensed table-hover" style="margin-bottom:5px;font-size: 14px;border: 1px solid #77889961;">
                            <thead>
                                <tr>
                                    <td colspan="12" class="p0"><input type="text" class="form-control b0" name="search_table" id="search_table"  placeholder="Search Here" style="width:100%;background-color: <?= $theme_color ?>color: white;"></td>
                                </tr>
                                <tr class="active">
                                    <th>S.No</th>
                                    <th>Date</th>
                                    <th style="width:100px;">Employee</th>
                                    <th>Department</th>
                                    <th>Designation</th>
                                    <th style="width: 70px;">Attendance</th>
                                    <th>Check In</th>
                                    <th>Check Out</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td colspan="10" class="dataTables_empty"><center> Loading Pls Wait Data</center></td>
                                </tr>
                            </tbody>
                            
                        </table>
                    </div>
    </div>
</div>
</div>-->
<!-- Datatable Endsss Here -->
                
             </div>
        </section>
        
        
        
        
        <br><br><br><br>
</div>

<?php include "footer.php"; ?>

<style>
.demo{ background-color: #EBE8EE; }
.counter{
    font-family: 'Nunito Sans', sans-serif;
    text-align: center;
    height: 210px;
    width: 210px;
    padding: 7px 4px 0;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
.counter:before{
    content: '';
    background-color: #fff;
    height: 157px;
    width: 157px;
    border-radius: 15px;
    border: 5px solid #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1) inset;
    transform: translateX(-50%) translateY(-50%) rotate(45deg);
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: -1;
}
.counter .counter-icon{
    color: #fff;
    background: linear-gradient(#F83F83,#E2056F);
    line-height: 70px;
    font-size: 35px;
    height: 70px;
    width: 70px;
    margin: 0 auto 8px;
    border-radius: 19px 0 50px;
    transform: rotate(45deg);
}
.counter .counter-icon i{ transform: rotate(-45deg); }
.counter .counter-value{
    font-size: 25px;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 0 0 13px 0;
    display: block;
}
.counter h3{
    color: #fff;
    background: linear-gradient(#F83F83,#E2056F);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: capitalize;
    padding: 10px 5px;
    margin: 0;
    border-radius: 0 0 20px 20px;
    position: relative;
}
.counter h3:before,
.counter h3:after{
    content: "";
    background: linear-gradient(to right bottom, transparent 49%,#c90460 50%);
    width: 20px;
    height: 20px;
    position: absolute;
    top: -20px;
    left: 0;
    z-index: -2;
}
.counter h3:after{
    transform: rotateY(180deg);
    left: auto;
    right: 0;
}
.counter.purple .counter-icon,
.counter.purple h3{
    background: linear-gradient(#B05FDF,#7B26DD);
}
.counter.purple h3:before,
.counter.purple h3:after{
    background: linear-gradient(to right bottom,transparent 49%,#5a07bf 50%);
}
.counter.blue .counter-icon,
.counter.blue h3{
    background: linear-gradient(#00BCF9,#027AF6);
}
.counter.blue h3:before,
.counter.blue h3:after{
    background: linear-gradient(to right bottom,transparent 49%,#0466c9 50%);
}
.counter.green .counter-icon,
.counter.green h3{
    background: linear-gradient(#aff400,#6cc425);
}
.counter.green h3:before,
.counter.green h3:after{
    background: linear-gradient(to right bottom,transparent 49%,#489e03 50%);
}
@media screen and (max-width:990px){
    .counter{ margin-bottom: 40px; }
}
    </style>
<script>
$(document).ready(function(){
    $('.counter-value').each(function(){
        $(this).prop('Counter',0).animate({
            Counter: $(this).text()
        },{
            duration: 3500,
            easing: 'swing',
            step: function (now){
                $(this).text(Math.ceil(now));
            }
        });
    });
});
</script>

                


<style>
    .counter_1{
    color: #f27f21;
    font-family: 'Open Sans', sans-serif;
    text-align: center;
    height: 190px;
    width: 190px;
    padding: 30px 25px 25px;
    margin: 0 auto;
    border: 3px solid #f27f21;
    border-radius: 20px 20px;
    position: relative;
    z-index: 1;
}
.counter_1:before,
.counter_1:after{
    content: "";
    background: #f3f3f3;
    border-radius: 20px;
    box-shadow: 4px 4px 2px rgba(0,0,0,0.2);
    position: absolute;
    left: 15px;
    top: 15px;
    bottom: 15px;
    right: 15px;
    z-index: -1;
}
.counter_1:after{
    background: transparent;
    width: 100px;
    height: 100px;
    border: 15px solid #f27f21;
    border-top: none;
    border-right: none;
    border-radius: 0 0 0 20px;
    box-shadow: none;
    top: auto;
    left: -10px;
    bottom: -10px;
    right: auto;
}
.counter_1 .counter-icon_1{
    font-size: 35px;
    line-height: 35px;
    margin: 0 0 15px;
    transition: all 0.3s ease 0s;
}
.counter_1:hover .counter-icon_1{ transform: rotateY(360deg); }
.counter_1 .counter-value_1{
    color: #555;
    font-size: 30px;
    font-weight: 600;
    line-height: 20px;
    margin: 0 0 20px;
    display: block;
    transition: all 0.3s ease 0s;
}
.counter_1:hover .counter-value_1{ text-shadow: 2px 2px 0 #d1d8e0; }
.counter_1 h3{
    font-size: 17px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 15px;
}
 .blue{
    color: #4accdb;
    border-color: #4accdb;
}
.blue:after{
    border-bottom-color: #4accdb;
    border-left-color: #4accdb;
}
.pink {
    color: #EE436D;
    border-color: #EE436D;
}
.pink:after {
    color: #EE436D;
    border-color: #EE436D;
}
.purple {
    color: #9C52A1;
    border-color: #9C52A1;
}
.purple:after{
    color: #9C52A1;
    border-color: #9C52A1;
}
@media screen and (max-width:990px){
    .counter_1{ margin-bottom: 40px; }
}
</style>
<script>
    $(document).ready(function(){
    $('.counter-value_1').each(function(){
        $(this).prop('Counter',0).animate({
            Counter: $(this).text()
        },{
            duration: 3500,
            easing: 'swing',
            step: function (now){
                $(this).text(Math.ceil(now));
            }
        });
    });
});
</script>

Zerion Mini Shell 1.0