ok
Direktori : /proc/thread-self/root/home2/selectio/public_html/lilyexpresslive/software/admin/ |
Current File : //proc/thread-self/root/home2/selectio/public_html/lilyexpresslive/software/admin/mis-report.php |
<?php require_once('header.php'); $old_date = date('Y-m-d', strtotime("-30 days")); /*Change the date for past days selection*/ $today=date('Y-m-d'); ?> <script type="text/javascript" language="javascript" > $(document).ready(function() { } ); } ); </script> <section class="content-header" style="background-color: white;"> <div class="row"> <div class="col-md-12" style="text-align: center;"> <h4><i class="fa fa-info-circle"></i> Mis Report Details</h4> </div> </div> <div class="row"> <div style="padding-bottom: 25px;padding-top: 10px;"> <div class="col-md-2" style="text-align: center;"> <b>From</b> </div> <div class="col-md-2" style="text-align: center;"> <b>To</b> </div> <div class="col-md-4" style="text-align: center;"> <b>Client</b> </div> <div class="col-md-3" style="text-align: center;"> <b>Action</b> </div> </div> <form action="excel/export-month-mis.php" method="POST"> <div style="padding-bottom: 25px;padding-top: 10px;"> <div class="col-md-2" style="text-align: center;"> <input type="date" class="form-control" id="from" value="<?php echo date("Y-m-d") ?>" name="from" required> </div> <div class="col-md-2" style="text-align: center;"> <input type="date" class="form-control" id="to" value="<?php echo date("Y-m-d") ?>" name="to" required> </div> <div class="col-md-4" style="text-align: center;"> <select class="form-control select2" name="client_id" id="client_id" > <?php $wheres=""; if($clientType=="Admin") { ?> <?php }else{ $wheres=" and id=".$clientId;} ?> <?php if($clientType=="Admin"){ echo "<option value='0'>All Client</option>"; } $statement = $pdo->prepare("SELECT * FROM tbl_user WHERE (role='client' or role='Modicare' or role='Cargo') $wheres ORDER BY id ASC"); $statement->execute(); $result = $statement->fetchAll(PDO::FETCH_ASSOC); foreach ($result as $row) { ?> <option value="<?php echo $row['id']; ?>" <?php if(count($result)==1){ echo 'selected';} ?>><?php echo $row['full_name']; ?></option> <?php } ?> </select> </div> <div class="col-md-2" style="text-align: center;"> <button class="btn btn-warning btn-sm" id="get_report" name="submit">Export As Excel</button> </div> </div> </form> </div> </section> <section class="content" style="background-color: white;"> <div class="row"> <div class="col-md-12"> <div> </div> </div> </div> </section> <?php require_once('footer.php'); ?>