-
Notifications
You must be signed in to change notification settings - Fork 6
/
alternatif-edit.php
56 lines (53 loc) · 2.17 KB
/
alternatif-edit.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
<?php
require "include/conn.php";
$id = $_GET['id'];
$sql = "SELECT * FROM saw_alternatives WHERE id_alternative = '$id' ";
$result = $db->query($sql);
$row = $result->fetch_array();
?>
<!DOCTYPE html>
<html lang="en">
<?php require "layout/head.php";?>
<body>
<div id="app">
<?php require "layout/sidebar.php";?>
<div id="main">
<header class="mb-3">
<a href="#" class="burger-btn d-block d-xl-none">
<i class="bi bi-justify fs-3"></i>
</a>
</header>
<div class="page-heading">
<h3>Alternatif Edit</h3>
</div>
<div class="page-content">
<section class="row">
<div class="card">
<div class="card-header">
<h4 class="card-title">Edit Data</h4>
</div>
<div class="card-body">
<div class="row">
<div class="col">
<form action="alternatif-edit-act.php" method="POST">
<div class="form-group">
<label for="basicInput">Name</label>
<input type="text" class="form-control" name="id_alternative" value="<?=$row['id_alternative'];?>" hidden>
<input type="text" class="form-control" name="name" value="<?=$row['name'];?>">
</div>
<div class="form-group">
<input type="submit" class="btn btn-info btn-sm">
</div>
</form>
</div>
</div>
</div>
</div>
</section>
</div>
<?php require "layout/footer.php";?>
</div>
</div>
<?php require "layout/js.php";?>
</body>
</html>