include_once $path . '/config/database.php'; $database = new database(); $db = $database->getConnection(); $page_title = "Data Pembelian"; include_once $path . '/pages/header.php'; echo "<div class='row'>"; //echo "<div class='container'>"; echo "<div class='col-sm-3'>"; include_once $path . '/pages/sidebarmenu.php'; echo "</div>"; include_once $_SERVER['DOCUMENT_ROOT'] . '/objects/data.php'; $page = isset($_GET['page']) ? $_GET['page'] : 1; $records_per_page = 20; $from_record_num = $records_per_page * $page - $records_per_page; $data = new data($db); $statement = $data->showPembelian($from_record_num, $records_per_page); $num = $statement->rowCount(); echo "<div class='container'>"; echo "<div class='col-md-9'>"; if ($num > 0) { ?> <div> <ol class="breadcrumb"> <li><a href="/">Home</a></li> <li class="active">Data Pembelian</li> </ol> </div> <div class="row"> <div class="col-md-12">