[FIX] Book Order fatal bug

parent c8dc6237
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
$str = '<body> $str = '<body>
<div class="detail-container add-nunito-font">'. <div class="detail-container add-nunito-font">'.
self::showBookDesc($book_detail, $book_rating). self::showBookDesc($book_detail, $book_rating).
self::showOrder(). self::showOrder($book_detail['ID']).
self::showReviews($reviews). self::showReviews($reviews).
'</div> '</div>
</body>'; </body>';
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
} }
} }
private function showOrder() { private function showOrder($id) {
$str = ' $str = '
<div class="book-detail"> <div class="book-detail">
<div class="head-title">Order</div> <div class="head-title">Order</div>
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
'</select> '</select>
</div> </div>
<div align="right"> <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>
</div>'; </div>';
return $str; return $str;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment