def books(): truyen = utils.read_products_cate(1) tieuthuyet = utils.read_products_cate(2) trinhtham = utils.read_products_cate(3) theloai = utils.read_category() return render_template('books.html', truyen=truyen, tieuthuyet=truyen, trinhtham=truyen, theloai=theloai)
def books(): bill = utils.read_bill() manga = utils.read_products_cate(1) novel = utils.read_products_cate(2) detective = utils.read_products_cate(3) theloai = utils.read_category() return render_template('books.html', manga=manga, novel=novel, detective=detective, theloai=theloai)
def detective(): detective = utils.read_products_cate(3) return render_template('detective.html', detective=detective)
def novel(): novel = utils.read_products_cate(2) return render_template('novel.html', novel=novel)
def manga(): manga = utils.read_products_cate(1) return render_template('manga.html', manga=manga)
def truyen(): truyen = utils.read_products_cate(1) return render_template('truyen.html', truyen=truyen)