-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdetailmerk.php
42 lines (40 loc) · 1.3 KB
/
detailmerk.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
<?php include "header.php"; ?>
<div class="container">
<div class="row">
<div class="col-lg-12">
<h3>Detail Data Merk</h3><br/><br/>
<?php
include "koneksi.php";
$id = $_GET['id'];
$tampil = "SELECT * FROM merk WHERE id_merk='$id'";
$qtampil = mysql_query($tampil);
$hasil = mysql_fetch_array($qtampil);
$idmerk = $hasil['id_merk'];
$nama = $hasil['nama_merk'];
?>
<form class="form-horizontal" action="processmerk.php?act=update" method="POST">
<div class="form-group">
<label for="inputEmail" class="col-lg-2 control-label">Merk Kendaraan</label>
<div class="col-lg-7">
<input type="text" class="form-control" value="<?php echo $nama; ?>" id="inputEmail" placeholder="Merk Kendaraan" name="merk" required>
<input type="hidden" value="<?php echo $id ?>" name="idmerk" />
</div>
</div>
<div class="form-group">
<div class="col-lg-7 col-lg-offset-2">
<button type="reset" class="btn btn-default">Cancel</button>
<button type="submit" class="btn btn-primary">Update</button>
</div>
</div>
</form>
</div>
</div>
<footer>
<p>Copyright © 2015</p>
</footer>
</div>
<script src="theme/js/jquery-1.10.2.min.js"></script>
<script src="theme/js/bootstrap.min.js"></script>
<script src="theme/js/bootswatch.js"></script>
</body>
</html>