-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcari_karyawan.php
executable file
·63 lines (61 loc) · 2.37 KB
/
cari_karyawan.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
<?php
session_start();
error_reporting(0);
?>
<?php include 'header.php';?>
<div class="content-wrapper">
<div class="container">
<div class="row">
<div class="col-md-12">
<h4 class="page-head-line">Cari Data</h4>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="alert alert-success">
<strong> Cari Calon Karyawan</strong>
<form method="get" action="cari_karyawan.php">
<div class="input-group">
<input type="text" class="form-control" name="nama" placeholder="Search">
<div class="input-group-btn">
<button class="btn btn-default" type="submit">
<i class="fa fa-search"></i>
</button>
</div>
</div>
</form>
</div>
</div>
</div>
<div class="row">
<div class="table-responsive">
<table class="table table-striped table-bordered table-hovered">
<thead>
<th>No</th>
<th>Nama</th>
<th>Nilai Akhir</th>
</thead>
<tbody>
<?php
$name = $_GET['nama'];
$no = 1;
foreach ($db->select('karyawan.*,hasil_spk.hasil_spk','karyawan,hasil_spk')->where('karyawan.id_calon_kr=hasil_spk.id_calon_kr and karyawan.nama')->like("$name")->get() as $row):?>
<tr>
<td><?= $no++?></td>
<td><?= $row['nama']?></td>
<td><?= $row['hasil_spk']?></td>
</tr>
<?php $no++; endforeach ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
<!-- CONTENT-WRAPPER SECTION END-->
<?php include 'footer.php'; ?>
<script type="text/javascript">
$(function(){
$("#home").addClass('menu-top-active');
});
</script>