diff --git a/web/book_detail/view.html b/web/book_detail/view.html deleted file mode 100644 index 90c4580318570706a18b1a628c08c23a0331e098..0000000000000000000000000000000000000000 --- a/web/book_detail/view.html +++ /dev/null @@ -1,85 +0,0 @@ - - - - - - Book Detail - - - - - - - - - -
-
-
-
Judul Buku
-
Pengarang
-
Buku ini adalah dsajdjdsfjdsbvfbdhvbfd lorem ipsum dolor sit a
-
-
-
- -
-
- - - - - -
-
5.0/5.0
-
-
-
-
Order
-
- - -
-
- -
-
-
-
Reviews
-
-
- -
-
-
@heitayo
-
Waw keren juga ya asique. lalal yeye llalala yayayay yeyeyeye. lalal yeye llalala yayayay yeyeyeye. lalal yeye llalala yayayay yeyeyeye
-
-
- -
5.0/5.0
-
-
-
-
- -
-
-
@heitayo
-
Waw keren juga ya asique. lalal
-
-
- -
5.0/5.0
-
-
-
-
- - - \ No newline at end of file diff --git a/web/book_detail/view.php b/web/book_detail/view.php index 269e5f57325c26dad28a3b8926966323d6fbafc0..e860316a2df26494bd6067bfe22a17ef68723d2c 100644 --- a/web/book_detail/view.php +++ b/web/book_detail/view.php @@ -75,10 +75,10 @@ return '/images/books_picture/default.jpg'; } } else { - if (fileProcessing::isExistProfileImage($input)) { - return fileProcessing::getImageProfilePathFromRoot($input); - } else { + if ($input == "null") { return '/images/profiles_picture/default.jpg'; + } else { + return '/uploads/'.$input; } } } @@ -118,7 +118,7 @@
- +
@'.$review['username'].'
diff --git a/web/css/search_result.css b/web/css/search_result.css index 89fccf7df818e75510d6a51302282134f1fa96ee..6e634d8b9e58aca4f93b2d88c5ab173a77ff77c9 100644 --- a/web/css/search_result.css +++ b/web/css/search_result.css @@ -11,9 +11,10 @@ h1{ } .title-right{ - flex-basis: 250px; - margin-top: 5%; - margin-left: 26%; + margin-top: 6%; + margin-left: 15%; + color: #7A7A7A; + /*margin-left: 26%;*/ } .title-container{ diff --git a/web/javascript/review-book.js b/web/javascript/review-book.js index a577d254207fd16b29b34693bfe7f13c2960a677..ae5eac5017463cc2f1a169f119707410da017015 100644 --- a/web/javascript/review-book.js +++ b/web/javascript/review-book.js @@ -41,19 +41,18 @@ function isEmptyRating() { } function trySubmitSearch() { + var valid = true; if (isEmptyCommentBar()) { document.getElementById("comment-area").style.display = 'table'; + valid = false; + } else { + document.getElementById("comment-area").style.display = 'none'; } if (isEmptyRating()) { document.getElementById("rating-area").style.display = 'table'; + valid = false; + } else { + document.getElementById("rating-area").style.display = 'none'; } -} - -document.addEventListener('DOMContentLoaded', function() { - document.getElementById('comment').addEventListener('keypress', function(event) { - if (event.keyCode == 13) { - event.preventDefault(); - trySubmitSearch(); - } - }); -}, false); \ No newline at end of file + return valid; +} \ No newline at end of file diff --git a/web/registration/controller.php b/web/registration/controller.php index 153b6c7640f201c551e45361ebdb5d51c15b9d36..4cbcf34bb4a6646efa56dd24942e512ead621345 100644 --- a/web/registration/controller.php +++ b/web/registration/controller.php @@ -22,7 +22,7 @@ if ($conn !== NULL) { $sql_query = 'INSERT INTO user (name, username, password, email, address, phone, profile_picture) VALUES ("'. $name . '", "' . $username . '", "' . $password . '", "' - . $email . '", "' . $address . '", "' . $phonenumber . '", "' . $username . '")'; + . $email . '", "' . $address . '", "' . $phonenumber . '", "null")'; $result = $conn->query($sql_query); $conn->close(); diff --git a/web/review/view.html b/web/review/view.html deleted file mode 100644 index 99ed06ed1a20977f49e925737de9d3c36d3d0a5e..0000000000000000000000000000000000000000 --- a/web/review/view.html +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - Book Review - - - - - - - - - -
-
-
-
Judul Buku
-
Pengarang
-
-
-
- -
-
-
-
-
-
Add Rating
-
-
- - - - - - - - - -
-
-
-
-
Add Comment
-
-
- -
-
-
-
-
- - -
-
-
-
- - \ No newline at end of file diff --git a/web/review/view.php b/web/review/view.php index ef28e9f796a57f58a5bc4cba15af53e667e2bc96..2facee1eb9aff2f77295a4ca63035e7dcfa47cd1 100644 --- a/web/review/view.php +++ b/web/review/view.php @@ -52,7 +52,7 @@ private function showReviewForm($order_id, $book_id) { $str = ' -
+
Add Rating
'. diff --git a/web/search_result/view.php b/web/search_result/view.php index 255c8cffd17336d8ad0324e9a798f2a59cb4cdd4..8813ac0fde2ad1fcf6c2f90ba2214ef0cc75f6a8 100644 --- a/web/search_result/view.php +++ b/web/search_result/view.php @@ -15,7 +15,7 @@

Search Result

-

Found '.$params["item"]->num_rows.' result(s).

+

Found '.$params["item"]->num_rows.' result(s)

'; $end = '