-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinput_admin.php
67 lines (66 loc) · 2.86 KB
/
input_admin.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
<?php
session_start();
error_reporting(0);
if(empty($_SESSION['id'])){
header('location:login.php?error_login=1');
}
?>
<?php include 'header.php';?>
<?php include 'menu.php';?>
<div class="content-wrapper">
<div class="container">
<div class="row">
<div class="col-md-12">
<br/>
<div class="panel panel-default">
<div class="panel-heading">
Form Admin
</div>
<div class="panel-body">
<form method="post" action="insert_admin.php" enctype="multipart/form-data">
<?php if (!empty($_GET['error_msg'])): ?>
<div class="alert alert-danger">
<?= $_GET['error_msg']; ?>
</div>
<?php endif ?>
<div class="form-group">
<label for="nama">Nama Lengkap</label>
<input required type="text" class="form-control" id="nama" name="nama">
</div>
<div class="form-group">
<label for="nama">Alamat </label>
<Textarea required type="text" class="form-control" id="alamat" name="alamat"></Textarea>
</div>
<div class="form-group">
<label>Telepon</label>
<input required type="number" name="telepon" class="form-control " pattern="^[0-9\.\-\/]+$">
</div>
<div class="form-group">
<label for="nama">Email </label>
<input required type="text" class="form-control" id="email" name="email">
</div>
<div class="form-group">
<label for="nama">Username</label>
<input required type="text" class="form-control" id="username" name="username">
</div>
<div class="form-group">
<label for="nama">Password</label>
<input required type="password" class="form-control" id="password" name="password">
</div>
<div class="form-group">
<button class="btn btn-primary">Simpan</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<?php include 'footer.php';?>
<script type="text/javascript">
$(function(){
$("#sk").addClass('menu-top-active');
});
</script>