Notes
Notes - notes.io |
<html lang="en">
<head>
<title>Online Shop</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="assets/bootstrap.min.css">
<script src="assets/jquery.min.js"></script>
<script src="assets/bootstrap.min.js"></script>
<style>
.navbar {
margin-bottom: 0;
border-radius: 0;
}
footer {
background-color: #f2f2f2;
padding: 25px;
}
textarea {
width:600px;
height:150px;
padding:10px;
font-family:Arial;
font-size:12px;
}
input[type=text]{
width:100%;
padding:6px 0px;
margin: 10px 0;
}
.button {
width: auto;
padding: 5px 20px;
background-color: #4CAF50;
}
</style>
</head>
<body>
<div class="container">
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Administrator</a>
</div>
<ul class="nav navbar-nav">
<li><a href="home.php">Home</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Data Master
<span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="kategori.php">Kategori</a></li>
<li><a href="Barang.php">Barang</a></li>
<li><a href="suplier.php">Supplier</a></li>
<li><a href="customer.php">Customer</a></li>
</ul>
</li>
<ul class="nav navbar-nav navbar-right">
<li><a href="logout.php"><span class="glyphicon glyphicon-log-in"></span> Logout</a></li>
</ul>
</div>
</nav>
<center><h1><font face="Times New Roman"> Data Supplier </h1>
<form action="" method="POST">
<table width="50" border="0"></center>
<tr>
<td><b>Kode</b></td>
<td><td><input type="text" name="kode" placeholder="Masukan Kode"/></td>
</tr>
<tr>
<td><b>Nama</b></td>
<td><td><input type="text" name="nama" placeholder="Masukan Nama"/></td>
</tr>
<tr>
<td><b>Alamat</b></td>
<td><td><input type="text" name="alm" placeholder="Masukan Alamat"/></td>
</tr>
<tr>
<td><b>Telepon</b></td>
<td><td><input type="text" name="telp" placeholder="Masukan Telepon"/></td>
</tr>
<tr>
<td><b>Keterangan</b></td>
<td><td><textarea name="TxtPesan" placeholder="Komentar"></textarea></td>
</tr>
<tr><td><td>
<td><input class="button" type="submit" name="submit" value="Simpan"></td></tr>
</table></form></center><br><br>
<?php
include_once("koneksi.php");
if(isset($_POST['submit'])) {
$kode = $_POST['kode'];
$nama = $_POST['nama'];
$alamat = $_POST['alm'];
$telepon = $_POST['telp'];
$keterangan = $_POST['TxtPesan'];
// Insert user data into table
$result = mysqli_query($mysqli, "INSERT INTO supplier(kode,nama,alamat,telp,keterangan)
VALUES('$kode','$nama','$alamat','$telepon','$keterangan')");
if($result){
echo"<script>
alert('Data Tersimpan');
window.location='suplier.php';</script>";
}
}
?>
<div class="container">
<table class="table table-striped">
<thead>
<tr bgcolor="#F5F5DC">
<td><b>NO</td>
<td><b>KODE</td>
<td><b>NAMA</td>
<td><b>ALAMAT</td>
<td><b>TELEPON</td>
<td><b>KETERANGAN</td>
<td><b>OPTION</b></td>
</tr>
</thead>
<tbody>
<?php
$no=0;
$mysql = mysqli_query($mysqli, "SELECT * FROM supplier");
while($hasil=mysqli_fetch_array($mysql)){
$no++;
echo "<body>";
echo "<tr>";
echo "<td>",$no."</td>";
echo "<td>",$hasil['kode']."</td>";
echo "<td>",$hasil['nama']."</td>";
echo "<td>",$hasil['alamat']."</td>";
echo "<td>",$hasil['telp']."</td>";
echo "<td>",$hasil['keterangan']."</td>";
}
?>
</tbody>
</table>
</div>
<footer class="container-fluid text-center">
<p>Aplikasi Inventory PT ABC by : web22019</p>
</footer>
</div>
</body>
</html>
|
Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...
With notes.io;
- * You can take a note from anywhere and any device with internet connection.
- * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
- * You can quickly share your contents without website, blog and e-mail.
- * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
- * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.
Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.
Easy: Notes.io doesn’t require installation. Just write and share note!
Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )
Free: Notes.io works for 12 years and has been free since the day it was started.
You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;
Email: [email protected]
Twitter: http://twitter.com/notesio
Instagram: http://instagram.com/notes.io
Facebook: http://facebook.com/notesio
Regards;
Notes.io Team