-
Notifications
You must be signed in to change notification settings - Fork 0
/
view_country.php
71 lines (65 loc) · 2.96 KB
/
view_country.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
<?php
include('header.php');
$qry_sel_country = "select * from country";
$res_sel = mysqli_query($conn, $qry_sel_country);
?>
<main class="main-content bgc-grey-100">
<div id="mainContent">
<div class="container-fluid">
<h4 class="c-grey-900 mT-10 mB-30">Admin Tables
</h4>
<div class="row" id="delete">
<div class="col-md-12">
<div class="bgc-white bd bdrs-3 p-20 mB-20">
<h4 class="c-grey-900 mB-20">Admin Data Table
</h4>
<table id="dataTable" class="table table-striped table-bordered" cellspacing="0" width="100%">
<thead>
<tr>
<th><input type="checkbox" id="checkAl"> Checked All <button type="button" name="btn_delete" id="btn_delete" class="multi_delete">Delete</button></th>
<th>Id
</th>
<th>Country Name
</th>
<th>Action
</th>
</tr>
</thead>
<tfoot>
<tr>
<th>Delete
</th>
<th>Id
</th>
<th>Country Name
</th>
<th>Action
</th>
</tr>
</tfoot>
<?php while($arr = mysqli_fetch_array($res_sel)){ ?>
<tr data-row-id="<?php echo $arr['id']; ?>">
<td>
<input type="checkbox" id="checkItem" class="sub_chk" name="allcheckbox" data-row-id="<?php echo $arr['id']; ?>" />
</td>
<td><?php echo $arr['id']; ?>
</td>
<td><?php echo $arr['countryname']; ?>
</td>
<td>
<button type="button" class="btn btn-primary action" name="action" value="<?php echo $arr['id']; ?>" data-toggle="modal" data-target="#">Action</button>
<button type="button" class="btn btn-primary del" value="<?php echo $arr['id']; ?>" data-toggle="modal" data-target="#">Delete</button>
<button type="button" class="btn btn-primary popup" data-toggle="modal" value="<?php echo $arr['id']; ?>" data-target="#adminupdatemodel">Update</button>
</td>
</tr>
<?php } ?>
</table>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
<?php include('footer.php'); ?>