-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWDA_structure_table.php
39 lines (39 loc) · 1.17 KB
/
WDA_structure_table.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
<div class="wrap">
<?php
global $wpdb;
$WDA_get_TABLE_ALL_LAble=WDA_get_TABLE_ALL_LAble($_GET['WDA_table']);
?>
<a class='WDA_btn-back' href="<?= admin_url( 'admin.php?page=WDA-Administrator' ) ?>"><img src="<?= plugins_url('images/btn-back.png', __FILE__) ?>" style="width:50px;" /></a>
<?php require_once 'WDA_innerPage_menu.php'; ?>
<table class="WDA-tables-list">
<tr>
<th>#</th>
<th>Name</th>
<th>Type</th>
<th>Collation</th>
<th>Null</th>
<th>Default</th>
<th>Comments</th>
<th>Extra</th>
<th>Action</th>
</tr>
<?php
$WDA_col_num=1;
foreach($WDA_get_TABLE_ALL_LAble as $WDA_LAble){
?>
<tr>
<td><?= $WDA_col_num ?></td>
<td><?= $WDA_LAble->COLUMN_NAME ?></td>
<td><?= $WDA_LAble->COLUMN_TYPE ?></td>
<td><?= $WDA_LAble->COLLATION_NAME ?></td>
<td><?= $WDA_LAble->IS_NULLABLE ?></td>
<td><?= $WDA_LAble->COLUMN_DEFAULT ?></td>
<td><?= $WDA_LAble->COLUMN_COMMENT ?></td>
<td><?= $WDA_LAble->EXTRA ?></td>
<td> <a class='table-action-a WDA-Drop-Column_table' data-table-name="<?= $_GET['WDA_table'] ?>" data-column-name="<?= $WDA_LAble->COLUMN_NAME ?>" href="#">Drop</a></td>
</tr>
<?php
$WDA_col_num++;
}
?>
</div>