Skip to content

Commit

Permalink
account setting
Browse files Browse the repository at this point in the history
  • Loading branch information
wijayamin committed Dec 14, 2015
1 parent cd2c952 commit 3a64a7d
Show file tree
Hide file tree
Showing 4 changed files with 57 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
if ($row[0]=="admin"){
header("location:tu/");
}elseif($row[0]=="guru"){
header("location:guru/");
header("location:guru");
}else{
header("location:minat.php");
}
Expand Down
3 changes: 3 additions & 0 deletions tu/akun.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?php

echo "lol";
3 changes: 3 additions & 0 deletions tu/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
header("location:../guru/");
}
}
$pageini="Dasboard";
header("Location:guru.php");

?>
<!DOCTYPE html>
<html>
Expand Down
52 changes: 50 additions & 2 deletions tu/navbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@
<li class="dropdown">
<ul id="settings-dropdown" class="dropdown-menu">
<li>
<a href="#" tabindex="-1">
Settings
<a href="#" tabindex="-1" data-toggle="modal" data-target="#myModal">
Pengaturan Akun
</a>
</li>
<li>
Expand Down Expand Up @@ -135,3 +135,51 @@
<!-- Sidebar text -->
<!-- <div class="sidebar-text">Text</div> -->
</aside>
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title" id="myModalLabel">Pengaturan Akun</h4>
</div>
<form class="form-horizontal" action="akun.php" method="post">
<div class="modal-body">
<legend>Nama</legend>
<hr>
<div class="form-group">
<label for="NISN" class="col-lg-2 control-label">Nama</label>
<div class="col-lg-10">
<input type="text" class="form-control" id="NISN" placeholder="Nama Anda " name="nama" required value="<?php echo $pdo->query("select nama_guru from guru where id_guru='".$_SESSION["username"]."'")->fetchColumn();?>">
</div>
</div>
<legend>Password</legend>
<hr>
<div class="form-group">
<label for="NISN" class="col-lg-2 control-label">Password Lama</label>
<div class="col-lg-10">
<input type="password" class="form-control" id="NISN" placeholder="Password Lama" name="plama" required>
</div>
</div>
<hr>
<div class="form-group">
<label for="nama" class="col-lg-2 control-label">Password Baru</label>
<div class="col-lg-10">
<input type="password" class="form-control" id="nama" placeholder="Password Baru" name="pbaru" required>
</div>
</div>
<div class="form-group">
<label for="nama" class="col-lg-2 control-label">Ulang Password</label>
<div class="col-lg-10">
<input type="password" class="form-control" id="nama" placeholder="Ulangi Password Baru" name="pulang" required>
</div>
</div>
</div>
<div class="modal-footer">
<input class="btn btn-primary btn-material-indigo" type="hidden" value="<?php echo __FILE__; ?>" name="page">
<input class="btn btn-primary btn-material-indigo" type="submit" value="Simpan" name="simpan">
<button type="button" class="btn btn-default" data-dismiss="modal">Batal</button>
</div>
</form>
</div>
</div>
</div>

0 comments on commit 3a64a7d

Please sign in to comment.