-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpaket_add.php
124 lines (104 loc) · 3.49 KB
/
paket_add.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<?php
//cek session
session_start();
require_once 'config/config.php';
if (empty($_SESSION['loggedin'])) {
header("Location: ./");
die();
} elseif ($_SESSION['level'] === 'Kasir') {
header("Location: ./home.php");
} else {
?>
<!DOCTYPE html>
<html lang="en">
<?php include('_partials/head.php'); ?>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php include('_partials/navbar.php'); ?>
<?php include('_partials/sidebar.php'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
Paket
</h1>
<ol class="breadcrumb">
<li><a href="dashboard.php"><i class="fa fa-dashboard"></i> Dashboard</a></li>
<li><a href="paket.php">Paket</a></li>
<li class="active">Tambah Data Paket</li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<?php if (isset($_SESSION['error'])) : ?>
<p>
<?php
$error = $_SESSION['error'];
if ($error) {
?>
<div id="errorMessage" class="alert alert-danger" role="alert">
<i class="fa fa-exclamation-circle"></i> <?=$error;?>
</div>
<?php
}
?>
</p>
<?php
unset($_SESSION['error']);
endif;
?>
<div class="row">
<!-- left column -->
<div class="col-md-12">
<!-- general form elements -->
<div class="box box-primary">
<div class="box-header with-border">
<h3 class="box-title">Tambah Data Paket</h3>
</div>
<!-- /.box-header -->
<!-- form start -->
<form method="post" action="paket_add_process.php" role="form">
<div class="box-body">
<div class="form-group">
<div class="row">
<div class="col-md-5">
<label>Nama Paket</label>
<input type="text" class="form-control" placeholder="Nama Paket" name="paket" autofocus="autofocus" required="required">
</div>
</div>
</div>
<div class="form-group">
<div class="row">
<div class="col-md-5">
<label>Harga Paket</label>
<input type="text" class="form-control h_paket" placeholder="Harga Paket" id="h_paket" name="biaya" autofocus="autofocus" required="required">
</div>
</div>
</div>
<input type="submit" value="Simpan Data" class="btn btn-success" name="simpan" />
<a class="btn btn-default" href="paket.php">Kembali</a>
</div>
<!-- /.box-body -->
</form>
</div>
<!-- /.box -->
</div>
<!-- /.col-lg-6 -->
</div>
<!-- /.row -->
</section>
<!-- /.content -->
</div>
<!-- /.content-wrapper -->
<?php include('_partials/footer.php'); ?>
</div>
<!-- ./wrapper -->
<?php include('_partials/modal.php'); ?>
<?php include('_partials/js.php'); ?>
<?php include('_partials/ajax.php'); ?>
</body>
</html>
<?php
}
?>