| Server IP : 210.245.233.93 / Your IP : 216.73.216.226 Web Server : Apache/2.2.15 (CentOS) System : Linux webserver2.onesolution.com.hk 2.6.32-754.35.1.el6.x86_64 #1 SMP Sat Nov 7 12:42:14 UTC 2020 x86_64 User : apache ( 48) PHP Version : 5.3.3 Disable Function : exec, shell_exec, system, passthru, popen, proc_open, pcntl_exec MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/hkosl.com/billingsystem/dashboard_bk/ |
Upload File : |
<!DOCTYPE html>
<html lang="en-HK" prefix="og: http://ogp.me/ns#">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<title>Payment Terms</title>
<!-- css -->
<?php include 'inc/headlinks.php'; ?>
<?php include 'inc/link-js.php'; ?>
</head>
<body>
<div class="container-scroller">
<!-- partial:partials/_sidebar.html -->
<?php include 'inc/sidebar.php'; ?>
<!-- partial -->
<div class="container-fluid page-body-wrapper">
<!-- partial:partials/_navbar.html -->
<?php include 'inc/navbar.php'; ?>
<!-- partial -->
<div class="main-panel">
<!-- breadcrumb -->
<div class="page-title-box d-flex align-items-center justify-content-between">
<ol class="breadcrumb m-0 p-0">
<li class="breadcrumb-item active">Payment Terms</li>
</ol>
<div class="page-title-right">
<div class="splitBtn mb-md-0">
<button type="button" class="btn btn-indigo dropdown-toggle px-3 shadow_green" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="mr-3">Action</span> <span class="sr-only"> Toggle Dropdown</span>
</button>
<div class="dropdown-menu dropdown-menu-right small">
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#addNew"> <i class="mdi mdi-plus-circle"></i> Add Payment Trems</a>
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#delete"><i class="mdi mdi-delete-variant"></i> Delete</a>
</div>
</div>
</div>
</div>
<!-- breadcrumb end -->
<div class="content-wrapper pb-0">
<!-- alert Message -->
<?php include 'inc/alertmessage.php'; ?>
<!-- alert Message END-->
<div class="row searchWrap">
<!-- Search Row -->
<div class="col-lg-10">
<div class="row searchDefault">
<div class="col-lg-4">
<div class="form-group select2singleSearch shadow">
<select class="form-control noborder shadow" id="CodeSearch">
<option></option>
</select>
</div>
</div>
<div class="col-lg-4">
<div class="form-group shadow select2singleSearch">
<select class="form-control" id="Name" style="width: 100%;">
<option value=""></option>
<option value="Test01">Test01</option>
<option value="Test02">Test02</option>
</select>
</div>
</div>
<div class="col-lg-4">
<div class="form-group">
<select class="form-control noborder shadow">
<option disabled selected>Status</option>
<option value="Active">Active</option>
<option value="Inactive">Inactive</option>
</select>
</div>
</div>
</div>
</div>
<div class="col-lg-2">
<div class="btn-group w-100 shadow whiteBg mb-2" role="group" aria-label="Basic example">
<button type="button" class="btn btn-secondary w-100">
Clear </button>
<button type="button" class="btn btn-dark w-100">
Search </button>
</div>
</div>
<!-- Search Row END -->
</div>
<div class="boxShadow whiteBg mb-4">
<!-- Data Table -->
<div class="table-responsive mb-2">
<table id="DataDT" class="table">
</table>
</div>
<!-- Data Table END-->
</div>
<!-- content-wrapper ends -->
<!-- partial:partials/_footer.html -->
<?php include 'inc/footer.php'; ?>
<!-- partial -->
</div>
<!-- main-panel ends -->
</div>
<!-- page-body-wrapper ends -->
</div>
<!-- Modal add-->
<?php include 'component/add_payment_terms.php'; ?>
<!-- Modal edit-->
<?php include 'component/edit_payment_terms.php'; ?>
<!-- Modal edit-->
<?php include 'component/delete.php'; ?>
<script src="../assets/datatables/buttons/1.1.2/js/dataTables.buttons.min.js?<?= rand(1, 10000) / 7; ?>"></script>
<script src="../assets/datatables/select/1.1.2/js/dataTables.select.min.js?<?= rand(1, 10000) / 7; ?>"></script>
<script src="../assets/js/bootstrap-datetimepicker.js?<?= rand(1, 10000) / 7; ?>"></script>
<script src="../assets/js/select2.js?<?= rand(1, 10000) / 7; ?>"></script>
<script src="../assets/js/dataTables.checkboxes.js?<?= rand(1, 10000) / 7; ?>"></script>
<script>
$(function() {
var dataProductCode = [{
id: 0,
text: 'P-123345'
},
{
id: 1,
text: 'P-112321323'
}
];
$("#CodeSearch").select2({
placeholder: "Payment Terms Code",
allowClear: true,
data: dataProductCode
});
$("#Name").select2({
placeholder: "Name",
allowClear: true
});
var columnDefs = [{
data: "DT_RowId",
title: "All"
}, {
render: function(data, type, row) {
var result =
' <a href="#" class="defaultText" data-toggle="modal" data-target="#Edit"><i class="mdi mdi-table-edit"></i> </a>';
return result;
},
title: "Edit"
}, {
data: "column01",
title: "Code"
},
{
data: "column02",
title: "Name"
},
{
data: "column03",
title: "Created At"
},
{
data: "column04",
title: "Reated By"
},
{
data: "column05",
title: "Update At"
},
{
data: "column06",
title: "Updated By"
},
{
render: function(data, type, row) {
status = row.column07;
var result = '<label class="badge ' + row.column07class + ' ">' + status +
'</label>';
return result;
},
title: "Status"
}
];
var siteTable = $('#DataDT').DataTable({
scrollX: true,
ajax: "../assets/json/payment_terms.json",
columns: columnDefs,
searching: false,
select: 'single',
responsive: true,
lengthMenu: [
[10, 25, 50, 100, -1],
[10, 25, 50, 100, "All"]
],
altEditor: true, // Enable altEditor
pageLength: 10,
columnDefs: [{
'targets': 0,
'checkboxes': {
'selectRow': false
}
}],
order: []
});
});
</script>
</body>
</html>