/var/www/hkosl.com/billingsystem/dashboard_bk/report.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
<!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>Report</title>

    <!-- css -->
    <?php include 'inc/headlinks.php'?>
    <?php include 'inc/link-js.php'?>
    <!-- End layout styles -->

</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">Report</li>
                    </ol>

                  <!--  <div class="page-title-right">

                        <div class="splitBtn mb-md-0 mb-3">
                            <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 Other</a>
                                <a class="dropdown-item" href="#" data-toggle="modal" data-target="#importCSV"><i class="mdi mdi-file-import"></i> Import</a>
                                <a class="dropdown-item" href="#"><i class="mdi mdi-file-pdf"></i> Export to CSV</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="form-group shadow select2Multiple">

                                <select class="form-control" id="Name" multiple="multiple" style="width: 100%;">

                                    <option value="Report01"> Report01</option>
                                    <option value="Report02"> Report02</option>
                                    <option value="Report03"> Report03</option>

                                </select>
                            </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>


        <script src="../assets/datatables/buttons/1.1.2/js/dataTables.buttons.min.js?<?= rand(110000) / 7?>"></script>
        <script src="../assets/datatables/select/1.1.2/js/dataTables.select.min.js?<?= rand(110000) / 7?>"></script>
        <script src="../assets/js/bootstrap-datetimepicker.js?<?= rand(110000) / 7?>"></script>
        <script src="../assets/js/select2.js?<?= rand(110000) / 7?>"></script>
        <script src="../assets/js/dataTables.checkboxes.js?<?= rand(110000) / 7?>"></script>

        <script>
            $(function() {

                var dataSet = [{
                        column01: 1,
                        column02: 'Report01'
                    },
                    {
                        column01: 2,
                        column02: 'Report02'
                    },
                    {
                        column01: 3,
                        column02: 'Report03'
                    },
                    {
                        column01: 4,
                        column02: 'Report04'
                    }
                ];

                $("#Name").select2({
                    placeholder: "Report Name",
                    allowClear: true
                });


                var columnDefs = [{


                        render: function(data, type, row) {

                            var result =
                                ' <a href="report_detail.php" class="btn btn-dark" >Select Report </a>';
                            return result;
                        },
                        title: "",
                        width: "50",
                        "orderable": false
                    },

                    {
                        data: "column02",
                        title: "Name"
                    }
                ];

                var siteTable = $('#DataDT').DataTable({
                    scrollX: true,
                    data: dataSet,
                    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,
                    order: []
                });







            });
        </script>


</body>

</html>