diff --git a/app/api/book.php b/app/api/book.php index 44d60fe..ac09dbb 100644 --- a/app/api/book.php +++ b/app/api/book.php @@ -194,6 +194,15 @@ function api_cats(){ } +function api_parts(){ + + $result = db_get( + "SELECT * FROM priceparts" + ); + + return $result; + +} function book_slug($book){ diff --git a/app/pub/css/an.css b/app/pub/css/an.css index d1dc128..70c9feb 100644 --- a/app/pub/css/an.css +++ b/app/pub/css/an.css @@ -16,6 +16,25 @@ body.books-body { margin: 5px 0; background: #e4e4e4; } +#book-menu { + list-style-type: none; + width: 100%; + display: flex; + padding: 0px; + justify-content: left; + flex-wrap: wrap; +} +#book-menu li { + margin-right: 2px; + padding: 10px; + background: #7f7f7f; + margin-top: 2px; +} + #book-menu li a { + color: white; + font-weight: bold; + letter-spacing: 0.5px; + } #book_id { width: calc(33.333% - 14px); box-sizing: border-box; diff --git a/app/routes/books.php b/app/routes/books.php index 701a4c8..28cc438 100644 --- a/app/routes/books.php +++ b/app/routes/books.php @@ -65,6 +65,8 @@ function category_kuri($category = '', $filter = 'all', $page = 1){ $cats = api_cats(); + $parts = api_parts(); + $books = api_books_kuri($filter, $page); $baseurl = SITE."category/$category/$filter/"; @@ -91,7 +93,7 @@ function category_kuri($category = '', $filter = 'all', $page = 1){ if (isset($cats[$category])){ $breadcrumbs['page'] = $pagetitle; } - + $tempcontent = VIEWPATH.'books.phtml'; include VIEWPATH.'layout.phtml'; diff --git a/app/views/books.phtml b/app/views/books.phtml index 9b65d8f..6cc3ba4 100644 --- a/app/views/books.phtml +++ b/app/views/books.phtml @@ -1,3 +1,8 @@ +