Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="row justify-content-md-center">
- <div class="col-12 mb-4">
- <form action="Proses/Akses/tambah_akses.php" method="POST">
- <div class="card shadow-lg-hover">
- <div class="card-body p-2">
- <div class="row">
- <div class="col col-md-6">
- <label for="">Nama Lengkap</label>
- <input type="text" required name="nama_lengkap" id="" class="form-control" placeholder="">
- </div>
- <div class="col col-md-6">
- <label for="">Email</label>
- <input type="email" required name="email" id="" class="form-control" placeholder="">
- </div>
- </div>
- <div class="row">
- <div class="col col-md-6">
- <label for="">No.Kontak</label>
- <input type="text" required name="no_kontak" id="" class="form-control" placeholder="">
- </div>
- <div class="col col-md-6">
- <label for="">Username</label>
- <input type="text" required name="username" id="" class="form-control" placeholder="">
- </div>
- </div>
- <div class="row">
- <div class="col col-md-6">
- <label for="">Password</label>
- <input type="password" required name="password" id="" class="form-control" placeholder="">
- </div>
- <div class="col col-md-6">
- <label for="">Ulangi Password</label>
- <input type="password" required name="ulangi_password" id="" class="form-control" placeholder="">
- </div>
- </div>
- <div class="row">
- <div class="col col-md-12">
- <label for="">Level Akses</label>
- <select name="level" required class="form-control">
- <option value="">-Pillih Level-</option>
- <option value="Admin">Admin</option>
- <option value="Adru">Adru</option>
- <option value="BPJS">BPJS</option>
- <option value="Medrek">Medrek</option>
- <option value="Farmasi">Farmasi</option>
- <option value="Radiologi">Radiologi</option>
- <option value="Laboratorium">Laboratorium</option>
- </select>
- </div>
- </div>
- <div class="row">
- <div class="col col-md-12">
- <p>
- <?php
- if(!empty($_GET['notifikasi'])){
- $notifikasi=$_GET['notifikasi'];
- if($notifikasi=="error1"){
- echo '<div class="alert alert-danger text-white">';
- echo ' Maaf!! Nama lengkap Tidak Boleh Kosong';
- echo '</div>';
- }else{
- if($notifikasi=="error2"){
- echo '<div class="alert alert-danger text-white">';
- echo ' Maaf!! Email Tidak Boleh Kosong';
- echo '</div>';
- }else{
- if($notifikasi=="error3"){
- echo '<div class="alert alert-danger text-white">';
- echo ' Maaf!! Nomor Kontak Tidak Boleh Kosong';
- echo '</div>';
- }else{
- if($notifikasi=="error4"){
- echo '<div class="alert alert-danger text-white">';
- echo ' Maaf!! Username Tidak Boleh Kosong';
- echo '</div>';
- }else{
- if($notifikasi=="error5"){
- echo '<div class="alert alert-danger text-white">';
- echo ' Maaf!! Password Tidak Boleh Kosong';
- echo '</div>';
- }else{
- if($notifikasi=="error6"){
- echo '<div class="alert alert-danger text-white">';
- echo ' Maaf!! Password Tidak Sama';
- echo '</div>';
- }else{
- if($notifikasi=="error7"){
- echo '<div class="alert alert-danger text-white">';
- echo ' Maaf!! Proses input ke database gagal!';
- echo '</div>';
- }
- }
- }
- }
- }
- }
- }
- }else{
- echo '<div class="alert alert-warning text-white">';
- echo ' Silahkan isi form tersebut di atas dengan benar';
- echo '</div>';
- }
- ?>
- </p>
- </div>
- </div>
- </div>
- <div class="card-footer">
- <div class="row">
- <div class="col col-md-12">
- <button type="submit" class="btn btn-md btn-primary">
- <i class="fas fa-save"></i> Simpan
- </button>
- <button type="reset" class="btn btn-md btn-warning">
- <i class="fas fa-undo"></i> Reset
- </button>
- <a href="index.php?page=akses" class="btn btn-md btn-info">
- <i class="fas fa-arrow-alt-circle-left"></i> Kembali
- </a>
- </div>
- </div>
- </div>
- </div>
- </form>
- </div>
- </div>
Add Comment
Please, Sign In to add comment