Skip to content

Commit

Permalink
Making Changes on User
Browse files Browse the repository at this point in the history
  • Loading branch information
YOLO-GIT committed Oct 27, 2023
1 parent fcc8bba commit ca1ad3c
Show file tree
Hide file tree
Showing 7 changed files with 411 additions and 9 deletions.
12 changes: 6 additions & 6 deletions LibraryPro/sbs-html/booking.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,9 +120,9 @@
<form action="" method="GET">
<!-- Search Bar -->
<div class="search_bar">
<input type="text" name="search" value="<?php if (isset($_GET['search'])) {
echo $_GET['search'];
} ?>" class="form-control" placeholder="Search data">
<input type="text" name="search" required value="<?php if (isset($_GET['search'])) {
echo $_GET['search'];
} ?>" class="form-control" placeholder="Search data">
</div>
<!-- Button -->
<br><button type="submit" class="btn btn-primary">Search</button>
Expand Down Expand Up @@ -224,10 +224,10 @@
<tr>
<td class="bold-text">Sinopsis Buku:&nbsp;&nbsp;<?= $row["book_desc"] ?></td>
</tr>
<tr>
<td><br><br><a href="#" class="btn btn-primary">Booking</a>&nbsp;&nbsp;<a href="#" class="btn btn-primary">Borrowing</a></td>
</tr>
</table>
<div class="text-right">
<br><br><a href="#" class="btn btn-primary">Pilih Buku</a>
</div>
</div>
</div>
</div>
Expand Down
4 changes: 4 additions & 0 deletions LibraryPro/sbs-html/css/custom_style.css
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,8 @@
border-radius: 3px;
border: 1px solid #EF9A9A;
display: none;
}

.custom_btn{
margin-left: auto;
}
18 changes: 16 additions & 2 deletions LibraryPro/sbs-html/index.php
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
<?php
// Start the session
session_start();

// Check if session "idcust" dah wujud atau belum
if (isset($_SESSION["IDStud"])) {
$log = "Logout";
$func_todo = "logout.php";
} else {
$log = "Login";
$func_todo = "login.php";
}
?>

<!DOCTYPE html>
<html lang="en">

Expand Down Expand Up @@ -69,15 +83,15 @@
<a class="nav-link" href="#"><i class="fa fa-universal-access"></i> Berkaitan Kami</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#"><i class="fa fa-sign-out"></i> Logout</a>
<a class="nav-link" href="<?= $func_todo ?>"><i class="fa fa-sign-out"></i> <?= $log ?></a>
</li>
</ul>
</div>
</nav>
</div>
<div class="col-md-2">
<ul class="email text_align_right">
<li class="d_none"><a href="login.php"><i class="fa fa-user" aria-hidden="true"></i></a></li>
<li class="d_none"><a href="profile.php"><i class="fa fa-user" aria-hidden="true"></i></a></li>
</ul>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion LibraryPro/sbs-html/login.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@
<div class="collapse navbar-collapse" id="navbarsExample04">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" href="index.html"><i class="fa fa-home"></i> Home</a>
<a class="nav-link" href="index.php"><i class="fa fa-home"></i> Home</a>
</li>
<li class="nav-item">
<a class="nav-link" href="booking.php"><i class="fa fa-search"></i> Carian</a>
Expand Down
Loading

0 comments on commit ca1ad3c

Please sign in to comment.