Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 3
0
def detective():
    detective = utils.read_products_cate(3)
    return render_template('detective.html', detective=detective)
Esempio n. 4
0
def novel():
    novel = utils.read_products_cate(2)
    return render_template('novel.html', novel=novel)
Esempio n. 5
0
def manga():
    manga = utils.read_products_cate(1)
    return render_template('manga.html', manga=manga)
Esempio n. 6
0
def truyen():

    truyen = utils.read_products_cate(1)
    return render_template('truyen.html', truyen=truyen)