-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdashboard.php
170 lines (152 loc) · 9.88 KB
/
dashboard.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
<div class="container">
<div class="container-fluid">
<div class="page-subheader mb-0">
<div class="container-fluid">
<div class="row align-items-center">
<div class="col-md-7">
<div class="list">
<div class="list-item pl-0">
<div class="list-thumb ml-0 mr-3 pr-3 b-r text-muted">
<i class="icon-Home"></i>
</div>
<div class="list-body">
<div class="list-title fs-2x">
<h3>Welcome <strong><?php echo $user['Level']; ?></strong></h3>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-5 d-flex justify-content-end h-md-down">
<nav aria-label="breadcrumb">
<ol class="breadcrumb no-padding bg-trans mb-0">
<li class="breadcrumb-item"><a href="index.html"><i class="icon-Home mr-2 fs14"></i></a></li>
<li class="breadcrumb-item">Dashboard</li>
<li class="breadcrumb-item active">Default </li>
</ol>
</nav>
</div>
</div>
</div>
</div><!-- page-sub-Header end-->
<div class="page-content">
<div class="row">
<div class="col-lg-3 mb-3 col-md-3 mb-30">
<div class="list bg-primary shadow-sm rounded overflow-hidden">
<div class="list-item">
<div class="list-thumb bg-primary-active text-primary-light avatar rounded-circle avatar60 shadow-sm">
<i class="icon-Add-Basket"></i>
</div>
<div class="list-body text-right">
<span class="list-title fs-2x lineH-3"> <span id="kk"> </span></span>
<span class="list-content text-primary-light fs14"><b>Jurusan APTH</b></span>
</div>
</div>
<a class="d-flex text-muted flex text-right flex-row align-items-center justify-content-end pt-5 pb-5 pl-4 pr-4 bg-primary-active">
Lihat selengkapnya <i class="fa fa-chevron-right ml-2 fs12 mt-1"></i>
</a>
</div>
</div><!--col-->
<div class="col-lg-3 mb-6 col-md-6 mb-30">
<div class="list bg-warning shadow-sm rounded overflow-hidden">
<div class="list-item">
<div class="list-thumb bg-warning-active text-warning-light avatar rounded-circle avatar60 shadow-sm">
<i class="icon-Truck"></i>
</div>
<div class="list-body text-right">
<span class="list-title fs-2x lineH-3"><span id="ll"> </span></span>
<span class="list-content text-warning-light fs14"><b>Jurusan ATR</b></span>
</div>
</div>
<a class="d-flex text-muted flex text-right flex-row align-items-center justify-content-end pt-5 pb-5 pl-4 pr-4 bg-warning-active">
Lihat selengkapnya <i class="fa fa-chevron-right ml-2 fs12 mt-1"></i>
</a>
</div>
</div><!--col-->
<div class="col-lg-3 mb-6 col-md-6 mb-30">
<div class="list bg-success shadow-sm rounded overflow-hidden">
<div class="list-item">
<div class="list-thumb bg-success-active text-success-light avatar rounded-circle avatar60 shadow-sm">
<i class="icon-Money-Bag"></i>
</div>
<div class="list-body text-right">
<span class="list-title fs-2x lineH-3"><span id="nn"> </span></span>
<span class="list-content text-success-light fs14"><b>Jurusan RPL</b></span>
</div>
</div>
<a class="d-flex text-muted flex text-right flex-row align-items-center justify-content-end pt-5 pb-5 pl-4 pr-4 bg-success-active">
Lihat selengkapnya <i class="fa fa-chevron-right ml-2 fs12 mt-1"></i>
</a>
</div>
</div><!--col-->
<div class="col-lg-3 mb-6 col-md-6 mb-30">
<div class="list bg-danger shadow-sm rounded overflow-hidden">
<div class="list-item">
<div class="list-thumb bg-danger-active text-danger-light avatar rounded-circle avatar60 shadow-sm">
<i class="icon-Remove-Basket"></i>
</div>
<div class="list-body text-right">
<span class="list-title fs-2x lineH-3"><span id="mm"> </span></span>
<span class="list-content text-danger-light fs14"><b>Jurusan APAT</b></span>
</div>
</div>
<a class="d-flex text-muted flex text-right flex-row align-items-center justify-content-end pt-5 pb-5 pl-4 pr-4 bg-danger-active">
Lihat selengkapnya <i class="fa fa-chevron-right ml-2 fs12 mt-1"></i>
</a>
</div>
</div><!--col-->
</div>
</div>
</div>
<div class="page-content">
<div class="container-fluid">
<div class="bg-white table-responsive rounded shadow-sm pt-3 pb-3 mb-30">
<h6 class="pl-3 pr-3 text-capitalize font400 mb-20 text-center">Data PPDB </br>Tahun Ajaran 2021/2022</h6>
<table id="data-table" class="table mb-0 table-striped" cellspacing="0" width="100%">
<thead>
<tr>
<th>Nama</th>
<th>Jenis Kelamin</th>
<th>NISN</th>
<th>Asal Sekolah</th>
<th>Jurusan dipilih</th>
<th>Alamat</th>
<th>Aksi</th>
</tr>
</thead>
<tbody>
<?php
$sql= "SELECT tb_registrasi.ID_Reg as idreg, tb_registrasi.Asal_Sekolah as asal, tb_pribadi.Nama as nama,tb_pribadi.ID_Siswa as ids,
tb_pribadi.JK as jk, tb_pribadi.NISN as nisn, tb_pribadi.Alamat as al, tb_jurusan.Jurusan as jur FROM tb_registrasi
JOIN tb_pribadi ON tb_registrasi.ID_Siswa = tb_pribadi.ID_Siswa
JOIN tb_jurusan ON tb_registrasi.ID_Jurusan = tb_jurusan.ID_Jurusan";
$query = $conn->query($sql);
while($row = $query->fetch_assoc()){
$idpd= $row['ids'];
echo "<tr>
<td>$row[nama]</td>
<td>$row[jk]</td>
<td>$row[nisn]</td>
<td>$row[asal]</td>
<td>$row[jur]</td>
<td>$row[al]</td>
<td>
<a href='javascript:void(0)' class='btn-icon-o btn-success radius100 btn-icon-sm mr-2 mb-2'>
<i class='fas fa-print'></i>
</a>
<a href='javascript:void(0)' data-id='$idpd' class='btn-icon-o btn-primary radius100 btn-icon-sm mr-2 mb-2'>
<i class='fas fa-edit'></i>
</a>
<a href='javascript:void(0)' data-id='$idpd' class='btn-icon-o btn-danger radius100 btn-icon-sm mr-2 mb-2 delete_pd'>
<i class='fa fa-trash'></i>
</a>
</td>
</tr>";
}
?>
</tbody>
</table>
</div>
</div>
</div>
</div>