-
Notifications
You must be signed in to change notification settings - Fork 0
/
data-alternatif-baru.php
61 lines (57 loc) · 1.59 KB
/
data-alternatif-baru.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
<?php
include_once 'header.php';
if ($_POST) {
include_once 'includes/alternatif.inc.php';
$eks = new Alternatif($db);
$eks->nama = $_POST['nama'];
if ($eks->insert()) {
?>
<script type="text/javascript">
window.onload = function() {
showStickySuccessToast();
};
</script>
<?php
} else {
?>
<script type="text/javascript">
window.onload = function() {
showStickyErrorToast();
};
</script>
<?php
}
}
?>
<div class="row">
<!-- <div class="col-xs-12 col-sm-12 col-md-2">
<?php
// include_once 'sidebar.php';
?>
</div>-->
<div class="col-xs-12 col-sm-12 col-md-12">
<ol class="breadcrumb">
<li><a href="index.php"><span class="fa fa-home"></span> Beranda</a></li>
<li><a href="data-alternatif.php"><span class="fa fa-book"></span> Data Alternatif</a></li>
<li class="active"><span class="fa fa-clone"></span> Tambah Data</li>
</ol>
<p style="margin-bottom:10px;">
<strong style="font-size:18pt;"><span class="fa fa-clone"></span> Tambah Alternatif</strong>
</p>
<div class="panel panel-default">
<div class="panel-body">
<form method="post">
<div class="form-group">
<label for="nama">Nama Alternatif</label>
<input type="text" class="form-control" id="nama" name="nama" required>
</div>
<button type="submit" class="btn btn-primary"><span class="fa fa-save"></span> Simpan</button>
<button type="button" onclick="location.href='data-alternatif.php'" class="btn btn-success"><span class="fa fa-history"></span> Kembali</button>
</form>
</div>
</div>
</div>
</div>
<?php
include_once 'footer.php';
?>