Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IF3110-2018-K03-Petjah
TugasBesar1_2018
Commits
3f1a771c
Commit
3f1a771c
authored
Oct 26, 2018
by
Erma Safira Nurmasyita
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIX] Book Order fatal bug
parent
c8dc6237
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
web/book_detail/view.php
web/book_detail/view.php
+3
-3
No files found.
web/book_detail/view.php
View file @
3f1a771c
...
...
@@ -22,7 +22,7 @@
$str
=
'<body>
<div class="detail-container add-nunito-font">'
.
self
::
showBookDesc
(
$book_detail
,
$book_rating
)
.
self
::
showOrder
()
.
self
::
showOrder
(
$book_detail
[
'ID'
]
)
.
self
::
showReviews
(
$reviews
)
.
'</div>
</body>'
;
...
...
@@ -83,7 +83,7 @@
}
}
private
function
showOrder
()
{
private
function
showOrder
(
$id
)
{
$str
=
'
<div class="book-detail">
<div class="head-title">Order</div>
...
...
@@ -94,7 +94,7 @@
'</select>
</div>
<div align="right">
<button class="order-button c-button light-blue" type="button" onclick="orderBook(
1
)">Order</button>
<button class="order-button c-button light-blue" type="button" onclick="orderBook(
'
.
$id
.
'
)">Order</button>
</div>
</div>'
;
return
$str
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment