From 907c4ed308a3f3233c6dd06f6a292cf8deb143d3 Mon Sep 17 00:00:00 2001
From: alvinlimassa <alvin.limassa@gmail.com>
Date: Fri, 26 Oct 2018 13:39:18 +0700
Subject: [PATCH] update detail and search css

---
 view/detail.php | 3 ++-
 view/result.php | 3 ++-
 view/search.php | 1 +
 3 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/view/detail.php b/view/detail.php
index daf88f4..1280359 100644
--- a/view/detail.php
+++ b/view/detail.php
@@ -19,6 +19,7 @@
             include VIEW . "navBar.php";
             js("bootstrap.js");
             css("detail.css");
+            css("main.css");
             js("detail.js");
         ?>
     </head>
@@ -38,7 +39,7 @@
                     <img class="profile" src=
                     <?php 
                         if(empty($data['book']->image_id)){
-                            echo path("assets/image/empty_image");
+                            echo path("assets/image/empty_image.png");
                         } else {
                             path("ajax/image/get?id=" . $data['book']->image_id);
                         }
diff --git a/view/result.php b/view/result.php
index 1a26dd4..f47b093 100644
--- a/view/result.php
+++ b/view/result.php
@@ -9,6 +9,7 @@
             include VIEW . "navBar.php";
             js("bootstrap.js");
             css("search.css");
+            css("main.css");
             js("search.js");
         ?>   
     </head>
@@ -45,7 +46,7 @@
 <?php
     function createResultItem($result){
         if(empty($result->image_id)){
-            $image_src = "/book/assets/image/empty_image";
+            $image_src = "/book/assets/image/empty_image.png";
         } else {
             $image_src = "/book/ajax/image/get?id=" . $result->image_id;
         }
diff --git a/view/search.php b/view/search.php
index 55e166c..cb19e73 100644
--- a/view/search.php
+++ b/view/search.php
@@ -6,6 +6,7 @@
         <title>Browse</title>
         <meta name="viewport" content="width=device-width, initial-scale=1">
         <link rel="stylesheet" href="assets/css/search.css">
+        <link rel="stylesheet" href="assets/css/main.css">
         <script src="assets/js/bootstrap.js"></script>        
         <script src="assets/js/search.js"></script>        
     </head>
-- 
GitLab