%PDF- %PDF-
Direktori : /home/riacommer/domains/gasworld.com.my/private_html/admin/ |
Current File : /home/riacommer/domains/gasworld.com.my/private_html/admin/bank.php |
<?php include_once("api/security.php"); include_once("api/db.php"); include_once("api/util.php"); include_once("constants.php"); ?> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Bank Name - <?php echo $app_title; ?></title> <link href="css/application.min.css" rel="stylesheet"> <!-- as of IE9 cannot parse css files with more that 4K classes separating in two files --> <!--[if IE 9]> <link href="css/application-ie9-part2.css" rel="stylesheet"> <![endif]--> <link rel="shortcut icon" href="favicon.ico"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"> <meta name="description" content=""> <meta name="author" content=""> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <script> /* yeah we need this empty stylesheet here. It's cool chrome & chromium fix chrome fix https://code.google.com/p/chromium/issues/detail?id=167083 https://code.google.com/p/chromium/issues/detail?id=332189 */ </script> </head> <body> <!-- Main sidebar seen on the left. may be static or collapsing depending on selected state. * Collapsing - navigation automatically collapse when mouse leaves it and expand when enters. * Static - stays always open. --> <?php include_once("sidebar.php"); ?> <?php include_once("topbar.php");?> <!--CONTENT START HERE--> <div class="content-wrap"> <!-- main page content. the place to put widgets in. usually consists of .row > .col-md-* > .widget. --> <main id="content" class="content" role="main"> <h1 class="page-title">Bank Name</span></h1> <section class="widget"> <header> <h4>Bank Name Listing</h4> <div class="widget-controls"> <a data-widgster="expand" title="Expand" href="#"><i class="glyphicon glyphicon-chevron-up"></i></a> <a data-widgster="collapse" title="Collapse" href="#"><i class="glyphicon glyphicon-chevron-down"></i></a> </div> </header> <div class="widget-body"> <p align="right"> <a href="bank_ce.php"><button type="button" class="btn btn-primary">+ Create Bank</button></a> </p> <div class="mt"> <table id="datatable-table" class="table table-striped table-hover"> <thead> <tr> <th>Bank Name</th> <th>Site Address</th> <th>Description</th> <th>Status</th> <th class="no-sort">Action</th> </tr> </thead> <tbody> <?php $sql = "SELECT * FROM sa_bank ORDER BY bank_name"; $mysql_result = mysql_query($sql, $connection); $num_rows = mysql_num_rows($mysql_result); if($num_rows>=1){ while($row = mysql_fetch_array($mysql_result)){ $editURL = 'bank_ce.php?id='.$row["id"]; echo '<tr>'; echo '<td><a href="'.$editURL.'">'.$row["bank_name"].'</a></td>'; echo '<td><a href="'.$row["site_address"].'" target="_blank">'.$row["site_address"].'</a></td>'; echo '<td>'.$row["desp"].'</td>'; echo '<td>'.$row["status"].'</td>'; echo '<td><a href="'.$editURL.'"><button type="button" class="btn btn-primary btn-xs mb-xs"> Edit </button></a> '; echo '<button type="button" class="btn btn-danger btn-xs mb-xs" onClick="javascript:doDel('.$row["id"].');"> x </button></td>'; echo '</tr>'; } } ?> </tbody> </table> </div> </div> </section> </main> </div> <!--CONTENT END HERE--> <!-- The Loader. Is shown when pjax happens --> <div class="loader-wrap hiding hide"> <i class="fa fa-circle-o-notch fa-spin-fast"></i> </div> <!-- common libraries. required for every page--> <script src="vendor/jquery/dist/jquery.min.js"></script> <script src="vendor/jquery-pjax/jquery.pjax.js"></script> <script src="vendor/bootstrap-sass/vendor/assets/javascripts/bootstrap/transition.js"></script> <script src="vendor/bootstrap-sass/vendor/assets/javascripts/bootstrap/collapse.js"></script> <script src="vendor/bootstrap-sass/vendor/assets/javascripts/bootstrap/dropdown.js"></script> <script src="vendor/bootstrap-sass/vendor/assets/javascripts/bootstrap/button.js"></script> <script src="vendor/bootstrap-sass/vendor/assets/javascripts/bootstrap/tooltip.js"></script> <script src="vendor/bootstrap-sass/vendor/assets/javascripts/bootstrap/alert.js"></script> <script src="vendor/jQuery-slimScroll/jquery.slimscroll.min.js"></script> <script src="vendor/widgster/widgster.js"></script> <script src="vendor/pace.js/pace.min.js"></script> <script src="vendor/jquery-touchswipe/jquery.touchSwipe.js"></script> <script src="vendor/jquery-touchswipe/jquery.touchSwipe.js"></script> <!-- common app js --> <script src="js/settings.js"></script> <script src="js/app.js"></script> <!-- page specific libs --> <script src="vendor/underscore/underscore-min.js"></script> <script src="vendor/backbone/backbone.js"></script> <script src="vendor/backbone.paginator/lib/backbone.paginator.min.js"></script> <script src="vendor/backgrid/lib/backgrid.js"></script> <script src="vendor/backgrid-paginator/backgrid-paginator.js"></script> <script src="vendor/datatables/media/js/jquery.dataTables.js"></script> <script src="vendor/bootstrap-select/bootstrap-select.min.js"></script> <!-- page specific js --> <script src="js/tables-dynamic.js"></script> <script type="text/javascript"> function doDel(id){ if(confirm("Are you sure want to delete this record?")){ document.location.href="api/bank.php?id="+id; } } </script> </body> </html>