<?php
include_once(dirname(__FILE__) . '/../class/include.php');
include_once(dirname(__FILE__) . '/auth.php');
$INVOICE = new Invoice(NULL);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<title>Manage Invoices || Invoice Manager </title>
<link rel="icon" href="favicon.ico" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
<link href="plugins/bootstrap/css/bootstrap.css" rel="stylesheet">
<link href="plugins/node-waves/waves.css" rel="stylesheet" />
<link href="plugins/animate-css/animate.css" rel="stylesheet" />
<link href="plugins/sweetalert/sweetalert.css" rel="stylesheet" />
<link href="plugins/jquery-datatable/skin/bootstrap/css/dataTables.bootstrap.css" rel="stylesheet">
<link href="css/style.css" rel="stylesheet">
<link href="css/themes/all-themes.css" rel="stylesheet" />
</head>
<body class="theme-red">
<?php
include './navigation-and-header.php';
?>
<section class="content">
<div class="container-fluid">
<!-- Manage Brand -->
<div class="row clearfix">
<div class="col-lg-12 col-md-12 col-sm-12 col-xs-12">
<div class="card">
<div class="header">
<h2>
Manage Invoices
</h2>
<ul class="header-dropdown">
<li>
<a href="create-invoice.php">
<i class="material-icons">add</i>
</a>
</li>
</ul>
</div>
<div class="body">
<!-- <div class="table-responsive">-->
<div>
<table class="table table-bordered table-striped table-hover js-basic-example dataTable">
<thead>
<tr>
<th>#</th>
<th>Invoice ID</th>
<th>Date</th>
<th>Customer</th>
<th>Function Date</th>
<th>Amount</th>
<th>Option</th>
</tr>
</thead>
<tbody>
<?php
foreach ($INVOICE->all() as $key => $invoice) {
$key++;
?>
<tr id="row_<?php echo $invoice['id']; ?>">
<td>#<?php echo sprintf("%02d", $key); ?></td>
<td>#<?php echo sprintf("%06d", $invoice['id']); ?></td>
<td><?php echo $invoice['date']; ?></td>
<td><?php echo $invoice['customer']; ?></td>
<td><?php echo $invoice['function_date']; ?></td>
<td><?php echo $invoice['function_date']; ?></td>
<td>
<a href="view-invoice.php?id=<?php echo $invoice['id']; ?>" class="op-link btn btn-sm btn-info"><i class="glyphicon glyphicon-list"></i></a> |
<a href="print-invoice.php?id=<?php echo $invoice['id']; ?>" class="op-link btn btn-sm btn-success"><i class="glyphicon glyphicon-print"></i></a>
</td>
</tr>
<?php
}
?>
</tbody>
<tr>
<th>#</th>
<th>Invoice ID</th>
<th>Date</th>
<th>Customer</th>
<th>Function Date</th>
<th>Amount</th>
<th>Option</th>
</tr>
</table>
</div>
<!-- </div>-->
</div>
</div>
</div>
</div>
<!-- #END# Manage brand -->
</div>
</section>
<script src="plugins/jquery/jquery.min.js"></script>
<script src="plugins/bootstrap/js/bootstrap.js"></script>
<script src="plugins/bootstrap-select/js/bootstrap-select.js"></script>
<script src="plugins/jquery-slimscroll/jquery.slimscroll.js"></script>
<script src="plugins/node-waves/waves.js"></script>
<script src="plugins/jquery-datatable/jquery.dataTables.js"></script>
<script src="plugins/jquery-datatable/skin/bootstrap/js/dataTables.bootstrap.js"></script>
<script src="plugins/jquery-datatable/extensions/export/dataTables.buttons.min.js"></script>
<script src="plugins/jquery-datatable/extensions/export/buttons.flash.min.js"></script>
<script src="plugins/jquery-datatable/extensions/export/jszip.min.js"></script>
<script src="plugins/jquery-datatable/extensions/export/pdfmake.min.js"></script>
<script src="plugins/jquery-datatable/extensions/export/vfs_fonts.js"></script>
<script src="plugins/jquery-datatable/extensions/export/buttons.html5.min.js"></script>
<script src="plugins/jquery-datatable/extensions/export/buttons.print.min.js"></script>
<script src="js/admin.js"></script>
<script src="js/pages/tables/jquery-datatable.js"></script>
<script src="js/demo.js"></script>
<script src="plugins/sweetalert/sweetalert.min.js"></script>
<script src="plugins/bootstrap-notify/bootstrap-notify.js"></script>
<script src="js/pages/ui/dialogs.js"></script>
</body>
</html> |