| <?php
|
| include("../includes/common.php");
|
| if($islogin2==1){}else exit("<script language='javascript'>window.location.href='./login.php';</script>");
|
| $title='่ต้ๆ็ป';
|
| include './head.php';
|
| ?>
|
| <style>
|
| .fixed-table-toolbar,.fixed-table-pagination{padding: 15px;}
|
| </style>
|
| <div id="content" class="app-content" role="main">
|
| <div class="app-content-body ">
|
|
|
| <div class="bg-light lter b-b wrapper-md hidden-print">
|
| <h1 class="m-n font-thin h3">่ต้ๆ็ป</h1>
|
| </div>
|
| <div class="wrapper-md control">
|
| <?php if(isset($msg)){?>
|
| <div class="alert alert-info">
|
| <?php echo $msg?>
|
| </div>
|
| <?php }?>
|
| <div class="panel panel-default">
|
| <div class="panel-heading font-bold">
|
| <h3 class="panel-title">่ต้ๆ็ป</h3>
|
| </div>
|
| <form onsubmit="return searchSubmit()" method="GET" class="form-inline" id="searchToolbar">
|
| <div class="form-group">
|
| <select class="form-control" name="type">
|
| <option value="1">ๆไฝ็ฑปๅ</option>
|
| <option value="2">ๅๆด้้ข</option>
|
| <option value="3">ๅ
ณ่่ฎขๅๅท</option>
|
| </select>
|
| </div>
|
| <div class="form-group" id="searchword">
|
| <input type="text" class="form-control" name="kw" placeholder="ๆ็ดขๅ
ๅฎน" style="min-width: 300px;">
|
| </div>
|
| <div class="form-group">
|
| <button class="btn btn-primary" type="submit"><i class="fa fa-search"></i> ๆ็ดข</button>
|
| <a href="javascript:searchClear()" class="btn btn-default"><i class="fa fa-refresh"></i> ้็ฝฎ</a>
|
| </div>
|
| </form>
|
| <table id="listTable">
|
| </table>
|
| </div>
|
| </div>
|
| </div>
|
| </div>
|
|
|
| <?php include 'foot.php';?>
|
| <script src="<?php echo $cdnpublic?>layer/3.1.1/layer.min.js"></script>
|
| <script src="<?php echo $cdnpublic?>bootstrap-table/1.20.2/bootstrap-table.min.js"></script>
|
| <script src="<?php echo $cdnpublic?>bootstrap-table/1.20.2/extensions/page-jump-to/bootstrap-table-page-jump-to.min.js"></script>
|
| <script src="../assets/js/custom.js"></script>
|
| <script>
|
| $(document).ready(function(){
|
| updateToolbar();
|
| const defaultPageSize = 30;
|
| const pageNumber = typeof window.$_GET['pageNumber'] != 'undefined' ? parseInt(window.$_GET['pageNumber']) : 1;
|
| const pageSize = typeof window.$_GET['pageSize'] != 'undefined' ? parseInt(window.$_GET['pageSize']) : defaultPageSize;
|
|
|
| $("#listTable").bootstrapTable({
|
| url: 'ajax2.php?act=recordList',
|
| pageNumber: pageNumber,
|
| pageSize: pageSize,
|
| classes: 'table table-striped table-hover table-bordered',
|
| columns: [
|
| {
|
| field: 'type',
|
| title: 'ๆไฝ็ฑปๅ',
|
| formatter: function(value, row, index) {
|
| return row.action==2?'<font color="red">'+value+'</font>':'<font color="green">'+value+'</font>';
|
| }
|
| },
|
| {
|
| field: 'money',
|
| title: 'ๅๆด้้ข',
|
| formatter: function(value, row, index) {
|
| return (row.action==2?'- ':'+ ')+value;
|
| }
|
| },
|
| {
|
| field: 'oldmoney',
|
| title: 'ๅๆดๅ้้ข'
|
| },
|
| {
|
| field: 'newmoney',
|
| title: 'ๅๆดๅ้้ข'
|
| },
|
| {
|
| field: 'date',
|
| title: 'ๆถ้ด'
|
| },
|
| {
|
| field: 'trade_no',
|
| title: 'ๅ
ณ่่ฎขๅๅท',
|
| formatter: function(value, row, index) {
|
| return value?'<a href="./order.php?type=1&kw='+value+'">'+value+'</a>':'ๆ ';
|
| }
|
| },
|
| ],
|
| })
|
| })
|
| </script> |