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
|
<!DOCTYPE html> <html lang="en">
<head> <?php include 'inc/head.php'; ?> <link href="./assets/css/datatables.min.css?<?php rand(10,100) ?>" rel="stylesheet" /> <?php include 'inc/links.php'; ?> </head>
<body> <div class="app-container app-theme-white body-tabs-shadow fixed-sidebar ">
<?php include 'inc/header.php'; ?> <!-- <?php include 'inc/setting.php'; ?> -->
<div class="app-main">
<?php include 'inc/side_menu.php'; ?> <div class="app-main__outer"> <div class="app-main__inner"> <div class="app-page-title"> <div class="page-title-wrapper"> <div class="page-title-heading">
<div> 設定公司帳戶 <!-- <div class="page-title-subheading"> This is an example dashboard created using build-in elements and components. </div> --> </div> </div> <div class="page-title-actions">
<div class="page-title-actionsWrap dropdown"> <button type="button" class="btn-shadow btn btn-primary" onclick="window.location.href = 'company_account_add.php';"> <span class="btn-icon-wrapper pr-2 opacity-7">
<i class="fas fa-plus-circle fa-w-20"></i> </span> 新增 </button> <!-- <div tabindex="-1" role="menu" aria-hidden="true" class="dropdown-menu dropdown-menu-right"> <ul class="nav flex-column"> <li class="nav-item"> <a href="javascript:void(0);" class="nav-link"> <i class="nav-link-icon lnr-inbox"></i> <span> Inbox </span> <div class="ml-auto badge badge-pill badge-secondary"> 86 </div> </a> </li> <li class="nav-item"> <a href="javascript:void(0);" class="nav-link"> <i class="nav-link-icon lnr-book"></i> <span> Book </span> <div class="ml-auto badge badge-pill badge-danger"> 5 </div> </a> </li> <li class="nav-item"> <a href="javascript:void(0);" class="nav-link"> <i class="nav-link-icon lnr-picture"></i> <span> Picture </span> </a> </li> <li class="nav-item"> <a disabled href="javascript:void(0);" class="nav-link disabled"> <i class="nav-link-icon lnr-file-empty"></i> <span> File Disabled </span> </a> </li> </ul> </div> --> </div> </div> </div> </div> <div class="filterSearch"> <div class="row w-100 gaptop10"> <div class="col-md-7"> <div class="input-group"> <div class="input-group-prepend"><span class="input-group-text">公司帳戶編號/名稱</span> </div> <input type="text" class="form-control"> </div> </div>
</div> <button class="btn btn-secondary filterSubmitBtn"><i class="fas fa-search"></i> 搜尋</button> </div> <div class="table-responsive"> <table id="datatable" class="display table" style="width:100%"> <thead>
</thead> <tbody></tbody>
</table> </div>
</div> <?php include 'inc/footer.php'; ?> </div> <script src="http://maps.google.com/maps/api/js?sensor=true"></script> </div> </div>
<?php include 'inc/custom.php'; ?> <script type="text/javascript" src="./assets/scripts/main.js"></script> <script> $(document).ready(function() {
var columnDefs = [{ data: "column01", title: "公司帳戶編號" }, { data: "column02", title: "公司帳戶名稱"
}, { data: "column03", title: "登入帳戶",
}, { data: "column04", title: "建立日期"
}, {
render: function(data, type, row) {
var result = `<a href="course_setting.php">查閱/管理</a>`; return result; },
title: "可報讀課程"
}, {
render: function(data, type, row) {
var result = `<div class="mb-2 mr-2 badge badge-${row.column06}">${row.column05}</div>`; return result; },
title: "狀態"
}, { render: function(data, type, row) { status = row.column12; var result = `<button class="mb-2 mr-2 btn btn-info text-white" ><i class="fas fa-eye"></i></button> <button class="mb-2 mr-2 btn btn-warning text-white" onclick="window.location.href = 'company_account_edit.php';"><i class="fas fa-pencil-alt"></i></button> <button class="mb-2 mr-2 btn btn-danger text-white" ><i class="fas fa-trash-alt"></i></button> `; return result; },
title: "動作" } ];
var siteTable = $('#datatable').DataTable({ scrollX: false, ajax: "../course_admin/assets/json/demo_data2.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, order: [] }); }); </script> </body>
</html>
|