-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheditalternatif.php
98 lines (85 loc) · 2.88 KB
/
editalternatif.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
<?php
//koneksi
session_start();
include ("koneksi.php");
$id_alter = $_GET['id_alternatif'];
$alternatif = $koneksi->query("SELECT * FROM tab_alternatif WHERE id_alternatif = '$id_alter'");
while ($row = $alternatif->fetch_row())
{
$nik = $row[1];
$nama = $row[2];
$bagian = $row[3];
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cv Fajar Jaya</title>
<!--bootstrap-->
<link href="tampilan/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<!--menu-->
<!-- navbar -->
<?php
include "header.php";
?>
<div class="container">
<div class="row">
<!--form alternatif-->
<div class="col-lg-6 col-lg-offset-3">
<div class="panel panel-primary">
<div class="panel-heading text-center" style="background-color: #13464b; color: white ;">
Edit Karyawan
</div>
<div class="panel-body">
<div class="row">
<div class="col-lg-12">
<form class="form" action="edita.php" method="post">
<div class="form-group">
<label >Id Karyawan</label>
<input class="form-control" type="text" name="id_alternatif" value= <?php echo $_GET['id_alternatif']; ?> readonly>
</div>
<div class="form-group">
<label >NIK</label>
<input class="form-control" type="text" name="nik" value= <?php echo $nik; ?> >
</div>
<div class="form-group">
<label >Nama Karyawan</label>
<input class="form-control" type="text" name="nama_alternatif" value= <?php echo $nama; ?> >
</div>
<div class="form-group">
<label >Bagian</label>
<select class="form-control" name="bagian">
<option>Pilih Bagian</option>
<option>PPIC</option>
<option>PRODUCTION</option>
<option>QUALITY</option>
<option>HRD&GA</option>
<option>Finance/Accounting</option>
</select>
</div>
<div class="form-group">
<a href="alternatif.php"><button type="button" class="btn btn-danger">Batal</button></a>
<button type="submit" class="btn btn-success">Ubah</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!--form alternatif-->
</div>
</div>
<!-- footer-->
<?php
include "footer.php"
?>
<!--plugin-->
<script src="tampilan/js/bootstrap.min.js"></script>
</body>
</html>